/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ var _Mathpow=Math.pow,_NumberPOSITIVE_INFINITY=Number.POSITIVE_INFINITY,_Mathfloor=Math.floor,_StringfromCharCode=String.fromCharCode,_Mathmax=Math.max,_Mathmin=Math.min;(function(u,f){if('object'==typeof exports&&'object'==typeof module)module.exports=f();else if('function'==typeof define&&define.amd)define([],f);else{var h=f();for(var P in h)('object'==typeof exports?exports:u)[P]=h[P]}})(this,function(){return function(r){function u(h){if(f[h])return f[h].exports;var P=f[h]={i:h,l:!1,exports:{}};return r[h].call(P.exports,P,P.exports,u),P.l=!0,P.exports}var f={};return u.m=r,u.c=f,u.i=function(h){return h},u.d=function(h,P,w){u.o(h,P)||Object.defineProperty(h,P,{configurable:!1,enumerable:!0,get:w})},u.n=function(h){var P=h&&h.__esModule?function(){return h['default']}:function(){return h};return u.d(P,'a',P),P},u.o=function(h,P){return Object.prototype.hasOwnProperty.call(h,P)},u.p='',u(u.s=538)}([function(r,u){'use strict';function h(O,T){if(!(O instanceof T))throw new TypeError('Cannot call a class as a function')}function P(O,T){if(!O)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return T&&('object'==typeof T||'function'==typeof T)?T:O}function w(O,T){if('function'!=typeof T&&null!==T)throw new TypeError('Super expression must either be null or a function, not '+typeof T);O.prototype=Object.create(T&&T.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(O,T):O.__proto__=T)}Object.defineProperty(u,'__esModule',{value:!0});var M=function(){function O(T,S){for(var E=0,R;EU?0:U,$}},{key:'isAfter',value:function(z){return'after'==this.compareWith(z)}},{key:'isBefore',value:function(z){return'before'==this.compareWith(z)}},{key:'isEqual',value:function(z){return'same'==this.compareWith(z)}},{key:'isTouching',value:function(z){var $=null,U=null,W=this.compareWith(z);switch(W){case'same':return!0;case'before':$=D.createFromPosition(this),U=D.createFromPosition(z);break;case'after':$=D.createFromPosition(z),U=D.createFromPosition(this);break;default:return!1;}for(var K=$.parent;$.path.length+U.path.length;){if($.isEqual(U))return!0;if($.path.length>U.path.length){if($.offset!==K.maxOffset)return!1;$.path=$.path.slice(0,-1),K=K.parent,$.offset++}else{if(0!==U.offset)return!1;U.path=U.path.slice(0,-1)}}}},{key:'_getTransformedByDeletion',value:function(z,$){var U=D.createFromPosition(this);if(this.root!=z.root)return U;if('same'==(0,E.default)(z.getParentPath(),this.getParentPath())){if(z.offsetthis.offset)return null;U.offset-=$}}else if('prefix'==(0,E.default)(z.getParentPath(),this.getParentPath())){var W=z.path.length-1;if(z.offset<=this.path[W]){if(z.offset+$>this.path[W])return null;U.path[W]-=$}}return U}},{key:'_getTransformedByInsertion',value:function(z,$,U){var W=D.createFromPosition(this);if(this.root!=z.root)return W;if('same'==(0,E.default)(z.getParentPath(),this.getParentPath()))(z.offsetD+1;)$=z.maxOffset-q.offset,0!=$&&V.push(new F(q,q.getShiftedBy($))),q.path=q.path.slice(0,-1),q.offset++,z=z.parent;for(;q.path.length<=this.end.path.length;){var U=this.end.path[q.path.length-1],W=U-q.offset;0!=W&&V.push(new F(q,q.getShiftedBy(W))),q.offset=U,q.path.push(0)}return V}},{key:'getWalker',value:function(){var V=0=N;N++)V=_StringfromCharCode(N),F[V.toLowerCase()]=N;for(var D=48;57>=D;D++)F[D-48]=D;for(var q=112;123>=q;q++)F['f'+(q-111)]=q;return F}()},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}function P(T,S,E,R,I){var F=-1,N=T.length;for(E||(E=O.default),I||(I=[]);++Fz?0:z,q}},{key:'getLastMatchingPosition',value:function(D){var q=1this.offset-D.offset?'before':'after';var q=this.getAncestors(),z=D.getAncestors(),$=(0,T.default)(q,z),U;switch($){case 0:return'different';case'prefix':U=q.length-1;break;case'extension':U=z.length-1;break;default:U=$-1;}var W=q[U],K=q[U+1],H=z[U+1];if(W===this.parent){var Y=this.offset-H.index;return 0>=Y?'before':'after'}if(W===D.parent){var G=K.index-D.offset;return 0>G?'before':'after'}var J=K.index-H.index;return 0>J?'before':'after'}},{key:'nodeAfter',get:function(){return this.parent.is('text')?null:this.parent.getChild(this.offset)||null}},{key:'nodeBefore',get:function(){return this.parent.is('text')?null:this.parent.getChild(this.offset-1)||null}},{key:'isAtStart',get:function(){return 0===this.offset}},{key:'isAtEnd',get:function(){var D=this.parent.is('text')?this.parent.data.length:this.parent.childCount;return this.offset===D}},{key:'root',get:function(){return this.parent.root}},{key:'editableElement',get:function(){for(var D=this.parent;!(D instanceof I.default);)if(D.parent)D=D.parent;else return null;return D}}],[{key:'createAt',value:function(D,q){if(D instanceof N)return this.createFromPosition(D);var z=D;if('end'==q)q=z.is('text')?z.data.length:z.childCount;else{if('before'==q)return this.createBefore(z);if('after'==q)return this.createAfter(z);q||(q=0)}return new N(z,q)}},{key:'createAfter',value:function(D){if(D.is('textProxy'))return new N(D.textNode,D.offsetInText+D.data.length);if(!D.parent)throw new E.default('view-position-after-root: You can not make position after root.',{root:D});return new N(D.parent,D.index+1)}},{key:'createBefore',value:function(D){if(D.is('textProxy'))return new N(D.textNode,D.offsetInText);if(!D.parent)throw new E.default('view-position-before-root: You can not make position before root.',{root:D});return new N(D.parent,D.index)}},{key:'createFromPosition',value:function(D){return new this(D.parent,D.offset)}}]),N}();u.default=F},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}function P(D,q){if(!(D instanceof q))throw new TypeError('Cannot call a class as a function')}function w(D,q){if(!D)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return q&&('object'==typeof q||'function'==typeof q)?q:D}function M(D,q){if('function'!=typeof q&&null!==q)throw new TypeError('Super expression must either be null or a function, not '+typeof q);D.prototype=Object.create(q&&q.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(D,q):D.__proto__=q)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function D(q,z){for(var $=0,U;$H.maxOffset)throw new N.default('move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.');else if(H===Y&&G=G&&this.targetPosition.path[Z]G&&(G=this.boundaries.start.offset),H=U.offset-G}Y=U.offset-K.startOffset;var J=new S.default(K,Y-H,H);return U.offset-=H,this.position=U,w('text',J,$,U,H)}return U.path.pop(),this.position=U,this._visitedParent=W.parent,w('elementStart',W,$,U,1)}}]),q}();u.default=D},function(r,u,f){'use strict';function h(R){return R&&R.__esModule?R:{default:R}}function P(R,I){if(!(R instanceof I))throw new TypeError('Cannot call a class as a function')}function w(R){return R.item.is('attributeElement')||R.item.is('uiElement')}Object.defineProperty(u,'__esModule',{value:!0});var M=function(){function R(I,F){for(var N=0,V;Nw&&(w=-w>O?0:O+w),M=M>O?O:M,0>M&&(M+=O),O=w>M?0:M-w>>>0,w>>>=0;for(var T=Array(O);++C=this._holderElementOffset&&this.sourcePosition.path[0]++}return O(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),'_execute',this).call(this)}},{key:'type',get:function(){return'remove'}},{key:'_holderElementOffset',get:function(){return this.targetPosition.path[0]},set:function(U){this.targetPosition.path[0]=U}}],[{key:'fromJSON',value:function(U,W){var K=R.default.fromJSON(U.sourcePosition,W),H=new z(K,U.howMany,U.baseVersion);return H.targetPosition=R.default.fromJSON(U.targetPosition,W),H._needsHolderElement=U._needsHolderElement,H}},{key:'className',get:function(){return'engine.model.operation.RemoveOperation'}}]),z}(S.default);u.default=D},function(r,u,f){'use strict';function P(I,F){if(!(I instanceof F))throw new TypeError('Cannot call a class as a function')}function w(I,F){if(!I)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return F&&('object'==typeof F||'function'==typeof F)?F:I}function M(I,F){if('function'!=typeof F&&null!==F)throw new TypeError('Super expression must either be null or a function, not '+typeof F);I.prototype=Object.create(F&&F.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(I,F):I.__proto__=F)}function C(){return 0===this.childCount?0:null}Object.defineProperty(u,'__esModule',{value:!0});var O=function(){function I(F,N){for(var V=0,D;V=200){var J=z?null:(0,F.default)(q);if(J)return(0,V.default)(J);H=!1,W=R.default,G=new M.default}else G=z?[]:Y;outer:for(;++UE||E>S.offsetSize)throw new C.default('model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.');if(0>R||E+R>S.offsetSize)throw new C.default('model-textproxy-wrong-length: Given length value is incorrect.');this.data=S.data.substring(E,E+R),this.offsetInText=E}return w(T,[{key:'is',value:function(E){return'textProxy'==E}},{key:'getPath',value:function(){var E=this.textNode.getPath();return 0=200&&(K=V.default,H=!1,z=new M.default(z));outer:for(;++Ww;w++)P+=_Mathfloor(65536*(1+Math.random())).toString(16).substring(1);return P}},function(r,u,f){'use strict';function h(R){return R&&R.__esModule?R:{default:R}}function P(R){if(Array.isArray(R)){for(var I=0,F=Array(R.length);I=N&&Fthis._items.length||0>q)throw new T.default('collection-add-item-invalid-index');return this._items.splice(q,0,D),this._itemMap.set(z,D),this.fire('add',D,q),this}},{key:'get',value:function(D){var q;if('string'==typeof D)q=this._itemMap.get(D);else if('number'==typeof D)q=this._items[D];else throw new T.default('collection-get-invalid-arg: Index or id must be given.');return q||null}},{key:'getIndex',value:function(D){var q;return q='string'==typeof D?this._itemMap.get(D):D,this._items.indexOf(q)}},{key:'remove',value:function(D){var U=!1,W=this._idProperty,q,z,$;if('string'==typeof D?(z=D,$=this._itemMap.get(z),U=!$,$&&(q=this._items.indexOf($))):'number'==typeof D?(q=D,$=this._items[q],U=!$,$&&(z=$[W])):($=D,z=$[W],q=this._items.indexOf($),U=-1==q||!this._itemMap.get(z)),U)throw new T.default('collection-remove-404: Item not found.');this._items.splice(q,1),this._itemMap.delete(z);var K=this._bindToInternalToExternalMap.get($);return this._bindToInternalToExternalMap.delete($),this._bindToExternalToInternalMap.delete(K),this.fire('remove',$),$}},{key:'map',value:function(D,q){return this._items.map(D,q)}},{key:'find',value:function(D,q){return this._items.find(D,q)}},{key:'filter',value:function(D,q){return this._items.filter(D,q)}},{key:'clear',value:function(){for(this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);this.length;)this.remove(0)}},{key:'bindTo',value:function(D){var q=this;if(this._bindToCollection)throw new T.default('collection-bind-to-rebind: The collection cannot be bound more than once.');return this._bindToCollection=D,{as:function($){q._setUpBindToBinding(function(U){return new $(U)})},using:function($){'function'==typeof $?q._setUpBindToBinding(function(U){return $(U)}):q._setUpBindToBinding(function(U){return U[$]})}}}},{key:'_setUpBindToBinding',value:function(D){var q=this,z=this._bindToCollection,$=function(Z,X,Q){var ee=z._bindToCollection==q,te=z._bindToInternalToExternalMap.get(X);if(ee&&te)q._bindToExternalToInternalMap.set(X,te),q._bindToInternalToExternalMap.set(te,X);else{var re=D(X);q._bindToExternalToInternalMap.set(X,re),q._bindToInternalToExternalMap.set(re,X),q.add(re,Q)}},U=!0,W=!1,K;try{for(var H=z[Symbol.iterator](),Y,G;!(U=(Y=H.next()).done);U=!0)G=Y.value,$(null,G)}catch(J){W=!0,K=J}finally{try{!U&&H.return&&H.return()}finally{if(W)throw K}}this.listenTo(z,'add',$),this.listenTo(z,'remove',function(J,Z){var X=q._bindToExternalToInternalMap.get(Z);X&&q.remove(X)})}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:'length',get:function(){return this._items.length}}]),N}();u.default=F,(0,I.default)(F,C.default)},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}function P(D,q){if(!(D instanceof q))throw new TypeError('Cannot call a class as a function')}function w(D){return D['data-ck-expando']||(D['data-ck-expando']=(0,S.default)())}function M(D){return D&&(0,F.default)(D.addEventListener)}Object.defineProperty(u,'__esModule',{value:!0});var C=f(7),O=h(C),T=f(71),S=h(T),E=f(45),R=h(E),I=f(235),F=h(I),N=(0,R.default)({},O.default,{listenTo:function(){for(var q=arguments.length,z=Array(q),$=0;$>>1){for(;V>>1,z=I[q];null!==z&&!(0,S.default)(z)&&(N?z<=F:zH._priority)||!(K._priority=N||0>ue||ae&&ie>=Z}function U(){var le=(0,O.default)();return $(le)?W(le):void(Q=setTimeout(U,z(le)))}function W(le){return(clearTimeout(Q),Q=void 0,oe&&G)?D(le):(G=J=void 0,X)}function Y(){var le=(0,O.default)(),ue=$(le);if(G=arguments,J=this,ee=le,ue){if(void 0===Q)return q(ee);if(ae)return clearTimeout(Q),Q=setTimeout(U,N),D(ee)}return void 0===Q&&(Q=setTimeout(U,N)),X}var ee=0,te=0,re=!1,ae=!1,oe=!0,G,J,Z,X,Q;if('function'!=typeof F)throw new TypeError('Expected a function');return N=(0,S.default)(N)||0,(0,M.default)(V)&&(re=!!V.leading,ae='maxWait'in V,Z=ae?_Mathmax((0,S.default)(V.maxWait)||0,N):Z,oe='trailing'in V?!!V.trailing:oe),Y.cancel=function(){void 0!==Q&&clearTimeout(Q),ee=te=0,G=J=Q=void 0},Y.flush=function(){return void 0===Q?X:W((0,O.default)())},Y}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(36),M=h(w),C=f(15),O=h(C);u.default=function(T,S,E){var R=T?T.length:0;return R?(S=E||void 0===S?1:(0,O.default)(S),(0,M.default)(T,0>S?0:S,R)):[]}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(36),M=h(w),C=f(15),O=h(C);u.default=function(T,S,E){var R=T?T.length:0;return R?(S=E||void 0===S?1:(0,O.default)(S),S=R-S,(0,M.default)(T,0,0>S?0:S)):[]}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return P&&P.length?P[0]:void 0}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(13),M=function(R){return R&&R.__esModule?R:{default:R}}(w),O=Object.prototype,T=O.hasOwnProperty,S=O.toString,E=O.propertyIsEnumerable;u.default=function(R){return(0,M.default)(R)&&T.call(R,'callee')&&(!E.call(R,'callee')||S.call(R)=='[object Arguments]')}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(14),M=function(E){return E&&E.__esModule?E:{default:E}}(w),T=Object.prototype,S=T.toString;u.default=function(E){var R=(0,M.default)(E)?S.call(E):'';return R=='[object Function]'||R=='[object GeneratorFunction]'}},function(r,u,f){'use strict';function h(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(11),M=h(w),C=f(46),O=h(C),S=Object.prototype,E=S.toString;u.default=function(R){return'string'==typeof R||!(0,M.default)(R)&&(0,O.default)(R)&&E.call(R)=='[object String]'}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(133),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){return C&&C.length&&O&&O.length?(0,M.default)(C,O):C}},function(r,u,f){'use strict';function h(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(195),M=h(w),C=f(27),O=h(C),T=f(100),S=h(T);u.default=function(E,R){if(!(E&&E.length))return[];var I=(0,S.default)(E);return null==R?I:(0,O.default)(I,function(F){return(0,M.default)(R,void 0,F)})}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(T){return(0,M.default)(T)?(0,O.default)(T):new Map(T)};var w=f(99),M=h(w),C=f(274),O=h(C)},function(r,u){'use strict';function w(I,F){I.setCustomProperty(S,F)}function O(){return null}Object.defineProperty(u,'__esModule',{value:!0}),u.isWidget=function(I){return!!I.getCustomProperty(T)},u.toWidget=function(I,F){return F=F||{},I.setAttribute('contenteditable',!1),I.getFillerOffset=O,I.addClass(E),I.setCustomProperty(T,!0),F.label&&w(I,F.label),I},u.setLabel=w,u.getLabel=function(I){var F=I.getCustomProperty(S);return F?'function'==typeof F?F():F:''},u.toWidgetEditable=function(I){return I.setAttribute('contenteditable','true'),I.addClass('ck-editable'),I.on('change:isFocused',function(F,N,V){V?I.addClass('ck-editable_focused'):I.removeClass('ck-editable_focused')}),I};var T=Symbol('isWidget'),S=Symbol('label'),E=u.WIDGET_CLASS_NAME='ck-widget',R=u.WIDGET_SELECTED_CLASS_NAME='ck-widget_selected'},function(r,u,f){'use strict';function h(q){return q&&q.__esModule?q:{default:q}}function P(q,z){if(!(q instanceof z))throw new TypeError('Cannot call a class as a function')}function w(q,z){if(!q)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return z&&('object'==typeof z||'function'==typeof z)?z:q}function M(q,z){if('function'!=typeof z&&null!==z)throw new TypeError('Super expression must either be null or a function, not '+typeof z);q.prototype=Object.create(z&&z.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(q,z):q.__proto__=z)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function q(z,$){for(var U=0,W;U<$.length;U++)W=$[U],W.enumerable=W.enumerable||!1,W.configurable=!0,'value'in W&&(W.writable=!0),Object.defineProperty(z,W.key,W)}return function(z,$,U){return $&&q(z.prototype,$),U&&q(z,U),z}}(),O=f(3),T=h(O),S=f(49),E=h(S),R=f(50),I=h(R),F=f(158),N=h(F),V='bold',D=function(q){function z(){return P(this,z),w(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return M(z,q),C(z,[{key:'init',value:function(){var U=this.editor,W=U.data,K=U.editing;U.document.schema.allow({name:'$inline',attributes:[V]}),(0,E.default)().for(W.modelToView,K.modelToView).fromAttribute(V).toElement('strong'),(0,I.default)().for(W.viewToModel).fromElement('strong').fromElement('b').fromAttribute('style',{'font-weight':'bold'}).toAttribute(V,!0),U.commands.set(V,new N.default(U,V))}}]),z}(T.default);u.default=D},function(r,u,f){'use strict';function h(q){return q&&q.__esModule?q:{default:q}}function P(q,z){if(!(q instanceof z))throw new TypeError('Cannot call a class as a function')}function w(q,z){if(!q)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return z&&('object'==typeof z||'function'==typeof z)?z:q}function M(q,z){if('function'!=typeof z&&null!==z)throw new TypeError('Super expression must either be null or a function, not '+typeof z);q.prototype=Object.create(z&&z.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(q,z):q.__proto__=z)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function q(z,$){for(var U=0,W;U<$.length;U++)W=$[U],W.enumerable=W.enumerable||!1,W.configurable=!0,'value'in W&&(W.writable=!0),Object.defineProperty(z,W.key,W)}return function(z,$,U){return $&&q(z.prototype,$),U&&q(z,U),z}}(),O=f(3),T=h(O),S=f(49),E=h(S),R=f(50),I=h(R),F=f(158),N=h(F),V='italic',D=function(q){function z(){return P(this,z),w(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return M(z,q),C(z,[{key:'init',value:function(){var U=this.editor,W=U.data,K=U.editing;U.document.schema.allow({name:'$inline',attributes:[V]}),(0,E.default)().for(W.modelToView,K.modelToView).fromAttribute(V).toElement('em'),(0,I.default)().for(W.viewToModel).fromElement('em').fromElement('i').fromAttribute('style',{'font-style':'italic'}).toAttribute(V,!0),U.commands.set(V,new N.default(U,V))}}]),z}(T.default);u.default=D},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(C,O,T){if(O.isCollapsed)return T.check({name:'$text',inside:O.getFirstPosition(),attributes:C});var S=O.getRanges(),E=!0,R=!1,I;try{for(var F=S[Symbol.iterator](),N;!(E=(N=F.next()).done);E=!0)for(var V=N.value,D=new M.default({boundaries:V,mergeCharacters:!0}),q=D.position,z=D.next(),$;!z.done;){if($=z.value.item.name||'$text',T.check({name:$,inside:q,attributes:C}))return!0;q=D.position,z=D.next()}}catch(U){R=!0,I=U}finally{try{!E&&F.return&&F.return()}finally{if(R)throw I}}return!1};var w=f(34),M=function(C){return C&&C.__esModule?C:{default:C}}(w)},function(r,u,f){'use strict';function h(N){return N&&N.__esModule?N:{default:N}}function P(N,V){if(!(N instanceof V))throw new TypeError('Cannot call a class as a function')}function w(N,V){if(!N)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return V&&('object'==typeof V||'function'==typeof V)?V:N}function M(N,V){if('function'!=typeof V&&null!==V)throw new TypeError('Super expression must either be null or a function, not '+typeof V);N.prototype=Object.create(V&&V.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(N,V):N.__proto__=V)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function N(V,D){for(var q=0,z;qae?0:ae),new R.default(re,ae)):null}if(0===te){var oe=this.getCorrespondingView(ee);if(oe)return new R.default(oe,0)}else{var le=this.getCorrespondingView(ee.childNodes[te-1]);if(le&&le.parent)return new R.default(le.parent,le.index+1)}return null}},{key:'getCorrespondingView',value:function(ee){return this.isElement(ee)?this.getCorrespondingViewElement(ee):this.isDocumentFragment(ee)?this.getCorrespondingViewDocumentFragment(ee):this.isText(ee)?this.getCorrespondingViewText(ee):null}},{key:'getCorrespondingViewElement',value:function(ee){return this._domToViewMapping.get(ee)}},{key:'getCorrespondingViewDocumentFragment',value:function(ee){return this._domToViewMapping.get(ee)}},{key:'getCorrespondingViewText',value:function(ee){if((0,U.isInlineFiller)(ee))return null;var te=ee.previousSibling;if(te){if(!this.isElement(te))return null;var re=this.getCorrespondingViewElement(te);if(re){var ae=re.nextSibling;return ae instanceof O.default?re.nextSibling:null}}else{var oe=this.getCorrespondingViewElement(ee.parentNode);if(oe){var le=oe.getChild(0);return le instanceof O.default?le:null}}return null}},{key:'getCorrespondingDom',value:function(ee){return ee instanceof S.default?this.getCorrespondingDomElement(ee):ee instanceof q.default?this.getCorrespondingDomDocumentFragment(ee):ee instanceof O.default?this.getCorrespondingDomText(ee):null}},{key:'getCorrespondingDomElement',value:function(ee){return this._viewToDomMapping.get(ee)}},{key:'getCorrespondingDomDocumentFragment',value:function(ee){return this._viewToDomMapping.get(ee)}},{key:'getCorrespondingDomText',value:function(ee){var te=ee.previousSibling;return te&&this.getCorrespondingDom(te)?this.getCorrespondingDom(te).nextSibling:!te&&ee.parent&&this.getCorrespondingDom(ee.parent)?this.getCorrespondingDom(ee.parent).childNodes[0]:null}},{key:'focus',value:function(ee){var te=this.getCorrespondingDomElement(ee);te&&te.ownerDocument.activeElement!==te&&te.focus()}},{key:'isText',value:function(ee){return ee&&ee.nodeType==Node.TEXT_NODE}},{key:'isElement',value:function(ee){return ee&&ee.nodeType==Node.ELEMENT_NODE}},{key:'isDocumentFragment',value:function(ee){return ee&&ee.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:'isDomSelectionBackward',value:function(ee){if(ee.isCollapsed)return!1;var te=new Range;te.setStart(ee.anchorNode,ee.anchorOffset),te.setEnd(ee.focusNode,ee.focusOffset);var re=te.collapsed;return te.detach(),re}},{key:'_processDataFromViewText',value:function(ee){var te=this,re=ee.data;if(ee.getAncestors().some(function(de){return te.preElements.includes(de.name)}))return re;var ae=this._getTouchingViewTextNode(ee,!1),oe=this._getTouchingViewTextNode(ee,!0),le=re.match(/ *$/)[0],ue=re.substr(0,re.length-le.length);if(ae&&' '!=ae.data.charAt(ae.data.length-1)||(ue=ue.replace(/^ /,'\xA0')),ue=ue.replace(/ /g,' \xA0'),0=this.limit&&this._reset(!0)}},{key:'lock',value:function(){this.isLocked=!0}},{key:'unlock',value:function(){this.isLocked=!1}},{key:'destroy',value:function(){this.document.off('change',this._changeCallback),this.document.selection.off('change:range',this._selectionChangeCallback),this.document.selection.off('change:attribute',this._selectionChangeCallback)}},{key:'_onBatch',value:function(E){'transparent'!=E.type&&E!==this._batch&&1>=(0,C.default)(E.getOperations())&&this._reset(!0)}},{key:'_reset',value:function(E){(!this.isLocked||E)&&(this._batch=null,this.size=0)}},{key:'batch',get:function(){return this._batch||(this._batch=this.document.batch()),this._batch}}]),T}();u.default=O},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){var w=P.emitter,M=P.activator,C=P.callback,O=P.contextElement;w.listenTo(document,'mouseup',function(T,S){var E=S.target;M()&&!O.contains(E)&&C()})}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){var w=P.view;w.listenTo(w.element,'submit',function(M,C){C.preventDefault(),w.fire('submit')},{useCapture:!0})}},function(r,u,f){'use strict';function h(I){return I&&I.__esModule?I:{default:I}}function P(I,F){if(!(I instanceof F))throw new TypeError('Cannot call a class as a function')}function w(I,F){if(!I)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return F&&('object'==typeof F||'function'==typeof F)?F:I}function M(I,F){if('function'!=typeof F&&null!==F)throw new TypeError('Super expression must either be null or a function, not '+typeof F);I.prototype=Object.create(F&&F.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(I,F):I.__proto__=F)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function I(F,N){for(var V=0,D;V$?-1:1;F[q+U]&&(F[q]=F[q+U].slice(0)),F[q]||(F[q]=[]),F[q].push(z>$?O:T);for(var W=_Mathmax(z,$),K=W-q;KI;D--)N[D]=C(D);N[I]=C(I),V++}while(N[I]!==R);return F[I].slice(1)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){for(var w=[];P&&P.nodeType!=Node.DOCUMENT_NODE;)w.unshift(P),P=P.parentNode;return w}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return function(w){return w+P}}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(54),w=h(P),M=f(30),C=h(M),O=(0,w.default)(C.default,'Map');u.default=O},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(54),w=h(P),M=f(30),C=h(M),O=(0,w.default)(C.default,'Set');u.default=O},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var P=f(30),w=function(C){return C&&C.__esModule?C:{default:C}}(P),M=w.default.Uint8Array;u.default=M},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P,w,M){var C=M.length;return 0===C?P.call(w):1===C?P.call(w,M[0]):2===C?P.call(w,M[0],M[1]):3===C?P.call(w,M[0],M[1],M[2]):P.apply(w,M)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P,w,M,C){var O=-1,T=P.length;for(C&&T&&(M=P[++O]);++Oq))return!1;var $=V.get(E);if($)return $==R;var U=-1,W=!0,K=N&1?new M.default:void 0;for(V.set(E,R);++UF)return[];for(var D=0,q=0,z=Array(E(V/F));DR&&(R=_Mathmax(I+R,0)),(0,M.default)(S,E,R)):-1}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(146),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return(0,M.default)(C,1)}},function(r,u,f){'use strict';function h(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(27),w=h(P),M=f(130),C=h(M),O=f(138),T=h(O),S=f(8),E=h(S),R=(0,E.default)(function(I){var F=(0,w.default)(I,T.default);return F.length&&F[0]===I[0]?(0,C.default)(F):[]});u.default=R},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(27),w=h(P),M=f(130),C=h(M),O=f(10),T=h(O),S=f(138),E=h(S),R=f(19),I=h(R),F=f(8),N=h(F),V=(0,N.default)(function(D){var q=(0,I.default)(D),z=(0,w.default)(D,E.default);return q===(0,I.default)(z)?q=void 0:z.pop(),z.length&&z[0]===D[0]?(0,C.default)(z,(0,T.default)(q)):[]});u.default=V},function(r,u,f){'use strict';function h(N){return N&&N.__esModule?N:{default:N}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(27),w=h(P),M=f(130),C=h(M),O=f(138),T=h(O),S=f(19),E=h(S),R=f(8),I=h(R),F=(0,I.default)(function(N){var V=(0,E.default)(N),D=(0,w.default)(N,T.default);return V===(0,E.default)(D)?V=void 0:D.pop(),D.length&&D[0]===N[0]?(0,C.default)(D,void 0,V):[]});u.default=F},function(r,u,f){'use strict';function h(z){return z&&z.__esModule?z:{default:z}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(149),M=h(w),C=f(91),O=h(C),T=f(14),S=h(T),E=f(211),R=h(E),I=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,N=Object.prototype,V=Function.prototype.toString,D=N.hasOwnProperty,q=RegExp('^'+V.call(D).replace(I,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');u.default=function(z){if(!(0,S.default)(z))return!1;var $=(0,M.default)(z)||(0,O.default)(z)?q:F;return $.test((0,R.default)(z))}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var P=Array.prototype,w=P.join;u.default=function(M,C){return M?w.call(M,C):''}},function(r,u,f){'use strict';function h(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(208),M=h(w),C=f(15),O=h(C);u.default=function(E,R,I){var F=E?E.length:0;if(!F)return-1;var N=F;if(void 0!==I&&(N=(0,O.default)(I),N=(0>N?_Mathmax(F+N,0):_Mathmin(N,F-1))+1),R!==R)return(0,M.default)(E,N,!0);for(;N--;)if(E[N]===R)return N;return-1}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(441),M=h(w),C=f(15),O=h(C);u.default=function(T,S){return T&&T.length?(0,M.default)(T,(0,O.default)(S)):void 0}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(151),w=h(P),M=f(8),C=h(M),O=(0,C.default)(w.default);u.default=O},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(10),M=h(w),C=f(133),O=h(C);u.default=function(T,S,E){return T&&T.length&&S&&S.length?(0,O.default)(T,S,(0,M.default)(E)):T}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(133),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O,T){return C&&C.length&&O&&O.length?(0,M.default)(C,O,void 0,T):C}},function(r,u,f){'use strict';function h(z){return z&&z.__esModule?z:{default:z}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(27),w=h(P),M=f(428),C=h(M),O=f(23),T=h(O),S=f(200),E=h(S),R=f(454),I=h(R),F=f(37),N=h(F),V=f(8),D=h(V),q=(0,D.default)(function(z,$){$=(0,T.default)($,1);var U=z?z.length:0,W=(0,C.default)(z,$);return(0,E.default)(z,(0,w.default)($,function(K){return(0,N.default)(K,U)?+K:K}).sort(I.default)),W});u.default=q},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(10),M=h(w),C=f(200),O=h(C);u.default=function(T,S){var E=[];if(!(T&&T.length))return E;var R=-1,I=[],F=T.length;for(S=(0,M.default)(S,3);++RS?0:S)):[]}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(36),M=h(w),C=f(15),O=h(C);u.default=function(T,S,E){var R=T?T.length:0;return R?(S=E||void 0===S?1:(0,O.default)(S),S=R-S,(0,M.default)(T,0>S?0:S,R)):[]}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(10),M=h(w),C=f(88),O=h(C);u.default=function(T,S){return T&&T.length?(0,O.default)(T,(0,M.default)(S,3),!1,!0):[]}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(10),M=h(w),C=f(88),O=h(C);u.default=function(T,S){return T&&T.length?(0,O.default)(T,(0,M.default)(S,3)):[]}},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(149),M=h(w),C=f(14),O=h(C),T=f(47),S=h(T),E=0/0,R=/^\s+|\s+$/g,I=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,N=/^0o[0-7]+$/i,V=parseInt;u.default=function(D){if('number'==typeof D)return D;if((0,S.default)(D))return E;if((0,O.default)(D)){var q=(0,M.default)(D.valueOf)?D.valueOf():D;D=(0,O.default)(q)?q+'':q}if('string'!=typeof D)return 0===D?D:+D;D=D.replace(R,'');var z=F.test(D);return z||N.test(D)?V(D.slice(2),z?2:8):I.test(D)?E:+D}},function(r,u,f){'use strict';function h(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(23),w=h(P),M=f(44),C=h(M),O=f(13),T=h(O),S=f(8),E=h(S),R=(0,E.default)(function(I){return(0,C.default)((0,w.default)(I,1,T.default,!0))});u.default=R},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(23),w=h(P),M=f(10),C=h(M),O=f(44),T=h(O),S=f(13),E=h(S),R=f(19),I=h(R),F=f(8),N=h(F),V=(0,N.default)(function(D){var q=(0,I.default)(D);return(0,E.default)(q)&&(q=void 0),(0,T.default)((0,w.default)(D,1,E.default,!0),(0,C.default)(q))});u.default=V},function(r,u,f){'use strict';function h(N){return N&&N.__esModule?N:{default:N}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(23),w=h(P),M=f(44),C=h(M),O=f(13),T=h(O),S=f(19),E=h(S),R=f(8),I=h(R),F=(0,I.default)(function(N){var V=(0,E.default)(N);return(0,T.default)(V)&&(V=void 0),(0,C.default)((0,w.default)(N,1,T.default,!0),void 0,V)});u.default=F},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(44),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return C&&C.length?(0,M.default)(C):[]}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(10),M=h(w),C=f(44),O=h(C);u.default=function(T,S){return T&&T.length?(0,O.default)(T,(0,M.default)(S)):[]}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(44),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){return C&&C.length?(0,M.default)(C,void 0,O):[]}},function(r,u,f){'use strict';function h(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(69),w=h(P),M=f(13),C=h(M),O=f(8),T=h(O),S=(0,T.default)(function(E,R){return(0,C.default)(E)?(0,w.default)(E,R):[]});u.default=S},function(r,u,f){'use strict';function h(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(84),w=h(P),M=f(136),C=h(M),O=f(13),T=h(O),S=f(8),E=h(S),R=(0,E.default)(function(I){return(0,C.default)((0,w.default)(I,T.default))});u.default=R},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(84),w=h(P),M=f(10),C=h(M),O=f(136),T=h(O),S=f(13),E=h(S),R=f(19),I=h(R),F=f(8),N=h(F),V=(0,N.default)(function(D){var q=(0,I.default)(D);return(0,E.default)(q)&&(q=void 0),(0,T.default)((0,w.default)(D,E.default),(0,C.default)(q))});u.default=V},function(r,u,f){'use strict';function h(N){return N&&N.__esModule?N:{default:N}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(84),w=h(P),M=f(136),C=h(M),O=f(13),T=h(O),S=f(19),E=h(S),R=f(8),I=h(R),F=(0,I.default)(function(N){var V=(0,E.default)(N);return(0,T.default)(V)&&(V=void 0),(0,C.default)((0,w.default)(N,T.default),void 0,V)});u.default=F},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(8),w=h(P),M=f(100),C=h(M),O=(0,w.default)(C.default);u.default=O},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(68),M=h(w),C=f(203),O=h(C);u.default=function(T,S){return(0,O.default)(T||[],S||[],M.default)}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(443),M=h(w),C=f(203),O=h(C);u.default=function(T,S){return(0,O.default)(T||[],S||[],M.default)}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(8),w=h(P),M=f(152),C=h(M),O=(0,w.default)(function(T){var S=T.length,E=1U.length);){var H=U,Y=H.index,G=H[1],J=H[2],Z=H[3];Y+=U[0].length-(G+J+Z).length;var Q=[Y,Y+G.length],ee=[Y+G.length+J.length,Y+G.length+J.length+Z.length];W.push(Q),W.push(ee),K.push([Y+G.length,Y+G.length+J.length])}return{remove:W,format:K}},z=z||function($,U){var W=!0,K=!1,H;try{for(var Y=U[Symbol.iterator](),G,J;!(W=(G=Y.next()).done);W=!0)J=G.value,$.setAttribute(J,D,!0)}catch(Z){K=!0,H=Z}finally{try{!W&&Y.return&&Y.return()}finally{if(K)throw H}}},R.document.on('change',function($,U){if('insert'===U){var W=N.editor.document.selection;if(W.isCollapsed&&W.focus&&W.focus.parent){var K=W.focus.parent,H=w(K).slice(0,W.focus.offset),Y=q(H),G=[];Y.format.forEach(function(X){void 0===X[0]||void 0===X[1]||G.push(C.default.createFromParentsAndOffsets(K,X[0],K,X[1]))});var J=[];if(Y.remove.slice().reverse().forEach(function(X){void 0===X[0]||void 0===X[1]||J.push(C.default.createFromParentsAndOffsets(K,X[0],K,X[1]))}),!!(G.length&&J.length)){var Z=R.document.batch();R.document.enqueueChanges(function(){var X=(0,T.default)(D,G,R.document.schema);z(Z,X);var Q=!0,ee=!1,te;try{for(var re=J[Symbol.iterator](),ae,oe;!(Q=(ae=re.next()).done);Q=!0)oe=ae.value,Z.remove(oe)}catch(le){ee=!0,te=le}finally{try{!Q&&re.return&&re.return()}finally{if(ee)throw te}}})}}}})}},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}function P(D,q){if(!(D instanceof q))throw new TypeError('Cannot call a class as a function')}function w(D,q){if(!D)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return q&&('object'==typeof q||'function'==typeof q)?q:D}function M(D,q){if('function'!=typeof q&&null!==q)throw new TypeError('Super expression must either be null or a function, not '+typeof q);D.prototype=Object.create(q&&q.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(D,q):D.__proto__=q)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function D(q,z){for(var $=0,U;$>18]+T[63&N>>12]+T[63&N>>6]+T[63&N]}function C(N,V,D){for(var z=[],$=V,q;$>16,U[K++]=255&z>>8,U[K++]=255&z;return 2===$?(z=S[N.charCodeAt(V)]<<2|S[N.charCodeAt(V+1)]>>4,U[K++]=255&z):1===$&&(z=S[N.charCodeAt(V)]<<10|S[N.charCodeAt(V+1)]<<4|S[N.charCodeAt(V+2)]>>2,U[K++]=255&z>>8,U[K++]=255&z),U},u.fromByteArray=function(N){for(var D=N.length,q=D%3,z='',$=[],U=16383,W=0,K=D-q,V;WK?K:W+U));return 1==q?(V=N[D-1],z+=T[V>>2],z+=T[63&V<<4],z+='=='):2==q&&(V=(N[D-2]<<8)+N[D-1],z+=T[V>>10],z+=T[63&V>>4],z+=T[63&V<<2],z+='='),$.push(z),$.join('')};for(var T=[],S=[],E='undefined'==typeof Uint8Array?Array:Uint8Array,R='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',I=0,F=R.length;ITe)throw new RangeError('"size" argument must not be negative')}function S(Te,Se,Ee,Re){return T(Se),0>=Se?M(Te,Se):void 0===Ee?M(Te,Se):'string'==typeof Re?M(Te,Se).fill(Ee,Re):M(Te,Se).fill(Ee)}function E(Te,Se){if(T(Se),Te=M(Te,0>Se?0:0|V(Se)),!C.TYPED_ARRAY_SUPPORT)for(var Ee=0;EeSe.length?0:0|V(Se.length);Te=M(Te,Ee);for(var Re=0;ReEe||Se.byteLength=w())throw new RangeError('Attempt to allocate Buffer larger than maximum size: 0x'+w().toString(16)+' bytes');return 0|Te}function q(Te,Se){if(C.isBuffer(Te))return Te.length;if('undefined'!=typeof ArrayBuffer&&'function'==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(Te)||Te instanceof ArrayBuffer))return Te.byteLength;'string'!=typeof Te&&(Te=''+Te);var Ee=Te.length;if(0===Ee)return 0;for(var Re=!1;;)switch(Se){case'ascii':case'latin1':case'binary':return Ee;case'utf8':case'utf-8':case void 0:return be(Te).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*Ee;case'hex':return Ee>>>1;case'base64':return ke(Te).length;default:if(Re)return be(Te).length;Se=(''+Se).toLowerCase(),Re=!0;}}function z(Te,Se,Ee){var Re=!1;if((void 0===Se||0>Se)&&(Se=0),Se>this.length)return'';if((void 0===Ee||Ee>this.length)&&(Ee=this.length),0>=Ee)return'';if(Ee>>>=0,Se>>>=0,Ee<=Se)return'';for(Te||(Te='utf8');;)switch(Te){case'hex':return ae(this,Se,Ee);case'utf8':case'utf-8':return Q(this,Se,Ee);case'ascii':return te(this,Se,Ee);case'latin1':case'binary':return re(this,Se,Ee);case'base64':return X(this,Se,Ee);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return oe(this,Se,Ee);default:if(Re)throw new TypeError('Unknown encoding: '+Te);Te=(Te+'').toLowerCase(),Re=!0;}}function $(Te,Se,Ee){var Re=Te[Se];Te[Se]=Te[Ee],Te[Ee]=Re}function U(Te,Se,Ee,Re,Ie){if(0===Te.length)return-1;if('string'==typeof Ee?(Re=Ee,Ee=0):2147483647Ee&&(Ee=-2147483648),Ee=+Ee,isNaN(Ee)&&(Ee=Ie?0:Te.length-1),0>Ee&&(Ee=Te.length+Ee),Ee>=Te.length){if(Ie)return-1;Ee=Te.length-1}else if(0>Ee)if(Ie)Ee=0;else return-1;if('string'==typeof Se&&(Se=C.from(Se,Re)),C.isBuffer(Se))return 0===Se.length?-1:W(Te,Se,Ee,Re,Ie);if('number'==typeof Se)return Se&=255,C.TYPED_ARRAY_SUPPORT&&'function'==typeof Uint8Array.prototype.indexOf?Ie?Uint8Array.prototype.indexOf.call(Te,Se,Ee):Uint8Array.prototype.lastIndexOf.call(Te,Se,Ee):W(Te,[Se],Ee,Re,Ie);throw new TypeError('val must be string, number or Buffer')}function W(Te,Se,Ee,Re,Ie){function Fe(ze,$e){return 1==Ne?ze[$e]:ze.readUInt16BE($e*Ne)}var Ne=1,Le=Te.length,Ve=Se.length;if(void 0!==Re&&(Re=(Re+'').toLowerCase(),'ucs2'===Re||'ucs-2'===Re||'utf16le'===Re||'utf-16le'===Re)){if(2>Te.length||2>Se.length)return-1;Ne=2,Le/=2,Ve/=2,Ee/=2}var Be;if(Ie){var De=-1;for(Be=Ee;BeLe&&(Ee=Le-Ve),Be=Ee;0<=Be;Be--){for(var je=!0,qe=0;qeIe&&(Re=Ie)):Re=Ie;var Fe=Se.length;if(0!=Fe%2)throw new TypeError('Invalid hex string');Re>Fe/2&&(Re=Fe/2);for(var Ne=0,Le;NeFe&&(Ne=Fe):2==Le?(Ve=Te[Ie+1],128==(192&Ve)&&(je=(31&Fe)<<6|63&Ve,127je||57343je&&(Ne=je))):void 0}null===Ne?(Ne=65533,Le=1):65535>>10),Ne=56320|1023&Ne),Re.push(Ne),Ie+=Le}return ee(Re)}function ee(Te){var Se=Te.length;if(Se<=Oe)return _StringfromCharCode.apply(String,Te);for(var Ee='',Re=0;ReSe)&&(Se=0),(!Ee||0>Ee||Ee>Re)&&(Ee=Re);for(var Ie='',Fe=Se;FeTe)throw new RangeError('offset is not uint');if(Te+Se>Ee)throw new RangeError('Trying to access beyond buffer length')}function ue(Te,Se,Ee,Re,Ie,Fe){if(!C.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(Se>Ie||SeTe.length)throw new RangeError('Index out of range')}function ie(Te,Se,Ee,Re){0>Se&&(Se=65535+Se+1);for(var Ie=0,Fe=_Mathmin(Te.length-Ee,2);Ie>>8*(Re?Ie:1-Ie)}function de(Te,Se,Ee,Re){0>Se&&(Se=4294967295+Se+1);for(var Ie=0,Fe=_Mathmin(Te.length-Ee,4);Ie>>8*(Re?Ie:3-Ie)}function fe(Te,Se,Ee,Re){if(Ee+Re>Te.length)throw new RangeError('Index out of range');if(0>Ee)throw new RangeError('Index out of range')}function ce(Te,Se,Ee,Re,Ie){return Ie||fe(Te,Se,Ee,4,3.4028234663852886e38,-3.4028234663852886e38),Me.write(Te,Se,Ee,Re,23,4),Ee+4}function pe(Te,Se,Ee,Re,Ie){return Ie||fe(Te,Se,Ee,8,1.7976931348623157e308,-1.7976931348623157e308),Me.write(Te,Se,Ee,Re,52,8),Ee+8}function ge(Te){if(Te=me(Te).replace(Ae,''),2>Te.length)return'';for(;0!=Te.length%4;)Te+='=';return Te}function me(Te){return Te.trim?Te.trim():Te.replace(/^\s+|\s+$/g,'')}function ye(Te){return 16>Te?'0'+Te.toString(16):Te.toString(16)}function be(Te,Se){Se=Se||Infinity;for(var Re=Te.length,Ie=null,Fe=[],Ne=0,Ee;NeEe){if(!Ie){if(56319Ee){-1<(Se-=3)&&Fe.push(239,191,189),Ie=Ee;continue}Ee=(Ie-55296<<10|Ee-56320)+65536}else Ie&&-1<(Se-=3)&&Fe.push(239,191,189);if(Ie=null,128>Ee){if(0>(Se-=1))break;Fe.push(Ee)}else if(2048>Ee){if(0>(Se-=2))break;Fe.push(192|Ee>>6,128|63&Ee)}else if(65536>Ee){if(0>(Se-=3))break;Fe.push(224|Ee>>12,128|63&Ee>>6,128|63&Ee)}else if(1114112>Ee){if(0>(Se-=4))break;Fe.push(240|Ee>>18,128|63&Ee>>12,128|63&Ee>>6,128|63&Ee)}else throw new Error('Invalid code point')}return Fe}function he(Te){for(var Se=[],Ee=0;Ee(Se-=2));++Ne)Ee=Te.charCodeAt(Ne),Re=Ee>>8,Ie=Ee%256,Fe.push(Ie),Fe.push(Re);return Fe}function ke(Te){return xe.toByteArray(ge(Te))}function Pe(Te,Se,Ee,Re){for(var Ie=0;Ie=Se.length||Ie>=Te.length);++Ie)Se[Ie+Ee]=Te[Ie];return Ie}function we(Te){return Te!==Te}var xe=f(295),Me=f(297),Ce=f(298);u.Buffer=C,u.SlowBuffer=function(Te){return+Te!=Te&&(Te=0),C.alloc(+Te)},u.INSPECT_MAX_BYTES=50,C.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT===void 0?function(){try{var Te=new Uint8Array(1);return Te.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===Te.foo()&&'function'==typeof Te.subarray&&0===Te.subarray(1,1).byteLength}catch(Se){return!1}}():h.TYPED_ARRAY_SUPPORT,u.kMaxLength=w(),C.poolSize=8192,C._augment=function(Te){return Te.__proto__=C.prototype,Te},C.from=function(Te,Se,Ee){return O(null,Te,Se,Ee)},C.TYPED_ARRAY_SUPPORT&&(C.prototype.__proto__=Uint8Array.prototype,C.__proto__=Uint8Array,'undefined'!=typeof Symbol&&Symbol.species&&C[Symbol.species]===C&&Object.defineProperty(C,Symbol.species,{value:null,configurable:!0})),C.alloc=function(Te,Se,Ee){return S(null,Te,Se,Ee)},C.allocUnsafe=function(Te){return E(null,Te)},C.allocUnsafeSlow=function(Te){return E(null,Te)},C.isBuffer=function(Se){return!!(null!=Se&&Se._isBuffer)},C.compare=function(Se,Ee){if(!C.isBuffer(Se)||!C.isBuffer(Ee))throw new TypeError('Arguments must be Buffers');if(Se===Ee)return 0;for(var Re=Se.length,Ie=Ee.length,Fe=0,Ne=_Mathmin(Re,Ie);FeEe&&(Se+=' ... ')),''},C.prototype.compare=function(Se,Ee,Re,Ie,Fe){if(!C.isBuffer(Se))throw new TypeError('Argument must be a Buffer');if(void 0===Ee&&(Ee=0),void 0===Re&&(Re=Se?Se.length:0),void 0===Ie&&(Ie=0),void 0===Fe&&(Fe=this.length),0>Ee||Re>Se.length||0>Ie||Fe>this.length)throw new RangeError('out of range index');if(Ie>=Fe&&Ee>=Re)return 0;if(Ie>=Fe)return-1;if(Ee>=Re)return 1;if(Ee>>>=0,Re>>>=0,Ie>>>=0,Fe>>>=0,this===Se)return 0;for(var Ne=Fe-Ie,Le=Re-Ee,Ve=_Mathmin(Ne,Le),Be=this.slice(Ie,Fe),De=Se.slice(Ee,Re),je=0;jeFe)&&(Re=Fe),0Re||0>Ee)||Ee>this.length)throw new RangeError('Attempt to write outside buffer bounds');Ie||(Ie='utf8');for(var Ne=!1;;)switch(Ie){case'hex':return K(this,Se,Ee,Re);case'utf8':case'utf-8':return H(this,Se,Ee,Re);case'ascii':return Y(this,Se,Ee,Re);case'latin1':case'binary':return G(this,Se,Ee,Re);case'base64':return J(this,Se,Ee,Re);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return Z(this,Se,Ee,Re);default:if(Ne)throw new TypeError('Unknown encoding: '+Ie);Ie=(''+Ie).toLowerCase(),Ne=!0;}},C.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var Oe=4096;C.prototype.slice=function(Se,Ee){var Re=this.length;Se=~~Se,Ee=Ee===void 0?Re:~~Ee,0>Se?(Se+=Re,0>Se&&(Se=0)):Se>Re&&(Se=Re),0>Ee?(Ee+=Re,0>Ee&&(Ee=0)):Ee>Re&&(Ee=Re),Ee=Fe&&(Ie-=_Mathpow(2,8*Ee)),Ie},C.prototype.readIntBE=function(Se,Ee,Re){Se|=0,Ee|=0,Re||le(Se,Ee,this.length);for(var Ie=Ee,Fe=1,Ne=this[Se+--Ie];0=Fe&&(Ne-=_Mathpow(2,8*Ee)),Ne},C.prototype.readInt8=function(Se,Ee){return Ee||le(Se,1,this.length),128&this[Se]?-1*(255-this[Se]+1):this[Se]},C.prototype.readInt16LE=function(Se,Ee){Ee||le(Se,2,this.length);var Re=this[Se]|this[Se+1]<<8;return 32768&Re?4294901760|Re:Re},C.prototype.readInt16BE=function(Se,Ee){Ee||le(Se,2,this.length);var Re=this[Se+1]|this[Se]<<8;return 32768&Re?4294901760|Re:Re},C.prototype.readInt32LE=function(Se,Ee){return Ee||le(Se,4,this.length),this[Se]|this[Se+1]<<8|this[Se+2]<<16|this[Se+3]<<24},C.prototype.readInt32BE=function(Se,Ee){return Ee||le(Se,4,this.length),this[Se]<<24|this[Se+1]<<16|this[Se+2]<<8|this[Se+3]},C.prototype.readFloatLE=function(Se,Ee){return Ee||le(Se,4,this.length),Me.read(this,Se,!0,23,4)},C.prototype.readFloatBE=function(Se,Ee){return Ee||le(Se,4,this.length),Me.read(this,Se,!1,23,4)},C.prototype.readDoubleLE=function(Se,Ee){return Ee||le(Se,8,this.length),Me.read(this,Se,!0,52,8)},C.prototype.readDoubleBE=function(Se,Ee){return Ee||le(Se,8,this.length),Me.read(this,Se,!1,52,8)},C.prototype.writeUIntLE=function(Se,Ee,Re,Ie){if(Se=+Se,Ee|=0,Re|=0,!Ie){var Fe=_Mathpow(2,8*Re)-1;ue(this,Se,Ee,Re,Fe,0)}var Ne=1,Le=0;for(this[Ee]=255&Se;++Le>>8):ie(this,Se,Ee,!0),Ee+2},C.prototype.writeUInt16BE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[Ee]=Se>>>8,this[Ee+1]=255&Se):ie(this,Se,Ee,!1),Ee+2},C.prototype.writeUInt32LE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Ee+3]=Se>>>24,this[Ee+2]=Se>>>16,this[Ee+1]=Se>>>8,this[Ee]=255&Se):de(this,Se,Ee,!0),Ee+4},C.prototype.writeUInt32BE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Ee]=Se>>>24,this[Ee+1]=Se>>>16,this[Ee+2]=Se>>>8,this[Ee+3]=255&Se):de(this,Se,Ee,!1),Ee+4},C.prototype.writeIntLE=function(Se,Ee,Re,Ie){if(Se=+Se,Ee|=0,!Ie){var Fe=_Mathpow(2,8*Re-1);ue(this,Se,Ee,Re,Fe-1,-Fe)}var Ne=0,Le=1,Ve=0;for(this[Ee]=255&Se;++NeSe&&0==Ve&&0!==this[Ee+Ne-1]&&(Ve=1),this[Ee+Ne]=255&(Se/Le>>0)-Ve;return Ee+Re},C.prototype.writeIntBE=function(Se,Ee,Re,Ie){if(Se=+Se,Ee|=0,!Ie){var Fe=_Mathpow(2,8*Re-1);ue(this,Se,Ee,Re,Fe-1,-Fe)}var Ne=Re-1,Le=1,Ve=0;for(this[Ee+Ne]=255&Se;0<=--Ne&&(Le*=256);)0>Se&&0==Ve&&0!==this[Ee+Ne+1]&&(Ve=1),this[Ee+Ne]=255&(Se/Le>>0)-Ve;return Ee+Re},C.prototype.writeInt8=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,1,127,-128),C.TYPED_ARRAY_SUPPORT||(Se=_Mathfloor(Se)),0>Se&&(Se=255+Se+1),this[Ee]=255&Se,Ee+1},C.prototype.writeInt16LE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Ee]=255&Se,this[Ee+1]=Se>>>8):ie(this,Se,Ee,!0),Ee+2},C.prototype.writeInt16BE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Ee]=Se>>>8,this[Ee+1]=255&Se):ie(this,Se,Ee,!1),Ee+2},C.prototype.writeInt32LE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[Ee]=255&Se,this[Ee+1]=Se>>>8,this[Ee+2]=Se>>>16,this[Ee+3]=Se>>>24):de(this,Se,Ee,!0),Ee+4},C.prototype.writeInt32BE=function(Se,Ee,Re){return Se=+Se,Ee|=0,Re||ue(this,Se,Ee,4,2147483647,-2147483648),0>Se&&(Se=4294967295+Se+1),C.TYPED_ARRAY_SUPPORT?(this[Ee]=Se>>>24,this[Ee+1]=Se>>>16,this[Ee+2]=Se>>>8,this[Ee+3]=255&Se):de(this,Se,Ee,!1),Ee+4},C.prototype.writeFloatLE=function(Se,Ee,Re){return ce(this,Se,Ee,!0,Re)},C.prototype.writeFloatBE=function(Se,Ee,Re){return ce(this,Se,Ee,!1,Re)},C.prototype.writeDoubleLE=function(Se,Ee,Re){return pe(this,Se,Ee,!0,Re)},C.prototype.writeDoubleBE=function(Se,Ee,Re){return pe(this,Se,Ee,!1,Re)},C.prototype.copy=function(Se,Ee,Re,Ie){if(Re||(Re=0),Ie||0===Ie||(Ie=this.length),Ee>=Se.length&&(Ee=Se.length),Ee||(Ee=0),0Ee)throw new RangeError('targetStart out of bounds');if(0>Re||Re>=this.length)throw new RangeError('sourceStart out of bounds');if(0>Ie)throw new RangeError('sourceEnd out of bounds');Ie>this.length&&(Ie=this.length),Se.length-EeFe||!C.TYPED_ARRAY_SUPPORT)for(Ne=0;NeFe&&(Se=Fe)}if(void 0!==Ie&&'string'!=typeof Ie)throw new TypeError('encoding must be a string');if('string'==typeof Ie&&!C.isEncoding(Ie))throw new TypeError('Unknown encoding: '+Ie)}else'number'==typeof Se&&(Se&=255);if(0>Ee||this.length>>=0,Re=Re===void 0?this.length:Re>>>0,Se||(Se=0);var Ne;if('number'==typeof Se)for(Ne=Ee;Ne>1,I=-7,F=w?C-1:0,N=w?-1:1,V=h[P+F];for(F+=N,O=V&(1<<-I)-1,V>>=-I,I+=S;0>=-I,I+=M;0>1,N=23===C?5.960464477539063e-8-6.617444900424222e-24:0,V=M?0:O-1,D=M?1:-1,q=0>P||0===P&&0>1/P?1:0;for(P=Math.abs(P),isNaN(P)||P===Infinity?(S=isNaN(P)?1:0,T=I):(T=_Mathfloor(Math.log(P)/Math.LN2),1>P*(E=_Mathpow(2,-T))&&(T--,E*=2),P+=1<=T+F?N/E:N*_Mathpow(2,1-F),2<=P*E&&(T++,E/=2),T+F>=I?(S=0,T=I):1<=T+F?(S=(P*E-1)*_Mathpow(2,C),T+=F):(S=P*_Mathpow(2,F-1)*_Mathpow(2,C),T=0));8<=C;h[w+V]=255&S,V+=D,S/=256,C-=8);for(T=T<(\s+)<\/span>/g,function(w,M){return 1==M.length?' ':M})}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return P=P.replace(//g,'>').replace(/\n\n/g,'

').replace(/\n/g,' ').replace(/^\s/,' ').replace(/\s$/,' ').replace(/\s\s/g,'  '),-1

')&&(P='

'+P+'

'),P}},function(r,u,f){'use strict';function P(R,I){if(!(R instanceof I))throw new TypeError('Cannot call a class as a function')}function w(R,I){if(!R)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return I&&('object'==typeof I||'function'==typeof I)?I:R}function M(R,I){if('function'!=typeof I&&null!==I)throw new TypeError('Super expression must either be null or a function, not '+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function R(I,F){for(var N=0,V;Nhe.position.offset;return ke&&Pe?[he.getReversed(),be.clone()]:(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(X.default,Y.default,function(be,he,ve){return be.position.isEqual(he.position)?[M()]:(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(X.default,ee.default,function(be,he,ve){var ke=be.position.root==he.sourcePosition.root&&'same'===(0,ye.default)(be.position.getParentPath(),he.sourcePosition.getParentPath()),Pe=he.sourcePosition.offset<=be.position.offset&&he.sourcePosition.offset+he.howMany>be.position.offset;return ke&&Pe?[M()]:(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(re.default,re.default,function(be,he,ve){var ke=be.position.getParentPath(),Pe=he.position.getParentPath();if('same'==(0,ye.default)(ke,Pe)){if(be.position.offset==he.position.offset)return[M()];if(be.position.offsethe._cloneOperation.sourcePosition.offset&&we._cloneOperation.sourcePosition.offset--,[we]}var xe=be.clone();return xe._cloneOperation.position.offset++,xe._moveOperation.sourcePosition.path[xe._moveOperation.sourcePosition.path.length-2]++,xe._moveOperation.targetPosition.path[xe._moveOperation.targetPosition.path.length-2]++,xe._moveOperation.sourcePosition.offset=be.position.offset-he.position.offset,be._cloneOperation instanceof z.default&&he._cloneOperation instanceof z.default&&be._cloneOperation.sourcePosition.offset>he._cloneOperation.sourcePosition.offset&&xe._cloneOperation.sourcePosition.offset--,[xe]}return(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(re.default,de.default,function(be,he,ve){return'same'===(0,ye.default)(he.position.path,be.position.getParentPath())?[M()]:(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(re.default,ue.default,function(be,he,ve){var ke='same'===(0,ye.default)(be.position.getParentPath(),he.range.start.getParentPath()),Pe=he.range.start.offset=be.position.offset;if(ke&&Pe)return[M()];if('same'===(0,ye.default)(be.position.getParentPath(),he.range.end.getShiftedBy(-1).path)){var we=be.clone(),xe=E.default.createFromPosition(he.range.start);xe.path.push(he.howMany-1);var Me=xe.getShiftedBy(1);we._cloneOperation.position=Me;var Ce=E.default.createFromPosition(xe);Ce.path.push(be.position.offset),we._moveOperation.sourcePosition=Ce;var Oe=E.default.createFromPosition(Me);return Oe.path.push(0),we._moveOperation.targetPosition=Oe,[we]}return(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(re.default,K.default,function(be,he){be=be.clone();var ve=new E.default(be.position.root,be.position.path.slice(0,-1));if(be._cloneOperation instanceof D.default){var ke=!0,Pe=!1,we;try{for(var xe=he.operations[Symbol.iterator](),Me,Ce;!(ke=(Me=xe.next()).done);ke=!0)if(Ce=Me.value,Ce.range.containsPosition(ve)||Ce.range.start.isEqual(ve)){null===Ce.newValue?be._cloneOperation.nodes.getNode(0).removeAttribute(Ce.key):be._cloneOperation.nodes.getNode(0).setAttribute(Ce.key,Ce.newValue);break}}catch(Oe){Pe=!0,we=Oe}finally{try{!ke&&xe.return&&xe.return()}finally{if(Pe)throw we}}}return[be]}),(0,C.addTransformationCase)(de.default,re.default,function(be,he,ve){if('same'===(0,ye.default)(be.position.path,he.position.getParentPath())){var ke=[he.getReversed(),be.clone()];return ke[1].operations[1].targetPosition.path[0]++,ke}return(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(oe.default,K.default,function(be,he){var ve=[be.clone()];return he.range.containsPosition(be.position)&&ve.push(w(be,he)),ve}),(0,C.addTransformationCase)(ue.default,re.default,function(be,he,ve){var ke='same'===(0,ye.default)(be.range.start.getParentPath(),he.position.getParentPath()),Pe=be.range.start.offset=he.position.offset;if(ke&&Pe)return[he.getReversed(),be.clone()];if('same'===(0,ye.default)(he.position.getParentPath(),be.range.end.getShiftedBy(-1).path)){var we=be.clone();return we._insertOperation.position.offset++,we._moveOperation.howMany++,we._moveOperation.targetPosition.path[we._moveOperation.targetPosition.path.length-2]++,[we]}return(0,C.defaultTransform)(be,he,ve)}),(0,C.addTransformationCase)(ce.default,re.default,function(be,he,ve){var ke=new E.default(he.position.root,he.position.path.slice(0,-1)),Pe=(0,C.defaultTransform)(be,he,ve);if(be.operations[0].position.isEqual(ke)){var we=be.clone();we.operations[0].position=be.operations[0].position.getShiftedBy(1),Pe.push(we)}return Pe}),(0,C.addTransformationCase)(re.default,ce.default,function(be,he){be=be.clone();var ve=new E.default(be.position.root,be.position.path.slice(0,-1));return be._cloneOperation instanceof D.default&&he.operations[0].position.isEqual(ve)&&(be._cloneOperation.nodes.getNode(0).name=he.operations[0].newName),[be]}),(0,C.addTransformationCase)(ge.default,re.default,function(be,he,ve){var ke=(0,C.defaultTransform)(be,he,ve),Pe=he._cloneOperation.position,we=!0,xe=!1,Me;try{for(var Ce=ke[Symbol.iterator](),Oe;!(we=(Oe=Ce.next()).done);we=!0){var Ae=Oe.value,Te=!0,Se=!1,Ee=void 0;try{for(var Re=Ae.operations[Symbol.iterator](),Ie;!(Te=(Ie=Re.next()).done);Te=!0){var Fe=Ie.value,Ne=Fe.sourcePosition.getShiftedBy(Fe.howMany);Ne.isEqual(Pe)&&(Fe.howMany+=1)}}catch(Le){Se=!0,Ee=Le}finally{try{!Te&&Re.return&&Re.return()}finally{if(Se)throw Ee}}}}catch(Le){xe=!0,Me=Le}finally{try{!we&&Ce.return&&Ce.return()}finally{if(xe)throw Me}}return ke}),(0,C.addTransformationCase)(re.default,ge.default,function(be,he,ve){he=he.clone();var ke=be._cloneOperation.position,Pe=!0,we=!1,xe;try{for(var Me=he.operations[Symbol.iterator](),Ce;!(Pe=(Ce=Me.next()).done);Pe=!0){var Oe=Ce.value,Ae=Oe.sourcePosition.getShiftedBy(Oe.howMany);Ae.isEqual(ke)&&(Oe.howMany+=1)}}catch(Te){we=!0,xe=Te}finally{try{!Pe&&Me.return&&Me.return()}finally{if(we)throw xe}}return(0,C.defaultTransform)(be,he,ve)})},function(r,u,f){'use strict';function h(z){return z&&z.__esModule?z:{default:z}}function P(z,$){if(!(z instanceof $))throw new TypeError('Cannot call a class as a function')}function w(z,$){if(!z)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return $&&('object'==typeof $||'function'==typeof $)?$:z}function M(z,$){if('function'!=typeof $&&null!==$)throw new TypeError('Super expression must either be null or a function, not '+typeof $);z.prototype=Object.create($&&$.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(z,$):z.__proto__=$)}function C(z,$,U,W){var K=z.document,H=new q,Y=new N.default($,U,W,K.markers,K.version);z.addDelta(H),H.addOperation(Y),K.applyOperation(Y)}Object.defineProperty(u,'__esModule',{value:!0});var O=function(){function z($,U){for(var W=0,K;W=I)){D.next=9;break}return D.abrupt('break',13);case 9:return D.next=11,N;case 11:D.next=5;break;case 13:case'end':return D.stop();}},E,this)})},{key:'getDelta',value:function(R){var I=this._historyPoints.get(R);if(void 0===I)return null;var F=[];for(I;IR&&this._historyPoints.set(Z,this._historyPoints.get(Z)+W)}catch(X){H=!0,Y=X}finally{try{!K&&G.return&&G.return()}finally{if(H)throw Y}}}}},{key:'_getIndex',value:function(R){var I=this._historyPoints.get(R);if(void 0===I){var F=this._deltas[this._deltas.length-1],N=F.baseVersion+F.operations.length;if(0>R||R>=N)return-1;throw new O.default('model-history-wrong-version: Given base version points to the middle of a delta.')}return I}}]),S}();u.default=T},function(r,u,f){'use strict';function h(te){return te&&te.__esModule?te:{default:te}}function P(te,re){if(!(te instanceof re))throw new TypeError('Cannot call a class as a function')}function w(te,re){if(!te)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return re&&('object'==typeof re||'function'==typeof re)?re:te}function M(te,re){if('function'!=typeof re&&null!==re)throw new TypeError('Super expression must either be null or a function, not '+typeof re);te.prototype=Object.create(re&&re.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(te,re):te.__proto__=re)}function C(te){return te instanceof $.default||te instanceof q.default?te.getAttributes():null}Object.defineProperty(u,'__esModule',{value:!0});var O=function(){function te(re,ae){var oe=[],le=!0,ue=!1,ie;try{for(var de=re[Symbol.iterator](),fe;!(le=(fe=de.next()).done)&&(oe.push(fe.value),!(ae&&oe.length===ae));le=!0);}catch(ce){ue=!0,ie=ce}finally{try{!le&&de['return']&&de['return']()}finally{if(ue)throw ie}}return oe}return function(re,ae){if(Array.isArray(re))return re;if(Symbol.iterator in Object(re))return te(re,ae);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}(),T=function(){function te(re,ae){for(var oe=0,le;oe=te._holderElementOffset&&(ee=ee.clone(),ee.range.start.path[0]++,ee.range.end.path[0]++);var oe=O(ee.range.getDifference(re)),le=ee.range.getIntersection(re);return null!==oe&&(oe.start=oe.start._getTransformedByDeletion(te.sourcePosition,te.howMany),oe.end=oe.end._getTransformedByDeletion(te.sourcePosition,te.howMany),ae=oe._getTransformedByInsertion(te.getMovedRangeStart(),te.howMany,!0,!1).reverse()),null!==le&&(le.start=le.start._getCombined(te.sourcePosition,te.getMovedRangeStart()),le.end=le.end._getCombined(te.sourcePosition,te.getMovedRangeStart()),ae.push(le)),ae.map(function(ue){return new R.default(ue,ee.key,ee.oldValue,ee.newValue,ee.baseVersion)})}},RootAttributeOperation:{InsertOperation:w,AttributeOperation:w,RootAttributeOperation:function(ee,te,re){return ee.root!==te.root||ee.key!==te.key||(ee.newValue===te.newValue||re)&&ee.newValue!==te.newValue?[ee.clone()]:[new H.default(ee.baseVersion)]},RenameOperation:w,MarkerOperation:w,MoveOperation:w},RenameOperation:{InsertOperation:function(ee,te){var re=ee.clone();return re.position=re.position._getTransformedByInsertion(te.position,te.nodes.maxOffset,!0),[re]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:function(ee,te,re){var ae=ee.clone();if(ee.position.isEqual(te.position))if(re)ae.oldName=te.newName;else return[new H.default(ee.baseVersion)];return[ae]},MarkerOperation:w,MoveOperation:function(ee,te){var re=ee.clone(),ae=re.position.isEqual(te.sourcePosition);return re.position=re.position._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany,!0,ae),[re]}},MarkerOperation:{InsertOperation:function(ee,te){var re=ee.clone();return re.oldRange&&(re.oldRange=re.oldRange._getTransformedByInsertion(te.position,te.nodes.maxOffset,!1,!1)[0]),re.newRange&&(re.newRange=re.newRange._getTransformedByInsertion(te.position,te.nodes.maxOffset,!1,!1)[0]),[re]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:w,MarkerOperation:function(ee,te,re){var ae=ee.clone();if(ee.name==te.name)if(re)ae.oldRange=te.newRange;else return[new H.default(ee.baseVersion)];return[ae]},MoveOperation:function(ee,te){var re=ee.clone();if(re.oldRange){var ae=re.oldRange._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany);re.oldRange=G.default.createFromRanges(ae)}if(re.newRange){var oe=re.newRange._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany);re.newRange=G.default.createFromRanges(oe)}return[re]}},MoveOperation:{InsertOperation:function(ee,te,re){var ae=G.default.createFromPositionAndShift(ee.sourcePosition,ee.howMany);ae=ae._getTransformedByInsertion(te.position,te.nodes.maxOffset,!1,ee.isSticky)[0];var oe=new ee.constructor(ae.start,ae.end.offset-ae.start.offset,ee instanceof W.default?ee.baseVersion:ee.targetPosition._getTransformedByInsertion(te.position,te.nodes.maxOffset,!re),ee instanceof W.default?void 0:ee.baseVersion);return oe.isSticky=ee.isSticky,ee instanceof W.default&&(oe._needsHolderElement=ee._needsHolderElement,oe._holderElementOffset=ee._holderElementOffset),[oe]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:w,MarkerOperation:w,MoveOperation:function(ee,te,re){if(C(ee,te)&&C(te,ee))return[te.getReversed()];if(ee instanceof W.default&&te instanceof W.default){var ae=ee.targetPosition.path[0],oe=te.targetPosition.path[0];(ae>oe||ae==oe&&re)&&(ee=ee.clone(),ee.targetPosition.path[0]++)}ee instanceof W.default&&!(te instanceof W.default)?re=!0:!(ee instanceof W.default)&&te instanceof W.default&&(re=!1);var le=G.default.createFromPositionAndShift(ee.sourcePosition,ee.howMany),ue=G.default.createFromPositionAndShift(te.sourcePosition,te.howMany),ie=[],de=O(le.getDifference(ue));de&&(de.start=de.start._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany,!ee.isSticky,!1),de.end=de.end._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany,ee.isSticky,!1),ie.push(de));var fe=le.getIntersection(ue),ce=(0,Z.default)(ee.sourcePosition.getParentPath(),te.sourcePosition.getParentPath()),pe=le.containsPosition(te.targetPosition)||le.start.isEqual(te.targetPosition)&&ee.isSticky||le.end.isEqual(te.targetPosition)&&ee.isSticky,ge=ue.containsRange(le)&&(ue.containsPosition(ee.targetPosition)||ue.start.isEqual(ee.targetPosition)||ue.end.isEqual(ee.targetPosition));if(null!==fe&&('extension'===ce||'same'===ce&&re||ge)&&!pe&&(fe.start=fe.start._getCombined(te.sourcePosition,te.getMovedRangeStart()),fe.end=fe.end._getCombined(te.sourcePosition,te.getMovedRangeStart()),de&&le.start.isBefore(ue.start)?ie.push(fe):ie.unshift(fe)),0===ie.length)return ee instanceof W.default?(ee=ee.clone(),ee.howMany=0,ee.sourcePosition=te.targetPosition,[ee]):[new H.default(ee.baseVersion)];var me=ee.targetPosition._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany,!re,te.isSticky||ge);return ie.reverse().map(function(ye,be){var he=new ee.constructor(ye.start,ye.end.offset-ye.start.offset,ee instanceof W.default?ee.baseVersion:me,ee instanceof W.default?void 0:ee.baseVersion);return he.isSticky=ee.isSticky,ee instanceof W.default&&(he._needsHolderElement=ee._needsHolderElement&&0===be,he._holderElementOffset=ee._holderElementOffset),he})}}}},function(r,u,f){'use strict';function P(R,I){if(!(R instanceof I))throw new TypeError('Cannot call a class as a function')}function w(R,I){if(!R)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return I&&('object'==typeof I||'function'==typeof I)?I:R}function M(R,I){if('function'!=typeof I&&null!==I)throw new TypeError('Super expression must either be null or a function, not '+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function R(I,F){for(var N=0,V;NE||E>S.data.length)throw new C.default('view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.');if(0>R||E+R>S.data.length)throw new C.default('view-textproxy-wrong-length: Given length value is incorrect.');this.data=S.data.substring(E,E+R),this.offsetInText=E}return w(T,[{key:'is',value:function(E){return'textProxy'==E}},{key:'getAncestors',value:function(){for(var E=0ve;){ke>he.getAttribute('indent')&&(ke=he.getAttribute('indent'));var we=he.getAttribute('indent')-ke;Pe.push({item:he,indent:we}),he=he.nextSibling}0=ke;)he.getAttribute('type')!=Pe&&he.getAttribute('indent')==ke&&be.setAttribute(he,'type',Pe),he=he[me?'previousSibling':'nextSibling']})}}}function z(ge,me){var ye='numbered'==ge.getAttribute('type')?'ol':'ul',be=new G.default,he=new ae.default(ye,null);return he.appendChildren(be),me.bindElements(ge,be),be}function $(ge,me){for(var ye=me.getNext?'nextSibling':'previousSibling',be=me.getNext?'nodeAfter':'nodeBefore',he=!!me.checkAllSiblings,ve=!!me.sameIndent,ke=!!me.biggerIndent,Pe=!!me.smallerIndent,we=!!me.isMapped,xe=ge instanceof Z.default?ge.getAttribute('indent'):me.indent,Me=ge instanceof Z.default?ge[ye]:ge[be],Ce;Me&&'listItem'==Me.name;){if(Ce=Me.getAttribute('indent'),ve&&xe==Ce||ke&&xeCe){if(!we||me.mapper.toViewElement(Me))return Me;Me=Me[ye];continue}if(!he)return null;Me=Me[ye]}return null}function U(ge,me){return ge&&me&&('ul'==ge.name||'ol'==ge.name)&&ge.name==me.name?pe.default.mergeContainers(le.default.createAfter(ge)):null}function W(ge,me,ye,be){var he=me.parent,ve,ke=$(ge,{sameIndent:!0,smallerIndent:!0,checkAllSiblings:!0});if(ke&&ke.getAttribute('indent')==ge.getAttribute('indent')){var Pe=ye.toViewElement(ke);ve=pe.default.breakContainer(le.default.createAfter(Pe))}else ke=ge.previousSibling,ve=ke&&'listItem'==ke.name?ke.getAttribute('indent')=ye;)ge=ge[be],ge.getAttribute('indent')==ye&&(he=ge);return he}Object.defineProperty(u,'__esModule',{value:!0}),u.modelViewInsertion=function(ge,me,ye,be){if(ye.test(me.item,'insert')&&ye.test(me.item,'addAttribute:type')&&ye.test(me.item,'addAttribute:indent')){ye.consume(me.item,'insert'),ye.consume(me.item,'addAttribute:type'),ye.consume(me.item,'addAttribute:indent');var he=me.item,ve=z(he,be.mapper);W(he,ve,be.mapper)}},u.modelViewChangeType=function(ge,me,ye,be){if(ye.consume(me.item,'changeAttribute:type')){var he=be.mapper.toViewElement(me.item);pe.default.breakContainer(le.default.createBefore(he)),pe.default.breakContainer(le.default.createAfter(he));var ve=he.parent,ke='numbered'==me.attributeNewValue?'ol':'ul';ve=pe.default.rename(ve,ke),U(ve,ve.nextSibling),U(ve.previousSibling,ve)}},u.modelViewRemove=function(ge,me,ye,be){if(ye.consume(me.item,'remove')){var he=be.mapper.toViewPosition(me.sourcePosition),ve=he.nodeAfter.is('li')?he.nodeAfter:he.nodeAfter.getChild(0);pe.default.breakContainer(le.default.createBefore(ve)),pe.default.breakContainer(le.default.createAfter(ve));var ke=ve.parent,Pe=ke.previousSibling,we=ie.default.createOn(ke);pe.default.remove(we),Pe&&Pe.nextSibling&&U(Pe,Pe.nextSibling),K(me.item.getAttribute('indent')+1,me.sourcePosition,we.start,ve,be.mapper),'$graveyard'==me.item.root.rootName&&be.mapper.unbindModelElement(me.item)}},u.modelViewChangeIndent=function(ge,me,ye,be){if(ye.consume(me.item,'changeAttribute:indent')){var he=be.mapper.toViewElement(me.item);pe.default.breakContainer(le.default.createBefore(he)),pe.default.breakContainer(le.default.createAfter(he));var ve=he.parent,ke=ve.previousSibling,Pe=ie.default.createOn(ve);pe.default.remove(Pe);var we;ke&&ke.nextSibling&&(we=U(ke,ke.nextSibling)),we||(we=Pe.start),K(me.attributeOldValue+1,me.range.start,Pe.start,he,be.mapper),W(me.item,he,be.mapper,we)}},u.modelViewSplitOnInsert=function(ge,me,ye,be){if('listItem'!=me.item.name){for(var he=be.mapper.toViewPosition(me.range.start),ve=[];('ul'==he.parent.name||'ol'==he.parent.name)&&(he=pe.default.breakContainer(he),'li'==he.parent.name);){var ke=he,Pe=le.default.createAt(he.parent,'end');if(!ke.isEqual(Pe)){var we=pe.default.remove(new ie.default(ke,Pe));ve.push(we)}he=le.default.createAfter(he.parent)}if(0=N.getAttribute('indent');){if(D.getAttribute('indent')==N.getAttribute('indent'))return D;D=D[V?'nextSibling':'previousSibling']}return null}Object.defineProperty(u,'__esModule',{value:!0});var T=function(){function N(V,D){for(var q=0,z;qW.getAttribute('indent');)U.push(K),K=K.nextSibling;0>q._indentBy&&(U=U.reverse());var H=!0,Y=!1,G;try{for(var J=U[Symbol.iterator](),Z;!(H=(Z=J.next()).done);H=!0){var X=Z.value,Q=X.getAttribute('indent')+q._indentBy;0>Q?$.rename(X,'paragraph'):$.setAttribute(X,'indent',Q)}}catch(ue){Y=!0,G=ue}finally{try{!H&&J.return&&J.return()}finally{if(Y)throw G}}0>q._indentBy&&(U=U.reverse());var ee=!0,te=!1,re;try{for(var ae=U[Symbol.iterator](),oe,le;!(ee=(oe=ae.next()).done);ee=!0)le=oe.value,C(le,$)}catch(ue){te=!0,re=ue}finally{try{!ee&&ae.return&&ae.return()}finally{if(te)throw re}}})}},{key:'_checkEnabled',value:function(){var q=(0,I.default)(this.editor.document.selection.getSelectedBlocks());if(!q||!q.is('listItem'))return!1;if(0=z;){if(U.getAttribute('indent')==z)return U.getAttribute('type')==$;U=U.previousSibling}return!1}return!0}}]),V}(E.default);u.default=F},function(r,u,f){'use strict';function h($){return $&&$.__esModule?$:{default:$}}function P($,U){if(!($ instanceof U))throw new TypeError('Cannot call a class as a function')}function w($,U){if(!$)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return U&&('object'==typeof U||'function'==typeof U)?U:$}function M($,U){if('function'!=typeof U&&null!==U)throw new TypeError('Super expression must either be null or a function, not '+typeof U);$.prototype=Object.create(U&&U.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf($,U):$.__proto__=U)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function $(U,W){for(var K=0,H;K=q;)U>$.getAttribute('indent')&&(U=$.getAttribute('indent')),$.getAttribute('indent')==U&&V[D?'unshift':'push']($),$=$[D?'previousSibling':'nextSibling']}Object.defineProperty(u,'__esModule',{value:!0});var O=function(){function V(D,q){for(var z=0,$;z=Z;Z++)J.push(Z)},function(r,u,f){'use strict';function h(F){return F&&F.__esModule?F:{default:F}}function P(F,N){if(!(F instanceof N))throw new TypeError('Cannot call a class as a function')}function w(F,N){if(!F)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return N&&('object'==typeof N||'function'==typeof N)?N:F}function M(F,N){if('function'!=typeof N&&null!==N)throw new TypeError('Super expression must either be null or a function, not '+typeof N);F.prototype=Object.create(N&&N.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(F,N):F.__proto__=N)}Object.defineProperty(u,'__esModule',{value:!0});var C=function(){function F(N,V){for(var D=0,q;DW.top&&this._toolbarRect.height+this.limiterOffsetU&&G():!z&&q?ee>$&&G():te>U&&ee>=$?G():te>=U&&ee>$&&G(),ee===H}),W?[K,W]:null}function C(N){var V=N.left,D=N.top,q=S.default.window,z=q.scrollX,$=q.scrollY;return{left:V+z,top:D+$}}Object.defineProperty(u,'__esModule',{value:!0});var O=function(){function N(V,D){var q=[],z=!0,$=!1,U;try{for(var W=V[Symbol.iterator](),K;!(z=(K=W.next()).done)&&(q.push(K.value),!(D&&q.length===D));z=!0);}catch(H){$=!0,U=H}finally{try{!z&&W['return']&&W['return']()}finally{if($)throw U}}return q}return function(V,D){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return N(V,D);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}();u.getOptimalPosition=function(N){var V=N.element,D=N.target,q=N.positions,z=N.limiter,$=N.fitInViewport,U=(0,F.default)(V.parentElement),W=new R.default(V),K=new R.default(D),H,Y;if(!z&&!$){var G=w(q[0],K,W),J=O(G,2);Y=J[0],H=J[1]}else{var Z=z&&new R.default(z),X=$&&R.default.getViewportRect(),Q=M(q,K,W,Z,X)||w(q[0],K,W),ee=O(Q,2);Y=ee[0],H=ee[1]}var te=C(H),re=te.left,ae=te.top;if(U){var oe=C(new R.default(U)),le=S.default.window.getComputedStyle(U);re-=oe.left,ae-=oe.top,re+=U.scrollLeft,ae+=U.scrollTop,re-=parseInt(le.borderLeftWidth,10),ae-=parseInt(le.borderTopWidth,10)}return{left:re,top:ae,name:Y}};var T=f(65),S=h(T),E=f(412),R=h(E),I=f(407),F=h(I)},function(r,u,f){'use strict';function h(F){return F&&F.__esModule?F:{default:F}}function P(F,N){if(!(F instanceof N))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(u,'__esModule',{value:!0});var w=function(){function F(N,V){for(var D=0,q;DD.width||0>D.height?null:new F(D)}},{key:'getIntersectionArea',value:function(V){var D=this.getIntersection(V);return D?D.getArea():0}},{key:'getArea',value:function(){return this.width*this.height}}],[{key:'getViewportRect',value:function(){var V=C.default.window,D=V.innerWidth,q=V.innerHeight;return new F({top:0,right:D,bottom:q,left:0,width:D,height:q})}}]),F}();u.default=I},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){var w=P.parentNode;w&&w.removeChild(P)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P,w){P instanceof HTMLTextAreaElement&&(P.value=w),P.innerHTML=w}},function(r,u){'use strict';function h(M,C){if(!(M instanceof C))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(u,'__esModule',{value:!0});var P=function(){function M(C,O){for(var T=0,S;T=w?P:w)),P}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(14),M=function(O){return O&&O.__esModule?O:{default:O}}(w),C=Object.create;u.default=function(O){return(0,M.default)(O)?C(O):{}}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(15),M=h(w),C=f(513),O=h(C);u.default=function(T,S,E,R){var I=T.length;for(E=(0,M.default)(E),0>E&&(E=-E>I?0:I+E),R=void 0===R||R>I?I:(0,M.default)(R),0>R&&(R+=I),R=E>R?0:(0,O.default)(R);EO?T:0,(0,M.default)(O,T)?C[O]:void 0}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(128),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return function(O){return(0,M.default)(O,C)}}},function(r,u,f){'use strict';function h(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(68),M=h(w),C=f(89),O=h(C),T=f(37),S=h(T),E=f(55),R=h(E),I=f(14),F=h(I),N=f(56),V=h(N);u.default=function(D,q,z,$){q=(0,R.default)(q,D)?[q]:(0,O.default)(q);for(var U=-1,W=q.length,H=D,Y;null!=H&&++UO||R&&I&&N&&!F&&!V||S&&I&&N||!T&&N||!E)return 1;if(!S&&!R&&!V&&CI?void 0:F,I=1),S=Object(S);++RE)return!1;var R=S.length-1;return E==R?S.pop():O.call(S,E,1),!0}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(86),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){var O=this.__data__,T=(0,M.default)(O,C);return 0>T?void 0:O[T][1]}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(86),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return-1<(0,M.default)(this.__data__,C)}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(86),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){var T=this.__data__,S=(0,M.default)(T,C);return 0>S?T.push([C,O]):T[S][1]=O,this}},function(r,u,f){'use strict';function h(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(419),M=h(w),C=f(82),O=h(C),T=f(192),S=h(T);u.default=function(){this.__data__={hash:new M.default,map:new(S.default||O.default),string:new M.default}}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(90),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return(0,M.default)(this,C)['delete'](C)}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(90),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return(0,M.default)(this,C).get(C)}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(90),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return(0,M.default)(this,C).has(C)}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(90),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){return(0,M.default)(this,C).set(C,O),this}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(128),M=h(w),C=f(36),O=h(C);u.default=function(T,S){return 1==S.length?T:(0,M.default)(T,(0,O.default)(S,0,-1))}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0});u.default=function(w){return this.__data__.set(w,'__lodash_hash_undefined__'),this}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return this.__data__.has(P)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){var w=-1,M=Array(P.size);return P.forEach(function(C){M[++w]=[C,C]}),M}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(82),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(){this.__data__=new M.default}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return this.__data__['delete'](P)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return this.__data__.get(P)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return this.__data__.has(P)}},function(r,u,f){'use strict';function h(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(82),M=h(w),C=f(123),O=h(C);u.default=function(S,E){var R=this.__data__;return R instanceof M.default&&R.__data__.length==200&&(R=this.__data__=new O.default(R.__data__)),R.set(S,E),this}},function(r,u,f){'use strict';function h(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(507),w=h(P),M=f(515),C=h(M),O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,T=/\\(\\)?/g,S=(0,w.default)(function(E){var R=[];return(0,C.default)(E).replace(O,function(I,F,N,V){R.push(N?V.replace(T,'$1'):F||I)}),R});u.default=S},function(r,u,f){'use strict';function h(tr){return tr&&tr.__esModule?tr:{default:tr}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(212),w=h(P),M=f(213),C=h(M),O=f(214),T=h(O),S=f(215),E=h(S),R=f(216),I=h(R),F=f(217),N=h(F),V=f(145),D=h(V),q=f(146),z=h(q),$=f(218),U=h($),W=f(219),K=h(W),H=f(220),Y=h(H),G=f(221),J=h(G),Z=f(222),X=h(Z),Q=f(223),ee=h(Q),te=f(224),re=h(te),ae=f(225),oe=h(ae),le=f(226),ue=h(le),ie=f(227),de=h(ie),fe=f(147),ce=h(fe),pe=f(230),ge=h(pe),me=f(231),ye=h(me),be=f(232),he=h(be),ve=f(233),ke=h(ve),Pe=f(234),we=h(Pe),xe=f(236),Me=h(xe),Ce=f(19),Oe=h(Ce),Ae=f(237),Te=h(Ae),Se=f(238),Ee=h(Se),Re=f(239),Ie=h(Re),Fe=f(151),Ne=h(Fe),Le=f(240),Ve=h(Le),Be=f(241),De=h(Be),je=f(242),qe=h(je),ze=f(243),$e=h(ze),Ue=f(244),We=h(Ue),Ke=f(245),He=h(Ke),Ye=f(246),Ge=h(Ye),Je=f(247),Ze=h(Je),Xe=f(248),Qe=h(Xe),et=f(249),tt=h(et),at=f(250),nt=h(at),lt=f(251),ut=h(lt),it=f(252),st=h(it),dt=f(253),ft=h(dt),ct=f(254),pt=h(ct),gt=f(255),mt=h(gt),yt=f(256),bt=h(yt),ht=f(257),vt=h(ht),kt=f(258),Pt=h(kt),wt=f(260),xt=h(wt),Mt=f(261),Ct=h(Mt),Ot=f(262),At=h(Ot),Tt=f(263),St=h(Tt),Et=f(264),Rt=h(Et),It=f(265),Ft=h(It),Nt=f(100),Lt=h(Nt),Vt=f(152),Bt=h(Vt),Dt=f(266),jt=h(Dt),qt=f(267),zt=h(qt),$t=f(268),Ut=h($t),Wt=f(269),Kt=h(Wt),Ht=f(270),Yt=h(Ht),Gt=f(271),Jt=h(Gt),Zt=f(272),Xt=h(Zt),Qt=f(273),er=h(Qt);u.default={chunk:w.default,compact:C.default,concat:T.default,difference:E.default,differenceBy:I.default,differenceWith:N.default,drop:D.default,dropRight:z.default,dropRightWhile:U.default,dropWhile:K.default,fill:Y.default,findIndex:J.default,findLastIndex:X.default,first:ee.default,flatten:re.default,flattenDeep:oe.default,flattenDepth:ue.default,fromPairs:de.default,head:ce.default,indexOf:ge.default,initial:ye.default,intersection:he.default,intersectionBy:ke.default,intersectionWith:we.default,join:Me.default,last:Oe.default,lastIndexOf:Te.default,nth:Ee.default,pull:Ie.default,pullAll:Ne.default,pullAllBy:Ve.default,pullAllWith:De.default,pullAt:qe.default,remove:$e.default,reverse:We.default,slice:He.default,sortedIndex:Ge.default,sortedIndexBy:Ze.default,sortedIndexOf:Qe.default,sortedLastIndex:tt.default,sortedLastIndexBy:nt.default,sortedLastIndexOf:ut.default,sortedUniq:st.default,sortedUniqBy:ft.default,tail:pt.default,take:mt.default,takeRight:bt.default,takeRightWhile:vt.default,takeWhile:Pt.default,union:xt.default,unionBy:Ct.default,unionWith:At.default,uniq:St.default,uniqBy:Rt.default,uniqWith:Ft.default,unzip:Lt.default,unzipWith:Bt.default,without:jt.default,xor:zt.default,xorBy:Ut.default,xorWith:Kt.default,zip:Yt.default,zipObject:Jt.default,zipObjectDeep:Xt.default,zipWith:er.default}},function(r,u,f){'use strict';function h(ze){return ze&&ze.__esModule?ze:{default:ze}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(212);Object.defineProperty(u,'chunk',{enumerable:!0,get:function(){return h(P).default}});var w=f(213);Object.defineProperty(u,'compact',{enumerable:!0,get:function(){return h(w).default}});var M=f(214);Object.defineProperty(u,'concat',{enumerable:!0,get:function(){return h(M).default}});var C=f(215);Object.defineProperty(u,'difference',{enumerable:!0,get:function(){return h(C).default}});var O=f(216);Object.defineProperty(u,'differenceBy',{enumerable:!0,get:function(){return h(O).default}});var T=f(217);Object.defineProperty(u,'differenceWith',{enumerable:!0,get:function(){return h(T).default}});var S=f(145);Object.defineProperty(u,'drop',{enumerable:!0,get:function(){return h(S).default}});var E=f(146);Object.defineProperty(u,'dropRight',{enumerable:!0,get:function(){return h(E).default}});var R=f(218);Object.defineProperty(u,'dropRightWhile',{enumerable:!0,get:function(){return h(R).default}});var I=f(219);Object.defineProperty(u,'dropWhile',{enumerable:!0,get:function(){return h(I).default}});var F=f(220);Object.defineProperty(u,'fill',{enumerable:!0,get:function(){return h(F).default}});var N=f(221);Object.defineProperty(u,'findIndex',{enumerable:!0,get:function(){return h(N).default}});var V=f(222);Object.defineProperty(u,'findLastIndex',{enumerable:!0,get:function(){return h(V).default}});var D=f(223);Object.defineProperty(u,'first',{enumerable:!0,get:function(){return h(D).default}});var q=f(224);Object.defineProperty(u,'flatten',{enumerable:!0,get:function(){return h(q).default}});var z=f(225);Object.defineProperty(u,'flattenDeep',{enumerable:!0,get:function(){return h(z).default}});var $=f(226);Object.defineProperty(u,'flattenDepth',{enumerable:!0,get:function(){return h($).default}});var U=f(227);Object.defineProperty(u,'fromPairs',{enumerable:!0,get:function(){return h(U).default}});var W=f(147);Object.defineProperty(u,'head',{enumerable:!0,get:function(){return h(W).default}});var K=f(230);Object.defineProperty(u,'indexOf',{enumerable:!0,get:function(){return h(K).default}});var H=f(231);Object.defineProperty(u,'initial',{enumerable:!0,get:function(){return h(H).default}});var Y=f(232);Object.defineProperty(u,'intersection',{enumerable:!0,get:function(){return h(Y).default}});var G=f(233);Object.defineProperty(u,'intersectionBy',{enumerable:!0,get:function(){return h(G).default}});var J=f(234);Object.defineProperty(u,'intersectionWith',{enumerable:!0,get:function(){return h(J).default}});var Z=f(236);Object.defineProperty(u,'join',{enumerable:!0,get:function(){return h(Z).default}});var X=f(19);Object.defineProperty(u,'last',{enumerable:!0,get:function(){return h(X).default}});var Q=f(237);Object.defineProperty(u,'lastIndexOf',{enumerable:!0,get:function(){return h(Q).default}});var ee=f(238);Object.defineProperty(u,'nth',{enumerable:!0,get:function(){return h(ee).default}});var te=f(239);Object.defineProperty(u,'pull',{enumerable:!0,get:function(){return h(te).default}});var re=f(151);Object.defineProperty(u,'pullAll',{enumerable:!0,get:function(){return h(re).default}});var ae=f(240);Object.defineProperty(u,'pullAllBy',{enumerable:!0,get:function(){return h(ae).default}});var oe=f(241);Object.defineProperty(u,'pullAllWith',{enumerable:!0,get:function(){return h(oe).default}});var le=f(242);Object.defineProperty(u,'pullAt',{enumerable:!0,get:function(){return h(le).default}});var ue=f(243);Object.defineProperty(u,'remove',{enumerable:!0,get:function(){return h(ue).default}});var ie=f(244);Object.defineProperty(u,'reverse',{enumerable:!0,get:function(){return h(ie).default}});var de=f(245);Object.defineProperty(u,'slice',{enumerable:!0,get:function(){return h(de).default}});var fe=f(246);Object.defineProperty(u,'sortedIndex',{enumerable:!0,get:function(){return h(fe).default}});var ce=f(247);Object.defineProperty(u,'sortedIndexBy',{enumerable:!0,get:function(){return h(ce).default}});var pe=f(248);Object.defineProperty(u,'sortedIndexOf',{enumerable:!0,get:function(){return h(pe).default}});var ge=f(249);Object.defineProperty(u,'sortedLastIndex',{enumerable:!0,get:function(){return h(ge).default}});var me=f(250);Object.defineProperty(u,'sortedLastIndexBy',{enumerable:!0,get:function(){return h(me).default}});var ye=f(251);Object.defineProperty(u,'sortedLastIndexOf',{enumerable:!0,get:function(){return h(ye).default}});var be=f(252);Object.defineProperty(u,'sortedUniq',{enumerable:!0,get:function(){return h(be).default}});var he=f(253);Object.defineProperty(u,'sortedUniqBy',{enumerable:!0,get:function(){return h(he).default}});var ve=f(254);Object.defineProperty(u,'tail',{enumerable:!0,get:function(){return h(ve).default}});var ke=f(255);Object.defineProperty(u,'take',{enumerable:!0,get:function(){return h(ke).default}});var Pe=f(256);Object.defineProperty(u,'takeRight',{enumerable:!0,get:function(){return h(Pe).default}});var we=f(257);Object.defineProperty(u,'takeRightWhile',{enumerable:!0,get:function(){return h(we).default}});var xe=f(258);Object.defineProperty(u,'takeWhile',{enumerable:!0,get:function(){return h(xe).default}});var Me=f(260);Object.defineProperty(u,'union',{enumerable:!0,get:function(){return h(Me).default}});var Ce=f(261);Object.defineProperty(u,'unionBy',{enumerable:!0,get:function(){return h(Ce).default}});var Oe=f(262);Object.defineProperty(u,'unionWith',{enumerable:!0,get:function(){return h(Oe).default}});var Ae=f(263);Object.defineProperty(u,'uniq',{enumerable:!0,get:function(){return h(Ae).default}});var Te=f(264);Object.defineProperty(u,'uniqBy',{enumerable:!0,get:function(){return h(Te).default}});var Se=f(265);Object.defineProperty(u,'uniqWith',{enumerable:!0,get:function(){return h(Se).default}});var Ee=f(100);Object.defineProperty(u,'unzip',{enumerable:!0,get:function(){return h(Ee).default}});var Re=f(152);Object.defineProperty(u,'unzipWith',{enumerable:!0,get:function(){return h(Re).default}});var Ie=f(266);Object.defineProperty(u,'without',{enumerable:!0,get:function(){return h(Ie).default}});var Fe=f(267);Object.defineProperty(u,'xor',{enumerable:!0,get:function(){return h(Fe).default}});var Ne=f(268);Object.defineProperty(u,'xorBy',{enumerable:!0,get:function(){return h(Ne).default}});var Le=f(269);Object.defineProperty(u,'xorWith',{enumerable:!0,get:function(){return h(Le).default}});var Ve=f(270);Object.defineProperty(u,'zip',{enumerable:!0,get:function(){return h(Ve).default}});var Be=f(271);Object.defineProperty(u,'zipObject',{enumerable:!0,get:function(){return h(Be).default}});var De=f(272);Object.defineProperty(u,'zipObjectDeep',{enumerable:!0,get:function(){return h(De).default}});var je=f(273);Object.defineProperty(u,'zipWith',{enumerable:!0,get:function(){return h(je).default}});var qe=f(496);Object.defineProperty(u,'default',{enumerable:!0,get:function(){return h(qe).default}})},function(r,u,f){'use strict';function h($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(68),w=h(P),M=f(140),C=h(M),O=f(456),T=h(O),S=f(97),E=h(S),R=f(93),I=h(R),F=f(506),N=h(F),V=Object.prototype,D=V.propertyIsEnumerable,q=!D.call({valueOf:1},'valueOf'),z=(0,T.default)(function($,U){if(q||(0,I.default)(U)||(0,E.default)(U))return void(0,C.default)(U,(0,N.default)(U),$);for(var W in U)(0,w.default)($,W,U[W])});u.default=z},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(197),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){return(0,M.default)(C,!0,!0,O)}},function(r,u){'use strict';Object.defineProperty(u,'__esModule',{value:!0}),u.default=function(P){return function(){return P}}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(433),M=h(w),C=f(464),O=h(C);u.default=function(T,S){return null!=T&&(0,O.default)(T,S,M.default)}},function(r,u,f){'use strict';(function(h){function P(V){return V&&V.__esModule?V:{default:V}}Object.defineProperty(u,'__esModule',{value:!0});var w='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(V){return typeof V}:function(V){return V&&'function'==typeof Symbol&&V.constructor===Symbol&&V!==Symbol.prototype?'symbol':typeof V},M=f(500),C=P(M),O=f(30),T=P(O),S={'function':!0,object:!0},E=S[w(u)]&&u&&!u.nodeType?u:void 0,R=S[w(h)]&&h&&!h.nodeType?h:void 0,I=R&&R.exports===E?E:void 0,F=I?T.default.Buffer:void 0,N=F?function(V){return V instanceof F}:(0,C.default)(!1);u.default=N}).call(u,f(102)(r))},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(46),M=h(w),C=f(99),O=h(C);u.default=function(T){return!!T&&1===T.nodeType&&(0,M.default)(T)&&!(0,O.default)(T)}},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(131),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C,O){return(0,M.default)(C,O)}},function(r,u,f){'use strict';function h(le){return le&&le.__esModule?le:{default:le}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(98),M=h(w),C=f(46),O=h(C),re={};re['[object Float32Array]']=re['[object Float64Array]']=re['[object Int8Array]']=re['[object Int16Array]']=re['[object Int32Array]']=re['[object Uint8Array]']=re['[object Uint8ClampedArray]']=re['[object Uint16Array]']=re['[object Uint32Array]']=!0,re['[object Arguments]']=re['[object Array]']=re['[object ArrayBuffer]']=re['[object Boolean]']=re['[object DataView]']=re['[object Date]']=re['[object Error]']=re['[object Function]']=re['[object Map]']=re['[object Number]']=re['[object Object]']=re['[object RegExp]']=re['[object Set]']=re['[object String]']=re['[object WeakMap]']=!1;var ae=Object.prototype,oe=ae.toString;u.default=function(le){return(0,O.default)(le)&&(0,M.default)(le.length)&&!!re[oe.call(le)]}},function(r,u,f){'use strict';function h(N){return N&&N.__esModule?N:{default:N}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(438),M=h(w),C=f(207),O=h(C),T=f(37),S=h(T),E=f(93),R=h(E),I=Object.prototype,F=I.hasOwnProperty;u.default=function(N){for(var V=-1,D=(0,R.default)(N),q=(0,M.default)(N),z=q.length,$=(0,O.default)(N),W=$||[],K=W.length,H;++VT?-1:1;return S*1.7976931348623157e308}return T===T?T:0}},function(r,u,f){'use strict';function h(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(u,'__esModule',{value:!0});var w=f(429),M=h(w),C=f(15),O=h(C);u.default=function(S){return S?(0,M.default)((0,O.default)(S),0,4294967295):0}},function(r,u,f){'use strict';function h(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(u,'__esModule',{value:!0});var P=f(458),w=h(P),M=f(70),C=h(M),O=(0,w.default)(C.default);u.default=O},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var w=f(445),M=function(C){return C&&C.__esModule?C:{default:C}}(w);u.default=function(C){return null==C?'':(0,M.default)(C)}},function(r,u,f){'use strict';function h(C,O){if(!(C instanceof O))throw new TypeError('Cannot call a class as a function')}Object.defineProperty(u,'__esModule',{value:!0});var P=function(){function C(O,T){for(var S=0,E;S * {\n margin-right: 0.4em; }\n .ck-toolbar > *:last-child {\n margin-right: 0; }\n\n.ck-dropdown::after {\n border-style: solid;\n border-width: .4em .4em 0 .4em;\n border-color: #707070 transparent;\n right: 0.8em; }\n\n.ck-dropdown .ck-button.ck-dropdown__button {\n padding-right: 1.6em; }\n .ck-dropdown .ck-button.ck-dropdown__button .ck-button__label {\n width: 7em;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n.ck-dropdown__panel {\n border: 1px solid #b9b9b9;\n bottom: 1px;\n background: white;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2); }\n .ck-dropdown__panel.ck-rounded-corners,\n .ck-rounded-corners .ck-dropdown__panel {\n border-radius: 2px; }\n\n.ck-list {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n list-style-type: none;\n background: white; }\n .ck-list.ck-rounded-corners,\n .ck-rounded-corners .ck-list {\n border-radius: 2px; }\n .ck-list__item {\n padding: 0.64em;\n cursor: default;\n min-width: 12em; }\n .ck-list__item:hover, .ck-list__item:focus {\n background: #f7f7f7; }\n .ck-list__item:focus {\n box-shadow: 0 0 3px 2px #9bcdfb;\n position: relative;\n z-index: 1;\n outline: none; }\n .ck-list__item:last-of-type {\n border: none; }\n .ck-list__item_active {\n background: #1a8bf1;\n color: white; }\n .ck-list__item_active:hover, .ck-list__item_active:focus {\n background: #0e7ee2; }\n\n.ck-label {\n font-weight: bold; }\n\n.ck-input-text {\n box-shadow: 2px 2px 3px #e6e6e6 inset;\n border: 1px solid #b9b9b9;\n padding: 0.64em;\n min-width: 250px; }\n .ck-input-text.ck-rounded-corners,\n .ck-rounded-corners .ck-input-text {\n border-radius: 2px; }\n .ck-input-text:focus {\n outline: none;\n border: 1px solid #6ab5f9;\n box-shadow: 0 0 3px 2px #9bcdfb, 2px 2px 3px #e6e6e6 inset; }\n\n.ck-balloon-panel {\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n min-width: 50px;\n min-height: 15px;\n background: white;\n border: 1px solid #b9b9b9; }\n .ck-balloon-panel.ck-rounded-corners,\n .ck-rounded-corners .ck-balloon-panel {\n border-radius: 2px; }\n .ck-balloon-panel:before, .ck-balloon-panel:after {\n width: 0;\n height: 0;\n border-style: solid; }\n .ck-balloon-panel_arrow_s:before, .ck-balloon-panel_arrow_s:after, .ck-balloon-panel_arrow_se:before, .ck-balloon-panel_arrow_se:after, .ck-balloon-panel_arrow_sw:before, .ck-balloon-panel_arrow_sw:after {\n border-width: 0 10px 15px 10px; }\n .ck-balloon-panel_arrow_s:before, .ck-balloon-panel_arrow_se:before, .ck-balloon-panel_arrow_sw:before {\n border-color: transparent transparent #b9b9b9 transparent; }\n .ck-balloon-panel_arrow_s:after, .ck-balloon-panel_arrow_se:after, .ck-balloon-panel_arrow_sw:after {\n border-color: transparent transparent white transparent;\n margin-top: 2px; }\n .ck-balloon-panel_arrow_n:before, .ck-balloon-panel_arrow_n:after, .ck-balloon-panel_arrow_ne:before, .ck-balloon-panel_arrow_ne:after, .ck-balloon-panel_arrow_nw:before, .ck-balloon-panel_arrow_nw:after {\n border-width: 15px 10px 0 10px; }\n .ck-balloon-panel_arrow_n:before, .ck-balloon-panel_arrow_ne:before, .ck-balloon-panel_arrow_nw:before {\n border-color: #b9b9b9 transparent transparent; }\n .ck-balloon-panel_arrow_n:after, .ck-balloon-panel_arrow_ne:after, .ck-balloon-panel_arrow_nw:after {\n border-color: white transparent transparent transparent;\n margin-bottom: 2px; }\n .ck-balloon-panel_arrow_s:before, .ck-balloon-panel_arrow_s:after {\n left: 50%;\n margin-left: -10px;\n top: -15px; }\n .ck-balloon-panel_arrow_se:before, .ck-balloon-panel_arrow_se:after {\n left: 20px;\n top: -15px; }\n .ck-balloon-panel_arrow_sw:before, .ck-balloon-panel_arrow_sw:after {\n right: 20px;\n top: -15px; }\n .ck-balloon-panel_arrow_n:before, .ck-balloon-panel_arrow_n:after {\n left: 50%;\n margin-left: -10px;\n bottom: -15px; }\n .ck-balloon-panel_arrow_ne:before, .ck-balloon-panel_arrow_ne:after {\n left: 20px;\n bottom: -15px; }\n .ck-balloon-panel_arrow_nw:before, .ck-balloon-panel_arrow_nw:after {\n right: 20px;\n bottom: -15px; }\n\n.ck-floating-panel {\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #bfbfbf;\n background: #f7f7f7; }\n .ck-floating-panel.ck-rounded-corners,\n .ck-rounded-corners .ck-floating-panel {\n border-radius: 2px; }\n\n.ck-toolbar__container {\n background: #f7f7f7; }\n .ck-toolbar__container .ck-toolbar {\n border-radius: 0;\n border: 0; }\n .ck-toolbar__container .ck-toolbar .ck-button {\n border-width: 0; }\n .ck-toolbar__container .ck-toolbar .ck-button:not(:hover):not(:focus):not(.ck-on), .ck-toolbar__container .ck-toolbar .ck-button.ck-disabled {\n background: #f7f7f7; }\n .ck-toolbar__container .ck-toolbar .ck-button.ck-on {\n background: #dedede;\n border-color: #a1a1a1; }\n .ck-toolbar__container .ck-toolbar .ck-button.ck-on:not(.ck-disabled):hover, .ck-toolbar__container .ck-toolbar .ck-button.ck-on:not(.ck-disabled):focus {\n background: #c6c6c6;\n border-color: #888888; }\n .ck-toolbar__container .ck-toolbar .ck-button.ck-on:not(.ck-disabled):active {\n background: #b9b9b9;\n border-color: #7c7c7c;\n box-shadow: inset 0 2px 2px #a1a1a1; }\n .ck-toolbar__container .ck-toolbar .ck-dropdown__button {\n border-width: 1px; }\n .ck-toolbar__container .ck-toolbar .ck-dropdown__button:not(:hover):not(:focus):not(.ck-on) {\n background: white; }\n .ck-toolbar__container.ck-balloon-panel_arrow_s:after, .ck-toolbar__container.ck-balloon-panel_arrow_se:after, .ck-toolbar__container.ck-balloon-panel_arrow_sw:after {\n border-bottom-color: #f7f7f7; }\n .ck-toolbar__container.ck-balloon-panel_arrow_n:after, .ck-toolbar__container.ck-balloon-panel_arrow_ne:after, .ck-toolbar__container.ck-balloon-panel_arrow_nw:after {\n border-top-color: #f7f7f7; }\n\n.ck-editor .ck-toolbar.ck-toolbar_sticky {\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #bfbfbf;\n border-width: 0 0 1px;\n background: #f7f7f7; }\n\n.ck-editor {\n position: relative; }\n .ck-editor.ck-rounded-corners,\n .ck-rounded-corners .ck-editor {\n border-radius: 2px; }\n .ck-editor .ck-editor__top .ck-toolbar {\n border-radius: 0;\n border-top: 0;\n border-left: 0;\n border-right: 0; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-button {\n border-width: 0; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-button:not(:hover):not(:focus):not(.ck-on), .ck-editor .ck-editor__top .ck-toolbar .ck-button.ck-disabled {\n background: #f7f7f7; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-button.ck-on {\n background: #dedede;\n border-color: #a1a1a1; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-button.ck-on:not(.ck-disabled):hover, .ck-editor .ck-editor__top .ck-toolbar .ck-button.ck-on:not(.ck-disabled):focus {\n background: #c6c6c6;\n border-color: #888888; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-button.ck-on:not(.ck-disabled):active {\n background: #b9b9b9;\n border-color: #7c7c7c;\n box-shadow: inset 0 2px 2px #a1a1a1; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-dropdown__button {\n border-width: 1px; }\n .ck-editor .ck-editor__top .ck-toolbar .ck-dropdown__button:not(:hover):not(:focus):not(.ck-on) {\n background: white; }\n .ck-editor .ck-editor__main {\n background: white; }\n .ck-editor .ck-editor__bottom {\n border-bottom: 0;\n border-left: 0;\n border-right: 0;\n padding: 0.8em; }\n .ck-editor .ck-editor__editable.ck-focused {\n outline: 1px solid #6ab5f9;\n box-shadow: 2px 2px 3px #e6e6e6 inset; }\n .ck-editor .ck-editor__editable_inline {\n overflow: auto;\n padding: 0 0.8em; }\n\n.ck-editor,\n.ck-editor-bottom {\n background: #f7f7f7;\n border: 1px solid #b9b9b9; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'.ck-placeholder::before {\n content: attr(data-placeholder);\n cursor: text;\n color: #c2c2c2; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'/**\n * Default spacing value ("unit").\n *\n */\n/**\n * Internal map with default spacings.\n *\n * @type Map\n * @see ck-spacing\n */\n/**\n * Returns a spacing value with units for given name.\n *\n * @param {String} $spacing [ \'standard\' ] - Spacing level.\n * @return {String}\n * @see $ck-def-spacing\n * @see $ck-def-spacings\n */\n/**\n * Base font size.\n *\n * @see $ck-font-sizes\n */\n/**\n * Base font face.\n *\n */\n/**\n * Base font sizes for scaling.\n *\n * @see ck-font-size\n */\n/**\n * Returns font-size in units for given level.\n *\n * @param {Number} $level [ 0 ] - Size of the font.\n * @return {String}\n * @see $ck-font-sizes\n * @see $ck-font-size-base\n */\n.ck-heading_heading1 {\n font-size: 1.5em; }\n\n.ck-heading_heading2 {\n font-size: 1.3em; }\n\n.ck-heading_heading3 {\n font-size: 1.1em; }\n\n[class*="ck-heading_"] {\n line-height: 21.6px;\n padding: 9.6px; }\n\n[class*="ck-heading_heading"] {\n font-weight: bold; }\n\n.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label {\n width: 8em; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'@charset "UTF-8";\n/**\n * Colors configured by the user.\n *\n * @type Map\n * @example\n *\t\t$ck-colors: ( \'foreground\': red );\n * @see $_ck-colors\n */\n/**\n * Internal map with default colors.\n *\n * @type Map\n * @see ck-color-add\n */\n/**\n * Returns a color of given name and lightness offset.\n *\n * @param {String} $name [ \'background\' ] - Name of the color.\n * @param {Number} $offset [ 0 ] - Offset of the lightness.\n * @return {String}\n * @see $_ck-colors\n */\n/**\n * Returns a border\u2013color for a given name and lightness offset.\n *\n * @param {String} $name [ \'background\' ] - Name of the color.\n * @param {Number} $offset [ 0 ] - Offset of the lightness.\n * @return {String}\n * @see $ck-color\n */\n/**\n * Adds a color to internal color map.\n *\n * @example\n *\t\t@include ck-color-add( ( \'special\': yellow, \'hover\': #00FF00 ) );\n * @param {Map} $map - A map with new colors.\n * @see $_ck-colors\n */\n/**\n * Default spacing value ("unit").\n *\n */\n/**\n * Internal map with default spacings.\n *\n * @type Map\n * @see ck-spacing\n */\n/**\n * Returns a spacing value with units for given name.\n *\n * @param {String} $spacing [ \'standard\' ] - Spacing level.\n * @return {String}\n * @see $ck-def-spacing\n * @see $ck-def-spacings\n */\n/**\n * Base font size.\n *\n * @see $ck-font-sizes\n */\n/**\n * Base font face.\n *\n */\n/**\n * Base font sizes for scaling.\n *\n * @see ck-font-size\n */\n/**\n * Returns font-size in units for given level.\n *\n * @param {Number} $level [ 0 ] - Size of the font.\n * @return {String}\n * @see $ck-font-sizes\n * @see $ck-font-size-base\n */\n.ck-editor__editable .image > figcaption {\n background-color: #f7f7f7;\n padding: 0.8em;\n font-size: 0.75rem;\n color: #858585;\n outline-offset: -1px; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'/**\n * Default spacing value ("unit").\n *\n */\n/**\n * Internal map with default spacings.\n *\n * @type Map\n * @see ck-spacing\n */\n/**\n * Returns a spacing value with units for given name.\n *\n * @param {String} $spacing [ \'standard\' ] - Spacing level.\n * @return {String}\n * @see $ck-def-spacing\n * @see $ck-def-spacings\n */\n.cke-text-alternative-form {\n padding: 1.2em;\n overflow: hidden; }\n .cke-text-alternative-form .ck-label {\n margin-bottom: 0.4em; }\n .cke-text-alternative-form__actions {\n clear: both;\n padding-top: 1.2em; }\n .cke-text-alternative-form__actions .ck-button {\n float: right; }\n .cke-text-alternative-form__actions .ck-button + .ck-button {\n margin-right: 0.64em; }\n .cke-text-alternative-form__actions .ck-button + .ck-button + .ck-button {\n float: left; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'.ck-editor__editable .image {\n text-align: center;\n clear: both; }\n .ck-editor__editable .image.image-style-side {\n float: right;\n margin-left: 0.8em;\n max-width: 50%; }\n\n.ck-editor__editable .image > img {\n display: block;\n margin: 0 auto;\n max-width: 100%; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'/**\n * Default spacing value ("unit").\n *\n */\n/**\n * Internal map with default spacings.\n *\n * @type Map\n * @see ck-spacing\n */\n/**\n * Returns a spacing value with units for given name.\n *\n * @param {String} $spacing [ \'standard\' ] - Spacing level.\n * @return {String}\n * @see $ck-def-spacing\n * @see $ck-def-spacings\n */\n.ck-link-form {\n padding: 1.2em;\n overflow: hidden; }\n .ck-link-form .ck-label {\n margin-bottom: 0.4em; }\n .ck-link-form__actions {\n clear: both;\n padding-top: 1.2em; }\n .ck-link-form__actions .ck-button {\n float: right; }\n .ck-link-form__actions .ck-button + .ck-button {\n margin-right: 0.64em; }\n .ck-link-form__actions .ck-button + .ck-button + .ck-button {\n float: left; }\n',''])},function(r,u,f){u=r.exports=f(32)(void 0),u.push([r.i,'@charset "UTF-8";\n/**\n * Colors configured by the user.\n *\n * @type Map\n * @example\n *\t\t$ck-colors: ( \'foreground\': red );\n * @see $_ck-colors\n */\n/**\n * Internal map with default colors.\n *\n * @type Map\n * @see ck-color-add\n */\n/**\n * Returns a color of given name and lightness offset.\n *\n * @param {String} $name [ \'background\' ] - Name of the color.\n * @param {Number} $offset [ 0 ] - Offset of the lightness.\n * @return {String}\n * @see $_ck-colors\n */\n/**\n * Returns a border\u2013color for a given name and lightness offset.\n *\n * @param {String} $name [ \'background\' ] - Name of the color.\n * @param {Number} $offset [ 0 ] - Offset of the lightness.\n * @return {String}\n * @see $ck-color\n */\n/**\n * Adds a color to internal color map.\n *\n * @example\n *\t\t@include ck-color-add( ( \'special\': yellow, \'hover\': #00FF00 ) );\n * @param {Map} $map - A map with new colors.\n * @see $_ck-colors\n */\n/**\n * A visual style of element\'s inner shadow (i.e. input).\n */\n/**\n * A visual style of element\'s drop shadow (i.e. panel).\n */\n/**\n * A helper to combine multiple shadows.\n */\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n/**\n * A visual style of focused element\'s outer shadow.\n */\n/**\n * A visual style of focused element\'s border or outline.\n */\n/**\n * A class which indicates that an element holding it is disabled.\n */\n.ck-disabled {\n opacity: .5; }\n\n/**\n * A visual style of focused element\'s border or outline.\n */\n/**\n * Brings visual styling for :focus state.\n */\n/**\n * Default spacing value ("unit").\n *\n */\n/**\n * Internal map with default spacings.\n *\n * @type Map\n * @see ck-spacing\n */\n/**\n * Returns a spacing value with units for given name.\n *\n * @param {String} $spacing [ \'standard\' ] - Spacing level.\n * @return {String}\n * @see $ck-def-spacing\n * @see $ck-def-spacings\n */\n.ck-widget {\n margin: 0.8em 0;\n padding: 0; }\n .ck-widget.ck-widget_selected, .ck-widget.ck-widget_selected:hover {\n outline: 3px solid #6ab5f9; }\n .ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected {\n outline: 3px solid #dddddd; }\n .ck-widget:hover {\n outline: 3px solid #ffd25c; }\n .ck-widget .ck-editable.ck-editable_focused, .ck-widget .ck-editable:focus {\n outline: 1px solid #6ab5f9;\n box-shadow: 2px 2px 3px #e6e6e6 inset;\n background-color: white; }\n',''])},function(r,u,f){var h=f(522);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(523);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(524);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(525);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(526);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(527);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(528);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(529);'string'==typeof h&&(h=[[r.i,h,'']]);f(38)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){f(277),r.exports=f(276)}])}); //# sourceMappingURL=ckeditor.compat.js.map