(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+EQa":function(l,n,e){"use strict";var t=function(){function l(l,n){for(var e=0;e0?setTimeout(o,i):n(!0):n(!1)},i)})}},"+Vid":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("CcnG"),o=e("gIcY"),u=e("COG4"),i={provide:o.NG_VALIDATORS,useExisting:t.forwardRef(function(){return a}),multi:!0},a=function(){function l(){}return l.prototype.validate=function(l){return u.digits(l)},l}();a.decorators=[{type:t.Directive,args:[{selector:"[digits][formControlName],[digits][formControl],[digits][ngModel]",providers:[i]}]}],a.ctorParameters=function(){return[]},n.DigitsValidator=a},"+W5N":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("gIcY"),o=e("PoRY"),u=e("m9Vx");n.phone=function(l){return function(n){if(u.isPresent(t.Validators.required(n)))return null;var e=n.value;return o.isValidNumber({phone:e,country:l})?null:{phone:!0}}}},"+gEr":function(l,n,e){"use strict";e.d(n,"a",function(){return u}),e.d(n,"b",function(){return i});var t=e("mrSG"),o=e("z4bA"),u={leading:!0,trailing:!1};function i(l,n){return void 0===n&&(n=u),function(e){return e.lift(new a(l,!!n.leading,!!n.trailing))}}var a=function(){function l(l,n,e){this.durationSelector=l,this.leading=n,this.trailing=e}return l.prototype.call=function(l,n){return n.subscribe(new r(l,this.durationSelector,this.leading,this.trailing))},l}(),r=function(l){function n(n,e,t,o){var u=l.call(this,n)||this;return u.destination=n,u.durationSelector=e,u._leading=t,u._trailing=o,u._hasValue=!1,u}return t.d(n,l),n.prototype._next=function(l){this._hasValue=!0,this._sendValue=l,this._throttled||(this._leading?this.send():this.throttle(l))},n.prototype.send=function(){var l=this._hasValue,n=this._sendValue;l&&(this.destination.next(n),this.throttle(n)),this._hasValue=!1,this._sendValue=void 0},n.prototype.throttle=function(l){var n=this.tryDurationSelector(l);n&&this.add(this._throttled=Object(o.c)(n,new o.a(this)))},n.prototype.tryDurationSelector=function(l){try{return this.durationSelector(l)}catch(n){return this.destination.error(n),null}},n.prototype.throttlingDone=function(){var l=this._throttled,n=this._trailing;l&&l.unsubscribe(),this._throttled=void 0,n&&this.send()},n.prototype.notifyNext=function(){this.throttlingDone()},n.prototype.notifyComplete=function(){this.throttlingDone()},n}(o.b)},"+h4i":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("CcnG"),o=e("gIcY"),u=e("rKjJ"),i={provide:o.NG_VALIDATORS,useExisting:t.forwardRef(function(){return a}),multi:!0},a=function(){function l(){}return l.prototype.ngOnInit=function(){this.validator=u.lt(this.lt)},l.prototype.ngOnChanges=function(l){for(var n in l)"lt"===n&&(this.validator=u.lt(l[n].currentValue),this.onChange&&this.onChange())},l.prototype.validate=function(l){return this.validator(l)},l.prototype.registerOnValidatorChange=function(l){this.onChange=l},l}();a.decorators=[{type:t.Directive,args:[{selector:"[lt][formControlName],[lt][formControl],[lt][ngModel]",providers:[i]}]}],a.ctorParameters=function(){return[]},a.propDecorators={lt:[{type:t.Input}]},n.LessThanValidator=a},"+kOg":function(l,n,e){"use strict";var t=function(){return function(l,n){if(Array.isArray(l))return l;if(Symbol.iterator in Object(l))return function(l,n){var e=[],t=!0,o=!1,u=void 0;try{for(var i,a=l[Symbol.iterator]();!(t=(i=a.next()).done)&&(e.push(i.value),!n||e.length!==n);t=!0);}catch(r){o=!0,u=r}finally{try{!t&&a.return&&a.return()}finally{if(o)throw u}}return e}(l,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function l(l,n){for(var e=0;e0&&this._events[l].length>i&&(this._events[l].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[l].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(l,n){if(!t(n))throw TypeError("listener must be a function");var e=!1;function o(){this.removeListener(l,o),e||(e=!0,n.apply(this,arguments))}return o.listener=n,this.on(l,o),this},e.prototype.removeListener=function(l,n){var e,u,i,a;if(!t(n))throw TypeError("listener must be a function");if(!this._events||!this._events[l])return this;if(i=(e=this._events[l]).length,u=-1,e===n||t(e.listener)&&e.listener===n)delete this._events[l],this._events.removeListener&&this.emit("removeListener",l,n);else if(o(e)){for(a=i;a-- >0;)if(e[a]===n||e[a].listener&&e[a].listener===n){u=a;break}if(u<0)return this;1===e.length?(e.length=0,delete this._events[l]):e.splice(u,1),this._events.removeListener&&this.emit("removeListener",l,n)}return this},e.prototype.removeAllListeners=function(l){var n,e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[l]&&delete this._events[l],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(t(e=this._events[l]))this.removeListener(l,e);else if(e)for(;e.length;)this.removeListener(l,e[e.length-1]);return delete this._events[l],this},e.prototype.listeners=function(l){return this._events&&this._events[l]?t(this._events[l])?[this._events[l]]:this._events[l].slice():[]},e.prototype.listenerCount=function(l){if(this._events){var n=this._events[l];if(t(n))return 1;if(n)return n.length}return 0},e.listenerCount=function(l,n){return l.listenerCount(n)}},"+s0g":function(l,n,e){!function(l){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;l.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(l,t){return l?/-MMM-/.test(t)?e[l.month()]:n[l.month()]:n},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(1===l||8===l||l>=20?"ste":"de")},week:{dow:1,doy:4}})}(e("wd/R"))},"+tJ4":function(l,n,e){"use strict";e.d(n,"a",function(){return t});var t=function(l){return function(n){for(var e=0,t=l.length;e(()=>{"use strict";var e={3062:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const a=i},903:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]);const a=i},3143:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},4717:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const a=i},9315:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const a=i},8733:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const a=i},3508:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},2640:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=i},5083:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},4036:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const a=i},3773:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const a=i},3689:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const a=i},1905:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},9773:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const a=i},2347:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},7754:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},4652:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const a=i},7442:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},9292:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},1613:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const a=i},6306:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const a=i},3881:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},6945:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},4906:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=i},5332:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=i},6781:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const a=i},5485:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},3949:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},7686:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},7339:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=i},9688:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},8847:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const a=i},6574:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},4879:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},3662:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const a=i},2577:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},1046:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},8793:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},4650:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const a=i},7676:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},5868:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},6764:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},9695:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const a=i},5542:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDoGD,CAvGA,qECOE,qCDgGF,CAvGA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAmGD,CAhGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAjGF,qCAqGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},3332:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const a=i},4793:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const a=i},3488:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=i},8506:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const a=i},4921:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const a=i},2609:l=>{l.exports=function(l){var n=[];return n.toString=function(){return this.map(function(n){var e=l(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e}).join("")},n.i=function(l,e,t){"string"==typeof l&&(l=[[null,l,""]]);var o={};if(t)for(var u=0;u{function n(l,n){return function(l){if(Array.isArray(l))return l}(l)||function(l,n){var e=l&&("undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"]);if(null!=e){var t,o,u=[],i=!0,a=!1;try{for(e=e.call(l);!(i=(t=e.next()).done)&&(u.push(t.value),!n||u.length!==n);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(l,n)||function(l,n){if(l){if("string"==typeof l)return e(l,n);var t=Object.prototype.toString.call(l).slice(8,-1);return"Object"===t&&l.constructor&&(t=l.constructor.name),"Map"===t||"Set"===t?Array.from(l):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(l,n):void 0}}(l,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(l,n){(null==n||n>l.length)&&(n=l.length);for(var e=0,t=new Array(n);e{var t,o=function(){var l={};return function(n){if(void 0===l[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(l){e=null}l[n]=e}return l[n]}}(),u=[];function i(l){for(var n=-1,e=0;e{var n=l&&l.__esModule?()=>l.default:()=>l;return o.d(n,{a:n}),n}),o.d=((l,n)=>{for(var e in n)o.o(n,e)&&!o.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:n[e]})}),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=((l,n)=>Object.prototype.hasOwnProperty.call(l,n)),o.nc=void 0;var u={};return(()=>{o.d(u,{default:()=>Ly});const e=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}(),t={isMac:i(e),isWindows:function(l){return l.indexOf("windows")>-1}(e),isGecko:function(l){return!!l.match(/gecko\/\d+/)}(e),isSafari:function(l){return l.indexOf(" applewebkit/")>-1&&-1===l.indexOf("chrome")}(e),isiOS:function(l){return!!l.match(/iphone|ipad/i)||i(l)&&navigator.maxTouchPoints>0}(e),isAndroid:function(l){return l.indexOf("android")>-1}(e),isBlink:function(l){return l.indexOf("chrome/")>-1&&l.indexOf("edge/")<0}(e),features:{isRegExpUnicodePropertySupported:function(){let l=!1;try{l=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(l){}return l}()}};function i(l){return l.indexOf("macintosh")>-1}function a(l,n,e,t){e=e||function(l,n){return l===n};const o=Array.isArray(l)?l:Array.prototype.slice.call(l),u=Array.isArray(n)?n:Array.prototype.slice.call(n),i=function(l,n,e){const t=r(l,n,e);if(-1===t)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=r(s(l,t),s(n,t),e);return{firstIndex:t,lastIndexOld:l.length-o,lastIndexNew:n.length-o}}(o,u,e);return t?function(l,n){const{firstIndex:e,lastIndexOld:t,lastIndexNew:o}=l;if(-1===e)return Array(n).fill("equal");let u=[];return e>0&&(u=u.concat(Array(e).fill("equal"))),o-e>0&&(u=u.concat(Array(o-e).fill("insert"))),t-e>0&&(u=u.concat(Array(t-e).fill("delete"))),o0&&e.push({index:t,type:"insert",values:l.slice(t,u)}),o-t>0&&e.push({index:t+(u-t),type:"delete",howMany:o-t}),e}(u,i)}function r(l,n,e){for(let t=0;t200||o>200||t+o>300)return d.fastDiff(l,n,e,!0);let u,i;if(os?-1:1;c[t+d]&&(c[t]=c[t+d].slice(0)),c[t]||(c[t]=[]),c[t].push(o>s?u:i);let f=Math.max(o,s),m=f-t;for(;ms;m--)p[m]=f(m);p[s]=f(s),h++}while(p[s]!==r);return c[s].slice(1)}function c(l,...n){n.forEach(n=>{const e=Object.getOwnPropertyNames(n),t=Object.getOwnPropertySymbols(n);e.concat(t).forEach(e=>{if(e in l.prototype)return;if("function"==typeof n&&("length"==e||"name"==e||"prototype"==e))return;const t=Object.getOwnPropertyDescriptor(n,e);t.enumerable=!1,Object.defineProperty(l.prototype,e,t)})})}d.fastDiff=a;const p=function(){return function l(){l.called=!0}};class f{constructor(l,n){this.source=l,this.name=n,this.path=[],this.stop=p(),this.off=p()}}const m=new Array(256).fill("").map((l,n)=>("0"+n.toString(16)).slice(-2));function h(){const l=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0;return"e"+m[l>>0&255]+m[l>>8&255]+m[l>>16&255]+m[l>>24&255]+m[n>>0&255]+m[n>>8&255]+m[n>>16&255]+m[n>>24&255]+m[e>>0&255]+m[e>>8&255]+m[e>>16&255]+m[e>>24&255]+m[t>>0&255]+m[t>>8&255]+m[t>>16&255]+m[t>>24&255]}const g={get(l="normal"){return"number"!=typeof l?this[l]||this.normal:l},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function v(l,n){const e=g.get(n.priority);for(let t=0;t{if("object"==typeof n&&null!==n){if(e.has(n))return`[object ${n.constructor.name}]`;e.add(n)}return n})}`:"")+A(l)}(l,e)),this.name="CKEditorError",this.context=n,this.data=e}is(l){return"CKEditorError"===l}static rethrowUnexpectedError(l,n){if(l.is&&l.is("CKEditorError"))throw l;const e=new b(l.message,n);throw e.stack=l.stack,e}}function y(l,n){console.warn(..._(l,n))}function x(l,n){console.error(..._(l,n))}function A(l){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${l}`}function _(l,n){const e=A(l);return n?[l,n,e]:[l,e]}const C="object"==typeof window?window:o.g;if(C.CKEDITOR_VERSION)throw new b("ckeditor-duplicated-modules",null);C.CKEDITOR_VERSION="35.4.0";const w=Symbol("listeningTo"),R=Symbol("emitterId"),L=Symbol("delegations"),M=E(Object);function E(l){return l?class extends l{on(l,n,e){this.listenTo(this,l,n,e)}once(l,n,e){let t=!1;this.listenTo(this,l,(l,...e)=>{t||(t=!0,l.off(),n.call(this,l,...e))},e)}off(l,n){this.stopListening(this,l,n)}listenTo(l,n,e,t={}){let o,u;this[w]||(this[w]={});const i=this[w];S(l)||O(l);const a=S(l);(o=i[a])||(o=i[a]={emitter:l,callbacks:{}}),(u=o.callbacks[n])||(u=o.callbacks[n]=[]),u.push(e),function(l,n,e,t,o){n._addEventListener?n._addEventListener(e,t,o):l._addEventListener.call(n,e,t,o)}(this,l,n,e,t)}stopListening(l,n,e){const t=this[w];let o=l&&S(l);const u=t&&o?t[o]:void 0,i=u&&n?u.callbacks[n]:void 0;if(!(!t||l&&!u||n&&!i))if(e)N(this,l,n,e),-1!==i.indexOf(e)&&(1===i.length?delete u.callbacks[n]:N(this,l,n,e));else if(i){for(;e=i.pop();)N(this,l,n,e);delete u.callbacks[n]}else if(u){for(n in u.callbacks)this.stopListening(l,n);delete t[o]}else{for(o in t)this.stopListening(t[o].emitter);delete this[w]}}fire(l,...n){try{const e=l instanceof f?l:new f(this,l),t=e.name;let o=function l(n,e){let t;return n._events&&(t=n._events[e])&&t.callbacks.length?t.callbacks:e.indexOf(":")>-1?l(n,e.substr(0,e.lastIndexOf(":"))):null}(this,t);if(e.path.push(this),o){const l=[e,...n];o=Array.from(o);for(let n=0;n{this[L]||(this[L]=new Map),l.forEach(l=>{const t=this[L].get(l);t?t.set(n,e):this[L].set(l,new Map([[n,e]]))})}}}stopDelegating(l,n){if(this[L])if(l)if(n){const e=this[L].get(l);e&&e.delete(n)}else this[L].delete(l);else this[L].clear()}_addEventListener(l,n,e){!function(l,n){const e=k(l);if(e[n])return;let t=n,o=null;const u=[];for(;""!==t&&!e[t];)e[t]={callbacks:[],childEvents:[]},u.push(e[t]),o&&e[t].childEvents.push(o),o=t,t=t.substr(0,t.lastIndexOf(":"));if(""!==t){for(const l of u)l.callbacks=e[t].callbacks.slice();e[t].childEvents.push(o)}}(this,l);const t=I(this,l),o={callback:n,priority:g.get(e.priority)};for(const u of t)v(u,o)}_removeEventListener(l,n){const e=I(this,l);for(const t of e)for(let l=0;l{E[l]=M.prototype[l]});const D=function(l){var n=typeof l;return null!=l&&("object"==n||"function"==n)},z=Symbol("observableProperties"),q=Symbol("boundObservables"),T=Symbol("boundProperties"),P=Symbol("decoratedMethods"),B=Symbol("decoratedOriginal"),V=U(E());function U(l){return l?class extends l{set(l,n){if(D(l))return void Object.keys(l).forEach(n=>{this.set(n,l[n])},this);W(this);const e=this[z];if(l in this&&!e.has(l))throw new b("observable-set-cannot-override",this);Object.defineProperty(this,l,{enumerable:!0,configurable:!0,get:()=>e.get(l),set(n){const t=e.get(l);let o=this.fire(`set:${l}`,l,n,t);void 0===o&&(o=n),t===o&&e.has(l)||(e.set(l,o),this.fire(`change:${l}`,l,o,t))}}),this[l]=n}bind(...l){if(!l.length||!H(l))throw new b("observable-bind-wrong-properties",this);if(new Set(l).size!==l.length)throw new b("observable-bind-duplicate-properties",this);W(this);const n=this[T];l.forEach(l=>{if(n.has(l))throw new b("observable-bind-rebind",this)});const e=new Map;return l.forEach(l=>{const t={property:l,to:[]};n.set(l,t),e.set(l,t)}),{to:G,toMany:j,_observable:this,_bindProperties:l,_to:[],_bindings:e}}unbind(...l){if(!this[z])return;const n=this[T],e=this[q];if(l.length){if(!H(l))throw new b("observable-unbind-wrong-properties",this);l.forEach(l=>{const t=n.get(l);t&&(t.to.forEach(([l,n])=>{const o=e.get(l),u=o[n];u.delete(t),u.size||delete o[n],Object.keys(o).length||(e.delete(l),this.stopListening(l,"change"))}),n.delete(l))})}else e.forEach((l,n)=>{this.stopListening(n,"change")}),e.clear(),n.clear()}decorate(l){W(this);const n=this[l];if(!n)throw new b("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:l});this.on(l,(l,e)=>{l.return=n.apply(this,e)}),this[l]=function(...n){return this.fire(l,n)},this[l][B]=n,this[P]||(this[P]=[]),this[P].push(l)}stopListening(l,n,e){if(!l&&this[P]){for(const l of this[P])this[l]=this[l][B];delete this[P]}super.stopListening(l,n,e)}}:V}function W(l){l[z]||(Object.defineProperty(l,z,{value:new Map}),Object.defineProperty(l,q,{value:new Map}),Object.defineProperty(l,T,{value:new Map}))}function G(...l){const n=function(...l){if(!l.length)throw new b("observable-bind-to-parse-error",null);const n={to:[]};let e;return"function"==typeof l[l.length-1]&&(n.callback=l.pop()),l.forEach(l=>{if("string"==typeof l)e.properties.push(l);else{if("object"!=typeof l)throw new b("observable-bind-to-parse-error",null);e={observable:l,properties:[]},n.to.push(e)}}),n}(...l),e=Array.from(this._bindings.keys()),t=e.length;if(!n.callback&&n.to.length>1)throw new b("observable-bind-to-no-callback",this);if(t>1&&n.callback)throw new b("observable-bind-to-extra-callback",this);var o;n.to.forEach(l=>{if(l.properties.length&&l.properties.length!==t)throw new b("observable-bind-to-properties-length",this);l.properties.length||(l.properties=this._bindProperties)}),this._to=n.to,n.callback&&(this._bindings.get(e[0]).callback=n.callback),o=this._observable,this._to.forEach(l=>{const n=o[q];let e;n.get(l.observable)||o.listenTo(l.observable,"change",(t,u)=>{(e=n.get(l.observable)[u])&&e.forEach(l=>{Y(o,l.property)})})}),function(l){let n;l._bindings.forEach((e,t)=>{l._to.forEach(o=>{n=o.properties[e.callback?0:l._bindProperties.indexOf(t)],e.to.push([o.observable,n]),function(l,n,e,t){const o=l[q],u=o.get(e),i=u||{};i[t]||(i[t]=new Set),i[t].add(n),u||o.set(e,i)}(l._observable,e,o.observable,n)})})}(this),this._bindProperties.forEach(l=>{Y(this._observable,l)})}function j(l,n,e){if(this._bindings.size>1)throw new b("observable-bind-to-many-not-one-binding",this);this.to(...function(l,n){const e=l.map(l=>[l,n]);return Array.prototype.concat.apply([],e)}(l,n),e)}function H(l){return l.every(l=>"string"==typeof l)}function Y(l,n){const e=l[T].get(n);let t;e.callback?t=e.callback.apply(l,e.to.map(l=>l[0][l[1]])):t=(t=e.to[0])[0][t[1]],Object.prototype.hasOwnProperty.call(l,n)?l[n]=t:l.set(n,t)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(l=>{U[l]=V.prototype[l]});class Z{constructor(){this._replacedElements=[]}replace(l,n){this._replacedElements.push({element:l,newElement:n}),l.style.display="none",n&&l.parentNode.insertBefore(n,l.nextSibling)}restore(){this._replacedElements.forEach(({element:l,newElement:n})=>{l.style.display="",n&&n.remove()}),this._replacedElements=[]}}function X(l){let n=0;for(const e of l)n++;return n}function $(l,n){const e=Math.min(l.length,n.length);for(let t=0;t-1},wl.prototype.set=function(l,n){var e=this.__data__,t=_l(e,l);return t<0?(++this.size,e.push([l,n])):e[t][1]=n,this};const Rl=wl,Ll=function(l){if(!D(l))return!1;var n=rl(l);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},Ml=ll["__core-js_shared__"];var El=function(){var l=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}();var Ol=Function.prototype.toString;const Sl=function(l){if(null!=l){try{return Ol.call(l)}catch(l){}try{return l+""}catch(l){}}return""};var kl=/^\[object .+?Constructor\]$/,Il=Function.prototype,Fl=Object.prototype,Nl=Il.toString,Dl=Fl.hasOwnProperty,zl=RegExp("^"+Nl.call(Dl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ql=function(l){return!(!D(l)||function(l){return!!El&&El in l}(l))&&(Ll(l)?zl:kl).test(Sl(l))},Tl=function(l,n){var e=function(l,n){return null==l?void 0:l[n]}(l,n);return ql(e)?e:void 0},Pl=Tl(ll,"Map"),Bl=Tl(Object,"create");var Vl=Object.prototype.hasOwnProperty;var Ul=Object.prototype.hasOwnProperty;function Wl(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n-1&&l%1==0&&l-1&&l%1==0&&l<=9007199254740991};var mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;const hn=function(l){return function(n){return l(n)}};var gn="object"==typeof n&&n&&!n.nodeType&&n,vn=gn&&"object"==typeof l&&l&&!l.nodeType&&l,bn=vn&&vn.exports===gn&&Q.process;const yn=function(){try{return vn&&vn.require&&vn.require("util").types||bn&&bn.binding&&bn.binding("util")}catch(e){}}();var xn=yn&&yn.isTypedArray;const An=xn?hn(xn):function(l){return dl(l)&&fn(l.length)&&!!mn[rl(l)]};var _n=Object.prototype.hasOwnProperty;const Cn=function(l,n){var e=sl(l),t=!e&&un(l),o=!e&&!t&&dn(l),u=!e&&!t&&!o&&An(l),i=e||t||o||u,a=i?function(l,n){for(var e=-1,t=Array(l);++e{this._setToTarget(l,t,n[t],e)})}}function Ie(l){return Oe(l,Fe)}function Fe(l){return Se(l)?l:void 0}function Ne(l){if(l){if(l.defaultView)return l instanceof l.defaultView.Document;if(l.ownerDocument&&l.ownerDocument.defaultView)return l instanceof l.ownerDocument.defaultView.Node}return!1}function De(l){const n=Object.prototype.toString.apply(l);return"[object Window]"==n||"[object global]"==n}const ze=qe(E());function qe(l){return l?class extends l{listenTo(l,n,e,t={}){if(Ne(l)||De(l)){const o={capture:!!t.useCapture,passive:!!t.usePassive},u=this._getProxyEmitter(l,o)||new Te(l,o);this.listenTo(u,n,e,t)}else super.listenTo(l,n,e,t)}stopListening(l,n,e){if(Ne(l)||De(l)){const t=this._getAllProxyEmitters(l);for(const l of t)this.stopListening(l,n,e)}else super.stopListening(l,n,e)}_getProxyEmitter(l,n){return function(l,n){const e=l[w];return e&&e[n]?e[n].emitter:null}(this,Pe(l,n))}_getAllProxyEmitters(l){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(n=>this._getProxyEmitter(l,n)).filter(l=>!!l)}}:ze}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(l=>{qe[l]=ze.prototype[l]});class Te extends(E()){constructor(l,n){super(),O(this,Pe(l,n)),this._domNode=l,this._options=n}attach(l){if(this._domListeners&&this._domListeners[l])return;const n=this._createDomListener(l);this._domNode.addEventListener(l,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[l]=n}detach(l){let n;!this._domListeners[l]||(n=this._events[l])&&n.callbacks.length||this._domListeners[l].removeListener()}_addEventListener(l,n,e){this.attach(l),E().prototype._addEventListener.call(this,l,n,e)}_removeEventListener(l,n){E().prototype._removeEventListener.call(this,l,n),this.detach(l)}_createDomListener(l){const n=n=>{this.fire(l,n)};return n.removeListener=(()=>{this._domNode.removeEventListener(l,n,this._options),delete this._domListeners[l]}),n}}function Pe(l,n){let e=function(l){return l["data-ck-expando"]||(l["data-ck-expando"]=h())}(l);for(const t of Object.keys(n).sort())n[t]&&(e+="-"+t);return e}let Be;try{Be={window:window,document:document}}catch(e){Be={window:{},document:{}}}const Ve=Be;function Ue(l){const n=[];let e=l;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)n.unshift(e),e=e.parentNode;return n}function We(l){return"[object Text]"==Object.prototype.toString.call(l)}function Ge(l){return"[object Range]"==Object.prototype.toString.apply(l)}function je(l){const n=l.ownerDocument.defaultView.getComputedStyle(l);return{top:parseInt(n.borderTopWidth,10),right:parseInt(n.borderRightWidth,10),bottom:parseInt(n.borderBottomWidth,10),left:parseInt(n.borderLeftWidth,10)}}const He=["top","right","bottom","left","width","height"];class Ye{constructor(l){const n=Ge(l);if(Object.defineProperty(this,"_source",{value:l._source||l,writable:!0,enumerable:!1}),$e(l)||n)if(n){const n=Ye.getDomRangeRects(l);Ze(this,Ye.getBoundingRect(n))}else Ze(this,l.getBoundingClientRect());else if(De(l)){const{innerWidth:n,innerHeight:e}=l;Ze(this,{top:0,right:n,bottom:e,left:0,width:n,height:e})}else Ze(this,l)}clone(){return new Ye(this)}moveTo(l,n){return this.top=n,this.right=l+this.width,this.bottom=n+this.height,this.left=l,this}moveBy(l,n){return this.top+=n,this.right+=l,this.left+=l,this.bottom+=n,this}getIntersection(l){const n={top:Math.max(this.top,l.top),right:Math.min(this.right,l.right),bottom:Math.min(this.bottom,l.bottom),left:Math.max(this.left,l.left),width:0,height:0};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new Ye(n)}getIntersectionArea(l){const n=this.getIntersection(l);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const l=this._source;let n=this.clone();if(!Xe(l)){let e=l.parentNode||l.commonAncestorContainer;for(;e&&!Xe(e);){const l=new Ye(e),t=n.getIntersection(l);if(!t)return null;t.getArea(){for(const n of l){const l=Ke._getElementCallbacks(n.target);if(l)for(const e of l)e(n)}})}}function Qe(l){return n=>n+l}function Je(l){let n=0;for(;l.previousSibling;)l=l.previousSibling,n++;return n}function lt(l,n,e){l.insertBefore(e,l.childNodes[n]||null)}function nt(l){return l&&l.nodeType===Node.COMMENT_NODE}function et(l){return!!(l&&l.getClientRects&&l.getClientRects().length)}function tt({element:l,target:n,positions:e,limiter:t,fitInViewport:o,viewportOffsetConfig:u}){Ll(n)&&(n=n()),Ll(t)&&(t=t());const i=function(l){return l&&l.parentNode?l.offsetParent===Ve.document.body?null:l.offsetParent:null}(l),a=new Ye(l),r=new Ye(n);let s;const d=o&&function(l){l=Object.assign({top:0,bottom:0,left:0,right:0},l);const n=new Ye(Ve.window);return n.top+=l.top,n.height-=l.top,n.bottom-=l.bottom,n.height-=l.bottom,n}(u)||null,c={targetRect:r,elementRect:a,positionedElementAncestor:i,viewportRect:d};if(t||o){const l=t&&new Ye(t).getVisible();Object.assign(c,{limiterRect:l,viewportRect:d}),s=function(l,n){const{elementRect:e}=n,t=e.getArea(),o=l.map(l=>new ut(l,n)).filter(l=>!!l.name);let u=0,i=null;for(const a of o){const{limiterIntersectionArea:l,viewportIntersectionArea:n}=a;if(l===t)return a;const e=n**2+l**2;e>u&&(u=e,i=a)}return i}(e,c)||new ut(e[0],c)}else s=new ut(e[0],c);return s}function ot(l){const{scrollX:n,scrollY:e}=Ve.window;return l.clone().moveBy(n,e)}Ke._observerInstance=null,Ke._elementCallbacks=null;class ut{constructor(l,n){const e=l(n.targetRect,n.elementRect,n.viewportRect);if(!e)return;const{left:t,top:o,name:u,config:i}=e;this.name=u,this.config=i,this._positioningFunctionCorrdinates={left:t,top:o},this._options=n}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const l=this._options.limiterRect;if(l){const n=this._options.viewportRect;if(!n)return l.getIntersectionArea(this._rect);{const e=l.getIntersection(n);if(e)return e.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const l=this._options.viewportRect;return l?l.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=ot(this._rect),this._options.positionedElementAncestor&&function(l,n){const e=ot(new Ye(n)),t=je(n);let o=0,u=0;o-=e.left,u-=e.top,o+=n.scrollLeft,u+=n.scrollTop,o-=t.left,u-=t.top,l.moveBy(o,u)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}function it(l){const n=l.parentNode;n&&n.removeChild(l)}function at(l,n,e){const t=n.clone().moveBy(0,e),o=n.clone().moveBy(0,-e),u=new Ye(l).excludeScrollbarsAndBorders();if(![o,t].every(l=>u.contains(l))){let{scrollX:i,scrollY:a}=l;dt(o,u)?a-=u.top-n.top+e:st(t,u)&&(a+=n.bottom-u.bottom+e),ct(n,u)?i-=u.left-n.left+e:pt(n,u)&&(i+=n.right-u.right+e),l.scrollTo(i,a)}}function rt(l,n){const e=ft(l);let t,o;for(;l!=e.document.body;)o=n(),(t=new Ye(l).excludeScrollbarsAndBorders()).contains(o)||(dt(o,t)?l.scrollTop-=t.top-o.top:st(o,t)&&(l.scrollTop+=o.bottom-t.bottom),ct(o,t)?l.scrollLeft-=t.left-o.left:pt(o,t)&&(l.scrollLeft+=o.right-t.right)),l=l.parentNode}function st(l,n){return l.bottom>n.bottom}function dt(l,n){return l.topn.right}function ft(l){return Ge(l)?l.startContainer.ownerDocument.defaultView:l.ownerDocument.defaultView}function mt(l){if(Ge(l)){let n=l.commonAncestorContainer;return We(n)&&(n=n.parentNode),n}return l.parentNode}function ht(l,n){const e=ft(l),t=new Ye(l);if(e===n)return t;{let l=e;for(;l!=n;){const n=l.frameElement,e=new Ye(n).excludeScrollbarsAndBorders();t.moveBy(e.left,e.top),l=l.parent}}return t}const gt={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},vt={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},bt=function(){const l={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let n=65;n<=90;n++)l[String.fromCharCode(n).toLowerCase()]=n;for(let n=48;n<=57;n++)l[n-48]=n;for(let n=112;n<=123;n++)l["f"+(n-111)]=n;for(const n of"`-=[];',./\\")l[n]=n.charCodeAt(0);return l}(),yt=Object.fromEntries(Object.entries(bt).map(([l,n])=>[n,l.charAt(0).toUpperCase()+l.slice(1)]));function xt(l){let n;if("string"==typeof l){if(!(n=bt[l.toLowerCase()]))throw new b("keyboard-unknown-key",null,{key:l})}else n=l.keyCode+(l.altKey?bt.alt:0)+(l.ctrlKey?bt.ctrl:0)+(l.shiftKey?bt.shift:0)+(l.metaKey?bt.cmd:0);return n}function At(l){return"string"==typeof l&&(l=function(l){return l.split("+").map(l=>l.trim())}(l)),l.map(l=>"string"==typeof l?function(l){if(l.endsWith("!"))return xt(l.slice(0,-1));const n=xt(l);return t.isMac&&n==bt.ctrl?bt.cmd:n}(l):l).reduce((l,n)=>n+l,0)}function _t(l){let n=At(l);return Object.entries(t.isMac?gt:vt).reduce((l,[e,t])=>(0!=(n&bt[e])&&(n&=~bt[e],l+=t),l),"")+(n?yt[n]:"")}function Ct(l,n){const e="ltr"===n;switch(l){case bt.arrowleft:return e?"left":"right";case bt.arrowright:return e?"right":"left";case bt.arrowup:return"up";case bt.arrowdown:return"down"}}function wt(l){return Array.isArray(l)?l:[l]}Ve.window.CKEDITOR_TRANSLATIONS||(Ve.window.CKEDITOR_TRANSLATIONS={});const Rt=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Lt(l){return Rt.includes(l)?"rtl":"ltr"}class Mt{constructor({uiLanguage:l="en",contentLanguage:n}={}){this.uiLanguage=l,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=Lt(this.uiLanguage),this.contentLanguageDirection=Lt(this.contentLanguage),this.t=((l,n)=>this._t(l,n))}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(l,n=[]){n=wt(n),"string"==typeof l&&(l={string:l});const e=l.plural?n[0]:1;return function(l,n){return l.replace(/%(\d+)/g,(l,e)=>e1===l?0:1),a=u[o];return"string"==typeof a?a:a[Number(i(e))]}(this.uiLanguage,l,e),n)}}class Et extends(E()){constructor(l={},n={}){super();const e=K(l);if(e||(n=l),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],e)for(const t of l)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(l,n){return this.addMany([l],n)}addMany(l,n){if(void 0===n)n=this._items.length;else if(n>this._items.length||n<0)throw new b("collection-add-item-invalid-index",this);let e=0;for(const t of l){const l=this._getItemIdBeforeAdding(t),o=n+e;this._items.splice(o,0,t),this._itemMap.set(l,t),this.fire("add",t,o),e++}return this.fire("change",{added:l,removed:[],index:n}),this}get(l){let n;if("string"==typeof l)n=this._itemMap.get(l);else{if("number"!=typeof l)throw new b("collection-get-invalid-arg",this);n=this._items[l]}return n||null}has(l){if("string"==typeof l)return this._itemMap.has(l);{const n=l[this._idProperty];return n&&this._itemMap.has(n)}}getIndex(l){let n;return(n="string"==typeof l?this._itemMap.get(l):l)?this._items.indexOf(n):-1}remove(l){const[n,e]=this._remove(l);return this.fire("change",{added:[],removed:[n],index:e}),n}map(l,n){return this._items.map(l,n)}find(l,n){return this._items.find(l,n)}filter(l,n){return this._items.filter(l,n)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const l=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:l,index:0})}bindTo(l){if(this._bindToCollection)throw new b("collection-bind-to-rebind",this);return this._bindToCollection=l,{as:l=>{this._setUpBindToBinding(n=>new l(n))},using:l=>{"function"==typeof l?this._setUpBindToBinding(l):this._setUpBindToBinding(n=>n[l])}}}_setUpBindToBinding(l){const n=this._bindToCollection,e=(e,t,o)=>{const u=n._bindToCollection==this,i=n._bindToInternalToExternalMap.get(t);if(u&&i)this._bindToExternalToInternalMap.set(t,i),this._bindToInternalToExternalMap.set(i,t);else{const e=l(t);if(!e)return void this._skippedIndexesFromExternal.push(o);let u=o;for(const l of this._skippedIndexesFromExternal)o>l&&u--;for(const l of n._skippedIndexesFromExternal)u>=l&&u++;this._bindToExternalToInternalMap.set(t,e),this._bindToInternalToExternalMap.set(e,t),this.add(e,u);for(let l=0;l{const t=this._bindToExternalToInternalMap.get(n);t&&this.remove(t),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((l,n)=>(en&&l.push(n),l),[])})}_getItemIdBeforeAdding(l){const n=this._idProperty;let e;if(n in l){if("string"!=typeof(e=l[n]))throw new b("collection-add-invalid-id",this);if(this.get(e))throw new b("collection-add-item-already-exists",this)}else l[n]=e=h();return e}_remove(l){let n,e,t,o=!1;const u=this._idProperty;if("string"==typeof l?(e=l,o=!(t=this._itemMap.get(e)),t&&(n=this._items.indexOf(t))):"number"==typeof l?(n=l,o=!(t=this._items[n]),t&&(e=t[u])):(e=(t=l)[u],o=-1==(n=this._items.indexOf(t))||!this._itemMap.get(e)),o)throw new b("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(e);const i=this._bindToInternalToExternalMap.get(t);return this._bindToInternalToExternalMap.delete(t),this._bindToExternalToInternalMap.delete(i),this.fire("remove",t,n),[t,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Ot(l){const n=l.next();return n.done?null:n.value}class St extends(qe(U())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(l){if(this._elements.has(l))throw new b("focustracker-add-element-already-exist",this);this.listenTo(l,"focus",()=>this._focus(l),{useCapture:!0}),this.listenTo(l,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(l)}remove(l){l===this.focusedElement&&this._blur(),this._elements.has(l)&&(this.stopListening(l),this._elements.delete(l))}destroy(){this.stopListening()}_focus(l){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=l,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class kt{constructor(){this._listener=new(qe())}listenTo(l){this._listener.listenTo(l,"keydown",(l,n)=>{this._listener.fire("_keydown:"+xt(n),n)})}set(l,n,e={}){const t=At(l),o=e.priority;this._listener.listenTo(this._listener,"_keydown:"+t,(l,e)=>{n(e,()=>{e.preventDefault(),e.stopPropagation(),l.stop()}),l.return=!0},{priority:o})}press(l){return!!this._listener.fire("_keydown:"+xt(l),l)}destroy(){this._listener.stopListening()}}function It(l){return K(l)?new Map(l):function(l){const n=new Map;for(const e in l)n.set(e,l[e]);return n}(l)}function Ft(l,n){return!!(e=l.charAt(n-1))&&1==e.length&&/[\ud800-\udbff]/.test(e)&&function(l){return!!l&&1==l.length&&/[\udc00-\udfff]/.test(l)}(l.charAt(n));var e}function Nt(l,n){return!!(e=l.charAt(n))&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e);var e}const Dt=function(){const l=/\p{Regional_Indicator}{2}/u.source,n="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map(l=>l.source).join("|")+")";return new RegExp(`${l}|${n}(?:\u200d${n})*`,"ug")}();function zt(l,n){const e=String(l).matchAll(Dt);return Array.from(e).some(l=>l.index{this.refresh()}),this.on("execute",l=>{this.isEnabled||l.stop()},{priority:"high"}),this.listenTo(l,"change:isReadOnly",(l,n,e)=>{e&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}get affectsData(){return this._affectsData}set affectsData(l){this._affectsData=l}refresh(){this.isEnabled=!0}forceDisabled(l){this._disableStack.add(l),1==this._disableStack.size&&(this.on("set:isEnabled",Bt,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(l){this._disableStack.delete(l),0==this._disableStack.size&&(this.off("set:isEnabled",Bt),this.refresh())}execute(...l){}destroy(){this.stopListening()}}function Bt(l){l.return=!1,l.stop()}class Vt extends Pt{constructor(l){super(l),this._childCommandsDefinitions=[]}refresh(){}execute(...l){const n=this._getFirstEnabledCommand();return!!n&&n.execute(l)}registerChildCommand(l,n={}){v(this._childCommandsDefinitions,{command:l,priority:n.priority||"normal"}),l.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const l=this._childCommandsDefinitions.find(({command:l})=>l.isEnabled);return l&&l.command}}class Ut extends(E()){constructor(l,n=[],e=[]){super(),this._context=l,this._plugins=new Map,this._availablePlugins=new Map;for(const t of n)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,o]of e)this._contextPlugins.set(t,o),this._contextPlugins.set(o,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const l of this._plugins)"function"==typeof l[0]&&(yield l)}get(l){const n=this._plugins.get(l);if(!n){let n=l;throw"function"==typeof l&&(n=l.pluginName||l.name),new b("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return n}has(l){return this._plugins.has(l)}init(l,n=[],e=[]){const t=this,o=this._context;!function l(n,e=new Set){n.forEach(n=>{a(n)&&(e.has(n)||(e.add(n),n.pluginName&&!t._availablePlugins.has(n.pluginName)&&t._availablePlugins.set(n.pluginName,n),n.requires&&l(n.requires,e)))})}(l),c(l);const u=[...function l(n,e=new Set){return n.map(l=>a(l)?l:t._availablePlugins.get(l)).reduce((n,t)=>e.has(t)?n:(e.add(t),t.requires&&(c(t.requires,t),l(t.requires,e).forEach(l=>n.add(l))),n.add(t)),new Set)}(l.filter(l=>!s(l,n)))];!function(l,n){for(const e of n){if("function"!=typeof e)throw new b("plugincollection-replace-plugin-invalid-type",null,{pluginItem:e});const n=e.pluginName;if(!n)throw new b("plugincollection-replace-plugin-missing-name",null,{pluginItem:e});if(e.requires&&e.requires.length)throw new b("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:n});const o=t._availablePlugins.get(n);if(!o)throw new b("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:n});const u=l.indexOf(o);if(-1===u){if(t._contextPlugins.has(o))return;throw new b("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:n})}if(o.requires&&o.requires.length)throw new b("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:n});l.splice(u,1,e),t._availablePlugins.set(n,e)}}(u,e);const i=u.map(l=>{let n=t._contextPlugins.get(l);return n=n||new l(o),t._add(l,n),n});return p(i,"init").then(()=>p(i,"afterInit")).then(()=>i);function a(l){return"function"==typeof l}function r(l){return a(l)&&l.isContextPlugin}function s(l,n){return n.some(n=>n===l||d(l)===n||d(n)===l)}function d(l){return a(l)?l.pluginName||l.name:l}function c(l,e=null){l.map(l=>a(l)?l:t._availablePlugins.get(l)||l).forEach(l=>{!function(l,n){if(!a(l)){if(n)throw new b("plugincollection-soft-required",o,{missingPlugin:l,requiredBy:d(n)});throw new b("plugincollection-plugin-not-found",o,{plugin:l})}}(l,e),function(l,n){if(r(n)&&!r(l))throw new b("plugincollection-context-required",o,{plugin:d(l),requiredBy:d(n)})}(l,e),function(l,e){if(e&&s(l,n))throw new b("plugincollection-required",o,{plugin:d(l),requiredBy:d(e)})}(l,e)})}function p(l,n){return l.reduce((l,e)=>e[n]?t._contextPlugins.has(e)?l:l.then(e[n].bind(e)):l,Promise.resolve())}}destroy(){const l=[];for(const[,n]of this)"function"!=typeof n.destroy||this._contextPlugins.has(n)||l.push(n.destroy());return Promise.all(l)}_add(l,n){this._plugins.set(l,n);const e=l.pluginName;if(e){if(this._plugins.has(e))throw new b("plugincollection-plugin-name-conflict",null,{pluginName:e,plugin1:this._plugins.get(e).constructor,plugin2:l});this._plugins.set(e,n)}}}class Wt{constructor(l){this.config=new ke(l,this.constructor.defaultConfig);const n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new Ut(this,n);const e=this.config.get("language")||{};this.locale=new Mt({uiLanguage:"string"==typeof e?e:e.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Et,this._contextOwner=null}initPlugins(){const l=this.config.get("plugins")||[],n=this.config.get("substitutePlugins")||[];for(const e of l.concat(n)){if("function"!=typeof e)throw new b("context-initplugins-constructor-only",null,{Plugin:e});if(!0!==e.isContextPlugin)throw new b("context-initplugins-invalid-plugin",null,{Plugin:e})}return this.plugins.init(l,[],n)}destroy(){return Promise.all(Array.from(this.editors,l=>l.destroy())).then(()=>this.plugins.destroy())}_addEditor(l,n){if(this._contextOwner)throw new b("context-addeditor-private-context");this.editors.add(l),n&&(this._contextOwner=l)}_removeEditor(l){return this.editors.has(l)&&this.editors.remove(l),this._contextOwner===l?this.destroy():Promise.resolve()}_getEditorConfig(){const l={};for(const n of this.config.names())["plugins","removePlugins","extraPlugins"].includes(n)||(l[n]=this.config.get(n));return l}static create(l){return new Promise(n=>{const e=new this(l);n(e.initPlugins().then(()=>e))})}}class Gt extends(U()){constructor(l){super(),this.context=l}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var jt=o(6062),Ht=o.n(jt),Yt=o(4717);Ht()(Yt.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Yt.Z.locals;const Zt=new WeakMap;function Xt(l){const{view:n,element:e,text:t,isDirectHost:o=!0,keepOnFocus:u=!1}=l,i=n.document;Zt.has(i)||(Zt.set(i,new Map),i.registerPostFixer(l=>$t(i,l)),i.on("change:isComposing",()=>{n.change(l=>$t(i,l))},{priority:"high"})),Zt.get(i).set(e,{text:t,isDirectHost:o,keepOnFocus:u,hostElement:o?e:null}),n.change(l=>$t(i,l))}function $t(l,n){const e=Zt.get(l),t=[];let o=!1;for(const[u,i]of e)i.isDirectHost&&(t.push(u),Kt(n,u,i)&&(o=!0));for(const[u,i]of e){if(i.isDirectHost)continue;const l=Qt(u);l&&(t.includes(l)||(i.hostElement=l,Kt(n,u,i)&&(o=!0)))}return o}function Kt(l,n,e){const{text:t,isDirectHost:o,hostElement:u}=e;let i=!1;return u.getAttribute("data-placeholder")!==t&&(l.setAttribute("data-placeholder",t,u),i=!0),(o||1==n.childCount)&&function(l,n){if(!l.isAttached())return!1;if(Array.from(l.getChildren()).some(l=>!l.is("uiElement")))return!1;const e=l.document,t=e.selection.anchor;return!(e.isComposing&&t&&t.parent===l||!n&&e.isFocused&&(!t||t.parent===l))}(u,e.keepOnFocus)?function(l,n){return!n.hasClass("ck-placeholder")&&(l.addClass("ck-placeholder",n),!0)}(l,u)&&(i=!0):function(l,n){return!!n.hasClass("ck-placeholder")&&(l.removeClass("ck-placeholder",n),!0)}(l,u)&&(i=!0),i}function Qt(l){if(l.childCount){const n=l.getChild(0);if(n.is("element")&&!n.is("uiElement")&&!n.is("attributeElement"))return n}return null}class Jt{is(){throw new Error("is() method is abstract")}}const lo=function(l){return Ee(l,4)};class no extends(E(Jt)){constructor(l){super(),this.document=l,this.parent=null}get index(){let l;if(!this.parent)return null;if(-1==(l=this.parent.getChildIndex(this)))throw new b("view-node-not-found-in-parent",this);return l}get nextSibling(){const l=this.index;return null!==l&&this.parent.getChild(l+1)||null}get previousSibling(){const l=this.index;return null!==l&&this.parent.getChild(l-1)||null}get root(){let l=this;for(;l.parent;)l=l.parent;return l}isAttached(){return this.root.is("rootElement")}getPath(){const l=[];let n=this;for(;n.parent;)l.unshift(n.index),n=n.parent;return l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}getCommonAncestor(l,n={}){const e=this.getAncestors(n),t=l.getAncestors(n);let o=0;for(;e[o]==t[o]&&e[o];)o++;return 0===o?null:e[o-1]}isBefore(l){if(this==l)return!1;if(this.root!==l.root)return!1;const n=this.getPath(),e=l.getPath(),t=$(n,e);switch(t){case"prefix":return!0;case"extension":return!1;default:return n[t]l.data.length)throw new b("view-textproxy-wrong-offsetintext",this);if(e<0||n+e>l.data.length)throw new b("view-textproxy-wrong-length",this);this.data=l.data.substring(n,n+e),this.offsetInText=n}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(l={}){const n=[];let e=l.includeSelf?this.textNode:this.parent;for(;null!==e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}}to.prototype.is=function(l){return"$textProxy"===l||"view:$textProxy"===l||"textProxy"===l||"view:textProxy"===l};class oo{constructor(...l){this._patterns=[],this.add(...l)}add(...l){for(let n of l)("string"==typeof n||n instanceof RegExp)&&(n={name:n}),this._patterns.push(n)}match(...l){for(const n of l)for(const l of this._patterns){const e=uo(n,l);if(e)return{element:n,pattern:l,match:e}}return null}matchAll(...l){const n=[];for(const e of l)for(const l of this._patterns){const t=uo(e,l);t&&n.push({element:e,pattern:l,match:t})}return n.length>0?n:null}getElementName(){if(1!==this._patterns.length)return null;const l=this._patterns[0],n=l.name;return"function"==typeof l||!n||n instanceof RegExp?null:n}}function uo(l,n){if("function"==typeof n)return n(l);const e={};return n.name&&(e.name=function(l,n){return l instanceof RegExp?!!n.match(l):l===n}(n.name,l.name),!e.name)||n.attributes&&(e.attributes=function(l,n){const e=new Set(n.getAttributeKeys());return xl(l)?(void 0!==l.style&&y("matcher-pattern-deprecated-attributes-style-key",l),void 0!==l.class&&y("matcher-pattern-deprecated-attributes-class-key",l)):(e.delete("style"),e.delete("class")),io(l,e,l=>n.getAttribute(l))}(n.attributes,l),!e.attributes)||n.classes&&(e.classes=function(l,n){return io(l,n.getClassNames(),()=>{})}(n.classes,l),!e.classes)||n.styles&&(e.styles=function(l,n){return io(l,n.getStyleNames(!0),l=>n.getStyle(l))}(n.styles,l),!e.styles)?null:e}function io(l,n,e){const t=function(l){return Array.isArray(l)?l.map(l=>xl(l)?(void 0!==l.key&&void 0!==l.value||y("matcher-pattern-missing-key-or-value",l),[l.key,l.value]):[l,!0]):xl(l)?Object.entries(l):[[l,!0]]}(l),o=Array.from(n),u=[];if(t.forEach(([l,n])=>{o.forEach(t=>{(function(l,n){return!0===l||l===t||l instanceof RegExp&&t.match(l)})(l)&&function(l,n,e){if(!0===l)return!0;const t=e(n);return l===t||l instanceof RegExp&&!!String(t).match(l)}(n,t,e)&&u.push(t)})}),t.length&&!(u.lengtho?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var u=Array(o);++t0){if(++n>=800)return arguments[0]}else n=0;return l.apply(void 0,arguments)}}(No),qo=function(l,n){return zo(function(l,n,e){return n=Io(void 0===n?l.length-1:n,0),function(){for(var t=arguments,o=-1,u=Io(t.length-n,0),i=Array(u);++o1?e[o-1]:void 0,i=o>2?e[2]:void 0;for(u=l.length>3&&"function"==typeof u?(o--,u):void 0,i&&function(l,n,e){if(!D(e))return!1;var t=typeof n;return!!("number"==t?En(e)&&pn(n,e.length):"string"==t&&n in e)&&Al(e[n],l)}(e[0],e[1],i)&&(u=o<3?void 0:u,o=1),n=Object(n);++tn===l);return Array.isArray(n)}set(l,n){if(D(l))for(const[e,t]of Object.entries(l))this._styleProcessor.toNormalizedForm(e,t,this._styles);else this._styleProcessor.toNormalizedForm(l,n,this._styles)}remove(l){const n=Wo(l);Ro(this._styles,n),delete this._styles[l],this._cleanEmptyObjectsOnPath(n)}getNormalized(l){return this._styleProcessor.getNormalized(l,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(l=>l.join(":")).sort().join(";")+";"}getAsString(l){if(this.isEmpty)return;if(this._styles[l]&&!D(this._styles[l]))return this._styles[l];const n=this._styleProcessor.getReducedForm(l,this._styles).find(([n])=>n===l);return Array.isArray(n)?n[1]:void 0}getStyleNames(l=!1){return this.isEmpty?[]:l?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([l])=>l)}clear(){this._styles={}}_getStylesEntries(){const l=[],n=Object.keys(this._styles);for(const e of n)l.push(...this._styleProcessor.getReducedForm(e,this._styles));return l}_cleanEmptyObjectsOnPath(l){const n=l.split(".");if(!(n.length>1))return;const e=n.splice(0,n.length-1).join("."),t=Lo(this._styles,e);t&&!Array.from(Object.keys(t)).length&&this.remove(e)}}class Uo{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(l,n,e){if(D(n))Go(e,Wo(l),n);else if(this._normalizers.has(l)){const t=this._normalizers.get(l),{path:o,value:u}=t(n);Go(e,o,u)}else Go(e,l,n)}getNormalized(l,n){if(!l)return Po({},n);if(void 0!==n[l])return n[l];if(this._extractors.has(l)){const e=this._extractors.get(l);if("string"==typeof e)return Lo(n,e);const t=e(l,n);if(t)return t}return Lo(n,Wo(l))}getReducedForm(l,n){const e=this.getNormalized(l,n);return void 0===e?[]:this._reducers.has(l)?this._reducers.get(l)(e):[[l,e]]}getStyleNames(l){const n=Array.from(this._consumables.keys()).filter(n=>{const e=this.getNormalized(n,l);return e&&"object"==typeof e?Object.keys(e).length:e}),e=new Set([...n,...Object.keys(l)]);return Array.from(e.values())}getRelatedStyles(l){return this._consumables.get(l)||[]}setNormalizer(l,n){this._normalizers.set(l,n)}setExtractor(l,n){this._extractors.set(l,n)}setReducer(l,n){this._reducers.set(l,n)}setStyleRelation(l,n){this._mapStyleNames(l,n);for(const e of n)this._mapStyleNames(e,[l])}_mapStyleNames(l,n){this._consumables.has(l)||this._consumables.set(l,[]),this._consumables.get(l).push(...n)}}function Wo(l){return l.replace("-",".")}function Go(l,n,e){let t=e;D(e)&&(t=Po({},Lo(l,n),e)),Bo(l,n,t)}class jo extends no{constructor(l,n,e,t){if(super(l),this.name=n,this._attrs=function(l){const n=It(e);for(const[e,t]of n)null===t?n.delete(e):"string"!=typeof t&&n.set(e,String(t));return n}(),this._children=[],t&&this._insertChild(0,t),this._classes=new Set,this._attrs.has("class")){const l=this._attrs.get("class");Ho(this._classes,l),this._attrs.delete("class")}this._styles=new Vo(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(l){return this._children[l]}getChildIndex(l){return this._children.indexOf(l)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(l){if("class"==l)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==l){const l=this._styles.toString();return""==l?void 0:l}return this._attrs.get(l)}hasAttribute(l){return"class"==l?this._classes.size>0:"style"==l?!this._styles.isEmpty:this._attrs.has(l)}isSimilar(l){if(!(l instanceof jo))return!1;if(this===l)return!0;if(this.name!=l.name)return!1;if(this._attrs.size!==l._attrs.size||this._classes.size!==l._classes.size||this._styles.size!==l._styles.size)return!1;for(const[n,e]of this._attrs)if(!l._attrs.has(n)||l._attrs.get(n)!==e)return!1;for(const n of this._classes)if(!l._classes.has(n))return!1;for(const n of this._styles.getStyleNames())if(!l._styles.has(n)||l._styles.getAsString(n)!==this._styles.getAsString(n))return!1;return!0}hasClass(...l){for(const n of l)if(!this._classes.has(n))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(l){return this._styles.getAsString(l)}getNormalizedStyle(l){return this._styles.getNormalized(l)}getStyleNames(l){return this._styles.getStyleNames(l)}hasStyle(...l){for(const n of l)if(!this._styles.has(n))return!1;return!0}findAncestor(...l){const n=new oo(...l);let e=this.parent;for(;e&&!e.is("documentFragment");){if(n.match(e))return e;e=e.parent}return null}getCustomProperty(l){return this._customProperties.get(l)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const l=Array.from(this._classes).sort().join(","),n=this._styles.toString(),e=Array.from(this._attrs).map(l=>`${l[0]}="${l[1]}"`).sort().join(" ");return this.name+(""==l?"":` class="${l}"`)+(n?` style="${n}"`:"")+(""==e?"":` ${e}`)}shouldRenderUnsafeAttribute(l){return this._unsafeAttributesToRender.includes(l)}_clone(l=!1){const n=[];if(l)for(const t of this.getChildren())n.push(t._clone(l));const e=new this.constructor(this.document,this.name,this._attrs,n);return e._classes=new Set(this._classes),e._styles.set(this._styles.getNormalized()),e._customProperties=new Map(this._customProperties),e.getFillerOffset=this.getFillerOffset,e._unsafeAttributesToRender=this._unsafeAttributesToRender,e}_appendChild(l){return this._insertChild(this.childCount,l)}_insertChild(l,n){this._fireChange("children",this);let e=0;const t=function(l,n){return"string"==typeof n?[new eo(l,n)]:(K(n)||(n=[n]),Array.from(n).map(n=>"string"==typeof n?new eo(l,n):n instanceof to?new eo(l,n.data):n))}(this.document,n);for(const o of t)null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(l,0,o),l++,e++;return e}_removeChildren(l,n=1){this._fireChange("children",this);for(let e=l;e0&&(this._classes.clear(),!0):"style"==l?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(l)}_addClass(l){this._fireChange("attributes",this);for(const n of wt(l))this._classes.add(n)}_removeClass(l){this._fireChange("attributes",this);for(const n of wt(l))this._classes.delete(n)}_setStyle(l,n){this._fireChange("attributes",this),xl(l)?this._styles.set(l):this._styles.set(l,n)}_removeStyle(l){this._fireChange("attributes",this);for(const n of wt(l))this._styles.remove(n)}_setCustomProperty(l,n){this._customProperties.set(l,n)}_removeCustomProperty(l){return this._customProperties.delete(l)}}function Ho(l,n){const e=n.split(/\s+/);l.clear(),e.forEach(n=>l.add(n))}jo.prototype.is=function(l,n){return n?n===this.name&&("element"===l||"view:element"===l):"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Yo extends jo{constructor(...l){super(...l),this.getFillerOffset=Zo}}function Zo(){const l=[...this.getChildren()],n=l[this.childCount-1];if(n&&n.is("element","br"))return this.childCount;for(const e of l)if(!e.is("uiElement"))return null;return this.childCount}Yo.prototype.is=function(l,n){return n?n===this.name&&("containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Xo extends(U(Yo)){constructor(...l){super(...l);const n=l[0];this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(n),this.bind("isFocused").to(n,"isFocused",l=>l&&n.selection.editableElement==this),this.listenTo(n.selection,"change",()=>{this.isFocused=n.isFocused&&n.selection.editableElement==this})}destroy(){this.stopListening()}}Xo.prototype.is=function(l,n){return n?n===this.name&&("editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};const $o=Symbol("rootName");class Ko extends Xo{constructor(l,n){super(l,n),this.rootName="main"}get rootName(){return this.getCustomProperty($o)}set rootName(l){this._setCustomProperty($o,l)}set _name(l){this.name=l}}Ko.prototype.is=function(l,n){return n?n===this.name&&("rootElement"===l||"view:rootElement"===l||"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"rootElement"===l||"view:rootElement"===l||"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Qo{constructor(l={}){if(!l.boundaries&&!l.startPosition)throw new b("view-tree-walker-no-start-position",null);if(l.direction&&"forward"!=l.direction&&"backward"!=l.direction)throw new b("view-tree-walker-unknown-direction",l.startPosition,{direction:l.direction});this.boundaries=l.boundaries||null,l.startPosition?this.position=Jo._createAt(l.startPosition):this.position=Jo._createAt(l.boundaries["backward"==l.direction?"end":"start"]),this.direction=l.direction||"forward",this.singleCharacters=!!l.singleCharacters,this.shallow=!!l.shallow,this.ignoreElementEnd=!!l.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(l){let n,e,t;do{t=this.position,({done:n,value:e}=this.next())}while(!n&&l(e));n||(this.position=t)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let l=this.position.clone();const n=this.position,e=l.parent;if(null===e.parent&&l.offset===e.childCount)return{done:!0,value:void 0};if(e===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let t;if(e instanceof eo){if(l.isAtEnd)return this.position=Jo._createAfter(e),this._next();t=e.data[l.offset]}else t=e.getChild(l.offset);if(t instanceof jo)return this.shallow?l.offset++:l=new Jo(t,0),this.position=l,this._formatReturnValue("elementStart",t,n,l,1);if(t instanceof eo){if(this.singleCharacters)return l=new Jo(t,0),this.position=l,this._next();{let e,o=t.data.length;return t==this._boundaryEndParent?(o=this.boundaries.end.offset,e=new to(t,0,o),l=Jo._createAfter(e)):(e=new to(t,0,t.data.length),l.offset++),this.position=l,this._formatReturnValue("text",e,n,l,o)}}if("string"==typeof t){let t;t=this.singleCharacters?1:(e===this._boundaryEndParent?this.boundaries.end.offset:e.data.length)-l.offset;const o=new to(e,l.offset,t);return l.offset+=t,this.position=l,this._formatReturnValue("text",o,n,l,t)}return l=Jo._createAfter(e),this.position=l,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",e,n,l)}_previous(){let l=this.position.clone();const n=this.position,e=l.parent;if(null===e.parent&&0===l.offset)return{done:!0,value:void 0};if(e==this._boundaryStartParent&&l.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let t;if(e instanceof eo){if(l.isAtStart)return this.position=Jo._createBefore(e),this._previous();t=e.data[l.offset-1]}else t=e.getChild(l.offset-1);if(t instanceof jo)return this.shallow?(l.offset--,this.position=l,this._formatReturnValue("elementStart",t,n,l,1)):(l=new Jo(t,t.childCount),this.position=l,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",t,n,l));if(t instanceof eo){if(this.singleCharacters)return l=new Jo(t,t.data.length),this.position=l,this._previous();{let e,o=t.data.length;if(t==this._boundaryStartParent){const n=this.boundaries.start.offset;o=(e=new to(t,n,t.data.length-n)).data.length,l=Jo._createBefore(e)}else e=new to(t,0,t.data.length),l.offset--;return this.position=l,this._formatReturnValue("text",e,n,l,o)}}if("string"==typeof t){let t;if(this.singleCharacters)t=1;else{const n=e===this._boundaryStartParent?this.boundaries.start.offset:0;t=l.offset-n}l.offset-=t;const o=new to(e,l.offset,t);return this.position=l,this._formatReturnValue("text",o,n,l,t)}return l=Jo._createBefore(e),this.position=l,this._formatReturnValue("elementStart",e,n,l,1)}_formatReturnValue(l,n,e,t,o){return n instanceof to&&(n.offsetInText+n.data.length==n.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?e=Jo._createAfter(n.textNode):(t=Jo._createAfter(n.textNode),this.position=t)),0===n.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?e=Jo._createBefore(n.textNode):(t=Jo._createBefore(n.textNode),this.position=t))),{done:!1,value:{type:l,item:n,previousPosition:e,nextPosition:t,length:o}}}}class Jo extends Jt{constructor(l,n){super(),this.parent=l,this.offset=n}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const l=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===l}get root(){return this.parent.root}get editableElement(){let l=this.parent;for(;!(l instanceof Xo);){if(!l.parent)return null;l=l.parent}return l}getShiftedBy(l){const n=Jo._createAt(this),e=n.offset+l;return n.offset=e<0?0:e,n}getLastMatchingPosition(l,n={}){n.startPosition=this;const e=new Qo(n);return e.skip(l),e.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(l){const n=this.getAncestors(),e=l.getAncestors();let t=0;for(;n[t]==e[t]&&n[t];)t++;return 0===t?null:n[t-1]}isEqual(l){return this.parent==l.parent&&this.offset==l.offset}isBefore(l){return"before"==this.compareWith(l)}isAfter(l){return"after"==this.compareWith(l)}compareWith(l){if(this.root!==l.root)return"different";if(this.isEqual(l))return"same";const n=this.parent.is("node")?this.parent.getPath():[],e=l.parent.is("node")?l.parent.getPath():[];n.push(this.offset),e.push(l.offset);const t=$(n,e);switch(t){case"prefix":return"before";case"extension":return"after";default:return n[t]0?new this(e,t):new this(t,e)}static _createIn(l){return this._createFromParentsAndOffsets(l,0,l,l.childCount)}static _createOn(l){const n=l.is("$textProxy")?l.offsetSize:1;return this._createFromPositionAndShift(Jo._createBefore(l),n)}}function nu(l){return!(!l.item.is("attributeElement")&&!l.item.is("uiElement"))}lu.prototype.is=function(l){return"range"===l||"view:range"===l};class eu extends(E(Jt)){constructor(...l){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",l.length&&this.setTo(...l)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const l=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?l.end:l.start).clone()}get focus(){if(!this._ranges.length)return null;const l=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?l.start:l.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const l of this._ranges)yield l.clone()}getFirstRange(){let l=null;for(const n of this._ranges)l&&!n.start.isBefore(l.start)||(l=n);return l?l.clone():null}getLastRange(){let l=null;for(const n of this._ranges)l&&!n.end.isAfter(l.end)||(l=n);return l?l.clone():null}getFirstPosition(){const l=this.getFirstRange();return l?l.start.clone():null}getLastPosition(){const l=this.getLastRange();return l?l.end.clone():null}isEqual(l){if(this.isFake!=l.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=l.fakeSelectionLabel)return!1;if(this.rangeCount!=l.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(l.anchor)||!this.focus.isEqual(l.focus))return!1;for(const n of this._ranges){let e=!1;for(const t of l._ranges)if(n.isEqual(t)){e=!0;break}if(!e)return!1}return!0}isSimilar(l){if(this.isBackward!=l.isBackward)return!1;const n=X(this.getRanges());if(n!=X(l.getRanges()))return!1;if(0==n)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let t of l.getRanges())if(t=t.getTrimmed(),e.start.isEqual(t.start)&&e.end.isEqual(t.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...l){let[n,e,t]=l;if("object"==typeof e&&(t=e,e=void 0),null===n)this._setRanges([]),this._setFakeOptions(t);else if(n instanceof eu||n instanceof tu)this._setRanges(n.getRanges(),n.isBackward),this._setFakeOptions({fake:n.isFake,label:n.fakeSelectionLabel});else if(n instanceof lu)this._setRanges([n],t&&t.backward),this._setFakeOptions(t);else if(n instanceof Jo)this._setRanges([new lu(n)]),this._setFakeOptions(t);else if(n instanceof no){const l=!!t&&!!t.backward;let o;if(void 0===e)throw new b("view-selection-setto-required-second-parameter",this);o="in"==e?lu._createIn(n):"on"==e?lu._createOn(n):new lu(Jo._createAt(n,e)),this._setRanges([o],l),this._setFakeOptions(t)}else{if(!K(n))throw new b("view-selection-setto-not-selectable",this);this._setRanges(n,t&&t.backward),this._setFakeOptions(t)}this.fire("change")}setFocus(l,n){if(null===this.anchor)throw new b("view-selection-setfocus-no-ranges",this);const e=Jo._createAt(l,n);if("same"==e.compareWith(this.focus))return;const t=this.anchor;this._ranges.pop(),"before"==e.compareWith(t)?this._addRange(new lu(e,t),!0):this._addRange(new lu(t,e)),this.fire("change")}_setRanges(l,n=!1){l=Array.from(l),this._ranges=[];for(const e of l)this._addRange(e);this._lastRangeBackward=!!n}_setFakeOptions(l={}){this._isFake=!!l.fake,this._fakeSelectionLabel=l.fake&&l.label||""}_addRange(l,n=!1){if(!(l instanceof lu))throw new b("view-selection-add-range-not-range",this);this._pushRange(l),this._lastRangeBackward=!!n}_pushRange(l){for(const n of this._ranges)if(l.isIntersecting(n))throw new b("view-selection-range-intersects",this,{addedRange:l,intersectingRange:n});this._ranges.push(new lu(l.start,l.end))}}eu.prototype.is=function(l){return"selection"===l||"view:selection"===l};class tu extends(E(Jt)){constructor(...l){super(),this._selection=new eu,this._selection.delegate("change").to(this),l.length&&this._selection.setTo(...l)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(l){return this._selection.isEqual(l)}isSimilar(l){return this._selection.isSimilar(l)}_setTo(...l){this._selection.setTo(...l)}_setFocus(l,n){this._selection.setFocus(l,n)}}tu.prototype.is=function(l){return"selection"===l||"documentSelection"==l||"view:selection"==l||"view:documentSelection"==l};class ou extends f{constructor(l,n,e){super(l,n),this.startRange=e,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const uu=Symbol("bubbling contexts");function iu(l){return class extends l{fire(l,...n){try{const e=l instanceof f?l:new f(this,l),t=du(this);if(!t.size)return;if(au(e,"capturing",this),ru(t,"$capture",e,...n))return e.return;const o=e.startRange||this.selection.getFirstRange(),u=o?o.getContainedElement():null,i=!!u&&Boolean(su(t,u));let a=u||function(l){if(!l)return null;const n=l.start.parent,e=l.end.parent,t=n.getPath(),o=e.getPath();return t.length>o.length?n:e}(o);if(au(e,"atTarget",a),!i){if(ru(t,"$text",e,...n))return e.return;au(e,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(ru(t,"$root",e,...n))return e.return}else if(a.is("element")&&ru(t,a.name,e,...n))return e.return;if(ru(t,a,e,...n))return e.return;au(e,"bubbling",a=a.parent)}return au(e,"bubbling",this),ru(t,"$document",e,...n),e.return}catch(l){b.rethrowUnexpectedError(l,this)}}_addEventListener(l,n,e){const t=wt(e.context||"$document"),o=du(this);for(const u of t){let t=o.get(u);t||(t=new(E()),o.set(u,t)),this.listenTo(t,l,n,e)}}_removeEventListener(l,n){const e=du(this);for(const t of e.values())this.stopListening(t,l,n)}}}{const l=iu(Object);["fire","_addEventListener","_removeEventListener"].forEach(n=>{iu[n]=l.prototype[n]})}function au(l,n,e){l instanceof ou&&(l._eventPhase=n,l._currentTarget=e)}function ru(l,n,e,...t){const o="string"==typeof n?l.get(n):su(l,n);return!!o&&(o.fire(e,...t),e.stop.called)}function su(l,n){for(const[e,t]of l)if("function"==typeof e&&e(n))return t;return null}function du(l){return l[uu]||(l[uu]=new Map),l[uu]}class cu extends(iu(U())){constructor(l){super(),this.selection=new tu,this.roots=new Et({idProperty:"rootName"}),this.stylesProcessor=l,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("_isFocusChanging",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(l="main"){return this.roots.get(l)}registerPostFixer(l){this._postFixers.add(l)}destroy(){this.roots.map(l=>l.destroy()),this.stopListening()}_callPostFixers(l){let n=!1;do{for(const e of this._postFixers)if(n=e(l))break}while(n)}}class pu extends jo{constructor(...l){super(...l),this.getFillerOffset=fu,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new b("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(l){return null!==this.id||null!==l.id?this.id===l.id:super.isSimilar(l)&&this.priority==l.priority}_clone(l=!1){const n=super._clone(l);return n._priority=this._priority,n._id=this._id,n}}function fu(){if(mu(this))return null;let l=this.parent;for(;l&&l.is("attributeElement");){if(mu(l)>1)return null;l=l.parent}return!l||mu(l)>1?null:this.childCount}function mu(l){return Array.from(l.getChildren()).filter(l=>!l.is("uiElement")).length}pu.DEFAULT_PRIORITY=10,pu.prototype.is=function(l,n){return n?n===this.name&&("attributeElement"===l||"view:attributeElement"===l||"element"===l||"view:element"===l):"attributeElement"===l||"view:attributeElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class hu extends jo{constructor(l,n,e,t){super(l,n,e,t),this.getFillerOffset=gu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-emptyelement-cannot-add",[this,n]);return 0}}function gu(){return null}hu.prototype.is=function(l,n){return n?n===this.name&&("emptyElement"===l||"view:emptyElement"===l||"element"===l||"view:element"===l):"emptyElement"===l||"view:emptyElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class vu extends jo{constructor(...l){super(...l),this.getFillerOffset=bu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-uielement-cannot-add",[this,n]);return 0}render(l,n){return this.toDomElement(l)}toDomElement(l){const n=l.createElement(this.name);for(const e of this.getAttributeKeys())n.setAttribute(e,this.getAttribute(e));return n}}function bu(){return null}vu.prototype.is=function(l,n){return n?n===this.name&&("uiElement"===l||"view:uiElement"===l||"element"===l||"view:element"===l):"uiElement"===l||"view:uiElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class yu extends jo{constructor(...l){super(...l),this.getFillerOffset=xu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-rawelement-cannot-add",[this,n]);return 0}render(){}}function xu(){return null}yu.prototype.is=function(l,n){return n?n===this.name&&("rawElement"===l||"view:rawElement"===l||"element"===l||"view:element"===l):"rawElement"===l||"view:rawElement"===l||l===this.name||l==="view:"+this.name||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Au extends(E(Jt)){constructor(l,n){super(),this.document=l,this._children=[],n&&this._insertChild(0,n)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}_appendChild(l){return this._insertChild(this.childCount,l)}getChild(l){return this._children[l]}getChildIndex(l){return this._children.indexOf(l)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(l,n){this._fireChange("children",this);let e=0;const t=function(l,n){return"string"==typeof n?[new eo(l,n)]:(K(n)||(n=[n]),Array.from(n).map(n=>"string"==typeof n?new eo(l,n):n instanceof to?new eo(l,n.data):n))}(this.document,n);for(const o of t)null!==o.parent&&o._remove(),o.parent=this,this._children.splice(l,0,o),l++,e++;return e}_removeChildren(l,n=1){this._fireChange("children",this);for(let e=l;et instanceof l))throw new b("view-writer-insert-invalid-node-type",e);t.is("$text")||l(t.getChildren(),e)}}(n=K(n)?[...n]:[n],this.document);const e=n.reduce((l,n)=>{const e=l[l.length-1],t=!n.is("uiElement");return e&&e.breakAttributes==t?e.nodes.push(n):l.push({breakAttributes:t,nodes:[n]}),l},[]);let t=null,o=l;for(const{nodes:u,breakAttributes:i}of e){const l=this._insertNodes(o,u,i);t||(t=l.start),o=l.end}return t?new lu(t,o):new lu(l)}remove(l){const n=l instanceof lu?l:lu._createOn(l);if(Su(n,this.document),n.isCollapsed)return new Au(this.document);const{start:e,end:t}=this._breakAttributesRange(n,!0),o=e.parent,u=t.offset-e.offset,i=o._removeChildren(e.offset,u);for(const r of i)this._removeFromClonedElementsGroup(r);const a=this.mergeAttributes(e);return n.start=a,n.end=a.clone(),new Au(this.document,i)}clear(l,n){Su(l,this.document);const e=l.getWalker({direction:"backward",ignoreElementEnd:!0});for(const t of e){const e=t.item;let o;if(e.is("element")&&n.isSimilar(e))o=lu._createOn(e);else if(!t.nextPosition.isAfter(l.start)&&e.is("$textProxy")){const l=e.getAncestors().find(l=>l.is("element")&&n.isSimilar(l));l&&(o=lu._createIn(l))}o&&(o.end.isAfter(l.end)&&(o.end=l.end),o.start.isBefore(l.start)&&(o.start=l.start),this.remove(o))}}move(l,n){let e;if(n.isAfter(l.end)){const t=(n=this._breakAttributes(n,!0)).parent,o=t.childCount;l=this._breakAttributesRange(l,!0),e=this.remove(l),n.offset+=t.childCount-o}else e=this.remove(l);return this.insert(n,e)}wrap(l,n){if(!(n instanceof pu))throw new b("view-writer-wrap-invalid-attribute",this.document);if(Su(l,this.document),l.isCollapsed){let t=l.start;t.parent.is("element")&&(e=t.parent,!Array.from(e.getChildren()).some(l=>!l.is("uiElement")))&&(t=t.getLastMatchingPosition(l=>l.item.is("uiElement"))),t=this._wrapPosition(t,n);const o=this.document.selection;return o.isCollapsed&&o.getFirstPosition().isEqual(l.start)&&this.setSelection(t),new lu(t)}return this._wrapRange(l,n);var e}unwrap(l,n){if(!(n instanceof pu))throw new b("view-writer-unwrap-invalid-attribute",this.document);if(Su(l,this.document),l.isCollapsed)return l;const{start:e,end:t}=this._breakAttributesRange(l,!0),o=e.parent,u=this._unwrapChildren(o,e.offset,t.offset,n),i=this.mergeAttributes(u.start);i.isEqual(u.start)||u.end.offset--;const a=this.mergeAttributes(u.end);return new lu(i,a)}rename(l,n){const e=new Yo(this.document,l,n.getAttributes());return this.insert(Jo._createAfter(n),e),this.move(lu._createIn(n),Jo._createAt(e,0)),this.remove(lu._createOn(n)),e}clearClonedElementsGroup(l){this._cloneGroups.delete(l)}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(...l){return new lu(...l)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}createSlot(l){if(!this._slotFactory)throw new b("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,l)}_registerSlotFactory(l){this._slotFactory=l}_clearSlotFactory(){this._slotFactory=null}_insertNodes(l,n,e){let t,o;if(!(t=e?Cu(l):l.parent.is("$text")?l.parent.parent:l.parent))throw new b("view-writer-invalid-position-container",this.document);o=e?this._breakAttributes(l,!0):l.parent.is("$text")?Lu(l):l;const u=t._insertChild(o.offset,n);for(const s of n)this._addToClonedElementsGroup(s);const i=o.getShiftedBy(u),a=this.mergeAttributes(o);a.isEqual(o)||i.offset--;const r=this.mergeAttributes(i);return new lu(a,r)}_wrapChildren(l,n,e,t){let o=n;const u=[];for(;o!1),l.parent._insertChild(l.offset,e);const t=new lu(l,l.getShiftedBy(1));this.wrap(t,n);const o=new Jo(e.parent,e.index);e._remove();const u=o.nodeBefore,i=o.nodeAfter;return u instanceof eo&&i instanceof eo?Mu(u,i):Ru(o)}_wrapAttributeElement(l,n){if(!ku(l,n))return!1;if(l.name!==n.name||l.priority!==n.priority)return!1;for(const e of l.getAttributeKeys())if("class"!==e&&"style"!==e&&n.hasAttribute(e)&&n.getAttribute(e)!==l.getAttribute(e))return!1;for(const e of l.getStyleNames())if(n.hasStyle(e)&&n.getStyle(e)!==l.getStyle(e))return!1;for(const e of l.getAttributeKeys())"class"!==e&&"style"!==e&&(n.hasAttribute(e)||this.setAttribute(e,l.getAttribute(e),n));for(const e of l.getStyleNames())n.hasStyle(e)||this.setStyle(e,l.getStyle(e),n);for(const e of l.getClassNames())n.hasClass(e)||this.addClass(e,n);return!0}_unwrapAttributeElement(l,n){if(!ku(l,n))return!1;if(l.name!==n.name||l.priority!==n.priority)return!1;for(const e of l.getAttributeKeys())if("class"!==e&&"style"!==e&&(!n.hasAttribute(e)||n.getAttribute(e)!==l.getAttribute(e)))return!1;if(!n.hasClass(...l.getClassNames()))return!1;for(const e of l.getStyleNames())if(!n.hasStyle(e)||n.getStyle(e)!==l.getStyle(e))return!1;for(const e of l.getAttributeKeys())"class"!==e&&"style"!==e&&this.removeAttribute(e,n);return this.removeClass(Array.from(l.getClassNames()),n),this.removeStyle(Array.from(l.getStyleNames()),n),!0}_breakAttributesRange(l,n=!1){const e=l.start,t=l.end;if(Su(l,this.document),l.isCollapsed){const e=this._breakAttributes(l.start,n);return new lu(e,e)}const o=this._breakAttributes(t,n),u=o.parent.childCount,i=this._breakAttributes(e,n);return o.offset+=o.parent.childCount-u,new lu(i,o)}_breakAttributes(l,n=!1){const e=l.offset,t=l.parent;if(l.parent.is("emptyElement"))throw new b("view-writer-cannot-break-empty-element",this.document);if(l.parent.is("uiElement"))throw new b("view-writer-cannot-break-ui-element",this.document);if(l.parent.is("rawElement"))throw new b("view-writer-cannot-break-raw-element",this.document);if(!n&&t.is("$text")&&Ou(t.parent))return l.clone();if(Ou(t))return l.clone();if(t.is("$text"))return this._breakAttributes(Lu(l),n);if(e==t.childCount){const l=new Jo(t.parent,t.index+1);return this._breakAttributes(l,n)}if(0===e){const l=new Jo(t.parent,t.index);return this._breakAttributes(l,n)}{const l=t.index+1,o=t._clone();t.parent._insertChild(l,o),this._addToClonedElementsGroup(o);const u=t.childCount-e,i=t._removeChildren(e,u);o._appendChild(i);const a=new Jo(t.parent,l);return this._breakAttributes(a,n)}}_addToClonedElementsGroup(l){if(!l.root.is("rootElement"))return;if(l.is("element"))for(const t of l.getChildren())this._addToClonedElementsGroup(t);const n=l.id;if(!n)return;let e=this._cloneGroups.get(n);e||(e=new Set,this._cloneGroups.set(n,e)),e.add(l),l._clonesGroup=e}_removeFromClonedElementsGroup(l){if(l.is("element"))for(const t of l.getChildren())this._removeFromClonedElementsGroup(t);const n=l.id;if(!n)return;const e=this._cloneGroups.get(n);e&&e.delete(l)}}function Cu(l){let n=l.parent;for(;!Ou(n);){if(!n)return;n=n.parent}return n}function wu(l,n){return l.priorityn.priority)&&l.getIdentity()l.createTextNode("\xa0"),Fu=l=>{const n=l.createElement("span");return n.dataset.ckeFiller="true",n.innerText="\xa0",n},Nu=l=>{const n=l.createElement("br");return n.dataset.ckeFiller="true",n},Du="\u2060".repeat(7);function zu(l){return We(l)&&l.data.substr(0,7)===Du}function qu(l){return 7==l.data.length&&zu(l)}function Tu(l){return zu(l)?l.data.slice(7):l.data}function Pu(l,n){if(n.keyCode==bt.arrowleft){const l=n.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const n=l.getRangeAt(0).startContainer,e=l.getRangeAt(0).startOffset;zu(n)&&e<=7&&l.collapse(n,0)}}}var Bu=o(9315);Ht()(Bu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bu.Z.locals;class Vu extends(U()){constructor(l,n){super(),this.domDocuments=new Set,this.domConverter=l,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.set("isFocused",!1),this.set("_isFocusChanging",!1),this.set("isSelecting",!1),t.isBlink&&!t.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()}),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(l,n){if("text"===l)this.domConverter.mapViewToDom(n.parent)&&this.markedTexts.add(n);else{if(!this.domConverter.mapViewToDom(n))return;if("attributes"===l)this.markedAttributes.add(n);else{if("children"!==l)throw new b("view-renderer-unknown-type",this);this.markedChildren.add(n)}}}render(){if(this.isComposing&&!t.isAndroid)return;let l=null;const n=!(t.isBlink&&!t.isAndroid&&this.isSelecting);for(const e of this.markedChildren)this._updateChildrenMappings(e);n?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?l=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(l=this.selection.getFirstPosition(),this.markedChildren.add(l.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&((l=this.domConverter.domPositionToView(this._inlineFiller))&&l.parent.is("$text")&&(l=Jo._createBefore(l.parent)));for(const e of this.markedAttributes)this._updateAttrs(e);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:l});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:l});if(n)if(l){const n=this.domConverter.viewPositionToDom(l),e=n.parent.ownerDocument;zu(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=Uu(e,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(l){if(!this.domConverter.mapViewToDom(l))return;const n=Array.from(this.domConverter.mapViewToDom(l).childNodes),e=Array.from(this.domConverter.viewChildrenToDom(l,{withChildren:!1})),t=this._diffNodeLists(n,e),o=this._findReplaceActions(t,n,e);if(-1!==o.indexOf("replace")){const t={equal:0,insert:0,delete:0};for(const u of o)if("replace"===u){const o=t.equal+t.insert,u=t.equal+t.delete,i=l.getChild(o);!i||i.is("uiElement")||i.is("rawElement")||this._updateElementMappings(i,n[u]),it(e[o]),t.equal++}else t[u]++}}_updateElementMappings(l,n){this.domConverter.unbindDomElement(n),this.domConverter.bindElements(n,l),this.markedChildren.add(l),this.markedAttributes.add(l)}_getInlineFillerPosition(){const l=this.selection.getFirstPosition();return l.parent.is("$text")?Jo._createBefore(l.parent):l}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const l=this.selection.getFirstPosition(),n=this.domConverter.viewPositionToDom(l);return!!(n&&We(n.parent)&&zu(n.parent))}_removeInlineFiller(){const l=this._inlineFiller;if(!zu(l))throw new b("view-renderer-filler-was-lost",this);qu(l)?l.remove():l.data=l.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const l=this.selection.getFirstPosition(),n=l.parent,e=l.offset;if(!this.domConverter.mapViewToDom(n.root))return!1;if(!n.is("element"))return!1;if(!function(l){if("false"==l.getAttribute("contenteditable"))return!1;const n=l.findAncestor(l=>l.hasAttribute("contenteditable"));return!n||"true"==n.getAttribute("contenteditable")}(n))return!1;if(e===n.getFillerOffset())return!1;const o=l.nodeBefore,u=l.nodeAfter;return!(o instanceof eo||u instanceof eo||t.isAndroid&&(o||u))}_updateText(l,n){const e=this.domConverter.findCorrespondingDomText(l);let t=this.domConverter.viewToDom(l).data;const o=n.inlineFillerPosition;o&&o.parent==l.parent&&o.offset==l.index&&(t=Du+t),ju(e,t)}_updateAttrs(l){const n=this.domConverter.mapViewToDom(l);if(!n)return;const e=Array.from(n.attributes).map(l=>l.name),t=l.getAttributeKeys();for(const o of t)this.domConverter.setDomElementAttribute(n,o,l.getAttribute(o),l);for(const o of e)l.hasAttribute(o)||this.domConverter.removeDomElementAttribute(n,o)}_updateChildren(l,n){const e=this.domConverter.mapViewToDom(l);if(!e)return;if(t.isAndroid){let l=null;for(const n of Array.from(e.childNodes)){if(l&&We(l)&&We(n)){e.normalize();break}l=n}}const o=n.inlineFillerPosition,u=e.childNodes,i=Array.from(this.domConverter.viewChildrenToDom(l,{bind:!0}));o&&o.parent===l&&Uu(e.ownerDocument,i,o.offset);const a=this._diffNodeLists(u,i),r=t.isAndroid?this._findReplaceActions(a,u,i,{replaceText:!0}):a;let s=0;const d=new Set;for(const t of r)"delete"===t?(d.add(u[s]),it(u[s])):"equal"!==t&&"replace"!==t||s++;s=0;for(const t of r)"insert"===t?(lt(e,s,i[s]),s++):"replace"===t?(ju(u[s],i[s].data),s++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(i[s])),s++);for(const t of d)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(l,n){return d(l=function(l,n){const e=Array.from(l);return 0!=e.length&&n?(e[e.length-1]==n&&e.pop(),e):e}(l,this._fakeSelectionContainer),n,(function(l,n,e){return n===e||(We(n)&&We(e)?n.data===e.data:!(!l.isBlockFiller(n)||!l.isBlockFiller(e)))}).bind(null,this.domConverter))}_findReplaceActions(l,n,e,t={}){if(-1===l.indexOf("insert")||-1===l.indexOf("delete"))return l;let o=[],u=[],i=[];const a={equal:0,insert:0,delete:0};for(const r of l)"insert"===r?i.push(e[a.equal+a.insert]):"delete"===r?u.push(n[a.equal+a.delete]):((o=o.concat(d(u,i,t.replaceText?Gu:Wu).map(l=>"equal"===l?"replace":l))).push("equal"),u=[],i=[]),a[r]++;return o.concat(d(u,i,t.replaceText?Gu:Wu).map(l=>"equal"===l?"replace":l))}_markDescendantTextToSync(l){if(l)if(l.is("$text"))this.markedTexts.add(l);else if(l.is("element"))for(const n of l.getChildren())this._markDescendantTextToSync(n)}_updateSelection(){if(t.isBlink&&!t.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this._isFocusChanging)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const l=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&l&&(this.selection.isFake?this._updateFakeSelection(l):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(l)):this.isComposing&&t.isAndroid||this._updateDomSelection(l))}_updateFakeSelection(l){const n=l.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(l){const n=l.createElement("div");return n.className="ck-fake-selection-container",Object.assign(n.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),n.textContent="\xa0",n}(n));const e=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(e,this.selection),!this._fakeSelectionNeedsUpdate(l))return;e.parentElement&&e.parentElement==l||l.appendChild(e),e.textContent=this.selection.fakeSelectionLabel||"\xa0";const t=n.getSelection(),o=n.createRange();t.removeAllRanges(),o.selectNodeContents(e),t.addRange(o)}_updateDomSelection(l){const n=l.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(n))return;const e=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);n.collapse(e.parent,e.offset),n.extend(o.parent,o.offset),t.isGecko&&function(l,n){const e=l.parent;if(e.nodeType!=Node.ELEMENT_NODE||l.offset!=e.childNodes.length-1)return;const t=e.childNodes[l.offset];t&&"BR"==t.tagName&&n.addRange(n.getRangeAt(0))}(o,n)}_domSelectionNeedsUpdate(l){if(!this.domConverter.isDomSelectionCorrect(l))return!0;const n=l&&this.domConverter.domSelectionToView(l);return!(n&&this.selection.isEqual(n)||!this.selection.isCollapsed&&this.selection.isSimilar(n))}_fakeSelectionNeedsUpdate(l){const n=this._fakeSelectionContainer,e=l.ownerDocument.getSelection();return!n||n.parentElement!==l||e.anchorNode!==n&&!n.contains(e.anchorNode)||n.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const l of this.domDocuments){const n=l.getSelection();if(n.rangeCount){const e=l.activeElement,t=this.domConverter.mapDomToView(e);e&&t&&n.removeAllRanges()}}}_removeFakeSelection(){const l=this._fakeSelectionContainer;l&&l.remove()}_updateFocus(){if(this.isFocused){const l=this.selection.editableElement;l&&this.domConverter.focus(l)}}}function Uu(l,n,e){const t=n instanceof Array?n:n.childNodes,o=t[e];if(We(o))return o.data=Du+o.data,o;{const o=l.createTextNode(Du);return Array.isArray(n)?t.splice(e,0,o):lt(n,e,o),o}}function Wu(l,n){return Ne(l)&&Ne(n)&&!We(l)&&!We(n)&&!nt(l)&&!nt(n)&&l.tagName.toLowerCase()===n.tagName.toLowerCase()}function Gu(l,n){return Ne(l)&&Ne(n)&&We(l)&&We(n)}function ju(l,n){const e=l.data;if(e==n)return;const t=a(e,n);for(const o of t)"insert"===o.type?l.insertData(o.index,o.values.join("")):l.deleteData(o.index,o.howMany)}const Hu=Nu(Ve.document),Yu=Iu(Ve.document),Zu=Fu(Ve.document),Xu="data-ck-unsafe-attribute-",$u="data-ck-unsafe-element";class Ku{constructor(l,n={}){this.document=l,this.renderingMode=n.renderingMode||"editing",this.blockFillerMode=n.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Ve.document:Ve.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new oo,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(l,n){this._fakeSelectionMapping.set(l,new eu(n))}fakeSelectionToView(l){return this._fakeSelectionMapping.get(l)}bindElements(l,n){this._domToViewMapping.set(l,n),this._viewToDomMapping.set(n,l)}unbindDomElement(l){const n=this._domToViewMapping.get(l);if(n){this._domToViewMapping.delete(l),this._viewToDomMapping.delete(n);for(const n of Array.from(l.children))this.unbindDomElement(n)}}bindDocumentFragments(l,n){this._domToViewMapping.set(l,n),this._viewToDomMapping.set(n,l)}shouldRenderAttribute(l,n,e){return"data"===this.renderingMode||!(l=l.toLowerCase()).startsWith("on")&&("srcdoc"!==l||!n.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===e&&("src"===l||"srcset"===l)||"source"===e&&"srcset"===l||!n.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(l,n){if("data"===this.renderingMode)return void(l.innerHTML=n);const e=(new DOMParser).parseFromString(n,"text/html"),t=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)t.appendChild(o[0]);const u=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[];let a;for(;a=u.nextNode();)i.push(a);for(const r of i){for(const n of r.getAttributeNames())this.setDomElementAttribute(r,n,r.getAttribute(n));const l=r.tagName.toLowerCase();this._shouldRenameElement(l)&&(li(l),r.replaceWith(this._createReplacementDomElement(l,r)))}for(;l.firstChild;)l.firstChild.remove();l.append(t)}viewToDom(l,n={}){if(l.is("$text")){const n=this._processDataFromViewText(l);return this._domDocument.createTextNode(n)}{if(this.mapViewToDom(l))return this.mapViewToDom(l);let e;if(l.is("documentFragment"))e=this._domDocument.createDocumentFragment(),n.bind&&this.bindDocumentFragments(e,l);else{if(l.is("uiElement"))return e="$comment"===l.name?this._domDocument.createComment(l.getCustomProperty("$rawContent")):l.render(this._domDocument,this),n.bind&&this.bindElements(e,l),e;this._shouldRenameElement(l.name)?(li(l.name),e=this._createReplacementDomElement(l.name)):e=l.hasAttribute("xmlns")?this._domDocument.createElementNS(l.getAttribute("xmlns"),l.name):this._domDocument.createElement(l.name),l.is("rawElement")&&l.render(e,this),n.bind&&this.bindElements(e,l);for(const n of l.getAttributeKeys())this.setDomElementAttribute(e,n,l.getAttribute(n),l)}if(!1!==n.withChildren)for(const t of this.viewChildrenToDom(l,n))e.appendChild(t);return e}}setDomElementAttribute(l,n,e,t){const o=this.shouldRenderAttribute(n,e,l.tagName.toLowerCase())||t&&t.shouldRenderUnsafeAttribute(n);o||y("domconverter-unsafe-attribute-detected",{domElement:l,key:n,value:e}),l.hasAttribute(n)&&!o?l.removeAttribute(n):l.hasAttribute(Xu+n)&&o&&l.removeAttribute(Xu+n),l.setAttribute(o?n:Xu+n,e)}removeDomElementAttribute(l,n){n!=$u&&(l.removeAttribute(n),l.removeAttribute(Xu+n))}*viewChildrenToDom(l,n={}){const e=l.getFillerOffset&&l.getFillerOffset();let t=0;for(const o of l.getChildren()){e===t&&(yield this._getBlockFiller());const l=o.is("element")&&o.getCustomProperty("dataPipeline:transparentRendering");l&&"data"==this.renderingMode?yield*this.viewChildrenToDom(o,n):(l&&y("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:o}),yield this.viewToDom(o,n)),t++}e===t&&(yield this._getBlockFiller())}viewRangeToDom(l){const n=this.viewPositionToDom(l.start),e=this.viewPositionToDom(l.end),t=this._domDocument.createRange();return t.setStart(n.parent,n.offset),t.setEnd(e.parent,e.offset),t}viewPositionToDom(l){const n=l.parent;if(n.is("$text")){const e=this.findCorrespondingDomText(n);if(!e)return null;let t=l.offset;return zu(e)&&(t+=7),{parent:e,offset:t}}{let e,t,o;if(0===l.offset){if(!(e=this.mapViewToDom(n)))return null;o=e.childNodes[0]}else{const n=l.nodeBefore;if(!(t=n.is("$text")?this.findCorrespondingDomText(n):this.mapViewToDom(n)))return null;e=t.parentNode,o=t.nextSibling}return We(o)&&zu(o)?{parent:o,offset:7}:{parent:e,offset:t?Je(t)+1:0}}}domToView(l,n={}){if(this.isBlockFiller(l))return null;const e=this.getHostViewElement(l);if(e)return e;if(nt(l)&&n.skipComments)return null;if(We(l)){if(qu(l))return null;{const n=this._processDataFromDomText(l);return""===n?null:new eo(this.document,n)}}{if(this.mapDomToView(l))return this.mapDomToView(l);let e;if(this.isDocumentFragment(l))e=new Au(this.document),n.bind&&this.bindDocumentFragments(l,e);else{e=this._createViewElement(l,n),n.bind&&this.bindElements(l,e);const t=l.attributes;if(t)for(let l=t.length,n=0;n{const{scrollLeft:n,scrollTop:e}=l;t.push([n,e])}),n.focus(),Qu(n,l=>{const[n,e]=t.shift();l.scrollLeft=n,l.scrollTop=e}),Ve.window.scrollTo(l,e)}}isElement(l){return l&&l.nodeType==Node.ELEMENT_NODE}isDocumentFragment(l){return l&&l.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(l){return"br"==this.blockFillerMode?l.isEqualNode(Hu):!("BR"!==l.tagName||!Ju(l,this.blockElements)||1!==l.parentNode.childNodes.length)||l.isEqualNode(Zu)||function(l,n){return l.isEqualNode(Yu)&&Ju(l,n)&&1===l.parentNode.childNodes.length}(l,this.blockElements)}isDomSelectionBackward(l){if(l.isCollapsed)return!1;const n=this._domDocument.createRange();try{n.setStart(l.anchorNode,l.anchorOffset),n.setEnd(l.focusNode,l.focusOffset)}catch(l){return!1}const e=n.collapsed;return n.detach(),e}getHostViewElement(l){const n=Ue(l);for(n.pop();n.length;){const l=n.pop(),e=this._domToViewMapping.get(l);if(e&&(e.is("uiElement")||e.is("rawElement")))return e}return null}isDomSelectionCorrect(l){return this._isDomSelectionPositionCorrect(l.anchorNode,l.anchorOffset)&&this._isDomSelectionPositionCorrect(l.focusNode,l.focusOffset)}registerRawContentMatcher(l){this._rawContentElementMatcher.add(l)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Iu(this._domDocument);case"markedNbsp":return Fu(this._domDocument);case"br":return Nu(this._domDocument)}}_isDomSelectionPositionCorrect(l,n){if(We(l)&&zu(l)&&n<7)return!1;if(this.isElement(l)&&zu(l.childNodes[n]))return!1;const e=this.mapDomToView(l);return!e||!e.is("uiElement")&&!e.is("rawElement")}_processDataFromViewText(l){let n=l.data;if(l.getAncestors().some(l=>this.preElements.includes(l.name)))return n;if(" "==n.charAt(0)){const e=this._getTouchingInlineViewNode(l,!1);!(e&&e.is("$textProxy")&&this._nodeEndsWithSpace(e))&&e||(n="\xa0"+n.substr(1))}if(" "==n.charAt(n.length-1)){const e=this._getTouchingInlineViewNode(l,!0),t=e&&e.is("$textProxy")&&" "==e.data.charAt(0);" "!=n.charAt(n.length-2)&&e&&!t||(n=n.substr(0,n.length-1)+"\xa0")}return n.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(l){if(l.getAncestors().some(l=>this.preElements.includes(l.name)))return!1;const n=this._processDataFromViewText(l);return" "==n.charAt(n.length-1)}_processDataFromDomText(l){let n=l.data;if(function(l,n){return Ue(l).some(l=>l.tagName&&n.includes(l.tagName.toLowerCase()))}(l,this.preElements))return Tu(l);n=n.replace(/[ \n\t\r]{1,}/g," ");const e=this._getTouchingInlineDomNode(l,!1),t=this._getTouchingInlineDomNode(l,!0),o=this._checkShouldLeftTrimDomText(l,e),u=this._checkShouldRightTrimDomText(l,t);o&&(n=n.replace(/^ /,"")),u&&(n=n.replace(/ $/,"")),n=(n=Tu(new Text(n))).replace(/ \u00A0/g," ");const i=t&&this.isElement(t)&&"BR"!=t.tagName,a=t&&We(t)&&" "==t.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(n)||!t||i||a)&&(n=n.replace(/\u00A0$/," ")),(o||e&&this.isElement(e)&&"BR"!=e.tagName)&&(n=n.replace(/^\u00A0/," ")),n}_checkShouldLeftTrimDomText(l,n){return!n||(this.isElement(n)?"BR"===n.tagName:!this._encounteredRawContentDomNodes.has(l.previousSibling)&&/[^\S\u00A0]/.test(n.data.charAt(n.data.length-1)))}_checkShouldRightTrimDomText(l,n){return!n&&!zu(l)}_getTouchingInlineViewNode(l,n){const e=new Qo({startPosition:n?Jo._createAfter(l):Jo._createBefore(l),direction:n?"forward":"backward"});for(const t of e){if(t.item.is("element")&&this.inlineObjectElements.includes(t.item.name))return t.item;if(t.item.is("containerElement"))return null;if(t.item.is("element","br"))return null;if(t.item.is("$textProxy"))return t.item}return null}_getTouchingInlineDomNode(l,n){if(!l.parentNode)return null;const e=n?"firstChild":"lastChild",t=n?"nextSibling":"previousSibling";let o=!0,u=l;do{if(!o&&u[e]?u=u[e]:u[t]?(u=u[t],o=!1):(u=u.parentNode,o=!0),!u||this._isBlockElement(u))return null}while(!We(u)&&"BR"!=u.tagName&&!this._isInlineObjectElement(u));return u}_isBlockElement(l){return this.isElement(l)&&this.blockElements.includes(l.tagName.toLowerCase())}_isInlineObjectElement(l){return this.isElement(l)&&this.inlineObjectElements.includes(l.tagName.toLowerCase())}_createViewElement(l,n){if(nt(l))return new vu(this.document,"$comment");const e=n.keepOriginalCase?l.tagName:l.tagName.toLowerCase();return new jo(this.document,e)}_isViewElementWithRawContent(l,n){return!1!==n.withChildren&&!!this._rawContentElementMatcher.match(l)}_shouldRenameElement(l){const n=l.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(n)}_createReplacementDomElement(l,n){const e=this._domDocument.createElement("span");if(e.setAttribute($u,l),n){for(;n.firstChild;)e.appendChild(n.firstChild);for(const l of n.getAttributeNames())e.setAttribute(l,n.getAttribute(l))}return e}}function Qu(l,n){let e=l;for(;e;)n(e),e=e.parentElement}function Ju(l,n){const e=l.parentNode;return!!e&&!!e.tagName&&n.includes(e.tagName.toLowerCase())}function li(l){"script"===l&&y("domconverter-unsafe-script-element-detected"),"style"===l&&y("domconverter-unsafe-style-element-detected")}class ni extends(qe()){constructor(l){super(),this.view=l,this.document=l.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(l){return l&&3===l.nodeType&&(l=l.parentNode),!(!l||1!==l.nodeType)&&l.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const ei=To(function(l,n){ln(n,In(n),l)});class ti{constructor(l,n,e){this.view=l,this.document=l.document,this.domEvent=n,this.domTarget=n.target,ei(this,e)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class oi extends ni{constructor(l){super(l),this.useCapture=!1}observe(l){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(n=>{this.listenTo(l,n,(l,n)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(n.target)&&this.onDomEvent(n)},{useCapture:this.useCapture})})}fire(l,n,e){this.isEnabled&&this.document.fire(l,new ti(this.view,n,e))}}class ui extends oi{constructor(l){super(l),this.domEventType=["keydown","keyup"]}onDomEvent(l){const n={keyCode:l.keyCode,altKey:l.altKey,ctrlKey:l.ctrlKey,shiftKey:l.shiftKey,metaKey:l.metaKey,get keystroke(){return xt(this)}};this.fire(l.type,l,n)}}const ii=function(){return ll.Date.now()};var ai=/\s/;var ri=/^\s+/;const si=function(l){return l?l.slice(0,function(l){for(var n=l.length;n--&&ai.test(l.charAt(n)););return n}(l)+1).replace(ri,""):l};var di=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,pi=/^0o[0-7]+$/i,fi=parseInt;const mi=function(l){if("number"==typeof l)return l;if(ao(l))return NaN;if(D(l)){var n="function"==typeof l.valueOf?l.valueOf():l;l=D(n)?n+"":n}if("string"!=typeof l)return 0===l?l:+l;l=si(l);var e=ci.test(l);return e||pi.test(l)?fi(l.slice(2),e?2:8):di.test(l)?NaN:+l};var hi=Math.max,gi=Math.min;const vi=function(l,n,e){var t,o,u,i,a,r,s=0,d=!1,c=!1,p=!0;if("function"!=typeof l)throw new TypeError("Expected a function");function f(n){var e=t,u=o;return t=o=void 0,s=n,i=l.apply(u,e)}function m(l){var e=l-r;return void 0===r||e>=n||e<0||c&&l-s>=u}function h(){var l=ii();if(m(l))return g(l);a=setTimeout(h,function(l){var e=n-(l-r);return c?gi(e,u-(l-s)):e}(l))}function g(l){return a=void 0,p&&t?f(l):(t=o=void 0,i)}function v(){var l=ii(),e=m(l);if(t=arguments,o=this,r=l,e){if(void 0===a)return function(l){return s=l,a=setTimeout(h,n),d?f(l):i}(r);if(c)return clearTimeout(a),a=setTimeout(h,n),f(r)}return void 0===a&&(a=setTimeout(h,n)),i}return n=mi(n)||0,D(e)&&(d=!!e.leading,u=(c="maxWait"in e)?hi(mi(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),s=0,t=r=o=a=void 0},v.flush=function(){return void 0===a?i:g(ii())},v};class bi extends ni{constructor(l){super(l),this._fireSelectionChangeDoneDebounced=vi(l=>{this.document.fire("selectionChangeDone",l)},200)}observe(){const l=this.document;l.on("arrowKey",(n,e)=>{l.selection.isFake&&this.isEnabled&&e.preventDefault()},{context:"$capture"}),l.on("arrowKey",(n,e)=>{l.selection.isFake&&this.isEnabled&&this._handleSelectionMove(e.keyCode)},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(l){const n=this.document.selection,e=new eu(n.getRanges(),{backward:n.isBackward,fake:!1});l!=bt.arrowleft&&l!=bt.arrowup||e.setTo(e.getFirstPosition()),l!=bt.arrowright&&l!=bt.arrowdown||e.setTo(e.getLastPosition());const t={oldSelection:n,newSelection:e,domSelection:null};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}function yi(l){var n=-1,e=null==l?0:l.length;for(this.__data__=new Yl;++na))return!1;var s=u.get(l),d=u.get(n);if(s&&d)return s==n&&d==l;var c=-1,p=!0,f=2&e?new xi:void 0;for(u.set(l,n),u.set(n,l);++c{this.document.fire("selectionChangeDone",l)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=vi(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(l){const n=l.ownerDocument,e=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,n),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(l,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(l,"keydown",e,{priority:"highest",useCapture:!0}),this.listenTo(l,"keyup",e,{priority:"highest",useCapture:!0}),this._documents.has(n)||(this.listenTo(n,"mouseup",e,{priority:"highest",useCapture:!0}),this.listenTo(n,"selectionchange",(l,e)=>{this.document.isComposing&&!t.isAndroid||(this._handleSelectionChange(e,n),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(n))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(l,n){if(!this.isEnabled)return;const e=n.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(e.anchorNode))return;this.mutationObserver.flush();const t=this.domConverter.domSelectionToView(e);if(0!=t.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(t)&&this.domConverter.isDomSelectionCorrect(e)||++this._loopbackCounter>60))if(this.selection.isSimilar(t))this.view.forceRender();else{const l={oldSelection:this.selection,newSelection:t,domSelection:e};this.document._isFocusChanging=!1,this.document.fire("selectionChange",l),this._fireSelectionChangeDoneDebounced(l)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Pi extends oi{constructor(l){super(l),this.domEventType=["focus","blur"],this.useCapture=!0;const n=this.document;n.on("focus",()=>{n.isFocused=!0,n._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{n._isFocusChanging=!1,l.change(()=>{})},50)}),n.on("blur",(e,t)=>{const o=n.selection.editableElement;null!==o&&o!==t.target||(n.isFocused=!1,l.change(()=>{}))})}onDomEvent(l){this.fire(l.type,l)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Bi extends oi{constructor(l){super(l),this.domEventType=["compositionstart","compositionupdate","compositionend"];const n=this.document;n.on("compositionstart",()=>{n.isComposing=!0},{priority:"low"}),n.on("compositionend",()=>{n.isComposing=!1},{priority:"low"})}onDomEvent(l){this.fire(l.type,l,{data:l.data})}}class Vi{constructor(l){this.files=function(l){const n=Array.from(l.files||[]),e=Array.from(l.items||[]);return n.length?n:e.filter(l=>"file"===l.kind).map(l=>l.getAsFile())}(l),this._native=l}get types(){return this._native.types}getData(l){return this._native.getData(l)}setData(l,n){this._native.setData(l,n)}set effectAllowed(l){this._native.effectAllowed=l}get effectAllowed(){return this._native.effectAllowed}set dropEffect(l){this._native.dropEffect=l}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class Ui extends oi{constructor(l){super(l),this.domEventType=["beforeinput"]}onDomEvent(l){const n=l.getTargetRanges(),e=this.view,o=e.document;let u=null,i=null,a=[];if(l.dataTransfer&&(u=new Vi(l.dataTransfer)),null!==l.data?i=l.data:u&&(i=u.getData("text/plain")),o.selection.isFake)a=Array.from(o.selection.getRanges());else if(n.length)a=n.map(l=>e.domConverter.domRangeToView(l));else if(t.isAndroid){const n=l.target.ownerDocument.defaultView.getSelection();a=Array.from(e.domConverter.domSelectionToView(n).getRanges())}if(t.isAndroid&&"insertCompositionText"==l.inputType&&i&&i.endsWith("\n"))this.fire(l.type,l,{inputType:"insertParagraph",targetRanges:[e.createRange(a[0].end)]});else if("insertText"==l.inputType&&i&&i.includes("\n")){const n=i.split(/\n{1,2}/g);let e=a;for(let t=0;t{if(this.isEnabled&&((e=n.keyCode)==bt.arrowright||e==bt.arrowleft||e==bt.arrowup||e==bt.arrowdown)){const e=new ou(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(e,n),e.stop.called&&l.stop()}var e})}observe(){}}class Gi extends ni{constructor(l){super(l);const n=this.document;n.on("keydown",(l,e)=>{if(!this.isEnabled||e.keyCode!=bt.tab||e.ctrlKey)return;const t=new ou(n,"tab",n.selection.getFirstRange());n.fire(t,e),t.stop.called&&l.stop()})}observe(){}}class ji extends(U()){constructor(l){super(),this.document=new cu(l),this.domConverter=new Ku(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Vu(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing","_isFocusChanging").to(this.document,"isFocused","isSelecting","isComposing","_isFocusChanging"),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new _u(this.document),this.addObserver(zi),this.addObserver(Ti),this.addObserver(Pi),this.addObserver(ui),this.addObserver(bi),this.addObserver(Bi),this.addObserver(Wi),this.addObserver(Ui),this.addObserver(Gi),this.document.on("arrowKey",Pu,{priority:"low"}),function(l){l.document.on("arrowKey",(n,e)=>(function(l,n,e){if(n.keyCode==bt.arrowright){const l=n.domTarget.ownerDocument.defaultView.getSelection(),t=1==l.rangeCount&&l.getRangeAt(0).collapsed;if(t||n.shiftKey){const n=l.focusNode,o=l.focusOffset,u=e.domPositionToView(n,o);if(null===u)return;let i=!1;const a=u.getLastMatchingPosition(l=>(l.item.is("uiElement")&&(i=!0),!(!l.item.is("uiElement")&&!l.item.is("attributeElement"))));if(i){const n=e.viewPositionToDom(a);t?l.collapse(n.parent,n.offset):l.extend(n.parent,n.offset)}}}})(0,e,l.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(l,n="main"){const e=this.document.getRoot(n);e._name=l.tagName.toLowerCase();const t={};for(const{name:u,value:i}of Array.from(l.attributes))t[u]=i,"class"===u?this._writer.addClass(i.split(" "),e):this._writer.setAttribute(u,i,e);this._initialDomRootAttributes.set(l,t);const o=()=>{this._writer.setAttribute("contenteditable",(!e.isReadOnly).toString(),e),e.isReadOnly?this._writer.addClass("ck-read-only",e):this._writer.removeClass("ck-read-only",e)};o(),this.domRoots.set(n,l),this.domConverter.bindElements(l,e),this._renderer.markToSync("children",e),this._renderer.markToSync("attributes",e),this._renderer.domDocuments.add(l.ownerDocument),e.on("change:children",(l,n)=>this._renderer.markToSync("children",n)),e.on("change:attributes",(l,n)=>this._renderer.markToSync("attributes",n)),e.on("change:text",(l,n)=>this._renderer.markToSync("text",n)),e.on("change:isReadOnly",()=>this.change(o)),e.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const u of this._observers.values())u.observe(l,n)}detachDomRoot(l){const n=this.domRoots.get(l);Array.from(n.attributes).forEach(({name:l})=>n.removeAttribute(l));const e=this._initialDomRootAttributes.get(n);for(const t in e)n.setAttribute(t,e[t]);this.domRoots.delete(l),this.domConverter.unbindDomElement(n)}getDomRoot(l="main"){return this.domRoots.get(l)}addObserver(l){let n=this._observers.get(l);if(n)return n;n=new l(this),this._observers.set(l,n);for(const[e,t]of this.domRoots)n.observe(t,e);return n.enable(),n}getObserver(l){return this._observers.get(l)}disableObservers(){for(const l of this._observers.values())l.disable()}enableObservers(){for(const l of this._observers.values())l.enable()}scrollToTheSelection(){const l=this.document.selection.getFirstRange();l&&function({target:l,viewportOffset:n=0}){const e=ft(l);let t=e,o=null;for(;t;){let u;rt(u=mt(t==e?l:o),()=>ht(l,t));const i=ht(l,t);if(at(t,i,n),t.parent!=t){if(o=t.frameElement,t=t.parent,!o)return}else t=null}}({target:this.domConverter.viewRangeToDom(l),viewportOffset:20})}focus(){if(!this.document.isFocused){const l=this.document.selection.editableElement;l&&(this.domConverter.focus(l),this.forceRender())}}change(l){if(this.isRenderingInProgress||this._postFixersInProgress)throw new b("cannot-change-view-tree",this);try{if(this._ongoingChange)return l(this._writer);this._ongoingChange=!0;const n=l(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),n}catch(l){b.rethrowUnexpectedError(l,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.document._isFocusChanging=!1,this.change(()=>{})}destroy(){for(const l of this._observers.values())l.destroy();this.document.destroy(),this.stopListening()}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(...l){return new lu(...l)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}_disableRendering(l){this._renderingDisabled=l,0==l&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Hi{is(){throw new Error("is() method is abstract")}}class Yi extends Hi{constructor(l){super(),this.parent=null,this._attrs=It(l)}get document(){return null}get index(){let l;if(!this.parent)return null;if(null===(l=this.parent.getChildIndex(this)))throw new b("model-node-not-found-in-parent",this);return l}get startOffset(){let l;if(!this.parent)return null;if(null===(l=this.parent.getChildStartOffset(this)))throw new b("model-node-not-found-in-parent",this);return l}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const l=this.index;return null!==l&&this.parent.getChild(l+1)||null}get previousSibling(){const l=this.index;return null!==l&&this.parent.getChild(l-1)||null}get root(){let l=this;for(;l.parent;)l=l.parent;return l}isAttached(){return this.root.is("rootElement")}getPath(){const l=[];let n=this;for(;n.parent;)l.unshift(n.startOffset),n=n.parent;return l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}getCommonAncestor(l,n={}){const e=this.getAncestors(n),t=l.getAncestors(n);let o=0;for(;e[o]==t[o]&&e[o];)o++;return 0===o?null:e[o-1]}isBefore(l){if(this==l)return!1;if(this.root!==l.root)return!1;const n=this.getPath(),e=l.getPath(),t=$(n,e);switch(t){case"prefix":return!0;case"extension":return!1;default:return n[t](l[n[0]]=n[1],l),{})),l}_clone(l){return new Yi(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(l,n){this._attrs.set(l,n)}_setAttributesTo(l){this._attrs=It(l)}_removeAttribute(l){return this._attrs.delete(l)}_clearAttributes(){this._attrs.clear()}}Yi.prototype.is=function(l){return"node"===l||"model:node"===l};class Zi{constructor(l){this._nodes=[],l&&this._insertNodes(0,l)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((l,n)=>l+n.offsetSize,0)}getNode(l){return this._nodes[l]||null}getNodeIndex(l){const n=this._nodes.indexOf(l);return-1==n?null:n}getNodeStartOffset(l){const n=this.getNodeIndex(l);return null===n?null:this._nodes.slice(0,n).reduce((l,n)=>l+n.offsetSize,0)}indexToOffset(l){if(l==this._nodes.length)return this.maxOffset;const n=this._nodes[l];if(!n)throw new b("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(n)}offsetToIndex(l){let n=0;for(const e of this._nodes){if(l>=n&&l1e4)return l.slice(0,e).concat(n).concat(l.slice(e+0,l.length));{const t=Array.from(l);return t.splice(e,0,...n),t}}(this._nodes,Array.from(n),l)}_removeNodes(l,n=1){return this._nodes.splice(l,n)}toJSON(){return this._nodes.map(l=>l.toJSON())}}class Xi extends Yi{constructor(l,n){super(n),this._data=l||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const l=super.toJSON();return l.data=this.data,l}_clone(){return new Xi(this.data,this.getAttributes())}static fromJSON(l){return new Xi(l.data,l.attributes)}}Xi.prototype.is=function(l){return"$text"===l||"model:$text"===l||"text"===l||"model:text"===l||"node"===l||"model:node"===l};class $i extends Hi{constructor(l,n,e){if(super(),this.textNode=l,n<0||n>l.offsetSize)throw new b("model-textproxy-wrong-offsetintext",this);if(e<0||n+e>l.offsetSize)throw new b("model-textproxy-wrong-length",this);this.data=l.data.substring(n,n+e),this.offsetInText=n}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const l=this.textNode.getPath();return l.length>0&&(l[l.length-1]+=this.offsetInText),l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}hasAttribute(l){return this.textNode.hasAttribute(l)}getAttribute(l){return this.textNode.getAttribute(l)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}$i.prototype.is=function(l){return"$textProxy"===l||"model:$textProxy"===l||"textProxy"===l||"model:textProxy"===l};class Ki extends Yi{constructor(l,n,e){super(n),this.name=l,this._children=new Zi,e&&this._insertChild(0,e)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(l){return this._children.getNode(l)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(l){return this._children.getNodeIndex(l)}getChildStartOffset(l){return this._children.getNodeStartOffset(l)}offsetToIndex(l){return this._children.offsetToIndex(l)}getNodeByPath(l){let n=this;for(const e of l)n=n.getChild(n.offsetToIndex(e));return n}findAncestor(l,n={}){let e=n.includeSelf?this:this.parent;for(;e;){if(e.name===l)return e;e=e.parent}return null}toJSON(){const l=super.toJSON();if(l.name=this.name,this._children.length>0){l.children=[];for(const n of this._children)l.children.push(n.toJSON())}return l}_clone(l=!1){const n=l?Array.from(this._children).map(l=>l._clone(!0)):void 0;return new Ki(this.name,this.getAttributes(),n)}_appendChild(l){this._insertChild(this.childCount,l)}_insertChild(l,n){const e=function(l){return"string"==typeof l?[new Xi(l)]:(K(l)||(l=[l]),Array.from(l).map(l=>"string"==typeof l?new Xi(l):l instanceof $i?new Xi(l.data,l.getAttributes()):l))}(n);for(const t of e)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(l,e)}_removeChildren(l,n=1){const e=this._children._removeNodes(l,n);for(const t of e)t.parent=null;return e}static fromJSON(l){let n;if(l.children){n=[];for(const e of l.children)e.name?n.push(Ki.fromJSON(e)):n.push(Xi.fromJSON(e))}return new Ki(l.name,l.attributes,n)}}Ki.prototype.is=function(l,n){return n?n===this.name&&("element"===l||"model:element"===l):"element"===l||"model:element"===l||"node"===l||"model:node"===l};class Qi{constructor(l={}){if(!l.boundaries&&!l.startPosition)throw new b("model-tree-walker-no-start-position",null);const n=l.direction||"forward";if("forward"!=n&&"backward"!=n)throw new b("model-tree-walker-unknown-direction",l,{direction:n});this.direction=n,this.boundaries=l.boundaries||null,l.startPosition?this.position=l.startPosition.clone():this.position=la._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!l.singleCharacters,this.shallow=!!l.shallow,this.ignoreElementEnd=!!l.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(l){let n,e,t,o;do{t=this.position,o=this._visitedParent,({done:n,value:e}=this.next())}while(!n&&l(e));n||(this.position=t,this._visitedParent=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const l=this.position,n=this.position.clone(),e=this._visitedParent;if(null===e.parent&&n.offset===e.maxOffset)return{done:!0,value:void 0};if(e===this._boundaryEndParent&&n.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const t=na(n,e),o=t||ea(n,e,t);if(o instanceof Ki)return this.shallow?n.offset++:(n.path.push(0),this._visitedParent=o),this.position=n,Ji("elementStart",o,l,n,1);if(o instanceof Xi){let t;if(this.singleCharacters)t=1;else{let l=o.endOffset;this._boundaryEndParent==e&&this.boundaries.end.offsetl&&(l=this.boundaries.start.offset),t=n.offset-l}const o=n.offset-u.startOffset,i=new $i(u,o-t,t);return n.offset-=t,this.position=n,Ji("text",i,l,n,t)}return n.path.pop(),this.position=n,this._visitedParent=e.parent,Ji("elementStart",e,l,n,1)}}function Ji(l,n,e,t,o){return{done:!1,value:{type:l,item:n,previousPosition:e,nextPosition:t,length:o}}}class la extends Hi{constructor(l,n,e="toNone"){if(super(),!l.is("element")&&!l.is("documentFragment"))throw new b("model-position-root-invalid",l);if(!(n instanceof Array)||0===n.length)throw new b("model-position-path-incorrect-format",l,{path:n});l.is("rootElement")?n=n.slice():(n=[...l.getPath(),...n],l=l.root),this.root=l,this.path=n,this.stickiness=e}get offset(){return this.path[this.path.length-1]}set offset(l){this.path[this.path.length-1]=l}get parent(){let l=this.root;for(let n=0;n1)return!1;if(1===n)return oa(l,this,e);if(-1===n)return oa(this,l,e)}return this.path.length===l.path.length||(this.path.length>l.path.length?ua(this.path,n):ua(l.path,n))}hasSameParentAs(l){return this.root===l.root&&"same"==$(this.getParentPath(),l.getParentPath())}getTransformedByOperation(l){let n;switch(l.type){case"insert":n=this._getTransformedByInsertOperation(l);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(l);break;case"split":n=this._getTransformedBySplitOperation(l);break;case"merge":n=this._getTransformedByMergeOperation(l);break;default:n=la._createAt(this)}return n}_getTransformedByInsertOperation(l){return this._getTransformedByInsertion(l.position,l.howMany)}_getTransformedByMoveOperation(l){return this._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany)}_getTransformedBySplitOperation(l){const n=l.movedRange;return n.containsPosition(this)||n.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(l.splitPosition,l.moveTargetPosition):l.graveyardPosition?this._getTransformedByMove(l.graveyardPosition,l.insertionPosition,1):this._getTransformedByInsertion(l.insertionPosition,1)}_getTransformedByMergeOperation(l){const n=l.movedRange;let e;return n.containsPosition(this)||n.start.isEqual(this)?(e=this._getCombined(l.sourcePosition,l.targetPosition),l.sourcePosition.isBefore(l.targetPosition)&&(e=e._getTransformedByDeletion(l.deletionPosition,1))):e=this.isEqual(l.deletionPosition)?la._createAt(l.deletionPosition):this._getTransformedByMove(l.deletionPosition,l.graveyardPosition,1),e}_getTransformedByDeletion(l,n){const e=la._createAt(this);if(this.root!=l.root)return e;if("same"==$(l.getParentPath(),this.getParentPath())){if(l.offsetthis.offset)return null;e.offset-=n}}else if("prefix"==$(l.getParentPath(),this.getParentPath())){const t=l.path.length-1;if(l.offset<=this.path[t]){if(l.offset+n>this.path[t])return null;e.path[t]-=n}}return e}_getTransformedByInsertion(l,n){const e=la._createAt(this);if(this.root!=l.root)return e;if("same"==$(l.getParentPath(),this.getParentPath()))(l.offset=n;){if(l.path[t]+o!==e.maxOffset)return!1;o=1,t--,e=e.parent}return!0}(l,e+1)}function ua(l,n){for(;nn+1;){const n=t.maxOffset-e.offset;0!==n&&l.push(new ia(e,e.getShiftedBy(n))),e.path=e.path.slice(0,-1),e.offset++,t=t.parent}for(;e.path.length<=this.end.path.length;){const n=this.end.path[e.path.length-1],t=n-e.offset;0!==t&&l.push(new ia(e,e.getShiftedBy(t))),e.offset=n,e.path.push(0)}return l}getWalker(l={}){return l.boundaries=this,new Qi(l)}*getItems(l={}){l.boundaries=this,l.ignoreElementEnd=!0;const n=new Qi(l);for(const e of n)yield e.item}*getPositions(l={}){l.boundaries=this;const n=new Qi(l);yield n.position;for(const e of n)yield e.nextPosition}getTransformedByOperation(l){switch(l.type){case"insert":return this._getTransformedByInsertOperation(l);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(l);case"split":return[this._getTransformedBySplitOperation(l)];case"merge":return[this._getTransformedByMergeOperation(l)]}return[new ia(this.start,this.end)]}getTransformedByOperations(l){const n=[new ia(this.start,this.end)];for(const e of l)for(let l=0;l0?new this(e,t):new this(t,e)}static _createIn(l){return new this(la._createAt(l,0),la._createAt(l,l.maxOffset))}static _createOn(l){return this._createFromPositionAndShift(la._createBefore(l),l.offsetSize)}static _createFromRanges(l){if(0===l.length)throw new b("range-create-from-ranges-empty-array",null);if(1==l.length)return l[0].clone();const n=l[0];l.sort((l,n)=>l.start.isAfter(n.start)?1:-1);const e=l.indexOf(n),t=new this(n.start,n.end);if(e>0)for(let o=e-1;l[o].end.isEqual(t.start);o++)t.start=la._createAt(l[o].start);for(let o=e+1;o{if(n.viewPosition)return;const e=this._modelToViewMapping.get(n.modelPosition.parent);if(!e)throw new b("mapping-model-position-view-parent-not-found",this,{modelPosition:n.modelPosition});n.viewPosition=this.findPositionIn(e,n.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(l,n)=>{if(n.modelPosition)return;const e=this.findMappedViewAncestor(n.viewPosition),t=this._viewToModelMapping.get(e),o=this._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,e);n.modelPosition=la._createAt(t,o)},{priority:"low"})}bindElements(l,n){this._modelToViewMapping.set(l,n),this._viewToModelMapping.set(n,l)}unbindViewElement(l,n={}){const e=this.toModelElement(l);if(this._elementToMarkerNames.has(l))for(const t of this._elementToMarkerNames.get(l))this._unboundMarkerNames.add(t);n.defer?this._deferredBindingRemovals.set(l,l.root):(this._viewToModelMapping.delete(l),this._modelToViewMapping.get(e)==l&&this._modelToViewMapping.delete(e))}unbindModelElement(l){const n=this.toViewElement(l);this._modelToViewMapping.delete(l),this._viewToModelMapping.get(n)==l&&this._viewToModelMapping.delete(n)}bindElementToMarker(l,n){const e=this._markerNameToElements.get(n)||new Set;e.add(l);const t=this._elementToMarkerNames.get(l)||new Set;t.add(n),this._markerNameToElements.set(n,e),this._elementToMarkerNames.set(l,t)}unbindElementFromMarkerName(l,n){const e=this._markerNameToElements.get(n);e&&(e.delete(l),0==e.size&&this._markerNameToElements.delete(n));const t=this._elementToMarkerNames.get(l);t&&(t.delete(n),0==t.size&&this._elementToMarkerNames.delete(l))}flushUnboundMarkerNames(){const l=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),l}flushDeferredBindings(){for(const[l,n]of this._deferredBindingRemovals)l.root==n&&this.unbindViewElement(l);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(l){return this._viewToModelMapping.get(l)}toViewElement(l){return this._modelToViewMapping.get(l)}toModelRange(l){return new ia(this.toModelPosition(l.start),this.toModelPosition(l.end))}toViewRange(l){return new lu(this.toViewPosition(l.start),this.toViewPosition(l.end))}toModelPosition(l){const n={viewPosition:l,mapper:this};return this.fire("viewToModelPosition",n),n.modelPosition}toViewPosition(l,n={}){const e={modelPosition:l,mapper:this,isPhantom:n.isPhantom};return this.fire("modelToViewPosition",e),e.viewPosition}markerNameToElements(l){const n=this._markerNameToElements.get(l);if(!n)return null;const e=new Set;for(const t of n)if(t.is("attributeElement"))for(const l of t.getElementsWithSameId())e.add(l);else e.add(t);return e}registerViewToModelLength(l,n){this._viewToModelLengthCallbacks.set(l,n)}findMappedViewAncestor(l){let n=l.parent;for(;!this._viewToModelMapping.has(n);)n=n.parent;return n}_toModelOffset(l,n,e){if(e!=l)return this._toModelOffset(l.parent,l.index,e)+this._toModelOffset(l,n,l);if(l.is("$text"))return n;let t=0;for(let o=0;o1?n[0]+":"+n[1]:n[0]}class da extends(E()){constructor(l){super(),this._conversionApi={dispatcher:this,...l},this._firedEventsMap=new WeakMap}convertChanges(l,n,e){const t=this._createConversionApi(e,l.getRefreshedItems());for(const u of l.getMarkersToRemove())this._convertMarkerRemove(u.name,u.range,t);const o=this._reduceChanges(l.getChanges());for(const u of o)"insert"===u.type?this._convertInsert(ia._createFromPositionAndShift(u.position,u.length),t):"reinsert"===u.type?this._convertReinsert(ia._createFromPositionAndShift(u.position,u.length),t):"remove"===u.type?this._convertRemove(u.position,u.length,u.name,t):this._convertAttribute(u.range,u.attributeKey,u.attributeOldValue,u.attributeNewValue,t);for(const u of t.mapper.flushUnboundMarkerNames()){const l=n.get(u).getRange();this._convertMarkerRemove(u,l,t),this._convertMarkerAdd(u,l,t)}for(const u of l.getMarkersToAdd())this._convertMarkerAdd(u.name,u.range,t);t.mapper.flushDeferredBindings(),t.consumable.verifyAllConsumed("insert")}convert(l,n,e,t={}){const o=this._createConversionApi(e,void 0,t);this._convertInsert(l,o);for(const[u,i]of n)this._convertMarkerAdd(u,i,o);o.consumable.verifyAllConsumed("insert")}convertSelection(l,n,e){const t=Array.from(n.getMarkersAtPosition(l.getFirstPosition())),o=this._createConversionApi(e);if(this._addConsumablesForSelection(o.consumable,l,t),this.fire("selection",{selection:l},o),l.isCollapsed){for(const n of t){const e=n.getRange();if(!ca(l.getFirstPosition(),n,o.mapper))continue;const t={item:l,markerName:n.name,markerRange:e};o.consumable.test(l,"addMarker:"+n.name)&&this.fire(`addMarker:${n.name}`,t,o)}for(const n of l.getAttributeKeys()){const e={item:l,range:l.getFirstRange(),attributeKey:n,attributeOldValue:null,attributeNewValue:l.getAttribute(n)};o.consumable.test(l,"attribute:"+e.attributeKey)&&this.fire(`attribute:${e.attributeKey}:$text`,e,o)}}}_convertInsert(l,n,e={}){e.doNotAddConsumables||this._addConsumablesForInsert(n.consumable,Array.from(l));for(const t of Array.from(l.getWalker({shallow:!0})).map(pa))this._testAndFire("insert",t,n)}_convertRemove(l,n,e,t){this.fire(`remove:${e}`,{position:l,length:n},t)}_convertAttribute(l,n,e,t,o){this._addConsumablesForRange(o.consumable,l,`attribute:${n}`);for(const u of l){const l={item:u.item,range:ia._createFromPositionAndShift(u.previousPosition,u.length),attributeKey:n,attributeOldValue:e,attributeNewValue:t};this._testAndFire(`attribute:${n}`,l,o)}}_convertReinsert(l,n){const e=Array.from(l.getWalker({shallow:!0}));this._addConsumablesForInsert(n.consumable,e);for(const t of e.map(pa))this._testAndFire("insert",{...t,reconversion:!0},n)}_convertMarkerAdd(l,n,e){if("$graveyard"==n.root.rootName)return;const t=`addMarker:${l}`;if(e.consumable.add(n,t),this.fire(t,{markerName:l,markerRange:n},e),e.consumable.consume(n,t)){this._addConsumablesForRange(e.consumable,n,t);for(const o of n.getItems()){if(!e.consumable.test(o,t))continue;const u={item:o,range:ia._createOn(o),markerName:l,markerRange:n};this.fire(t,u,e)}}}_convertMarkerRemove(l,n,e){"$graveyard"!=n.root.rootName&&this.fire(`removeMarker:${l}`,{markerName:l,markerRange:n},e)}_reduceChanges(l){const n={changes:l};return this.fire("reduceChanges",n),n.changes}_addConsumablesForInsert(l,n){for(const e of n){const n=e.item;if(null===l.test(n,"insert")){l.add(n,"insert");for(const e of n.getAttributeKeys())l.add(n,"attribute:"+e)}}return l}_addConsumablesForRange(l,n,e){for(const t of n.getItems())l.add(t,e);return l}_addConsumablesForSelection(l,n,e){l.add(n,"selection");for(const t of e)l.add(n,"addMarker:"+t.name);for(const t of n.getAttributeKeys())l.add(n,"attribute:"+t);return l}_testAndFire(l,n,e){const t=function(l,n){return`${l}:${n.item.is("element")?n.item.name:"$text"}`}(l,n),o=n.item.is("$textProxy")?e.consumable._getSymbolForTextProxy(n.item):n.item,u=this._firedEventsMap.get(e),i=u.get(o);if(i){if(i.has(t))return;i.add(t)}else u.set(o,new Set([t]));this.fire(t,n,e)}_testAndFireAddAttributes(l,n){const e={item:l,range:ia._createOn(l)};for(const t of e.item.getAttributeKeys())e.attributeKey=t,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(t),this._testAndFire(`attribute:${t}`,e,n)}_createConversionApi(l,n=new Set,e={}){const t={...this._conversionApi,consumable:new ra,writer:l,options:e,convertItem:l=>this._convertInsert(ia._createOn(l),t),convertChildren:l=>this._convertInsert(ia._createIn(l),t,{doNotAddConsumables:!0}),convertAttributes:l=>this._testAndFireAddAttributes(l,t),canReuseView:l=>!n.has(t.mapper.toModelElement(l))};return this._firedEventsMap.set(t,new Map),t}}function ca(l,n,e){const t=n.getRange(),o=Array.from(l.getAncestors());return o.shift(),o.reverse(),!o.some(l=>{if(t.containsItem(l))return!!e.toViewElement(l).getCustomProperty("addHighlight")})}function pa(l){return{item:l.item,range:ia._createFromPositionAndShift(l.previousPosition,l.length)}}class fa extends(E(Hi)){constructor(...l){super(),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,l.length&&this.setTo(...l)}get anchor(){if(this._ranges.length>0){const l=this._ranges[this._ranges.length-1];return this._lastRangeBackward?l.end:l.start}return null}get focus(){if(this._ranges.length>0){const l=this._ranges[this._ranges.length-1];return this._lastRangeBackward?l.start:l.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(l){if(this.rangeCount!=l.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(l.anchor)||!this.focus.isEqual(l.focus))return!1;for(const n of this._ranges){let e=!1;for(const t of l._ranges)if(n.isEqual(t)){e=!0;break}if(!e)return!1}return!0}*getRanges(){for(const l of this._ranges)yield new ia(l.start,l.end)}getFirstRange(){let l=null;for(const n of this._ranges)l&&!n.start.isBefore(l.start)||(l=n);return l?new ia(l.start,l.end):null}getLastRange(){let l=null;for(const n of this._ranges)l&&!n.end.isAfter(l.end)||(l=n);return l?new ia(l.start,l.end):null}getFirstPosition(){const l=this.getFirstRange();return l?l.start.clone():null}getLastPosition(){const l=this.getLastRange();return l?l.end.clone():null}setTo(...l){let[n,e,t]=l;if("object"==typeof e&&(t=e,e=void 0),null===n)this._setRanges([]);else if(n instanceof fa)this._setRanges(n.getRanges(),n.isBackward);else if(n&&"function"==typeof n.getRanges)this._setRanges(n.getRanges(),n.isBackward);else if(n instanceof ia)this._setRanges([n],!!t&&!!t.backward);else if(n instanceof la)this._setRanges([new ia(n)]);else if(n instanceof Yi){const l=!!t&&!!t.backward;let o;if("in"==e)o=ia._createIn(n);else if("on"==e)o=ia._createOn(n);else{if(void 0===e)throw new b("model-selection-setto-required-second-parameter",[this,n]);o=new ia(la._createAt(n,e))}this._setRanges([o],l)}else{if(!K(n))throw new b("model-selection-setto-not-selectable",[this,n]);this._setRanges(n,t&&!!t.backward)}}_setRanges(l,n=!1){const e=Array.from(l),t=e.some(n=>{if(!(n instanceof ia))throw new b("model-selection-set-ranges-not-range",[this,l]);return this._ranges.every(l=>!l.isEqual(n))});(e.length!==this._ranges.length||t)&&(this._replaceAllRanges(e),this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0}))}setFocus(l,n){if(null===this.anchor)throw new b("model-selection-setfocus-no-ranges",[this,l]);const e=la._createAt(l,n);if("same"==e.compareWith(this.focus))return;const t=this.anchor;this._ranges.length&&this._popRange(),"before"==e.compareWith(t)?(this._pushRange(new ia(e,t)),this._lastRangeBackward=!0):(this._pushRange(new ia(t,e)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(l){return this._attrs.get(l)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(l){return this._attrs.has(l)}removeAttribute(l){this.hasAttribute(l)&&(this._attrs.delete(l),this.fire("change:attribute",{attributeKeys:[l],directChange:!0}))}setAttribute(l,n){this.getAttribute(l)!==n&&(this._attrs.set(l,n),this.fire("change:attribute",{attributeKeys:[l],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const l=new WeakSet;for(const n of this.getRanges()){const e=ga(n.start,l);e&&va(e,n)&&(yield e);for(const o of n.getWalker()){const e=o.item;"elementEnd"==o.type&&ha(e,l,n)&&(yield e)}const t=ga(n.end,l);t&&!n.end.isTouching(la._createAt(t,0))&&va(t,n)&&(yield t)}}containsEntireContent(l=this.anchor.root){const n=la._createAt(l,0),e=la._createAt(l,"end");return n.isTouching(this.getFirstPosition())&&e.isTouching(this.getLastPosition())}_pushRange(l){this._checkRange(l),this._ranges.push(new ia(l.start,l.end))}_checkRange(l){for(let n=0;n0;)this._popRange()}_popRange(){this._ranges.pop()}}function ma(l,n){return!n.has(l)&&(n.add(l),l.root.document.model.schema.isBlock(l)&&!!l.parent)}function ha(l,n,e){return ma(l,n)&&va(l,e)}function ga(l,n){const e=l.parent.root.document.model.schema,t=l.parent.getAncestors({parentFirst:!0,includeSelf:!0});let o=!1;const u=t.find(l=>!o&&(o=e.isLimit(l),!o&&ma(l,n)));return t.forEach(l=>n.add(l)),u}function va(l,n){const e=function(l){const n=l.root.document.model.schema;let e=l.parent;for(;e;){if(n.isBlock(e))return e;e=e.parent}}(l);return!e||!n.containsRange(ia._createOn(e),!0)}fa.prototype.is=function(l){return"selection"===l||"model:selection"===l};class ba extends(E(ia)){constructor(l,n){super(l,n),(function(){this.listenTo(this.root.document.model,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&(function(l){const n=this.getTransformedByOperation(l),e=ia._createFromRanges(n),t=!e.isEqual(this),o=function(l,n){switch(n.type){case"insert":return l.containsPosition(n.position);case"move":case"remove":case"reinsert":case"merge":return l.containsPosition(n.sourcePosition)||l.start.isEqual(n.sourcePosition)||l.containsPosition(n.targetPosition);case"split":return l.containsPosition(n.splitPosition)||l.containsPosition(n.insertionPosition)}return!1}(this,l);let u=null;if(t){"$graveyard"==e.root.rootName&&(u="remove"==l.type?l.sourcePosition:l.deletionPosition);const n=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",n,{deletionPosition:u})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:u})}).call(this,e)},{priority:"low"})}).call(this)}detach(){this.stopListening()}toRange(){return new ia(this.start,this.end)}static fromRange(l){return new ba(l.start,l.end)}}ba.prototype.is=function(l){return"liveRange"===l||"model:liveRange"===l||"range"==l||"model:range"===l};const ya="selection:";class xa extends(E(Hi)){constructor(l){super(),this._selection=new Aa(l),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(l){return this._selection.containsEntireContent(l)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(l){return this._selection.getAttribute(l)}hasAttribute(l){return this._selection.hasAttribute(l)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(l){this._selection.observeMarkers(l)}_setFocus(l,n){this._selection.setFocus(l,n)}_setTo(...l){this._selection.setTo(...l)}_setAttribute(l,n){this._selection.setAttribute(l,n)}_removeAttribute(l){this._selection.removeAttribute(l)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(l){this._selection.restoreGravity(l)}static _getStoreAttributeKey(l){return ya+l}static _isStoreAttributeKey(l){return l.startsWith(ya)}}xa.prototype.is=function(l){return"selection"===l||"model:selection"==l||"documentSelection"==l||"model:documentSelection"==l};class Aa extends fa{constructor(l){super(),this.markers=new Et({idProperty:"name"}),this._model=l.model,this._document=l,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&"marker"!=e.type&&"rename"!=e.type&&"noop"!=e.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(l,n,e,t)=>{this._updateMarker(n,t)}),this.listenTo(this._document,"change",(l,n)=>{!function(l,n){const e=l.document.differ;for(const t of e.getChanges()){if("insert"!=t.type)continue;const e=t.position.parent;t.length===e.maxOffset&&l.enqueueChange(n,l=>{const n=Array.from(e.getAttributeKeys()).filter(l=>l.startsWith(ya));for(const t of n)l.removeAttribute(t,e)})}}(this._model,n)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let l=0;l{if(this._hasChangedRange=!0,n.root==this._document.graveyard){this._selectionRestorePosition=t.deletionPosition;const l=this._ranges.indexOf(n);this._ranges.splice(l,1),n.detach()}}),n}updateMarkers(){if(!this._observedMarkers.size)return;const l=[];let n=!1;for(const t of this._model.markers){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const e=t.getRange();for(const o of this.getRanges())e.containsRange(o,!o.isCollapsed)&&l.push(t)}const e=Array.from(this.markers);for(const t of l)this.markers.has(t)||(this.markers.add(t),n=!0);for(const t of Array.from(this.markers))l.includes(t)||(this.markers.remove(t),n=!0);n&&this.fire("change:marker",{oldMarkers:e,directChange:!1})}_updateMarker(l,n){const e=l.name.split(":",1)[0];if(!this._observedMarkers.has(e))return;let t=!1;const o=Array.from(this.markers),u=this.markers.has(l);if(n){let e=!1;for(const l of this.getRanges())if(n.containsRange(l,!l.isCollapsed)){e=!0;break}e&&!u?(this.markers.add(l),t=!0):!e&&u&&(this.markers.remove(l),t=!0)}else u&&(this.markers.remove(l),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(l){const n=It(this._getSurroundingAttributes()),e=It(this.getAttributes());if(l)this._attributePriority=new Map,this._attrs=new Map;else for(const[o,u]of this._attributePriority)"low"==u&&(this._attrs.delete(o),this._attributePriority.delete(o));this._setAttributesTo(n);const t=[];for(const[o,u]of this.getAttributes())e.has(o)&&e.get(o)===u||t.push(o);for(const[o]of e)this.hasAttribute(o)||t.push(o);t.length>0&&this.fire("change:attribute",{attributeKeys:t,directChange:!1})}_setAttribute(l,n,e=!0){const t=e?"normal":"low";return("low"!=t||"normal"!=this._attributePriority.get(l))&&(super.getAttribute(l)!==n&&(this._attrs.set(l,n),this._attributePriority.set(l,t),!0))}_removeAttribute(l,n=!0){const e=n?"normal":"low";return!("low"==e&&"normal"==this._attributePriority.get(l)||(this._attributePriority.set(l,e),!super.hasAttribute(l)||(this._attrs.delete(l),0)))}_setAttributesTo(l){const n=new Set;for(const[e,t]of this.getAttributes())l.get(e)!==t&&this._removeAttribute(e,!1);for(const[e,t]of l)this._setAttribute(e,t,!1)&&n.add(e);return n}*getStoredAttributes(){const l=this.getFirstPosition().parent;if(this.isCollapsed&&l.isEmpty)for(const n of l.getAttributeKeys())if(n.startsWith(ya)){const e=n.substr(ya.length);yield[e,l.getAttribute(n)]}}_getSurroundingAttributes(){const l=this.getFirstPosition(),n=this._model.schema;let e=null;if(this.isCollapsed){const t=l.textNode?l.textNode:l.nodeBefore,o=l.textNode?l.textNode:l.nodeAfter;if(this.isGravityOverridden||(e=_a(t)),e||(e=_a(o)),!this.isGravityOverridden&&!e){let l=t;for(;l&&!n.isInline(l)&&!e;)e=_a(l=l.previousSibling)}if(!e){let l=o;for(;l&&!n.isInline(l)&&!e;)e=_a(l=l.nextSibling)}e||(e=this.getStoredAttributes())}else{const l=this.getFirstRange();for(const t of l){if(t.item.is("element")&&n.isObject(t.item))break;if("text"==t.type){e=t.item.getAttributes();break}}}return e}_fixGraveyardSelection(l){const n=this._model.schema.getNearestSelectionRange(l);n&&this._pushRange(n)}}function _a(l){return l instanceof $i||l instanceof Xi?l.getAttributes():null}class Ca{constructor(l){this._dispatchers=l}add(l){for(const n of this._dispatchers)l(n);return this}}const wa=function(l){return Ee(l,5)};class Ra extends Ca{elementToElement(l){return this.add(function(l){const n=Ea(l.model),e=Oa(l.view,"container");return n.attributes.length&&(n.children=!0),t=>{t.on(`insert:${n.name}`,function(l,n=function(l,n,{preflight:e}={}){return e?n.test(l,"insert"):n.consume(l,"insert")}){return(e,t,o)=>{if(!n(t.item,o.consumable,{preflight:!0}))return;const u=l(t.item,o,t);if(!u)return;n(t.item,o.consumable);const i=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,u),o.writer.insert(i,u),o.convertAttributes(t.item),Da(u,t.item.getChildren(),o,{reconversion:t.reconversion})}}(e,Na(n)),{priority:l.converterPriority||"normal"}),(n.children||n.attributes.length)&&t.on("reduceChanges",Fa(n),{priority:"low"})}}(l))}elementToStructure(l){return this.add(function(l){const n=Ea(l.model),e=Oa(l.view,"container");return n.children=!0,t=>{if(t._conversionApi.schema.checkChild(n.name,"$text"))throw new b("conversion-element-to-structure-disallowed-text",t,{elementName:n.name});var o,u;t.on(`insert:${n.name}`,(o=e,u=Na(n),(l,n,e)=>{if(!u(n.item,e.consumable,{preflight:!0}))return;const t=new Map;e.writer._registerSlotFactory(function(l,n,e){return(t,o="children")=>{const u=t.createContainerElement("$slot");let i=null;if("children"===o)i=Array.from(l.getChildren());else{if("function"!=typeof o)throw new b("conversion-slot-mode-unknown",e.dispatcher,{modeOrFilter:o});i=Array.from(l.getChildren()).filter(l=>o(l))}return n.set(u,i),u}}(n.item,t,e));const i=o(n.item,e,n);if(e.writer._clearSlotFactory(),!i)return;!function(l,n,e){const t=Array.from(n.values()).flat(),o=new Set(t);if(o.size!=t.length)throw new b("conversion-slot-filter-overlap",e.dispatcher,{element:l});if(o.size!=l.childCount)throw new b("conversion-slot-filter-incomplete",e.dispatcher,{element:l})}(n.item,t,e),u(n.item,e.consumable);const a=e.mapper.toViewPosition(n.range.start);e.mapper.bindElements(n.item,i),e.writer.insert(a,i),e.convertAttributes(n.item),function(l,n,e,t){e.mapper.on("modelToViewPosition",i,{priority:"highest"});let o=null,u=null;for([o,u]of n)Da(l,u,e,t),e.writer.move(e.writer.createRangeIn(o),e.writer.createPositionBefore(o)),e.writer.remove(o);function i(l,n){const e=n.modelPosition.nodeAfter,t=u.indexOf(e);t<0||(n.viewPosition=n.mapper.findPositionIn(o,t))}e.mapper.off("modelToViewPosition",i)}(i,t,e,{reconversion:n.reconversion})}),{priority:l.converterPriority||"normal"}),t.on("reduceChanges",Fa(n),{priority:"low"})}}(l))}attributeToElement(l){return this.add(function(l){let n=(l=wa(l)).model;"string"==typeof n&&(n={key:n});let e=`attribute:${n.key}`;if(n.name&&(e+=":"+n.name),n.values)for(const o of n.values)l.view[o]=Oa(l.view[o],"attribute");else l.view=Oa(l.view,"attribute");const t=Sa(l);return n=>{n.on(e,function(l){return(n,e,t)=>{if(!t.consumable.test(e.item,n.name))return;const o=l(e.attributeOldValue,t,e),u=l(e.attributeNewValue,t,e);if(!o&&!u)return;t.consumable.consume(e.item,n.name);const i=t.writer,a=i.document.selection;if(e.item instanceof fa||e.item instanceof xa)i.wrap(a.getFirstRange(),u);else{let l=t.mapper.toViewRange(e.range);null!==e.attributeOldValue&&o&&(l=i.unwrap(l,o)),null!==e.attributeNewValue&&u&&i.wrap(l,u)}}}(t),{priority:l.converterPriority||"normal"})}}(l))}attributeToAttribute(l){return this.add(function(l){let n=(l=wa(l)).model;"string"==typeof n&&(n={key:n});let e=`attribute:${n.key}`;if(n.name&&(e+=":"+n.name),n.values)for(const o of n.values)l.view[o]=ka(l.view[o]);else l.view=ka(l.view);const t=Sa(l);return n=>{var o;n.on(e,(o=t,(l,n,e)=>{if(!e.consumable.test(n.item,l.name))return;const t=o(n.attributeOldValue,e,n),u=o(n.attributeNewValue,e,n);if(!t&&!u)return;e.consumable.consume(n.item,l.name);const i=e.mapper.toViewElement(n.item),a=e.writer;if(!i)throw new b("conversion-attribute-to-attribute-on-text",e.dispatcher,n);if(null!==n.attributeOldValue&&t)if("class"==t.key){const l=wt(t.value);for(const n of l)a.removeClass(n,i)}else if("style"==t.key){const l=Object.keys(t.value);for(const n of l)a.removeStyle(n,i)}else a.removeAttribute(t.key,i);if(null!==n.attributeNewValue&&u)if("class"==u.key){const l=wt(u.value);for(const n of l)a.addClass(n,i)}else if("style"==u.key){const l=Object.keys(u.value);for(const n of l)a.setStyle(n,u.value[n],i)}else a.setAttribute(u.key,u.value,i)}),{priority:l.converterPriority||"normal"})}}(l))}markerToElement(l){return this.add(function(l){const n=Oa(l.view,"ui");return e=>{var t;e.on(`addMarker:${l.model}`,(t=n,(l,n,e)=>{n.isOpening=!0;const o=t(n,e);n.isOpening=!1;const u=t(n,e);if(!o||!u)return;const i=n.markerRange;if(i.isCollapsed&&!e.consumable.consume(i,l.name))return;for(const t of i)if(!e.consumable.consume(t.item,l.name))return;const a=e.mapper,r=e.writer;r.insert(a.toViewPosition(i.start),o),e.mapper.bindElementToMarker(o,n.markerName),i.isCollapsed||(r.insert(a.toViewPosition(i.end),u),e.mapper.bindElementToMarker(u,n.markerName)),l.stop()}),{priority:l.converterPriority||"normal"}),e.on(`removeMarker:${l.model}`,(l,n,e)=>{const t=e.mapper.markerNameToElements(n.markerName);if(t){for(const l of t)e.mapper.unbindElementFromMarkerName(l,n.markerName),e.writer.clear(e.writer.createRangeOn(l),l);e.writer.clearClonedElementsGroup(n.markerName),l.stop()}},{priority:l.converterPriority||"normal"})}}(l))}markerToHighlight(l){return this.add(function(l){return n=>{var e;n.on(`addMarker:${l.model}`,(e=l.view,(l,n,t)=>{if(!n.item)return;if(!(n.item instanceof fa||n.item instanceof xa||n.item.is("$textProxy")))return;const o=Ia(e,n,t);if(!o)return;if(!t.consumable.consume(n.item,l.name))return;const u=t.writer,i=La(u,o),a=u.document.selection;if(n.item instanceof fa||n.item instanceof xa)u.wrap(a.getFirstRange(),i);else{const l=t.mapper.toViewRange(n.range),e=u.wrap(l,i);for(const o of e.getItems())if(o.is("attributeElement")&&o.isSimilar(i)){t.mapper.bindElementToMarker(o,n.markerName);break}}}),{priority:l.converterPriority||"normal"}),n.on(`addMarker:${l.model}`,function(l){return(n,e,t)=>{if(!e.item)return;if(!(e.item instanceof Ki))return;const o=Ia(l,e,t);if(!o)return;if(!t.consumable.test(e.item,n.name))return;const u=t.mapper.toViewElement(e.item);if(u&&u.getCustomProperty("addHighlight")){t.consumable.consume(e.item,n.name);for(const l of ia._createIn(e.item))t.consumable.consume(l.item,n.name);u.getCustomProperty("addHighlight")(u,o,t.writer),t.mapper.bindElementToMarker(u,e.markerName)}}}(l.view),{priority:l.converterPriority||"normal"}),n.on(`removeMarker:${l.model}`,function(l){return(n,e,t)=>{if(e.markerRange.isCollapsed)return;const o=Ia(l,e,t);if(!o)return;const u=La(t.writer,o),i=t.mapper.markerNameToElements(e.markerName);if(i){for(const l of i)t.mapper.unbindElementFromMarkerName(l,e.markerName),l.is("attributeElement")?t.writer.unwrap(t.writer.createRangeOn(l),u):l.getCustomProperty("removeHighlight")(l,o.id,t.writer);t.writer.clearClonedElementsGroup(e.markerName),n.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(l))}markerToData(l){return this.add(function(l){const n=(l=wa(l)).model;let e=l.view;return e||(e=(e=>({group:n,name:e.substr(l.model.length+1)}))),t=>{var o;t.on(`addMarker:${n}`,(o=e,(l,n,e)=>{const t=o(n.markerName,e);if(!t)return;const u=n.markerRange;e.consumable.consume(u,l.name)&&(Ma(u,!1,e,n,t),Ma(u,!0,e,n,t),l.stop())}),{priority:l.converterPriority||"normal"}),t.on(`removeMarker:${n}`,function(l){return(n,e,t)=>{const o=l(e.markerName,t);if(!o)return;const u=t.mapper.markerNameToElements(e.markerName);if(u){for(const l of u)t.mapper.unbindElementFromMarkerName(l,e.markerName),l.is("containerElement")?(i(`data-${o.group}-start-before`,l),i(`data-${o.group}-start-after`,l),i(`data-${o.group}-end-before`,l),i(`data-${o.group}-end-after`,l)):t.writer.clear(t.writer.createRangeOn(l),l);t.writer.clearClonedElementsGroup(e.markerName),n.stop()}function i(l,n){if(n.hasAttribute(l)){const e=new Set(n.getAttribute(l).split(","));e.delete(o.name),0==e.size?t.writer.removeAttribute(l,n):t.writer.setAttribute(l,Array.from(e).join(","),n)}}}}(e),{priority:l.converterPriority||"normal"})}}(l))}}function La(l,n){const e=l.createAttributeElement("span",n.attributes);return n.classes&&e._addClass(n.classes),"number"==typeof n.priority&&(e._priority=n.priority),e._id=n.id,e}function Ma(l,n,e,t,o){const u=n?l.start:l.end,i=u.nodeAfter&&u.nodeAfter.is("element")?u.nodeAfter:null,a=u.nodeBefore&&u.nodeBefore.is("element")?u.nodeBefore:null;if(i||a){let l,u;n&&i||!n&&!a?(l=i,u=!0):(l=a,u=!1);const r=e.mapper.toViewElement(l);if(r)return void function(l,n,e,t,o,u){const i=`data-${u.group}-${n?"start":"end"}-${e?"before":"after"}`,a=l.hasAttribute(i)?l.getAttribute(i).split(","):[];a.unshift(u.name),t.writer.setAttribute(i,a.join(","),l),t.mapper.bindElementToMarker(l,o.markerName)}(r,n,u,e,t,o)}!function(l,n,e,t,o){const u=`${o.group}-${n?"start":"end"}`,i=o.name?{name:o.name}:null,a=e.writer.createUIElement(u,i);e.writer.insert(l,a),e.mapper.bindElementToMarker(a,t.markerName)}(e.mapper.toViewPosition(u),n,e,t,o)}function Ea(l){return"string"==typeof l&&(l={name:l}),l.attributes?Array.isArray(l.attributes)||(l.attributes=[l.attributes]):l.attributes=[],l.children=!!l.children,l}function Oa(l,n){return"function"==typeof l?l:(e,t)=>(function(l,n,e){let t;"string"==typeof l&&(l={name:l});const o=n.writer,u=Object.assign({},l.attributes);if("container"==e)t=o.createContainerElement(l.name,u);else if("attribute"==e){const n={priority:l.priority||pu.DEFAULT_PRIORITY};t=o.createAttributeElement(l.name,u,n)}else t=o.createUIElement(l.name,u);if(l.styles){const n=Object.keys(l.styles);for(const e of n)o.setStyle(e,l.styles[e],t)}if(l.classes){const n=l.classes;if("string"==typeof n)o.addClass(n,t);else for(const l of n)o.addClass(l,t)}return t})(l,t,n)}function Sa(l){return l.model.values?(n,e,t)=>{const o=l.view[n];return o?o(n,e,t):null}:l.view}function ka(l){return"string"==typeof l?n=>({key:l,value:n}):"object"==typeof l?l.value?()=>l:n=>({key:l.key,value:n}):l}function Ia(l,n,e){const t="function"==typeof l?l(n,e):l;return t?(t.priority||(t.priority=10),t.id||(t.id=n.markerName),t):null}function Fa(l){const n=function(l){return(n,e)=>{if(!n.is("element",l.name))return!1;if("attribute"==e.type){if(l.attributes.includes(e.attributeKey))return!0}else if(l.children)return!0;return!1}}(l);return(l,e)=>{const t=[];e.reconvertedElements||(e.reconvertedElements=new Set);for(const o of e.changes){const l="attribute"==o.type?o.range.start.nodeAfter:o.position.parent;if(l&&n(l,o)){if(!e.reconvertedElements.has(l)){e.reconvertedElements.add(l);const n=la._createBefore(l);t.push({type:"remove",name:l.name,position:n,length:1},{type:"reinsert",name:l.name,position:n,length:1})}}else t.push(o)}e.changes=t}}function Na(l){return(n,e,t={})=>{const o=["insert"];for(const u of l.attributes)n.hasAttribute(u)&&o.push(`attribute:${u}`);return!!o.every(l=>e.test(n,l))&&(t.preflight||o.forEach(l=>e.consume(n,l)),!0)}}function Da(l,n,e,t){for(const o of n)za(l.root,o,e,t)||e.convertItem(o)}function za(l,n,e,t){const{writer:o,mapper:u}=e;if(!t.reconversion)return!1;const i=u.toViewElement(n);return!(!i||i.root==l||!e.canReuseView(i)||(o.move(o.createRangeOn(i),u.toViewPosition(la._createBefore(n))),0))}function qa(l){const{schema:n,document:e}=l.model;for(const t of e.getRootNames()){const o=e.getRoot(t);if(o.isEmpty&&!n.checkChild(o,"$text")&&n.checkChild(o,"paragraph"))return l.insertElement("paragraph",o),!0}return!1}function Ta(l,n,e){const t=e.createContext(l);return!!e.checkChild(t,"paragraph")&&!!e.checkChild(t.push("paragraph"),n)}function Pa(l,n){const e=n.createElement("paragraph");return n.insert(e,l),n.createPositionAt(e,0)}class Ba extends Ca{elementToElement(l){return this.add(Va(l))}elementToAttribute(l){return this.add(function(l){Ga(l=wa(l));const n=ja(l,!1),e=Ua(l.view),t=e?`element:${e}`:"element";return e=>{e.on(t,n,{priority:l.converterPriority||"low"})}}(l))}attributeToAttribute(l){return this.add(function(l){let n=null;("string"==typeof(l=wa(l)).view||l.view.key)&&(n=function(l){"string"==typeof l.view&&(l.view={key:l.view});const n=l.view.key;let e;return e="class"==n||"style"==n?{["class"==n?"classes":"styles"]:l.view.value}:{attributes:{[n]:void 0===l.view.value?/[\s\S]*/:l.view.value}},l.view.name&&(e.name=l.view.name),l.view=e,n}(l)),Ga(l,n);const e=ja(l,!0);return n=>{n.on("element",e,{priority:l.converterPriority||"low"})}}(l))}elementToMarker(l){return this.add(function(l){const n=function(l){return(n,e)=>{const t="string"==typeof l?l:l(n,e);return e.writer.createElement("$marker",{"data-name":t})}}(l.model);return Va({...l,model:n})}(l))}dataToMarker(l){return this.add(function(l){(l=wa(l)).model||(l.model=(n=>n?l.view+":"+n:l.view));const n={view:l.view,model:l.model},e=Wa(Ha(n,"start")),t=Wa(Ha(n,"end"));return o=>{o.on(`element:${l.view}-start`,e,{priority:l.converterPriority||"normal"}),o.on(`element:${l.view}-end`,t,{priority:l.converterPriority||"normal"});const u=g.get("low"),i=g.get("highest"),a=g.get(l.converterPriority)/i;o.on("element",function(l){return(n,e,t)=>{const o=`data-${l.view}`;function u(n,o){for(const u of o){const o=l.model(u,t),i=t.writer.createElement("$marker",{"data-name":o});t.writer.insert(i,n),e.modelCursor.isEqual(n)?e.modelCursor=e.modelCursor.getShiftedBy(1):e.modelCursor=e.modelCursor._getTransformedByInsertion(n,1),e.modelRange=e.modelRange._getTransformedByInsertion(n,1)[0]}}(t.consumable.test(e.viewItem,{attributes:o+"-end-after"})||t.consumable.test(e.viewItem,{attributes:o+"-start-after"})||t.consumable.test(e.viewItem,{attributes:o+"-end-before"})||t.consumable.test(e.viewItem,{attributes:o+"-start-before"}))&&(e.modelRange||Object.assign(e,t.convertChildren(e.viewItem,e.modelCursor)),t.consumable.consume(e.viewItem,{attributes:o+"-end-after"})&&u(e.modelRange.end,e.viewItem.getAttribute(o+"-end-after").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-start-after"})&&u(e.modelRange.end,e.viewItem.getAttribute(o+"-start-after").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-end-before"})&&u(e.modelRange.start,e.viewItem.getAttribute(o+"-end-before").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-start-before"})&&u(e.modelRange.start,e.viewItem.getAttribute(o+"-start-before").split(",")))}}(n),{priority:u+a})}}(l))}}function Va(l){const n=Wa(l=wa(l)),e=Ua(l.view),t=e?`element:${e}`:"element";return e=>{e.on(t,n,{priority:l.converterPriority||"normal"})}}function Ua(l){return"string"==typeof l?l:"object"==typeof l&&"string"==typeof l.name?l.name:null}function Wa(l){const n=new oo(l.view);return(e,t,o)=>{const u=n.match(t.viewItem);if(!u)return;const i=u.match;if(i.name=!0,!o.consumable.test(t.viewItem,i))return;const a=function(l,n,e){return l instanceof Function?l(n,e):e.writer.createElement(l)}(l.model,t.viewItem,o);a&&o.safeInsert(a,t.modelCursor)&&(o.consumable.consume(t.viewItem,i),o.convertChildren(t.viewItem,a),o.updateConversionResult(a,t))}}function Ga(l,n=null){const e=null===n||(l=>l.getAttribute(n)),t="object"!=typeof l.model?l.model:l.model.key,o="object"!=typeof l.model||void 0===l.model.value?e:l.model.value;l.model={key:t,value:o}}function ja(l,n){const e=new oo(l.view);return(t,o,u)=>{if(!o.modelRange&&n)return;const i=e.match(o.viewItem);if(!i)return;if(function(l,n){const e="function"==typeof l?l(n):l;return!("object"==typeof e&&!Ua(e))&&(!e.classes&&!e.attributes&&!e.styles)}(l.view,o.viewItem)?i.match.name=!0:delete i.match.name,!u.consumable.test(o.viewItem,i.match))return;const a=l.model.key,r="function"==typeof l.model.value?l.model.value(o.viewItem,u):l.model.value;null!==r&&(o.modelRange||Object.assign(o,u.convertChildren(o.viewItem,o.modelCursor)),function(l,n,e,t){let o=!1;for(const u of Array.from(l.getItems({shallow:e})))t.schema.checkAttribute(u,n.key)&&(o=!0,u.hasAttribute(n.key)||t.writer.setAttribute(n.key,n.value,u));return o}(o.modelRange,{key:a,value:r},n,u)&&(u.consumable.test(o.viewItem,{name:!0})&&(i.match.name=!0),u.consumable.consume(o.viewItem,i.match)))}}function Ha(l,n){return{view:`${l.view}-${n}`,model:(n,e)=>{const t=n.getAttribute("name"),o=l.model(t,e);return e.writer.createElement("$marker",{"data-name":o})}}}class Ya extends(U()){constructor(l,n){super(),this.model=l,this.view=new ji(n),this.mapper=new aa,this.downcastDispatcher=new da({mapper:this.mapper,schema:l.schema});const e=this.model.document,t=e.selection,o=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(e,"change",()=>{this.view.change(l=>{this.downcastDispatcher.convertChanges(e.differ,o,l),this.downcastDispatcher.convertSelection(t,o,l)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(l,n){return(e,t)=>{const o=t.newSelection,u=[];for(const l of o.getRanges())u.push(n.toModelRange(l));const i=l.createSelection(u,{backward:o.isBackward});i.isEqual(l.document.selection)||l.change(l=>{l.setSelection(i)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=e.writer,o=e.mapper.toViewPosition(n.range.start),u=t.createText(n.item.data);t.insert(o,u)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,n,e)=>{e.convertAttributes(n.item),n.reconversion||!n.item.is("element")||n.item.isEmpty||e.convertChildren(n.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(l,n,e)=>{const t=e.mapper.toViewPosition(n.position),o=n.position.getShiftedBy(n.length),u=e.mapper.toViewPosition(o,{isPhantom:!0}),i=e.writer.createRange(t,u),a=e.writer.remove(i.getTrimmed());for(const r of e.writer.createRangeIn(a).getItems())e.mapper.unbindViewElement(r,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=e.writer,o=t.document.selection;for(const u of o.getRanges())u.isCollapsed&&u.end.parent.isAttached()&&e.writer.mergeAttributes(u.start);t.setSelection(null)},{priority:"high"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=n.selection;if(t.isCollapsed)return;if(!e.consumable.consume(t,"selection"))return;const o=[];for(const u of t.getRanges())o.push(e.mapper.toViewRange(u));e.writer.setSelection(o,{backward:t.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=n.selection;if(!t.isCollapsed)return;if(!e.consumable.consume(t,"selection"))return;const o=e.writer,u=t.getFirstPosition(),i=e.mapper.toViewPosition(u),a=o.breakAttributes(i);o.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(l=>{if("$graveyard"==l.rootName)return null;const n=new Ko(this.view.document,l.name);return n.rootName=l.rootName,this.mapper.bindElements(l,n),n})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(l){const n="string"==typeof l?l:l.name,e=this.model.markers.get(n);if(!e)throw new b("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:n});this.model.change(()=>{this.model.markers._refresh(e)})}reconvertItem(l){this.model.change(()=>{this.model.document.differ._refreshItem(l)})}}class Za{constructor(){this._consumables=new Map}add(l,n){let e;l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!0):(this._consumables.has(l)?e=this._consumables.get(l):(e=new $a(l),this._consumables.set(l,e)),e.add(n))}test(l,n){const e=this._consumables.get(l);return void 0===e?null:l.is("$text")||l.is("documentFragment")?e:e.test(n)}consume(l,n){return!!this.test(l,n)&&(l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!1):this._consumables.get(l).consume(n),!0)}revert(l,n){const e=this._consumables.get(l);void 0!==e&&(l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!0):e.revert(n))}static consumablesFromElement(l){const n={element:l,name:!0,attributes:[],classes:[],styles:[]},e=l.getAttributeKeys();for(const u of e)"style"!=u&&"class"!=u&&n.attributes.push(u);const t=l.getClassNames();for(const u of t)n.classes.push(u);const o=l.getStyleNames();for(const u of o)n.styles.push(u);return n}static createFrom(l,n){if(n||(n=new Za),l.is("$text"))return n.add(l),n;l.is("element")&&n.add(l,Za.consumablesFromElement(l)),l.is("documentFragment")&&n.add(l);for(const e of l.getChildren())n=Za.createFrom(e,n);return n}}const Xa=["attributes","classes","styles"];class $a{constructor(l){this.element=l,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(l){l.name&&(this._canConsumeName=!0);for(const n of Xa)n in l&&this._add(n,l[n])}test(l){if(l.name&&!this._canConsumeName)return this._canConsumeName;for(const n of Xa)if(n in l){const e=this._test(n,l[n]);if(!0!==e)return e}return!0}consume(l){l.name&&(this._canConsumeName=!1);for(const n of Xa)n in l&&this._consume(n,l[n])}revert(l){l.name&&(this._canConsumeName=!0);for(const n of Xa)n in l&&this._revert(n,l[n])}_add(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e){if("attributes"===l&&("class"===o||"style"===o))throw new b("viewconsumable-invalid-attribute",this);if(t.set(o,!0),"styles"===l)for(const l of this.element.document.stylesProcessor.getRelatedStyles(o))t.set(l,!0)}}_test(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o){const l=t.get(o);if(void 0===l)return null;if(!l)return!1}else{const l="class"==o?"classes":"styles",n=this._test(l,[...this._consumables[l].keys()]);if(!0!==n)return n}return!0}_consume(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o){if(t.set(o,!1),"styles"==l)for(const l of this.element.document.stylesProcessor.getRelatedStyles(o))t.set(l,!1)}else{const l="class"==o?"classes":"styles";this._consume(l,[...this._consumables[l].keys()])}}_revert(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o)!1===t.get(o)&&t.set(o,!0);else{const l="class"==o?"classes":"styles";this._revert(l,[...this._consumables[l].keys()])}}}class Ka extends(U()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(l,n)=>{n[0]=new Qa(n[0])},{priority:"highest"}),this.on("checkChild",(l,n)=>{n[0]=new Qa(n[0]),n[1]=this.getDefinition(n[1])},{priority:"highest"})}register(l,n){if(this._sourceDefinitions[l])throw new b("schema-cannot-register-item-twice",this,{itemName:l});this._sourceDefinitions[l]=[Object.assign({},n)],this._clearCache()}extend(l,n){if(!this._sourceDefinitions[l])throw new b("schema-cannot-extend-missing-item",this,{itemName:l});this._sourceDefinitions[l].push(Object.assign({},n)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(l){let n;return n="string"==typeof l?l:"is"in l&&(l.is("$text")||l.is("$textProxy"))?"$text":l.name,this.getDefinitions()[n]}isRegistered(l){return!!this.getDefinition(l)}isBlock(l){const n=this.getDefinition(l);return!(!n||!n.isBlock)}isLimit(l){const n=this.getDefinition(l);return!(!n||!n.isLimit&&!n.isObject)}isObject(l){const n=this.getDefinition(l);return!!n&&!!(n.isObject||n.isLimit&&n.isSelectable&&n.isContent)}isInline(l){const n=this.getDefinition(l);return!(!n||!n.isInline)}isSelectable(l){const n=this.getDefinition(l);return!(!n||!n.isSelectable&&!n.isObject)}isContent(l){const n=this.getDefinition(l);return!(!n||!n.isContent&&!n.isObject)}checkChild(l,n){return!!n&&this._checkContextMatch(n,l)}checkAttribute(l,n){const e=this.getDefinition(l.last);return!!e&&e.allowAttributes.includes(n)}checkMerge(l,n){if(l instanceof la){const n=l.nodeBefore,e=l.nodeAfter;if(!(n instanceof Ki))throw new b("schema-check-merge-no-element-before",this);if(!(e instanceof Ki))throw new b("schema-check-merge-no-element-after",this);return this.checkMerge(n,e)}for(const e of n.getChildren())if(!this.checkChild(l,e))return!1;return!0}addChildCheck(l){this.on("checkChild",(n,[e,t])=>{if(!t)return;const o=l(e,t);"boolean"==typeof o&&(n.stop(),n.return=o)},{priority:"high"})}addAttributeCheck(l){this.on("checkAttribute",(n,[e,t])=>{const o=l(e,t);"boolean"==typeof o&&(n.stop(),n.return=o)},{priority:"high"})}setAttributeProperties(l,n){this._attributeProperties[l]=Object.assign(this.getAttributeProperties(l),n)}getAttributeProperties(l){return this._attributeProperties[l]||{}}getLimitElement(l){let n;for(n=l instanceof la?l.parent:(l instanceof ia?[l]:Array.from(l.getRanges())).reduce((l,n)=>{const e=n.getCommonAncestor();return l?l.getCommonAncestor(e,{includeSelf:!0}):e},null);!this.isLimit(n)&&n.parent;)n=n.parent;return n}checkAttributeInSelection(l,n){if(l.isCollapsed){const e=[...l.getFirstPosition().getAncestors(),new Xi("",l.getAttributes())];return this.checkAttribute(e,n)}{const e=l.getRanges();for(const l of e)for(const e of l)if(this.checkAttribute(e.item,n))return!0}return!1}*getValidRanges(l,n){l=function*(l){for(const n of l)yield*n.getMinimalFlatRanges()}(l);for(const e of l)yield*this._getValidRangesForRange(e,n)}getNearestSelectionRange(l,n="both"){if(this.checkChild(l,"$text"))return new ia(l);let e,t;const o=l.getAncestors().reverse().find(l=>this.isLimit(l))||l.root;"both"!=n&&"backward"!=n||(e=new Qi({boundaries:ia._createIn(o),startPosition:l,direction:"backward"})),"both"!=n&&"forward"!=n||(t=new Qi({boundaries:ia._createIn(o),startPosition:l}));for(const u of function*(l,n){let e=!1;for(;!e;){if(e=!0,l){const n=l.next();n.done||(e=!1,yield{walker:l,value:n.value})}if(n){const l=n.next();l.done||(e=!1,yield{walker:n,value:l.value})}}}(e,t)){const l=u.walker==e?"elementEnd":"elementStart",n=u.value;if(n.type==l&&this.isObject(n.item))return ia._createOn(n.item);if(this.checkChild(n.nextPosition,"$text"))return new ia(n.nextPosition)}return null}findAllowedParent(l,n){let e=l.parent;for(;e;){if(this.checkChild(e,n))return e;if(this.isLimit(e))return null;e=e.parent}return null}setAllowedAttributes(l,n,e){const t=e.model;for(const[o,u]of Object.entries(n))t.schema.checkAttribute(l,o)&&e.setAttribute(o,u,l)}removeDisallowedAttributes(l,n){for(const e of l)if(e.is("$text"))cr(this,e,n);else{const l=ia._createIn(e).getPositions();for(const e of l)cr(this,e.nodeBefore||e.parent,n)}}getAttributesWithProperty(l,n,e){const t={};for(const[o,u]of l.getAttributes()){const l=this.getAttributeProperties(o);void 0!==l[n]&&(void 0!==e&&e!==l[n]||(t[o]=u))}return t}createContext(l){return new Qa(l)}_clearCache(){this._compiledDefinitions=null}_compile(){const l={},n=this._sourceDefinitions,e=Object.keys(n);for(const t of e)l[t]=Ja(n[t],t);for(const t of e)lr(l,t);for(const t of e)nr(l,t);for(const t of e)er(l,t);for(const t of e)tr(l,t),or(l,t);for(const t of e)ur(l,t),ir(l,t),ar(l,t);this._compiledDefinitions=l}_checkContextMatch(l,n,e=n.length-1){const t=n.getItem(e);if(l.allowIn.includes(t.name)){if(0==e)return!0;{const l=this.getDefinition(t);return this._checkContextMatch(l,n,e-1)}}return!1}*_getValidRangesForRange(l,n){let e=l.start,t=l.start;for(const o of l.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(ia._createIn(o),n)),this.checkAttribute(o,n)||(e.isEqual(t)||(yield new ia(e,t)),e=la._createAfter(o)),t=la._createAfter(o);e.isEqual(t)||(yield new ia(e,t))}}class Qa{constructor(l){if(l instanceof Qa)return l;let n;n="string"==typeof l?[l]:Array.isArray(l)?l:l.getAncestors({includeSelf:!0}),this._items=n.map(dr)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(l){const n=new Qa([l]);return n._items=[...this._items,...n._items],n}getItem(l){return this._items[l]}*getNames(){yield*this._items.map(l=>l.name)}endsWith(l){return Array.from(this.getNames()).join(" ").endsWith(l)}startsWith(l){return Array.from(this.getNames()).join(" ").startsWith(l)}}function Ja(l,n){const e={name:n,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(l,n){for(const e of l){const l=Object.keys(e).filter(l=>l.startsWith("is"));for(const t of l)n[t]=!!e[t]}}(l,e),rr(l,e,"allowIn"),rr(l,e,"allowContentOf"),rr(l,e,"allowWhere"),rr(l,e,"allowAttributes"),rr(l,e,"allowAttributesOf"),rr(l,e,"allowChildren"),rr(l,e,"inheritTypesFrom"),function(l,n){for(const e of l){const l=e.inheritAllFrom;l&&(n.allowContentOf.push(l),n.allowWhere.push(l),n.allowAttributesOf.push(l),n.inheritTypesFrom.push(l))}}(l,e),e}function lr(l,n){const e=l[n];for(const t of e.allowChildren){const e=l[t];e&&e.allowIn.push(n)}e.allowChildren.length=0}function nr(l,n){for(const e of l[n].allowContentOf)l[e]&&sr(l,e).forEach(l=>{l.allowIn.push(n)});delete l[n].allowContentOf}function er(l,n){for(const e of l[n].allowWhere){const t=l[e];if(t){const e=t.allowIn;l[n].allowIn.push(...e)}}delete l[n].allowWhere}function tr(l,n){for(const e of l[n].allowAttributesOf){const t=l[e];if(t){const e=t.allowAttributes;l[n].allowAttributes.push(...e)}}delete l[n].allowAttributesOf}function or(l,n){const e=l[n];for(const t of e.inheritTypesFrom){const n=l[t];if(n){const l=Object.keys(n).filter(l=>l.startsWith("is"));for(const t of l)t in e||(e[t]=n[t])}}delete e.inheritTypesFrom}function ur(l,n){const e=l[n],t=e.allowIn.filter(n=>l[n]);e.allowIn=Array.from(new Set(t))}function ir(l,n){const e=l[n];for(const t of e.allowIn)l[t].allowChildren.push(n)}function ar(l,n){const e=l[n];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function rr(l,n,e){for(const t of l){const l=t[e];"string"==typeof l?n[e].push(l):Array.isArray(l)&&n[e].push(...l)}}function sr(l,n){const e=l[n];return(t=l,Object.keys(t).map(l=>t[l])).filter(l=>l.allowIn.includes(e.name));var t}function dr(l){return"string"==typeof l||l.is("documentFragment")?{name:"string"==typeof l?l:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:l.is("element")?l.name:"$text",*getAttributeKeys(){yield*l.getAttributeKeys()},getAttribute:n=>l.getAttribute(n)}}function cr(l,n,e){for(const t of n.getAttributeKeys())l.checkAttribute(n,t)||e.removeAttribute(t,n)}class pr extends(E()){constructor(l){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...l,consumable:null,writer:null,store:null,convertItem:(l,n)=>this._convertItem(l,n),convertChildren:(l,n)=>this._convertChildren(l,n),safeInsert:(l,n)=>this._safeInsert(l,n),updateConversionResult:(l,n)=>this._updateConversionResult(l,n),splitToAllowedParent:(l,n)=>this._splitToAllowedParent(l,n),getSplitParts:l=>this._getSplitParts(l),keepEmptyElement:l=>this._keepEmptyElement(l)}}convert(l,n,e=["$root"]){this.fire("viewCleanup",l),this._modelCursor=function(l,n){let e;for(const t of new Qa(l)){const l={};for(const n of t.getAttributeKeys())l[n]=t.getAttribute(n);const o=n.createElement(t.name,l);e&&n.insert(o,e),e=la._createAt(o,0)}return e}(e,n),this.conversionApi.writer=n,this.conversionApi.consumable=Za.createFrom(l),this.conversionApi.store={};const{modelRange:t}=this._convertItem(l,this._modelCursor),o=n.createDocumentFragment();if(t){this._removeEmptyElements();for(const l of Array.from(this._modelCursor.parent.getChildren()))n.append(l,o);o.markers=function(l,n){const e=new Set,t=new Map,o=ia._createIn(l).getItems();for(const u of o)u.is("element","$marker")&&e.add(u);for(const u of e){const l=u.getAttribute("data-name"),e=n.createPositionBefore(u);t.has(l)?t.get(l).end=e.clone():t.set(l,new ia(e.clone())),n.remove(u)}return t}(o,n)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_convertItem(l,n){const e={viewItem:l,modelCursor:n,modelRange:null};if(l.is("element")?this.fire(`element:${l.name}`,e,this.conversionApi):l.is("$text")?this.fire("text",e,this.conversionApi):this.fire("documentFragment",e,this.conversionApi),e.modelRange&&!(e.modelRange instanceof ia))throw new b("view-conversion-dispatcher-incorrect-result",this);return{modelRange:e.modelRange,modelCursor:e.modelCursor}}_convertChildren(l,n){let e=n.is("position")?n:la._createAt(n,0);const t=new ia(e);for(const o of Array.from(l.getChildren())){const l=this._convertItem(o,e);l.modelRange instanceof ia&&(t.end=l.modelRange.end,e=l.modelCursor)}return{modelRange:t,modelCursor:e}}_safeInsert(l,n){const e=this._splitToAllowedParent(l,n);return!!e&&(this.conversionApi.writer.insert(l,e.position),!0)}_updateConversionResult(l,n){const e=this._getSplitParts(l),t=this.conversionApi.writer;n.modelRange||(n.modelRange=t.createRange(t.createPositionBefore(l),t.createPositionAfter(e[e.length-1])));const o=this._cursorParents.get(l);n.modelCursor=o?t.createPositionAt(o,0):n.modelRange.end}_splitToAllowedParent(l,n){const{schema:e,writer:t}=this.conversionApi;let o=e.findAllowedParent(n,l);if(o){if(o===n.parent)return{position:n};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Ta(n,l,e)?{position:Pa(n,t)}:null;const u=this.conversionApi.writer.split(n,o),i=[];for(const r of u.range.getWalker())if("elementEnd"==r.type)i.push(r.item);else{const l=i.pop(),n=r.item;this._registerSplitPair(l,n)}const a=u.range.end.parent;return this._cursorParents.set(l,a),{position:u.position,cursorParent:a}}_registerSplitPair(l,n){this._splitParts.has(l)||this._splitParts.set(l,[l]);const e=this._splitParts.get(l);this._splitParts.set(n,e),e.push(n)}_getSplitParts(l){let n;return n=this._splitParts.has(l)?this._splitParts.get(l):[l]}_keepEmptyElement(l){this._emptyElementsToKeep.add(l)}_removeEmptyElements(){let l=!1;for(const n of this._splitParts.keys())n.isEmpty&&!this._emptyElementsToKeep.has(n)&&(this.conversionApi.writer.remove(n),this._splitParts.delete(n),l=!0);l&&this._removeEmptyElements()}}class fr{getHtml(l){const n=document.implementation.createHTMLDocument("").createElement("div");return n.appendChild(l),n.innerHTML}}class mr{constructor(l){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Ku(l,{renderingMode:"data"}),this.htmlWriter=new fr}toData(l){const n=this.domConverter.viewToDom(l);return this.htmlWriter.getHtml(n)}toView(l){const n=this._toDom(l);return this.domConverter.domToView(n,{skipComments:this.skipComments})}registerRawContentMatcher(l){this.domConverter.registerRawContentMatcher(l)}useFillerType(l){this.domConverter.blockFillerMode="marked"==l?"markedNbsp":"nbsp"}_toDom(l){l.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(l=`${l}`);const n=this.domParser.parseFromString(l,"text/html"),e=n.createDocumentFragment(),t=n.body.childNodes;for(;t.length>0;)e.appendChild(t[0]);return e}}class hr extends(E()){constructor(l,n){super(),this.model=l,this.mapper=new aa,this.downcastDispatcher=new da({mapper:this.mapper,schema:l.schema}),this.downcastDispatcher.on("insert:$text",(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=e.writer,o=e.mapper.toViewPosition(n.range.start),u=t.createText(n.item.data);t.insert(o,u)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,n,e)=>{e.convertAttributes(n.item),n.reconversion||!n.item.is("element")||n.item.isEmpty||e.convertChildren(n.item)},{priority:"lowest"}),this.upcastDispatcher=new pr({schema:l.schema}),this.viewDocument=new cu(n),this.stylesProcessor=n,this.htmlProcessor=new mr(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new _u(this.viewDocument),this.upcastDispatcher.on("text",(l,n,{schema:e,consumable:t,writer:o})=>{let u=n.modelCursor;if(!t.test(n.viewItem))return;if(!e.checkChild(u,"$text")){if(!Ta(u,"$text",e))return;if(0==n.viewItem.data.trim().length)return;u=Pa(u,o)}t.consume(n.viewItem);const i=o.createText(n.viewItem.data);o.insert(i,u),n.modelRange=o.createRange(u,u.getShiftedBy(i.offsetSize)),n.modelCursor=n.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(l,n,e)=>{if(!n.modelRange&&e.consumable.consume(n.viewItem,{name:!0})){const{modelRange:l,modelCursor:t}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=l,n.modelCursor=t}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(l,n,e)=>{if(!n.modelRange&&e.consumable.consume(n.viewItem,{name:!0})){const{modelRange:l,modelCursor:t}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=l,n.modelCursor=t}},{priority:"lowest"}),U().prototype.decorate.call(this,"init"),U().prototype.decorate.call(this,"set"),U().prototype.decorate.call(this,"get"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},qa)},{priority:"lowest"})}get(l={}){const{rootName:n="main",trim:e="empty"}=l;if(!this._checkIfRootsExists([n]))throw new b("datacontroller-get-non-existent-root",this);const t=this.model.document.getRoot(n);return"empty"!==e||this.model.hasContent(t,{ignoreWhitespaces:!0})?this.stringify(t,l):""}stringify(l,n={}){const e=this.toView(l,n);return this.processor.toData(e)}toView(l,n={}){const e=this.viewDocument,t=this._viewWriter;this.mapper.clearBindings();const o=ia._createIn(l),u=new Au(e);this.mapper.bindElements(l,u);const i=l.is("documentFragment")?l.markers:function(l){const n=[],e=l.root.document;if(!e)return new Map;const t=ia._createIn(l);for(const o of e.model.markers){const l=o.getRange(),e=l.isCollapsed,u=l.start.isEqual(t.start)||l.end.isEqual(t.end);if(e&&u)n.push([o.name,l]);else{const e=t.getIntersection(l);e&&n.push([o.name,e])}}return n.sort(([l,n],[e,t])=>{if("after"!==n.end.compareWith(t.start))return 1;if("before"!==n.start.compareWith(t.end))return-1;switch(n.start.compareWith(t.start)){case"before":return 1;case"after":return-1;default:switch(n.end.compareWith(t.end)){case"before":return 1;case"after":return-1;default:return e.localeCompare(l)}}}),new Map(n)}(l);return this.downcastDispatcher.convert(o,i,t,n),u}init(l){if(this.model.document.version)throw new b("datacontroller-init-document-not-empty",this);let n={};if("string"==typeof l?n.main=l:n=l,!this._checkIfRootsExists(Object.keys(n)))throw new b("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},l=>{for(const e of Object.keys(n)){const t=this.model.document.getRoot(e);l.insert(this.parse(n[e],t),t,0)}}),Promise.resolve()}set(l,n={}){let e={};if("string"==typeof l?e.main=l:e=l,!this._checkIfRootsExists(Object.keys(e)))throw new b("datacontroller-set-non-existent-root",this);this.model.enqueueChange(n.batchType||{},l=>{l.setSelection(null),l.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(e)){const t=this.model.document.getRoot(n);l.remove(l.createRangeIn(t)),l.insert(this.parse(e[n],t),t,0)}})}parse(l,n="$root"){const e=this.processor.toView(l);return this.toModel(e,n)}toModel(l,n="$root"){return this.model.change(e=>this.upcastDispatcher.convert(l,e,n))}addStyleProcessorRules(l){l(this.stylesProcessor)}registerRawContentMatcher(l){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(l),this.htmlProcessor.registerRawContentMatcher(l)}destroy(){this.stopListening()}_checkIfRootsExists(l){for(const n of l)if(!this.model.document.getRootNames().includes(n))return!1;return!0}}class gr{constructor(l,n){this._helpers=new Map,this._downcast=wt(l),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=wt(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(l,n){const e=this._downcast.includes(n);if(!this._upcast.includes(n)&&!e)throw new b("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:l,dispatchers:[n],isDowncast:e})}for(l){if(!this._helpers.has(l))throw new b("conversion-for-unknown-group",this);return this._helpers.get(l)}elementToElement(l){this.for("downcast").elementToElement(l);for(const{model:n,view:e}of vr(l))this.for("upcast").elementToElement({model:n,view:e,converterPriority:l.converterPriority})}attributeToElement(l){this.for("downcast").attributeToElement(l);for(const{model:n,view:e}of vr(l))this.for("upcast").elementToAttribute({view:e,model:n,converterPriority:l.converterPriority})}attributeToAttribute(l){this.for("downcast").attributeToAttribute(l);for(const{model:n,view:e}of vr(l))this.for("upcast").attributeToAttribute({view:e,model:n})}_createConversionHelpers({name:l,dispatchers:n,isDowncast:e}){if(this._helpers.has(l))throw new b("conversion-group-exists",this);const t=e?new Ra(n):new Ba(n);this._helpers.set(l,t)}}function*vr(l){if(l.model.values)for(const n of l.model.values){const e={key:l.model.key,value:n},t=l.view[n],o=l.upcastAlso?l.upcastAlso[n]:void 0;yield*br(e,t,o)}else yield*br(l.model,l.view,l.upcastAlso)}function*br(l,n,e){if(yield{model:l,view:n},e)for(const t of wt(e))yield{model:l,view:t}}class yr{constructor(l){this.baseVersion=l,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const l=Object.assign({},this);return l.__className=this.constructor.className,delete l.batch,delete l.isDocumentOperation,l}static get className(){return"Operation"}static fromJSON(l,n){return new this(l.baseVersion)}}function xr(l,n){const e=Cr(n),t=e.reduce((l,n)=>l+n.offsetSize,0),o=l.parent;Rr(l);const u=l.index;return o._insertChild(u,e),wr(o,u+e.length),wr(o,u),new ia(l,l.getShiftedBy(t))}function Ar(l){if(!l.isFlat)throw new b("operation-utils-remove-range-not-flat",this);const n=l.start.parent;Rr(l.start),Rr(l.end);const e=n._removeChildren(l.start.index,l.end.index-l.start.index);return wr(n,l.start.index),e}function _r(l,n){if(!l.isFlat)throw new b("operation-utils-move-range-not-flat",this);const e=Ar(l);return xr(n=n._getTransformedByDeletion(l.start,l.end.offset-l.start.offset),e)}function Cr(l){const n=[];!function l(e){if("string"==typeof e)n.push(new Xi(e));else if(e instanceof $i)n.push(new Xi(e.data,e.getAttributes()));else if(e instanceof Yi)n.push(e);else if(K(e))for(const n of e)l(n)}(l);for(let e=1;el.maxOffset)throw new b("move-operation-nodes-do-not-exist",this);if(l===n&&e=e&&this.targetPosition.path[l]l._clone(!0))),n=new Er(this.position,l,this.baseVersion);return n.shouldReceiveAttributes=this.shouldReceiveAttributes,n}getReversed(){const l=this.position.root.document.graveyard,n=new la(l,[0]);return new Mr(this.position,this.nodes.maxOffset,n,this.baseVersion+1)}_validate(){const l=this.position.parent;if(!l||l.maxOffsetl._clone(!0))),xr(this.position,l)}toJSON(){const l=super.toJSON();return l.position=this.position.toJSON(),l.nodes=this.nodes.toJSON(),l}static get className(){return"InsertOperation"}static fromJSON(l,n){const e=[];for(const o of l.nodes)o.name?e.push(Ki.fromJSON(o)):e.push(Xi.fromJSON(o));const t=new Er(la.fromJSON(l.position,n),e,l.baseVersion);return t.shouldReceiveAttributes=l.shouldReceiveAttributes,t}}class Or extends yr{constructor(l,n,e,t,o,u){super(u),this.name=l,this.oldRange=n?n.clone():null,this.newRange=e?e.clone():null,this.affectsData=o,this._markers=t}get type(){return"marker"}clone(){return new Or(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Or(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const l=super.toJSON();return this.oldRange&&(l.oldRange=this.oldRange.toJSON()),this.newRange&&(l.newRange=this.newRange.toJSON()),delete l._markers,l}static get className(){return"MarkerOperation"}static fromJSON(l,n){return new Or(l.name,l.oldRange?ia.fromJSON(l.oldRange,n):null,l.newRange?ia.fromJSON(l.newRange,n):null,n.model.markers,l.affectsData,l.baseVersion)}}const Sr=function(l,n){return Ni(l,n)};class kr extends yr{constructor(l,n,e,t,o){super(o),this.range=l.clone(),this.key=n,this.oldValue=void 0===e?null:e,this.newValue=void 0===t?null:t}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new kr(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new kr(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const l=super.toJSON();return l.range=this.range.toJSON(),l}_validate(){if(!this.range.isFlat)throw new b("attribute-operation-range-not-flat",this);for(const l of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Sr(l.getAttribute(this.key),this.oldValue))throw new b("attribute-operation-wrong-old-value",this,{item:l,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&l.hasAttribute(this.key))throw new b("attribute-operation-attribute-exists",this,{node:l,key:this.key})}}_execute(){Sr(this.oldValue,this.newValue)||function(l,n,e){Rr(l.start),Rr(l.end);for(const t of l.getItems({shallow:!0})){const l=t.is("$textProxy")?t.textNode:t;null!==e?l._setAttribute(n,e):l._removeAttribute(n),wr(l.parent,l.index)}wr(l.end.parent,l.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(l,n){return new kr(ia.fromJSON(l.range,n),l.key,l.oldValue,l.newValue,l.baseVersion)}}class Ir extends yr{get type(){return"noop"}clone(){return new Ir(this.baseVersion)}getReversed(){return new Ir(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Fr extends yr{constructor(l,n,e,t){super(t),this.position=l,this.position.stickiness="toNext",this.oldName=n,this.newName=e}get type(){return"rename"}clone(){return new Fr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Fr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const l=this.position.nodeAfter;if(!(l instanceof Ki))throw new b("rename-operation-wrong-position",this);if(l.name!==this.oldName)throw new b("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const l=super.toJSON();return l.position=this.position.toJSON(),l}static get className(){return"RenameOperation"}static fromJSON(l,n){return new Fr(la.fromJSON(l.position,n),l.oldName,l.newName,l.baseVersion)}}class Nr extends yr{constructor(l,n,e,t,o){super(o),this.root=l,this.key=n,this.oldValue=e,this.newValue=t}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Nr(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nr(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new b("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new b("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new b("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const l=super.toJSON();return l.root=this.root.toJSON(),l}static get className(){return"RootAttributeOperation"}static fromJSON(l,n){if(!n.getRoot(l.root))throw new b("rootattribute-operation-fromjson-no-root",this,{rootName:l.root});return new Nr(n.getRoot(l.root),l.key,l.oldValue,l.newValue,l.baseVersion)}}class Dr extends yr{constructor(l,n,e,t,o){super(o),this.sourcePosition=l.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=n,this.targetPosition=e.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=t.clone()}get type(){return"merge"}get deletionPosition(){return new la(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const l=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ia(this.sourcePosition,l)}clone(){return new Dr(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const l=this.targetPosition._getTransformedByMergeOperation(this),n=this.sourcePosition.path.slice(0,-1),e=new la(this.sourcePosition.root,n)._getTransformedByMergeOperation(this);return new zr(l,this.howMany,e,this.graveyardPosition,this.baseVersion+1)}_validate(){const l=this.sourcePosition.parent,n=this.targetPosition.parent;if(!l.parent)throw new b("merge-operation-source-position-invalid",this);if(!n.parent)throw new b("merge-operation-target-position-invalid",this);if(this.howMany!=l.maxOffset)throw new b("merge-operation-how-many-invalid",this)}_execute(){const l=this.sourcePosition.parent;_r(ia._createIn(l),this.targetPosition),_r(ia._createOn(l),this.graveyardPosition)}toJSON(){const l=super.toJSON();return l.sourcePosition=l.sourcePosition.toJSON(),l.targetPosition=l.targetPosition.toJSON(),l.graveyardPosition=l.graveyardPosition.toJSON(),l}static get className(){return"MergeOperation"}static fromJSON(l,n){const e=la.fromJSON(l.sourcePosition,n),t=la.fromJSON(l.targetPosition,n),o=la.fromJSON(l.graveyardPosition,n);return new this(e,l.howMany,t,o,l.baseVersion)}}class zr extends yr{constructor(l,n,e,t,o){super(o),this.splitPosition=l.clone(),this.splitPosition.stickiness="toNext",this.howMany=n,this.insertionPosition=e,this.graveyardPosition=t?t.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const l=this.insertionPosition.path.slice();return l.push(0),new la(this.insertionPosition.root,l)}get movedRange(){const l=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ia(this.splitPosition,l)}clone(){return new zr(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const l=this.splitPosition.root.document.graveyard,n=new la(l,[0]);return new Dr(this.moveTargetPosition,this.howMany,this.splitPosition,n,this.baseVersion+1)}_validate(){const l=this.splitPosition.parent,n=this.splitPosition.offset;if(!l||l.maxOffset{if(l.key===n.key&&l.range.start.hasSameParentAs(n.range.start)){const t=l.range.getDifference(n.range).map(n=>new kr(n,l.key,l.oldValue,l.newValue,0)),o=l.range.getIntersection(n.range);return o&&e.aIsStrong&&t.push(new kr(o,n.key,n.newValue,l.newValue,0)),0==t.length?[new Ir(0)]:t}return[l]}),Br(kr,Er,(l,n)=>{if(l.range.start.hasSameParentAs(n.position)&&l.range.containsPosition(n.position)){const e=l.range._getTransformedByInsertion(n.position,n.howMany,!n.shouldReceiveAttributes).map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion));if(n.shouldReceiveAttributes){const t=Yr(n,l.key,l.oldValue);t&&e.unshift(t)}return e}return l.range=l.range._getTransformedByInsertion(n.position,n.howMany,!1)[0],[l]}),Br(kr,Dr,(l,n)=>{const e=[];l.range.start.hasSameParentAs(n.deletionPosition)&&(l.range.containsPosition(n.deletionPosition)||l.range.start.isEqual(n.deletionPosition))&&e.push(ia._createFromPositionAndShift(n.graveyardPosition,1));const t=l.range._getTransformedByMergeOperation(n);return t.isCollapsed||e.push(t),e.map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion))}),Br(kr,Mr,(l,n)=>{return function(l,n){const e=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);let t=null,o=[];e.containsRange(l,!0)?t=l:l.start.hasSameParentAs(e.start)?(o=l.getDifference(e),t=l.getIntersection(e)):o=[l];const u=[];for(let i of o){i=i._getTransformedByDeletion(n.sourcePosition,n.howMany);const l=n.getMovedRangeStart(),e=i.start.hasSameParentAs(l),t=i._getTransformedByInsertion(l,n.howMany,e);u.push(...t)}return t&&u.push(t._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany,!1)[0]),u}(l.range,n).map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion))}),Br(kr,zr,(l,n)=>{if(l.range.end.isEqual(n.insertionPosition))return n.graveyardPosition||l.range.end.offset++,[l];if(l.range.start.hasSameParentAs(n.splitPosition)&&l.range.containsPosition(n.splitPosition)){const e=l.clone();return e.range=new ia(n.moveTargetPosition.clone(),l.range.end._getCombined(n.splitPosition,n.moveTargetPosition)),l.range.end=n.splitPosition.clone(),l.range.end.stickiness="toPrevious",[l,e]}return l.range=l.range._getTransformedBySplitOperation(n),[l]}),Br(Er,kr,(l,n)=>{const e=[l];if(l.shouldReceiveAttributes&&l.position.hasSameParentAs(n.range.start)&&n.range.containsPosition(l.position)){const t=Yr(l,n.key,n.newValue);t&&e.push(t)}return e}),Br(Er,Er,(l,n,e)=>(l.position.isEqual(n.position)&&e.aIsStrong||(l.position=l.position._getTransformedByInsertOperation(n)),[l])),Br(Er,Mr,(l,n)=>(l.position=l.position._getTransformedByMoveOperation(n),[l])),Br(Er,zr,(l,n)=>(l.position=l.position._getTransformedBySplitOperation(n),[l])),Br(Er,Dr,(l,n)=>(l.position=l.position._getTransformedByMergeOperation(n),[l])),Br(Or,Er,(l,n)=>(l.oldRange&&(l.oldRange=l.oldRange._getTransformedByInsertOperation(n)[0]),l.newRange&&(l.newRange=l.newRange._getTransformedByInsertOperation(n)[0]),[l])),Br(Or,Or,(l,n,e)=>{if(l.name==n.name){if(!e.aIsStrong)return[new Ir(0)];l.oldRange=n.newRange?n.newRange.clone():null}return[l]}),Br(Or,Dr,(l,n)=>(l.oldRange&&(l.oldRange=l.oldRange._getTransformedByMergeOperation(n)),l.newRange&&(l.newRange=l.newRange._getTransformedByMergeOperation(n)),[l])),Br(Or,Mr,(l,n,e)=>{if(l.oldRange&&(l.oldRange=ia._createFromRanges(l.oldRange._getTransformedByMoveOperation(n))),l.newRange){if(e.abRelation){const t=ia._createFromRanges(l.newRange._getTransformedByMoveOperation(n));if("left"==e.abRelation.side&&n.targetPosition.isEqual(l.newRange.start))return l.newRange.end=t.end,l.newRange.start.path=e.abRelation.path,[l];if("right"==e.abRelation.side&&n.targetPosition.isEqual(l.newRange.end))return l.newRange.start=t.start,l.newRange.end.path=e.abRelation.path,[l]}l.newRange=ia._createFromRanges(l.newRange._getTransformedByMoveOperation(n))}return[l]}),Br(Or,zr,(l,n,e)=>{if(l.oldRange&&(l.oldRange=l.oldRange._getTransformedBySplitOperation(n)),l.newRange){if(e.abRelation){const t=l.newRange._getTransformedBySplitOperation(n);return l.newRange.start.isEqual(n.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?l.newRange.start=la._createAt(n.insertionPosition):l.newRange.start.isEqual(n.splitPosition)&&!e.abRelation.wasInLeftElement&&(l.newRange.start=la._createAt(n.moveTargetPosition)),l.newRange.end.isEqual(n.splitPosition)&&e.abRelation.wasInRightElement?l.newRange.end=la._createAt(n.moveTargetPosition):l.newRange.end.isEqual(n.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?l.newRange.end=la._createAt(n.insertionPosition):l.newRange.end=t.end,[l]}l.newRange=l.newRange._getTransformedBySplitOperation(n)}return[l]}),Br(Dr,Er,(l,n)=>(l.sourcePosition.hasSameParentAs(n.position)&&(l.howMany+=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByInsertOperation(n),l.targetPosition=l.targetPosition._getTransformedByInsertOperation(n),[l])),Br(Dr,Dr,(l,n,e)=>{if(l.sourcePosition.isEqual(n.sourcePosition)&&l.targetPosition.isEqual(n.targetPosition)){if(e.bWasUndone){const e=n.graveyardPosition.path.slice();return e.push(0),l.sourcePosition=new la(n.graveyardPosition.root,e),l.howMany=0,[l]}return[new Ir(0)]}if(l.sourcePosition.isEqual(n.sourcePosition)&&!l.targetPosition.isEqual(n.targetPosition)&&!e.bWasUndone&&"splitAtSource"!=e.abRelation){const t="$graveyard"==l.targetPosition.root.rootName,o="$graveyard"==n.targetPosition.root.rootName;if(o&&!t||(!t||o)&&e.aIsStrong){const e=n.targetPosition._getTransformedByMergeOperation(n),t=l.targetPosition._getTransformedByMergeOperation(n);return[new Mr(e,l.howMany,t,0)]}return[new Ir(0)]}return l.sourcePosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByMergeOperation(n),l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),l.graveyardPosition.isEqual(n.graveyardPosition)&&e.aIsStrong||(l.graveyardPosition=l.graveyardPosition._getTransformedByMergeOperation(n)),[l]}),Br(Dr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);return"remove"==n.type&&!e.bWasUndone&&!e.forceWeakRemove&&l.deletionPosition.hasSameParentAs(n.sourcePosition)&&t.containsPosition(l.sourcePosition)?[new Ir(0)]:(l.sourcePosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.sourcePosition.hasSameParentAs(n.sourcePosition)&&(l.howMany-=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByMoveOperation(n),l.targetPosition=l.targetPosition._getTransformedByMoveOperation(n),l.graveyardPosition.isEqual(n.targetPosition)||(l.graveyardPosition=l.graveyardPosition._getTransformedByMoveOperation(n)),[l])}),Br(Dr,zr,(l,n,e)=>{if(n.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedByDeletion(n.graveyardPosition,1),l.deletionPosition.isEqual(n.graveyardPosition)&&(l.howMany=n.howMany)),l.targetPosition.isEqual(n.splitPosition)){const t=0!=n.howMany,o=n.graveyardPosition&&l.deletionPosition.isEqual(n.graveyardPosition);if(t||o||"mergeTargetNotMoved"==e.abRelation)return l.sourcePosition=l.sourcePosition._getTransformedBySplitOperation(n),[l]}if(l.sourcePosition.isEqual(n.splitPosition)){if("mergeSourceNotMoved"==e.abRelation)return l.howMany=0,l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l];if("mergeSameElement"==e.abRelation||l.sourcePosition.offset>0)return l.sourcePosition=n.moveTargetPosition.clone(),l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l]}return l.sourcePosition.hasSameParentAs(n.splitPosition)&&(l.howMany=n.splitPosition.offset),l.sourcePosition=l.sourcePosition._getTransformedBySplitOperation(n),l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l]}),Br(Mr,Er,(l,n)=>{const e=ia._createFromPositionAndShift(l.sourcePosition,l.howMany)._getTransformedByInsertOperation(n,!1)[0];return l.sourcePosition=e.start,l.howMany=e.end.offset-e.start.offset,l.targetPosition.isEqual(n.position)||(l.targetPosition=l.targetPosition._getTransformedByInsertOperation(n)),[l]}),Br(Mr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(l.sourcePosition,l.howMany),o=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);let u,i=e.aIsStrong,a=!e.aIsStrong;if("insertBefore"==e.abRelation||"insertAfter"==e.baRelation?a=!0:"insertAfter"!=e.abRelation&&"insertBefore"!=e.baRelation||(a=!1),u=l.targetPosition.isEqual(n.targetPosition)&&a?l.targetPosition._getTransformedByDeletion(n.sourcePosition,n.howMany):l.targetPosition._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Zr(l,n)&&Zr(n,l))return[n.getReversed()];if(t.containsPosition(n.targetPosition)&&t.containsRange(o,!0))return t.start=t.start._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),t.end=t.end._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Xr([t],u);if(o.containsPosition(l.targetPosition)&&o.containsRange(t,!0))return t.start=t.start._getCombined(n.sourcePosition,n.getMovedRangeStart()),t.end=t.end._getCombined(n.sourcePosition,n.getMovedRangeStart()),Xr([t],u);const r=$(l.sourcePosition.getParentPath(),n.sourcePosition.getParentPath());if("prefix"==r||"extension"==r)return t.start=t.start._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),t.end=t.end._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Xr([t],u);"remove"!=l.type||"remove"==n.type||e.aWasUndone||e.forceWeakRemove?"remove"==l.type||"remove"!=n.type||e.bWasUndone||e.forceWeakRemove||(i=!1):i=!0;const s=[],d=t.getDifference(o);for(const p of d){p.start=p.start._getTransformedByDeletion(n.sourcePosition,n.howMany),p.end=p.end._getTransformedByDeletion(n.sourcePosition,n.howMany);const l="same"==$(p.start.getParentPath(),n.getMovedRangeStart().getParentPath()),e=p._getTransformedByInsertion(n.getMovedRangeStart(),n.howMany,l);s.push(...e)}const c=t.getIntersection(o);return null!==c&&i&&(c.start=c.start._getCombined(n.sourcePosition,n.getMovedRangeStart()),c.end=c.end._getCombined(n.sourcePosition,n.getMovedRangeStart()),0===s.length?s.push(c):1==s.length?o.start.isBefore(t.start)||o.start.isEqual(t.start)?s.unshift(c):s.push(c):s.splice(1,0,c)),0===s.length?[new Ir(l.baseVersion)]:Xr(s,u)}),Br(Mr,zr,(l,n,e)=>{let t=l.targetPosition.clone();l.targetPosition.isEqual(n.insertionPosition)&&n.graveyardPosition&&"moveTargetAfter"!=e.abRelation||(t=l.targetPosition._getTransformedBySplitOperation(n));const o=ia._createFromPositionAndShift(l.sourcePosition,l.howMany);if(o.end.isEqual(n.insertionPosition))return n.graveyardPosition||l.howMany++,l.targetPosition=t,[l];if(o.start.hasSameParentAs(n.splitPosition)&&o.containsPosition(n.splitPosition)){let l=new ia(n.splitPosition,o.end);return l=l._getTransformedBySplitOperation(n),Xr([new ia(o.start,n.splitPosition),l],t)}l.targetPosition.isEqual(n.splitPosition)&&"insertAtSource"==e.abRelation&&(t=n.moveTargetPosition),l.targetPosition.isEqual(n.insertionPosition)&&"insertBetween"==e.abRelation&&(t=l.targetPosition);const u=[o._getTransformedBySplitOperation(n)];if(n.graveyardPosition){const t=o.start.isEqual(n.graveyardPosition)||o.containsPosition(n.graveyardPosition);l.howMany>1&&t&&!e.aWasUndone&&u.push(ia._createFromPositionAndShift(n.insertionPosition,1))}return Xr(u,t)}),Br(Mr,Dr,(l,n,e)=>{const t=ia._createFromPositionAndShift(l.sourcePosition,l.howMany);if(n.deletionPosition.hasSameParentAs(l.sourcePosition)&&t.containsPosition(n.sourcePosition))if("remove"!=l.type||e.forceWeakRemove){if(1==l.howMany)return e.bWasUndone?(l.sourcePosition=n.graveyardPosition.clone(),l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),[l]):[new Ir(0)]}else if(!e.aWasUndone){const e=[];let t=n.graveyardPosition.clone(),o=n.targetPosition._getTransformedByMergeOperation(n);l.howMany>1&&(e.push(new Mr(l.sourcePosition,l.howMany-1,l.targetPosition,0)),t=t._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany-1),o=o._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany-1));const u=n.deletionPosition._getCombined(l.sourcePosition,l.targetPosition),i=new Mr(t,1,u,0),a=i.getMovedRangeStart().path.slice();a.push(0);const r=new la(i.targetPosition.root,a);o=o._getTransformedByMove(t,u,1);const s=new Mr(o,n.howMany,r,0);return e.push(i),e.push(s),e}const o=ia._createFromPositionAndShift(l.sourcePosition,l.howMany)._getTransformedByMergeOperation(n);return l.sourcePosition=o.start,l.howMany=o.end.offset-o.start.offset,l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),[l]}),Br(Fr,Er,(l,n)=>(l.position=l.position._getTransformedByInsertOperation(n),[l])),Br(Fr,Dr,(l,n)=>l.position.isEqual(n.deletionPosition)?(l.position=n.graveyardPosition.clone(),l.position.stickiness="toNext",[l]):(l.position=l.position._getTransformedByMergeOperation(n),[l])),Br(Fr,Mr,(l,n)=>(l.position=l.position._getTransformedByMoveOperation(n),[l])),Br(Fr,Fr,(l,n,e)=>{if(l.position.isEqual(n.position)){if(!e.aIsStrong)return[new Ir(0)];l.oldName=n.newName}return[l]}),Br(Fr,zr,(l,n)=>{if("same"==$(l.position.path,n.splitPosition.getParentPath())&&!n.graveyardPosition){const n=new Fr(l.position.getShiftedBy(1),l.oldName,l.newName,0);return[l,n]}return l.position=l.position._getTransformedBySplitOperation(n),[l]}),Br(Nr,Nr,(l,n,e)=>{if(l.root===n.root&&l.key===n.key){if(!e.aIsStrong||l.newValue===n.newValue)return[new Ir(0)];l.oldValue=n.newValue}return[l]}),Br(zr,Er,(l,n)=>(l.splitPosition.hasSameParentAs(n.position)&&l.splitPosition.offset{if(!l.graveyardPosition&&!e.bWasUndone&&l.splitPosition.hasSameParentAs(n.sourcePosition)){const e=n.graveyardPosition.path.slice();e.push(0);const t=new la(n.graveyardPosition.root,e),o=zr.getInsertionPosition(new la(n.graveyardPosition.root,e)),u=new zr(t,0,o,null,0);return l.splitPosition=l.splitPosition._getTransformedByMergeOperation(n),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),l.graveyardPosition=u.insertionPosition.clone(),l.graveyardPosition.stickiness="toNext",[u,l]}return l.splitPosition.hasSameParentAs(n.deletionPosition)&&!l.splitPosition.isAfter(n.deletionPosition)&&l.howMany--,l.splitPosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.splitPosition=l.splitPosition._getTransformedByMergeOperation(n),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),l.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedByMergeOperation(n)),[l]}),Br(zr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);if(l.graveyardPosition){const o=t.start.isEqual(l.graveyardPosition)||t.containsPosition(l.graveyardPosition);if(!e.bWasUndone&&o){const e=l.splitPosition._getTransformedByMoveOperation(n),t=l.graveyardPosition._getTransformedByMoveOperation(n),o=t.path.slice();o.push(0);const u=new la(t.root,o);return[new Mr(e,l.howMany,u,0)]}l.graveyardPosition=l.graveyardPosition._getTransformedByMoveOperation(n)}const o=l.splitPosition.isEqual(n.targetPosition);if(o&&("insertAtSource"==e.baRelation||"splitBefore"==e.abRelation))return l.howMany+=n.howMany,l.splitPosition=l.splitPosition._getTransformedByDeletion(n.sourcePosition,n.howMany),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),[l];if(o&&e.abRelation&&e.abRelation.howMany){const{howMany:n,offset:t}=e.abRelation;return l.howMany+=n,l.splitPosition=l.splitPosition.getShiftedBy(t),[l]}if(l.splitPosition.hasSameParentAs(n.sourcePosition)&&t.containsPosition(l.splitPosition)){const e=n.howMany-(l.splitPosition.offset-n.sourcePosition.offset);return l.howMany-=e,l.splitPosition.hasSameParentAs(n.targetPosition)&&l.splitPosition.offset{if(l.splitPosition.isEqual(n.splitPosition)){if(!l.graveyardPosition&&!n.graveyardPosition)return[new Ir(0)];if(l.graveyardPosition&&n.graveyardPosition&&l.graveyardPosition.isEqual(n.graveyardPosition))return[new Ir(0)];if("splitBefore"==e.abRelation)return l.howMany=0,l.graveyardPosition=l.graveyardPosition._getTransformedBySplitOperation(n),[l]}if(l.graveyardPosition&&n.graveyardPosition&&l.graveyardPosition.isEqual(n.graveyardPosition)){const t="$graveyard"==l.splitPosition.root.rootName,o="$graveyard"==n.splitPosition.root.rootName;if(o&&!t||(!t||o)&&e.aIsStrong){const e=[];return n.howMany&&e.push(new Mr(n.moveTargetPosition,n.howMany,n.splitPosition,0)),l.howMany&&e.push(new Mr(l.splitPosition,l.howMany,l.moveTargetPosition,0)),e}return[new Ir(0)]}if(l.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedBySplitOperation(n)),l.splitPosition.isEqual(n.insertionPosition)&&"splitBefore"==e.abRelation)return l.howMany++,[l];if(n.splitPosition.isEqual(l.insertionPosition)&&"splitBefore"==e.baRelation){const e=n.insertionPosition.path.slice();e.push(0);const t=new la(n.insertionPosition.root,e);return[l,new Mr(l.insertionPosition,1,t,0)]}return l.splitPosition.hasSameParentAs(n.splitPosition)&&l.splitPosition.offset{const e=n[0];e.isDocumentOperation&&(function(l){const n=this.getTransformedByOperation(l);if(!this.isEqual(n)){const l=this.toPosition();this.path=n.path,this.root=n.root,this.fire("change",l)}}).call(this,e)},{priority:"low"})}).call(this)}detach(){this.stopListening()}toPosition(){return new la(this.root,this.path.slice(),this.stickiness)}static fromPosition(l,n){return new this(l.root,l.path.slice(),n||l.stickiness)}}$r.prototype.is=function(l){return"livePosition"===l||"model:livePosition"===l||"position"==l||"model:position"===l};class Kr{constructor(l={}){"string"==typeof l&&(l="transparent"===l?{isUndoable:!1}:{},y("batch-constructor-deprecated-string-type"));const{isUndoable:n=!0,isLocal:e=!0,isUndo:t=!1,isTyping:o=!1}=l;this.operations=[],this.isUndoable=n,this.isLocal=e,this.isUndo=t,this.isTyping=o}get type(){return y("batch-type-deprecated"),"default"}get baseVersion(){for(const l of this.operations)if(null!==l.baseVersion)return l.baseVersion;return null}addOperation(l){return l.batch=this,this.operations.push(l),l}}class Qr{constructor(l){this._markerCollection=l,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(l){const n=l;switch(n.type){case"insert":if(this._isInInsertedElement(n.position.parent))return;this._markInsert(n.position.parent,n.position.offset,n.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const l of n.range.getItems({shallow:!0}))this._isInInsertedElement(l.parent)||this._markAttribute(l);break;case"remove":case"move":case"reinsert":{if(n.sourcePosition.isEqual(n.targetPosition)||n.sourcePosition.getShiftedBy(n.howMany).isEqual(n.targetPosition))return;const l=this._isInInsertedElement(n.sourcePosition.parent),e=this._isInInsertedElement(n.targetPosition.parent);l||this._markRemove(n.sourcePosition.parent,n.sourcePosition.offset,n.howMany),e||this._markInsert(n.targetPosition.parent,n.getMovedRangeStart().offset,n.howMany);break}case"rename":{if(this._isInInsertedElement(n.position.parent))return;this._markRemove(n.position.parent,n.position.offset,1),this._markInsert(n.position.parent,n.position.offset,1);const l=ia._createFromPositionAndShift(n.position,1);for(const n of this._markerCollection.getMarkersIntersectingRange(l)){const l=n.getData();this.bufferMarkerChange(n.name,l,l)}break}case"split":{const l=n.splitPosition.parent;this._isInInsertedElement(l)||this._markRemove(l,n.splitPosition.offset,n.howMany),this._isInInsertedElement(n.insertionPosition.parent)||this._markInsert(n.insertionPosition.parent,n.insertionPosition.offset,1),n.graveyardPosition&&this._markRemove(n.graveyardPosition.parent,n.graveyardPosition.offset,1);break}case"merge":{const l=n.sourcePosition.parent;this._isInInsertedElement(l.parent)||this._markRemove(l.parent,l.startOffset,1);const e=n.graveyardPosition.parent;this._markInsert(e,n.graveyardPosition.offset,1);const t=n.targetPosition.parent;this._isInInsertedElement(t)||this._markInsert(t,n.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(l,n,e){const t=this._changedMarkers.get(l);t?(t.newMarkerData=e,null==t.oldMarkerData.range&&null==e.range&&this._changedMarkers.delete(l)):this._changedMarkers.set(l,{newMarkerData:e,oldMarkerData:n})}getMarkersToRemove(){const l=[];for(const[n,e]of this._changedMarkers)null!=e.oldMarkerData.range&&l.push({name:n,range:e.oldMarkerData.range});return l}getMarkersToAdd(){const l=[];for(const[n,e]of this._changedMarkers)null!=e.newMarkerData.range&&l.push({name:n,range:e.newMarkerData.range});return l}getChangedMarkers(){return Array.from(this._changedMarkers).map(([l,n])=>({name:l,data:{oldRange:n.oldMarkerData.range,newRange:n.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:l,oldMarkerData:n}of this._changedMarkers.values()){if(l.affectsData!==n.affectsData)return!0;if(l.affectsData){const e=l.range&&!n.range,t=!l.range&&n.range,o=l.range&&n.range&&!l.range.isEqual(n.range);if(e||t||o)return!0}}return!1}getChanges(l={}){if(this._cachedChanges)return l.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let n=[];for(const e of this._changesInElement.keys()){const l=this._changesInElement.get(e).sort((l,n)=>l.offset===n.offset?l.type!=n.type?"remove"==l.type?-1:1:0:l.offsetl.position.root!=n.position.root?l.position.root.rootNamel);for(const e of n)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=n,this._cachedChanges=n.filter(ns),l.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(l){if(this._isInInsertedElement(l.parent))return;this._markRemove(l.parent,l.startOffset,l.offsetSize),this._markInsert(l.parent,l.startOffset,l.offsetSize),this._refreshedItems.add(l);const n=ia._createOn(l);for(const e of this._markerCollection.getMarkersIntersectingRange(n)){const l=e.getData();this.bufferMarkerChange(e.name,l,l)}this._cachedChanges=null}_markInsert(l,n,e){const t={type:"insert",offset:n,howMany:e,count:this._changeCount++};this._markChange(l,t)}_markRemove(l,n,e){const t={type:"remove",offset:n,howMany:e,count:this._changeCount++};this._markChange(l,t),this._removeAllNestedChanges(l,n,e)}_markAttribute(l){const n={type:"attribute",offset:l.startOffset,howMany:l.offsetSize,count:this._changeCount++};this._markChange(l.parent,n)}_markChange(l,n){this._makeSnapshot(l);const e=this._getChangesForElement(l);this._handleChange(n,e),e.push(n);for(let t=0;te.offset){if(t>o){const l={type:"attribute",offset:o,howMany:t-o,count:this._changeCount++};this._handleChange(l,n),n.push(l)}l.nodesToHandle=e.offset-l.offset,l.howMany=l.nodesToHandle}else l.offset>=e.offset&&l.offseto?(l.nodesToHandle=t-o,l.offset=o):l.nodesToHandle=0);if("remove"==e.type&&l.offsete.offset){const o={type:"attribute",offset:e.offset,howMany:t-e.offset,count:this._changeCount++};this._handleChange(o,n),n.push(o),l.nodesToHandle=e.offset-l.offset,l.howMany=l.nodesToHandle}"attribute"==e.type&&(l.offset>=e.offset&&t<=o?(l.nodesToHandle=0,l.howMany=0,l.offset=0):l.offset<=e.offset&&t>=o&&(e.howMany=0))}}l.howMany=l.nodesToHandle,delete l.nodesToHandle}_getInsertDiff(l,n,e){return{type:"insert",position:la._createAt(l,n),name:e.name,attributes:new Map(e.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(l,n,e){return{type:"remove",position:la._createAt(l,n),name:e.name,attributes:new Map(e.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(l,n,e){const t=[];e=new Map(e);for(const[o,u]of n){const n=e.has(o)?e.get(o):null;n!==u&&t.push({type:"attribute",position:l.start,range:l.clone(),length:1,attributeKey:o,attributeOldValue:u,attributeNewValue:n,changeCount:this._changeCount++}),e.delete(o)}for(const[o,u]of e)t.push({type:"attribute",position:l.start,range:l.clone(),length:1,attributeKey:o,attributeOldValue:null,attributeNewValue:u,changeCount:this._changeCount++});return t}_isInInsertedElement(l){const n=l.parent;if(!n)return!1;const e=this._changesInElement.get(n),t=l.startOffset;if(e)for(const o of e)if("insert"==o.type&&t>=o.offset&&tt){for(let l=0;lthis._version+1&&this._gaps.set(this._version,l),this._version=l}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(l){if(l.baseVersion!==this.version)throw new b("model-document-history-addoperation-incorrect-version",this,{operation:l,historyVersion:this.version});this._operations.push(l),this._version++,this._baseVersionToOperationIndex.set(l.baseVersion,this._operations.length-1)}getOperations(l,n=this.version){if(!this._operations.length)return[];const e=this._operations[0];void 0===l&&(l=e.baseVersion);let t=n-1;for(const[i,a]of this._gaps)l>i&&li&&tthis.lastOperation.baseVersion)return[];let o=this._baseVersionToOperationIndex.get(l);void 0===o&&(o=0);let u=this._baseVersionToOperationIndex.get(t);return void 0===u&&(u=this._operations.length-1),this._operations.slice(o,u+1)}getOperation(l){const n=this._baseVersionToOperationIndex.get(l);if(void 0!==n)return this._operations[n]}setOperationAsUndone(l,n){this._undoPairs.set(n,l),this._undoneOperations.add(l)}isUndoingOperation(l){return this._undoPairs.has(l)}isUndoneOperation(l){return this._undoneOperations.has(l)}getUndoneOperation(l){return this._undoPairs.get(l)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class ts extends Ki{constructor(l,n,e="main"){super(n),this._document=l,this.rootName=e}get document(){return this._document}toJSON(){return this.rootName}}ts.prototype.is=function(l,n){return n?n===this.name&&("rootElement"===l||"model:rootElement"===l||"element"===l||"model:element"===l):"rootElement"===l||"model:rootElement"===l||"element"===l||"model:element"===l||"node"===l||"model:node"===l};const os="$graveyard";class us extends(E()){constructor(l){super(),this.model=l,this.history=new es,this.selection=new xa(this),this.roots=new Et({idProperty:"rootName"}),this.differ=new Qr(l.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",os),this.listenTo(l,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&this.differ.bufferOperation(e)},{priority:"high"}),this.listenTo(l,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&this.history.addOperation(e)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(l.markers,"update",(l,n,e,t,o)=>{const u={...n.getData(),range:t};this.differ.bufferMarkerChange(n.name,o,u),null===e&&n.on("change",(l,e)=>{const t=n.getData();this.differ.bufferMarkerChange(n.name,{...t,range:e},t)})})}get version(){return this.history.version}set version(l){this.history.version=l}get graveyard(){return this.getRoot(os)}createRoot(l="$root",n="main"){if(this.roots.get(n))throw new b("model-document-createroot-name-exists",this,{name:n});const e=new ts(this,l,n);return this.roots.add(e),e}destroy(){this.selection.destroy(),this.stopListening()}getRoot(l="main"){return this.roots.get(l)}getRootNames(){return Array.from(this.roots,l=>l.rootName).filter(l=>l!=os)}registerPostFixer(l){this._postFixers.add(l)}toJSON(){const l=lo(this);return l.selection="[engine.model.DocumentSelection]",l.model="[engine.model.Model]",l}_handleChangeBlock(l){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(l),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",l.batch):this.fire("change",l.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const l of this.roots)if(l!==this.graveyard)return l;return this.graveyard}_getDefaultRange(){const l=this._getDefaultRoot(),n=this.model,e=n.schema,t=n.createPositionFromPath(l,[0]);return e.getNearestSelectionRange(t)||n.createRange(t)}_validateSelectionRange(l){return is(l.start)&&is(l.end)}_callPostFixers(l){let n=!1;do{for(const e of this._postFixers)if(this.selection.refresh(),n=e(l))break}while(n)}}function is(l){const n=l.textNode;if(n){const e=n.data,t=l.offset-n.startOffset;return!Ft(e,t)&&!Nt(e,t)}return!0}class as extends(E()){constructor(){super(),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(l){const n=l instanceof rs?l.name:l;return this._markers.has(n)}get(l){return this._markers.get(l)||null}_set(l,n,e=!1,t=!1){const o=l instanceof rs?l.name:l;if(o.includes(","))throw new b("markercollection-incorrect-marker-name",this);const u=this._markers.get(o);if(u){const l=u.getData(),i=u.getRange();let a=!1;return i.isEqual(n)||(u._attachLiveRange(ba.fromRange(n)),a=!0),e!=u.managedUsingOperations&&(u._managedUsingOperations=e,a=!0),"boolean"==typeof t&&t!=u.affectsData&&(u._affectsData=t,a=!0),a&&this.fire(`update:${o}`,u,i,n,l),u}const i=ba.fromRange(n),a=new rs(o,i,e,t);return this._markers.set(o,a),this.fire(`update:${o}`,a,null,n,{...a.getData(),range:null}),a}_remove(l){const n=l instanceof rs?l.name:l,e=this._markers.get(n);return!!e&&(this._markers.delete(n),this.fire(`update:${n}`,e,e.getRange(),null,e.getData()),this._destroyMarker(e),!0)}_refresh(l){const n=l instanceof rs?l.name:l,e=this._markers.get(n);if(!e)throw new b("markercollection-refresh-marker-not-exists",this);const t=e.getRange();this.fire(`update:${n}`,e,t,t,e.getData())}*getMarkersAtPosition(l){for(const n of this)n.getRange().containsPosition(l)&&(yield n)}*getMarkersIntersectingRange(l){for(const n of this)null!==n.getRange().getIntersection(l)&&(yield n)}destroy(){for(const l of this._markers.values())this._destroyMarker(l);this._markers=null,this.stopListening()}*getMarkersGroup(l){for(const n of this._markers.values())n.name.startsWith(l+":")&&(yield n)}_destroyMarker(l){l.stopListening(),l._detachLiveRange()}}class rs extends(E(Hi)){constructor(l,n,e,t){super(),this.name=l,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=e,this._affectsData=t}get managedUsingOperations(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(l){return this._liveRange&&this._detachLiveRange(),l.delegate("change:range").to(this),l.delegate("change:content").to(this),this._liveRange=l,l}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}rs.prototype.is=function(l){return"marker"===l||"model:marker"===l};class ss extends yr{constructor(l,n){super(null),this.sourcePosition=l.clone(),this.howMany=n}get type(){return"detach"}toJSON(){const l=super.toJSON();return l.sourcePosition=this.sourcePosition.toJSON(),l}_validate(){if(this.sourcePosition.root.document)throw new b("detach-operation-on-document-node",this)}_execute(){Ar(ia._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class ds extends Hi{constructor(l){super(),this.markers=new Map,this._children=new Zi,l&&this._insertChild(0,l)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}getAncestors(){return[]}getChild(l){return this._children.getNode(l)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(l){return this._children.getNodeIndex(l)}getChildStartOffset(l){return this._children.getNodeStartOffset(l)}getPath(){return[]}getNodeByPath(l){let n=this;for(const e of l)n=n.getChild(n.offsetToIndex(e));return n}offsetToIndex(l){return this._children.offsetToIndex(l)}toJSON(){const l=[];for(const n of this._children)l.push(n.toJSON());return l}static fromJSON(l){const n=[];for(const e of l)e.name?n.push(Ki.fromJSON(e)):n.push(Xi.fromJSON(e));return new ds(n)}_appendChild(l){this._insertChild(this.childCount,l)}_insertChild(l,n){const e=function(l){return"string"==typeof l?[new Xi(l)]:(K(l)||(l=[l]),Array.from(l).map(l=>"string"==typeof l?new Xi(l):l instanceof $i?new Xi(l.data,l.getAttributes()):l))}(n);for(const t of e)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(l,e)}_removeChildren(l,n=1){const e=this._children._removeNodes(l,n);for(const t of e)t.parent=null;return e}}ds.prototype.is=function(l){return"documentFragment"===l||"model:documentFragment"===l};class cs{constructor(l,n){this.model=l,this.batch=n}createText(l,n){return new Xi(l,n)}createElement(l,n){return new Ki(l,n)}createDocumentFragment(){return new ds}cloneElement(l,n=!0){return l._clone(n)}insert(l,n,e=0){if(this._assertWriterUsedCorrectly(),l instanceof Xi&&""==l.data)return;const t=la._createAt(n,e);if(l.parent){if(gs(l.root,t.root))return void this.move(ia._createOn(l),t);if(l.root.document)throw new b("model-writer-insert-forbidden-move",this);this.remove(l)}const o=t.root.document?t.root.document.version:null,u=new Er(t,l,o);if(l instanceof Xi&&(u.shouldReceiveAttributes=!0),this.batch.addOperation(u),this.model.applyOperation(u),l instanceof ds)for(const[i,a]of l.markers){const l=la._createAt(a.root,0),n={range:new ia(a.start._getCombined(l,t),a.end._getCombined(l,t)),usingOperation:!0,affectsData:!0};this.model.markers.has(i)?this.updateMarker(i,n):this.addMarker(i,n)}}insertText(l,n,e,t){n instanceof ds||n instanceof Ki||n instanceof la?this.insert(this.createText(l),n,e):this.insert(this.createText(l,n),e,t)}insertElement(l,n,e,t){n instanceof ds||n instanceof Ki||n instanceof la?this.insert(this.createElement(l),n,e):this.insert(this.createElement(l,n),e,t)}append(l,n){this.insert(l,n,"end")}appendText(l,n,e){n instanceof ds||n instanceof Ki?this.insert(this.createText(l),n,"end"):this.insert(this.createText(l,n),e,"end")}appendElement(l,n,e){n instanceof ds||n instanceof Ki?this.insert(this.createElement(l),n,"end"):this.insert(this.createElement(l,n),e,"end")}setAttribute(l,n,e){if(this._assertWriterUsedCorrectly(),e instanceof ia){const t=e.getMinimalFlatRanges();for(const e of t)ps(this,l,n,e)}else fs(this,l,n,e)}setAttributes(l,n){for(const[e,t]of It(l))this.setAttribute(e,t,n)}removeAttribute(l,n){if(this._assertWriterUsedCorrectly(),n instanceof ia){const e=n.getMinimalFlatRanges();for(const n of e)ps(this,l,null,n)}else fs(this,l,null,n)}clearAttributes(l){this._assertWriterUsedCorrectly();const n=l=>{for(const n of l.getAttributeKeys())this.removeAttribute(n,l)};if(l instanceof ia)for(const e of l.getItems())n(e);else n(l)}move(l,n,e){if(this._assertWriterUsedCorrectly(),!(l instanceof ia))throw new b("writer-move-invalid-range",this);if(!l.isFlat)throw new b("writer-move-range-not-flat",this);const t=la._createAt(n,e);if(t.isEqual(l.start))return;if(this._addOperationForAffectedMarkers("move",l),!gs(l.root,t.root))throw new b("writer-move-different-document",this);const o=l.root.document?l.root.document.version:null,u=new Mr(l.start,l.end.offset-l.start.offset,t,o);this.batch.addOperation(u),this.model.applyOperation(u)}remove(l){this._assertWriterUsedCorrectly();const n=(l instanceof ia?l:ia._createOn(l)).getMinimalFlatRanges().reverse();for(const e of n)this._addOperationForAffectedMarkers("move",e),hs(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(l){this._assertWriterUsedCorrectly();const n=l.nodeBefore,e=l.nodeAfter;if(this._addOperationForAffectedMarkers("merge",l),!(n instanceof Ki))throw new b("writer-merge-no-element-before",this);if(!(e instanceof Ki))throw new b("writer-merge-no-element-after",this);l.root.document?this._merge(l):this._mergeDetached(l)}createPositionFromPath(l,n,e){return this.model.createPositionFromPath(l,n,e)}createPositionAt(l,n){return this.model.createPositionAt(l,n)}createPositionAfter(l){return this.model.createPositionAfter(l)}createPositionBefore(l){return this.model.createPositionBefore(l)}createRange(l,n){return this.model.createRange(l,n)}createRangeIn(l){return this.model.createRangeIn(l)}createRangeOn(l){return this.model.createRangeOn(l)}createSelection(...l){return this.model.createSelection(...l)}_mergeDetached(l){const n=l.nodeBefore,e=l.nodeAfter;this.move(ia._createIn(e),la._createAt(n,"end")),this.remove(e)}_merge(l){const n=la._createAt(l.nodeBefore,"end"),e=la._createAt(l.nodeAfter,0),t=l.root.document.graveyard,o=new la(t,[0]),u=l.root.document.version,i=new Dr(e,l.nodeAfter.maxOffset,n,o,u);this.batch.addOperation(i),this.model.applyOperation(i)}rename(l,n){if(this._assertWriterUsedCorrectly(),!(l instanceof Ki))throw new b("writer-rename-not-element-instance",this);const e=l.root.document?l.root.document.version:null,t=new Fr(la._createBefore(l),l.name,n,e);this.batch.addOperation(t),this.model.applyOperation(t)}split(l,n){this._assertWriterUsedCorrectly();let e,t,o=l.parent;if(!o.parent)throw new b("writer-split-element-no-parent",this);if(n||(n=o.parent),!l.parent.getAncestors({includeSelf:!0}).includes(n))throw new b("writer-split-invalid-limit-element",this);do{const n=o.root.document?o.root.document.version:null,u=o.maxOffset-l.offset,i=zr.getInsertionPosition(l),a=new zr(l,u,i,null,n);this.batch.addOperation(a),this.model.applyOperation(a),e||t||(e=o,t=l.parent.nextSibling),o=(l=this.createPositionAfter(l.parent)).parent}while(o!==n);return{position:l,range:new ia(la._createAt(e,"end"),la._createAt(t,0))}}wrap(l,n){if(this._assertWriterUsedCorrectly(),!l.isFlat)throw new b("writer-wrap-range-not-flat",this);const e=n instanceof Ki?n:new Ki(n);if(e.childCount>0)throw new b("writer-wrap-element-not-empty",this);if(null!==e.parent)throw new b("writer-wrap-element-attached",this);this.insert(e,l.start);const t=new ia(l.start.getShiftedBy(1),l.end.getShiftedBy(1));this.move(t,la._createAt(e,0))}unwrap(l){if(this._assertWriterUsedCorrectly(),null===l.parent)throw new b("writer-unwrap-element-no-parent",this);this.move(ia._createIn(l),this.createPositionAfter(l)),this.remove(l)}addMarker(l,n){if(this._assertWriterUsedCorrectly(),!n||"boolean"!=typeof n.usingOperation)throw new b("writer-addmarker-no-usingoperation",this);const e=n.usingOperation,t=n.range,o=void 0!==n.affectsData&&n.affectsData;if(this.model.markers.has(l))throw new b("writer-addmarker-marker-exists",this);if(!t)throw new b("writer-addmarker-no-range",this);return e?(ms(this,l,null,t,o),this.model.markers.get(l)):this.model.markers._set(l,t,e,o)}updateMarker(l,n){this._assertWriterUsedCorrectly();const e="string"==typeof l?l:l.name,t=this.model.markers.get(e);if(!t)throw new b("writer-updatemarker-marker-not-exists",this);if(!n)return y("writer-updatemarker-reconvert-using-editingcontroller",{markerName:e}),void this.model.markers._refresh(t);const o="boolean"==typeof n.usingOperation,u="boolean"==typeof n.affectsData,i=u?n.affectsData:t.affectsData;if(!o&&!n.range&&!u)throw new b("writer-updatemarker-wrong-options",this);const a=t.getRange(),r=n.range?n.range:a;o&&n.usingOperation!==t.managedUsingOperations?n.usingOperation?ms(this,e,null,r,i):(ms(this,e,a,null,i),this.model.markers._set(e,r,void 0,i)):t.managedUsingOperations?ms(this,e,a,r,i):this.model.markers._set(e,r,void 0,i)}removeMarker(l){this._assertWriterUsedCorrectly();const n="string"==typeof l?l:l.name;if(!this.model.markers.has(n))throw new b("writer-removemarker-no-marker",this);const e=this.model.markers.get(n);e.managedUsingOperations?ms(this,n,e.getRange(),null,e.affectsData):this.model.markers._remove(n)}setSelection(...l){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...l)}setSelectionFocus(l,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(l,n)}setSelectionAttribute(l,n){if(this._assertWriterUsedCorrectly(),"string"==typeof l)this._setSelectionAttribute(l,n);else for(const[e,t]of It(l))this._setSelectionAttribute(e,t)}removeSelectionAttribute(l){if(this._assertWriterUsedCorrectly(),"string"==typeof l)this._removeSelectionAttribute(l);else for(const n of l)this._removeSelectionAttribute(n)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(l){this.model.document.selection._restoreGravity(l)}_setSelectionAttribute(l,n){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const t=xa._getStoreAttributeKey(l);this.setAttribute(t,n,e.anchor.parent)}e._setAttribute(l,n)}_removeSelectionAttribute(l){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const e=xa._getStoreAttributeKey(l);this.removeAttribute(e,n.anchor.parent)}n._removeAttribute(l)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new b("writer-incorrect-use",this)}_addOperationForAffectedMarkers(l,n){for(const e of this.model.markers){if(!e.managedUsingOperations)continue;const t=e.getRange();let o=!1;if("move"===l){const l=n;o=l.containsPosition(t.start)||l.start.isEqual(t.start)||l.containsPosition(t.end)||l.end.isEqual(t.end)}else{const l=n,e=l.nodeBefore,u=l.nodeAfter,i=t.start.parent==e&&t.start.isAtEnd,a=t.end.parent==u&&0==t.end.offset,r=t.end.nodeAfter==u,s=t.start.nodeAfter==u;o=i||a||r||s}o&&this.updateMarker(e.name,{range:t})}}}function ps(l,n,e,t){const o=l.model,u=o.document;let i,a,r,s=t.start;for(const c of t.getWalker({shallow:!0}))r=c.item.getAttribute(n),i&&a!=r&&(a!=e&&d(),s=i),i=c.nextPosition,a=r;function d(){const t=new ia(s,i),r=t.root.document?u.version:null,d=new kr(t,n,a,e,r);l.batch.addOperation(d),o.applyOperation(d)}i instanceof la&&i!=s&&a!=e&&d()}function fs(l,n,e,t){const o=l.model,u=o.document,i=t.getAttribute(n);let a,r;if(i!=e){if(t.root===t){const l=t.document?u.version:null;r=new Nr(t,n,i,e,l)}else{const o=(a=new ia(la._createBefore(t),l.createPositionAfter(t))).root.document?u.version:null;r=new kr(a,n,i,e,o)}l.batch.addOperation(r),o.applyOperation(r)}}function ms(l,n,e,t,o){const u=l.model,i=u.document,a=new Or(n,e,t,u.markers,!!o,i.version);l.batch.addOperation(a),u.applyOperation(a)}function hs(l,n,e,t){let o;if(l.root.document){const e=t.document,u=new la(e.graveyard,[0]);o=new Mr(l,n,u,e.version)}else o=new ss(l,n);e.addOperation(o),t.applyOperation(o)}function gs(l,n){return l===n||l instanceof ts&&n instanceof ts}function vs(l,n){return l.isCollapsed?function(l,n){const e=l.start,t=n.getNearestSelectionRange(e);if(!t){const l=e.getAncestors().reverse().find(l=>n.isObject(l));return l?ia._createOn(l):null}if(!t.isCollapsed)return t;const o=t.start;return e.isEqual(o)?null:new ia(o)}(l,n):function(l,n){const{start:e,end:t}=l,o=n.checkChild(e,"$text"),u=n.checkChild(t,"$text"),i=n.getLimitElement(e),a=n.getLimitElement(t);if(i===a){if(o&&u)return null;if(function(l,n,e){const t=l.nodeAfter&&!e.isLimit(l.nodeAfter)||e.checkChild(l,"$text"),o=n.nodeBefore&&!e.isLimit(n.nodeBefore)||e.checkChild(n,"$text");return t||o}(e,t,n)){const l=e.nodeAfter&&n.isSelectable(e.nodeAfter)?null:n.getNearestSelectionRange(e,"forward"),o=t.nodeBefore&&n.isSelectable(t.nodeBefore)?null:n.getNearestSelectionRange(t,"backward"),u=l?l.start:e,i=o?o.end:t;return new ia(u,i)}}const r=i&&!i.is("rootElement"),s=a&&!a.is("rootElement");if(r||s){const l=e.nodeAfter&&t.nodeBefore&&e.nodeAfter.parent===t.nodeBefore.parent,o=r&&(!l||!ys(e.nodeAfter,n)),u=s&&(!l||!ys(t.nodeBefore,n));let d=e,c=t;return o&&(d=la._createBefore(bs(i,n))),u&&(c=la._createAfter(bs(a,n))),new ia(d,c)}return null}(l,n)}function bs(l,n){let e=l,t=e;for(;n.isLimit(t)&&t.parent;)e=t,t=t.parent;return e}function ys(l,n){return l&&n.isSelectable(l)}function xs(l,n,e={}){if(n.isCollapsed)return;const t=n.getFirstRange();if("$graveyard"==t.root.rootName)return;const o=l.schema;l.change(l=>{if(!e.doNotResetEntireContent&&function(l,n){const e=l.getLimitElement(n);if(!n.containsEntireContent(e))return!1;const t=n.getFirstRange();return t.start.parent!=t.end.parent&&l.checkChild(e,"paragraph")}(o,n))return void function(l,n){const e=l.model.schema.getLimitElement(n);l.remove(l.createRangeIn(e)),_s(l,l.createPositionAt(e,0),n)}(l,n);const u={};if(!e.doNotAutoparagraph){const l=n.getSelectedElement();l&&Object.assign(u,o.getAttributesWithProperty(l,"copyOnReplace",!0))}const[i,a]=function(l){const n=l.root.document.model,e=l.start;let t=l.end;if(n.hasContent(l,{ignoreMarkers:!0})){const e=function(l){const n=l.parent,e=n.root.document.model.schema,t=n.getAncestors({parentFirst:!0,includeSelf:!0});for(const o of t){if(e.isLimit(o))return null;if(e.isBlock(o))return o}}(t);if(e&&t.isTouching(n.createPositionAt(e,0))){const e=n.createSelection(l);n.modifySelection(e,{direction:"backward"});const o=e.getLastPosition(),u=n.createRange(o,t);n.hasContent(u,{ignoreMarkers:!0})||(t=o)}}return[$r.fromPosition(e,"toPrevious"),$r.fromPosition(t,"toNext")]}(t);i.isTouching(a)||l.remove(l.createRange(i,a)),e.leaveUnmerged||(function(l,n,e){const t=l.model;if(!As(l.model.schema,n,e))return;const[o,u]=function(l,n){const e=l.getAncestors(),t=n.getAncestors();let o=0;for(;e[o]&&e[o]==t[o];)o++;return[e[o],t[o]]}(n,e);o&&u&&(!t.hasContent(o,{ignoreMarkers:!0})&&t.hasContent(u,{ignoreMarkers:!0})?function l(n,e,t,o){const u=e.parent,i=t.parent;if(u!=o&&i!=o){for(e=n.createPositionAfter(u),(t=n.createPositionBefore(i)).isEqual(e)||n.insert(u,t);e.parent.isEmpty;){const l=e.parent;e=n.createPositionBefore(l),n.remove(l)}t=n.createPositionBefore(i),function(l,n){const e=n.nodeBefore,t=n.nodeAfter;e.name!=t.name&&l.rename(e,t.name),l.clearAttributes(e),l.setAttributes(Object.fromEntries(t.getAttributes()),e),l.merge(n)}(n,t),As(n.model.schema,e,t)&&l(n,e,t,o)}}(l,n,e,o.parent):function l(n,e,t,o){const u=e.parent,i=t.parent;if(u!=o&&i!=o){for(e=n.createPositionAfter(u),(t=n.createPositionBefore(i)).isEqual(e)||n.insert(i,e),n.merge(e);t.parent.isEmpty;){const l=t.parent;t=n.createPositionBefore(l),n.remove(l)}As(n.model.schema,e,t)&&l(n,e,t,o)}}(l,n,e,o.parent))}(l,i,a),o.removeDisallowedAttributes(i.parent.getChildren(),l)),Cs(l,n,i),!e.doNotAutoparagraph&&function(l,n){const e=l.checkChild(n,"$text"),t=l.checkChild(n,"paragraph");return!e&&t}(o,i)&&_s(l,i,n,u),i.detach(),a.detach()})}function As(l,n,e){const t=n.parent,o=e.parent;return t!=o&&!l.isLimit(t)&&!l.isLimit(o)&&function(l,n,e){const t=new ia(l,n);for(const o of t.getWalker())if(e.isLimit(o.item))return!1;return!0}(n,e,l)}function _s(l,n,e,t={}){const o=l.createElement("paragraph");l.model.schema.setAllowedAttributes(o,t,l),l.insert(o,n),Cs(l,e,l.createPositionAt(o,0))}function Cs(l,n,e){n instanceof xa?l.setSelection(e):n.setTo(e)}function ws(l,n){const e=[];Array.from(l.getItems({direction:"backward"})).map(l=>n.createRangeOn(l)).filter(n=>(n.start.isAfter(l.start)||n.start.isEqual(l.start))&&(n.end.isBefore(l.end)||n.end.isEqual(l.end))).forEach(l=>{e.push(l.start.parent),n.remove(l)}),e.forEach(l=>{let e=l;for(;e.parent&&e.isEmpty;){const l=n.createRangeOn(e);e=e.parent,n.remove(l)}})}class Rs{constructor(l,n,e){this.model=l,this.writer=n,this.position=e,this.canMergeWith=new Set([this.position.parent]),this.schema=l.schema,this._documentFragment=n.createDocumentFragment(),this._documentFragmentPosition=n.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(l){for(const n of Array.from(l))this._handleNode(n);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(l){const n=this.writer.createPositionAfter(this._lastNode),e=this.writer.createPositionAfter(l);if(e.isAfter(n)){if(this._lastNode=l,this.position.parent!=l||!this.position.isAtEnd)throw new b("insertcontent-invalid-insertion-position",this);this.position=e,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?ia._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new ia(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(l){if(this.schema.isObject(l))return void this._handleObject(l);let n=this._checkAndAutoParagraphToAllowedPosition(l);n||(n=this._checkAndSplitToAllowedPosition(l))?(this._appendToFragment(l),this._firstNode||(this._firstNode=l),this._lastNode=l):this._handleDisallowedNode(l)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const l=$r.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=l.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=l.toPosition(),l.detach()}_handleObject(l){this._checkAndSplitToAllowedPosition(l)?this._appendToFragment(l):this._tryAutoparagraphing(l)}_handleDisallowedNode(l){l.is("element")?this.handleNodes(l.getChildren()):this._tryAutoparagraphing(l)}_appendToFragment(l){if(!this.schema.checkChild(this.position,l))throw new b("insertcontent-wrong-position",this,{node:l,position:this.position});this.writer.insert(l,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(l.offsetSize),this.schema.isObject(l)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=l:this._nodeToSelect=null,this._filterAttributesOf.push(l)}_setAffectedBoundaries(l){this._affectedStart||(this._affectedStart=$r.fromPosition(l,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(l)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=$r.fromPosition(l,"toNext"))}_mergeOnLeft(){const l=this._firstNode;if(!(l instanceof Ki))return;if(!this._canMergeLeft(l))return;const n=$r._createBefore(l);n.stickiness="toNext";const e=$r.fromPosition(this.position,"toNext");this._affectedStart.isEqual(n)&&(this._affectedStart.detach(),this._affectedStart=$r._createAt(n.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=n.nodeBefore,this._lastNode=n.nodeBefore),this.writer.merge(n),n.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=$r._createAt(n.nodeBefore,"end","toNext")),this.position=e.toPosition(),e.detach(),this._filterAttributesOf.push(this.position.parent),n.detach()}_mergeOnRight(){const l=this._lastNode;if(!(l instanceof Ki))return;if(!this._canMergeRight(l))return;const n=$r._createAfter(l);if(n.stickiness="toNext",!this.position.isEqual(n))throw new b("insertcontent-invalid-insertion-position",this);this.position=la._createAt(n.nodeBefore,"end");const e=$r.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(n)&&(this._affectedEnd.detach(),this._affectedEnd=$r._createAt(n.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=n.nodeBefore,this._lastNode=n.nodeBefore),this.writer.merge(n),n.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=$r._createAt(n.nodeBefore,0,"toPrevious")),this.position=e.toPosition(),e.detach(),this._filterAttributesOf.push(this.position.parent),n.detach()}_canMergeLeft(l){const n=l.previousSibling;return n instanceof Ki&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,l)}_canMergeRight(l){const n=l.nextSibling;return n instanceof Ki&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(l,n)}_tryAutoparagraphing(l){const n=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,n)&&this.schema.checkChild(n,l)&&(n._appendChild(l),this._handleNode(n))}_checkAndAutoParagraphToAllowedPosition(l){if(this.schema.checkChild(this.position.parent,l))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",l))return!1;this._insertPartialFragment();const n=this.writer.createElement("paragraph");return this.writer.insert(n,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=n,this.position=this.writer.createPositionAt(n,0),!0}_checkAndSplitToAllowedPosition(l){const n=this._getAllowedIn(this.position.parent,l);if(!n)return!1;for(n!=this.position.parent&&this._insertPartialFragment();n!=this.position.parent;)if(this.position.isAtStart){const l=this.position.parent;this.position=this.writer.createPositionBefore(l),l.isEmpty&&l.parent===n&&this.writer.remove(l)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const l=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=l,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(l,n){return this.schema.checkChild(l,n)?l:this.schema.isLimit(l)?null:this._getAllowedIn(l.parent,n)}}function Ls(l,n,e="auto"){const t=l.getSelectedElement();if(t&&n.schema.isObject(t)&&!n.schema.isInline(t))return"before"==e||"after"==e?n.createRange(n.createPositionAt(t,e)):n.createRangeOn(t);const o=Ot(l.getSelectedBlocks());if(!o)return n.createRange(l.focus);if(o.isEmpty)return n.createRange(n.createPositionAt(o,0));const u=n.createPositionAfter(o);return l.focus.isTouching(u)?n.createRange(u):n.createRange(n.createPositionBefore(o))}function Ms(l,n){const{isForward:e,walker:t,unit:o,schema:u,treatEmojiAsSingleUnit:i}=l,{type:a,item:r,nextPosition:s}=n;if("text"==a)return"word"===l.unit?function(l,n){let e=l.position.textNode;for(e||(e=n?l.position.nodeAfter:l.position.nodeBefore);e&&e.is("$text");){const t=l.position.offset-e.startOffset;if(Ss(e,t,n))e=n?l.position.nodeAfter:l.position.nodeBefore;else{if(Os(e.data,t,n))break;l.next()}}return l.position}(t,e):function(l,n,e){const t=l.position.textNode;if(t){const o=t.data;let u=l.position.offset-t.startOffset;for(;Ft(o,u)||"character"==n&&Nt(o,u)||e&&zt(o,u);)l.next(),u=l.position.offset-t.startOffset}return l.position}(t,o,i);if(a==(e?"elementStart":"elementEnd")){if(u.isSelectable(r))return la._createAt(r,e?"after":"before");if(u.checkChild(s,"$text"))return s}else{if(u.isLimit(r))return void t.skip(()=>!0);if(u.checkChild(s,"$text"))return s}}function Es(l,n){const e=l.root,t=la._createAt(e,n?"end":0);return n?new ia(l,t):new ia(t,l)}function Os(l,n,e){const t=n+(e?0:-1);return' ,.?!:;"-()'.includes(l.charAt(t))}function Ss(l,n,e){return n===(e?l.offsetSize:0)}class ks extends(U()){constructor(){var l;super(),this.markers=new as,this.document=new us(this),this.schema=new Ka,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(l=>this.decorate(l)),this.on("applyOperation",(l,n)=>{n[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((l,n)=>{if("$marker"===n.name)return!0}),(l=this).document.registerPostFixer(n=>(function(l,n){const e=n.document.selection,t=n.schema,o=[];let u=!1;for(const i of e.getRanges()){const l=vs(i,t);l&&!l.isEqual(i)?(o.push(l),u=!0):o.push(i)}return u&&l.setSelection(function(l){const n=[...o],e=new Set;let t=1;for(;t!e.has(n))}(),{backward:e.isBackward}),!1})(n,l)),this.document.registerPostFixer(qa)}change(l){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Kr,callback:l}),this._runPendingChanges()[0]):l(this._currentWriter)}catch(l){b.rethrowUnexpectedError(l,this)}}enqueueChange(l,n){try{l?"function"==typeof l?(n=l,l=new Kr):l instanceof Kr||(l=new Kr(l)):l=new Kr,this._pendingChanges.push({batch:l,callback:n}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(l){b.rethrowUnexpectedError(l,this)}}applyOperation(l){l._execute()}insertContent(l,n,e){return function(l,n,e,t){return l.change(o=>{let u;(u=e?e instanceof fa||e instanceof xa?e:o.createSelection(e,t):l.document.selection).isCollapsed||l.deleteContent(u,{doNotAutoparagraph:!0});const i=new Rs(l,o,u.anchor),a=[];let r;if(n.is("documentFragment")){if(n.markers.size){const l=[];for(const[e,t]of n.markers){const{start:n,end:o}=t,u=n.isEqual(o);l.push({position:n,name:e,isCollapsed:u},{position:o,name:e,isCollapsed:u})}l.sort(({position:l},{position:n})=>l.isBefore(n)?1:-1);for(const{position:e,name:t,isCollapsed:u}of l){let l=null,i=null;const r=e.parent===n&&e.isAtStart,s=e.parent===n&&e.isAtEnd;r||s?u&&(i=r?"start":"end"):(l=o.createElement("$marker"),o.insert(l,e)),a.push({name:t,element:l,collapsed:i})}}r=n.getChildren()}else r=[n];i.handleNodes(r);let s=i.getSelectionRange();if(n.is("documentFragment")&&a.length){const l=s?ba.fromRange(s):null,n={};for(let e=a.length-1;e>=0;e--){const{name:l,element:t,collapsed:u}=a[e],r=!n[l];if(r&&(n[l]=[]),t){const e=o.createPositionAt(t,"before");n[l].push(e),o.remove(t)}else{const e=i.getAffectedRange();if(!e){u&&n[l].push(i.position);continue}u?n[l].push(e[u]):n[l].push(r?e.start:e.end)}}for(const[e,[t,u]]of Object.entries(n))t&&u&&t.root===u.root&&o.addMarker(e,{usingOperation:!0,affectsData:!0,range:new ia(t,u)});l&&(s=l.toRange(),l.detach())}s&&(u instanceof xa?o.setSelection(s):u.setTo(s));const d=i.getAffectedRange()||l.createRange(u.anchor);return i.destroy(),d})}(this,l,n,e)}insertObject(l,n,e,t){return function(l,n,e,t,o={}){if(!l.schema.isObject(n))throw new b("insertobject-element-not-an-object",l,{object:n});let u,i=u=e?e instanceof fa||e instanceof xa?e:l.createSelection(e,t):l.document.selection;o.findOptimalPosition&&l.schema.isBlock(n)&&(i=l.createSelection(Ls(u,l,o.findOptimalPosition)));const a=Ot(u.getSelectedBlocks()),r={};return a&&Object.assign(r,l.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),l.change(e=>{i.isCollapsed||l.deleteContent(i,{doNotAutoparagraph:!0});let t=n;const u=i.anchor.parent;!l.schema.checkChild(u,n)&&l.schema.checkChild(u,"paragraph")&&l.schema.checkChild("paragraph",n)&&(t=e.createElement("paragraph"),e.insert(n,t)),l.schema.setAllowedAttributes(t,r,e);const a=l.insertContent(t,i);return a.isCollapsed||o.setSelection&&function(l,n,e,t){const o=l.model;if("on"==e)return void l.setSelection(n,"on");if("after"!=e)throw new b("insertobject-invalid-place-parameter-value",o);let u=n.nextSibling;o.schema.isInline(n)?l.setSelection(n,"after"):(!(u&&o.schema.checkChild(u,"$text"))&&o.schema.checkChild(n.parent,"paragraph")&&(u=l.createElement("paragraph"),o.schema.setAllowedAttributes(u,t,l),o.insertContent(u,l.createPositionAfter(n))),u&&l.setSelection(u,0))}(e,n,o.setSelection,r),a})}(this,l,n,e,t)}deleteContent(l,n){xs(this,l,n)}modifySelection(l,n){!function(l,n,e={}){const t=l.schema,o="backward"!=e.direction,u=e.unit?e.unit:"character",i=!!e.treatEmojiAsSingleUnit,a=n.focus,r=new Qi({boundaries:Es(a,o),singleCharacters:!0,direction:o?"forward":"backward"}),s={walker:r,schema:t,isForward:o,unit:u,treatEmojiAsSingleUnit:i};let d;for(;d=r.next();){if(d.done)return;const e=Ms(s,d.value);if(e)return void(n instanceof xa?l.change(l=>{l.setSelectionFocus(e)}):n.setFocus(e))}}(this,l,n)}getSelectedContent(l){return function(l,n){return l.change(l=>{const e=l.createDocumentFragment(),t=n.getFirstRange();if(!t||t.isCollapsed)return e;const o=t.start.root,u=t.start.getCommonPath(t.end),i=o.getNodeByPath(u);let a;const r=(a=t.start.parent==t.end.parent?t:l.createRange(l.createPositionAt(i,t.start.path[u.length]),l.createPositionAt(i,t.end.path[u.length]+1))).end.offset-a.start.offset;for(const n of a.getItems({shallow:!0}))n.is("$textProxy")?l.appendText(n.data,n.getAttributes(),e):l.append(l.cloneElement(n,!0),e);if(a!=t){const n=t._getTransformedByMove(a.start,l.createPositionAt(e,0),r)[0],o=l.createRange(l.createPositionAt(e,0),n.start);ws(l.createRange(n.end,l.createPositionAt(e,"end")),l),ws(o,l)}return e})}(this,l)}hasContent(l,n={}){const e=l instanceof ia?l:ia._createIn(l);if(e.isCollapsed)return!1;const{ignoreWhitespaces:t=!1,ignoreMarkers:o=!1}=n;if(!o)for(const u of this.markers.getMarkersIntersectingRange(e))if(u.affectsData)return!0;for(const u of e.getItems())if(this.schema.isContent(u)){if(!u.is("$textProxy"))return!0;if(!t)return!0;if(-1!==u.data.search(/\S/))return!0}return!1}createPositionFromPath(l,n,e){return new la(l,n,e)}createPositionAt(l,n){return la._createAt(l,n)}createPositionAfter(l){return la._createAfter(l)}createPositionBefore(l){return la._createBefore(l)}createRange(l,n){return new ia(l,n)}createRangeIn(l){return ia._createIn(l)}createRangeOn(l){return ia._createOn(l)}createSelection(...l){return new fa(...l)}createBatch(l){return new Kr(l)}createOperationFromJSON(l){return Tr.fromJSON(l,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const l=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const n=this._pendingChanges[0].batch;this._currentWriter=new cs(this,n);const e=this._pendingChanges[0].callback(this._currentWriter);l.push(e),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return l}}class Is extends oi{constructor(l){super(l),this.domEventType="click"}onDomEvent(l){this.fire(l.type,l)}}class Fs extends oi{constructor(l){super(l),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(l){this.fire(l.type,l)}}class Ns{constructor(l){this.document=l}createDocumentFragment(l){return new Au(this.document,l)}createElement(l,n,e){return new jo(this.document,l,n,e)}createText(l){return new eo(this.document,l)}clone(l,n=!1){return l._clone(n)}appendChild(l,n){return n._appendChild(l)}insertChild(l,n,e){return e._insertChild(l,n)}removeChildren(l,n,e){return e._removeChildren(l,n)}remove(l){const n=l.parent;return n?this.removeChildren(n.getChildIndex(l),1,n):[]}replace(l,n){const e=l.parent;if(e){const t=e.getChildIndex(l);return this.removeChildren(t,1,e),this.insertChild(t,n,e),!0}return!1}unwrapElement(l){const n=l.parent;if(n){const e=n.getChildIndex(l);this.remove(l),this.insertChild(e,l.getChildren(),n)}}rename(l,n){const e=new jo(this.document,l,n.getAttributes(),n.getChildren());return this.replace(n,e)?e:null}setAttribute(l,n,e){e._setAttribute(l,n)}removeAttribute(l,n){n._removeAttribute(l)}addClass(l,n){n._addClass(l)}removeClass(l,n){n._removeClass(l)}setStyle(l,n,e){xl(l)&&void 0===e?n._setStyle(l):e._setStyle(l,n)}removeStyle(l,n){n._removeStyle(l)}setCustomProperty(l,n,e){e._setCustomProperty(l,n)}removeCustomProperty(l,n){return n._removeCustomProperty(l)}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(l,n){return new lu(l,n)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}}new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);class Ds{constructor(){this._commands=new Map}add(l,n){this._commands.set(l,n)}get(l){return this._commands.get(l)}execute(l,...n){const e=this.get(l);if(!e)throw new b("commandcollection-command-not-found",this,{commandName:l});return e.execute(...n)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const l of this.commands())l.destroy()}}class zs extends kt{constructor(l){super(),this.editor=l}set(l,n,e={}){if("string"==typeof n){const l=n;n=((n,e)=>{this.editor.execute(l),e()})}super.set(l,n,e)}}class qs extends(U()){constructor(l={}){super();const n=this.constructor,e=l.language||n.defaultConfig&&n.defaultConfig.language;this._context=l.context||new Wt({language:e}),this._context._addEditor(this,!l.context);const t=Array.from(n.builtinPlugins||[]);this.config=new ke(l,n.defaultConfig),this.config.define("plugins",t),this.config.define(this._context._getEditorConfig()),this.plugins=new Ut(this,t,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Ds,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new ks;const o=new Uo;this.data=new hr(this.model,o),this.editing=new Ya(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new gr([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new zs(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(l){throw new b("editor-isreadonly-has-no-setter")}enableReadOnlyMode(l){if("string"!=typeof l&&"symbol"!=typeof l)throw new b("editor-read-only-lock-id-invalid",null,{lockId:l});this._readOnlyLocks.has(l)||(this._readOnlyLocks.add(l),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(l){if("string"!=typeof l&&"symbol"!=typeof l)throw new b("editor-read-only-lock-id-invalid",null,{lockId:l});this._readOnlyLocks.has(l)&&(this._readOnlyLocks.delete(l),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const l=this.config,n=l.get("plugins"),e=l.get("removePlugins")||[],t=l.get("extraPlugins")||[],o=l.get("substitutePlugins")||[];return this.plugins.init(n.concat(t),e,o)}destroy(){let l=Promise.resolve();return"initializing"==this.state&&(l=new Promise(l=>this.once("ready",l))),l.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(l,...n){try{return this.commands.execute(l,...n)}catch(l){b.rethrowUnexpectedError(l,this)}}focus(){this.editing.view.focus()}}class Ts{constructor(l){this.editor=l,this._components=new Map}*names(){for(const l of this._components.values())yield l.originalName}add(l,n){this._components.set(Ps(l),{callback:n,originalName:l})}create(l){if(!this.has(l))throw new b("componentfactory-item-missing",this,{name:l});return this._components.get(Ps(l)).callback(this.editor.locale)}has(l){return this._components.has(Ps(l))}}function Ps(l){return String(l).toLowerCase()}class Bs extends Et{constructor(l=[]){super(l,{idProperty:"viewUid"}),this.on("add",(l,n,e)=>{this._renderViewIntoCollectionParent(n,e)}),this.on("remove",(l,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(l=>l.destroy())}setParent(l){this._parentElement=l;for(const n of this)this._renderViewIntoCollectionParent(n)}delegate(...l){if(!l.length||!l.every(l=>"string"==typeof l))throw new b("ui-viewcollection-delegate-wrong-events",this);return{to:n=>{for(const e of this)for(const t of l)e.delegate(t).to(n);this.on("add",(e,t)=>{for(const o of l)t.delegate(o).to(n)}),this.on("remove",(e,t)=>{for(const o of l)t.stopDelegating(o,n)})}}}_renderViewIntoCollectionParent(l,n){l.isRendered||l.render(),l.element&&this._parentElement&&this._parentElement.insertBefore(l.element,this._parentElement.children[n])}}class Vs extends(E()){constructor(l){super(),Object.assign(this,Ks($s(l))),this._isRendered=!1,this._revertData=null}render(){const l=this._renderNode({intoFragment:!0});return this._isRendered=!0,l}apply(l){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:l,intoFragment:!1,isApplying:!0,revertData:this._revertData}),l}revert(l){if(!this._revertData)throw new b("ui-template-revert-not-applied",[this,l]);this._revertTemplateFromNode(l,this._revertData)}*getViews(){yield*function*l(n){if(n.children)for(const e of n.children)ed(e)?yield e:td(e)&&(yield*l(e))}(this)}static bind(l,n){return{to:(e,t)=>new Ws({eventNameOrFunction:e,attribute:e,observable:l,emitter:n,callback:t}),if:(e,t,o)=>new Gs({observable:l,emitter:n,attribute:e,valueIfTrue:t,callback:o})}}static extend(l,n){if(l._isRendered)throw new b("template-extend-render",[this,l]);!function l(n,e){if(e.attributes&&(n.attributes||(n.attributes={}),ld(n.attributes,e.attributes)),e.eventListeners&&(n.eventListeners||(n.eventListeners={}),ld(n.eventListeners,e.eventListeners)),e.text&&n.text.push(...e.text),e.children&&e.children.length){if(n.children.length!=e.children.length)throw new b("ui-template-extend-children-mismatch",n);let t=0;for(const o of e.children)l(n.children[t++],o)}}(l,Ks($s(n)))}_renderNode(l){let n;if(n=l.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new b("ui-template-wrong-syntax",this);return this.text?this._renderText(l):this._renderElement(l)}_renderElement(l){let n=l.node;return n||(n=l.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(l),this._renderElementChildren(l),this._setUpListeners(l),n}_renderText(l){let n=l.node;return n?l.revertData.text=n.textContent:n=l.node=document.createTextNode(""),js(this.text)?this._bindToObservable({schema:this.text,updater:Ys(n),data:l}):n.textContent=this.text.join(""),n}_renderAttributes(l){if(!this.attributes)return;const n=l.node,e=l.revertData;for(const t in this.attributes){const o=n.getAttribute(t),u=this.attributes[t];e&&(e.attributes[t]=o);const i=ud(u)?u[0].ns:null;if(js(u)){const a=ud(u)?u[0].value:u;e&&id(t)&&a.unshift(o),this._bindToObservable({schema:a,updater:Zs(n,t,i),data:l})}else if("style"==t&&"string"!=typeof u[0])this._renderStyleAttribute(u[0],l);else{e&&o&&id(t)&&u.unshift(o);const l=u.map(l=>l&&l.value||l).reduce((l,n)=>l.concat(n),[]).reduce(Js,"");nd(l)||n.setAttributeNS(i,t,l)}}}_renderStyleAttribute(l,n){const e=n.node;for(const t in l){const o=l[t];js(o)?this._bindToObservable({schema:[o],updater:Xs(e,t),data:n}):e.style[t]=o}}_renderElementChildren(l){const n=l.node,e=l.intoFragment?document.createDocumentFragment():n,t=l.isApplying;let o=0;for(const u of this.children)if(od(u)){if(!t){u.setParent(n);for(const l of u)e.appendChild(l.element)}}else if(ed(u))t||(u.isRendered||u.render(),e.appendChild(u.element));else if(Ne(u))e.appendChild(u);else if(t){const n={children:[],bindings:[],attributes:{}};l.revertData.children.push(n),u._renderNode({intoFragment:!1,node:e.childNodes[o++],isApplying:!0,revertData:n})}else e.appendChild(u.render());l.intoFragment&&n.appendChild(e)}_setUpListeners(l){if(this.eventListeners)for(const n in this.eventListeners){const e=this.eventListeners[n].map(e=>{const[t,o]=n.split("@");return e.activateDomEventListener(t,o,l)});l.revertData&&l.revertData.bindings.push(e)}}_bindToObservable({schema:l,updater:n,data:e}){const t=e.revertData;Hs(l,n,e);const o=l.filter(l=>!nd(l)).filter(l=>l.observable).map(t=>t.activateAttributeListener(l,n,e));t&&t.bindings.push(o)}_revertTemplateFromNode(l,n){for(const t of n.bindings)for(const l of t)l();if(n.text)return void(l.textContent=n.text);const e=l;for(const t in n.attributes){const l=n.attributes[t];null===l?e.removeAttribute(t):e.setAttribute(t,l)}for(let t=0;tHs(l,n,e);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,t),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,t)}}}class Ws extends Us{constructor(l){super(l),this.eventNameOrFunction=l.eventNameOrFunction}activateDomEventListener(l,n,e){const t=(l,e)=>{n&&!e.target.matches(n)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(e):this.observable.fire(this.eventNameOrFunction,e))};return this.emitter.listenTo(e.node,l,t),()=>{this.emitter.stopListening(e.node,l,t)}}}class Gs extends Us{constructor(l){super(l),this.valueIfTrue=l.valueIfTrue}getValue(l){return!nd(super.getValue(l))&&(this.valueIfTrue||!0)}}function js(l){return!!l&&(l.value&&(l=l.value),Array.isArray(l)?l.some(js):l instanceof Us)}function Hs(l,n,{node:e}){const t=function(l,n){return l.map(l=>l instanceof Us?l.getValue(n):l)}(l,e);let o;nd(o=1==l.length&&l[0]instanceof Gs?t[0]:t.reduce(Js,""))?n.remove():n.set(o)}function Ys(l){return{set(n){l.textContent=n},remove(){l.textContent=""}}}function Zs(l,n,e){return{set(t){l.setAttributeNS(e,n,t)},remove(){l.removeAttributeNS(e,n)}}}function Xs(l,n){return{set(e){l.style[n]=e},remove(){l.style[n]=null}}}function $s(l){return Oe(l,l=>{if(l&&(l instanceof Us||td(l)||ed(l)||od(l)))return l})}function Ks(l){if("string"==typeof l?l=function(l){return{text:[l]}}(l):l.text&&function(l){l.text=wt(l.text)}(l),l.on&&(l.eventListeners=function(l){for(const n in l)Qs(l,n);return l}(l.on),delete l.on),!l.text){l.attributes&&function(l){for(const n in l)l[n].value&&(l[n].value=wt(l[n].value)),Qs(l,n)}(l.attributes);const n=[];if(l.children)if(od(l.children))n.push(l.children);else for(const e of l.children)td(e)||ed(e)||Ne(e)?n.push(e):n.push(new Vs(e));l.children=n}return l}function Qs(l,n){l[n]=wt(l[n])}function Js(l,n){return nd(n)?l:nd(l)?n:`${l} ${n}`}function ld(l,n){for(const e in n)l[e]?l[e].push(...n[e]):l[e]=n[e]}function nd(l){return!l&&0!==l}function ed(l){return l instanceof rd}function td(l){return l instanceof Vs}function od(l){return l instanceof Bs}function ud(l){return D(l[0])&&l[0].ns}function id(l){return"class"==l||"style"==l}var ad=o(4793);Ht()(ad.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ad.Z.locals;class rd extends(qe(U())){constructor(l){super(),this.element=null,this.isRendered=!1,this.locale=l,this.t=l&&l.t,this._viewCollections=new Et,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(n,e)=>{e.locale=l,e.t=l&&l.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Vs.bind(this,this)}createCollection(l){const n=new Bs(l);return this._viewCollections.add(n),n}registerChild(l){K(l)||(l=[l]);for(const n of l)this._unboundChildren.add(n)}deregisterChild(l){K(l)||(l=[l]);for(const n of l)this._unboundChildren.remove(n)}setTemplate(l){this.template=new Vs(l)}extendTemplate(l){Vs.extend(this.template,l)}render(){if(this.isRendered)throw new b("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(l=>l.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}var sd=o(8793);Ht()(sd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sd.Z.locals;const dd=Qe("px"),cd=Ve.document.body;class pd extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",n.to("position",l=>`ck-balloon-panel_${l}`),n.if("isVisible","ck-balloon-panel_visible"),n.if("withArrow","ck-balloon-panel_with-arrow"),n.to("class")],style:{top:n.to("top",dd),left:n.to("left",dd)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(l){this.show();const n=pd.defaultPositions,e=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:cd,fitInViewport:!0},l),t=pd._getOptimalPosition(e),o=parseInt(t.left),u=parseInt(t.top),i=t.name,a=t.config||{},{withArrow:r=!0}=a;this.top=u,this.left=o,this.position=i,this.withArrow=r}pin(l){this.unpin(),this._pinWhenIsVisibleCallback=(()=>{this.isVisible?this._startPinning(l):this._stopPinning()}),this._startPinning(l),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(l){this.attachTo(l);const n=fd(l.target),e=l.limiter?fd(l.limiter):cd;this.listenTo(Ve.document,"scroll",(t,o)=>{const u=o.target,i=n&&u.contains(n),a=e&&u.contains(e);!i&&!a&&n&&e||this.attachTo(l)},{useCapture:!0}),this.listenTo(Ve.window,"resize",()=>{this.attachTo(l)})}_stopPinning(){this.stopListening(Ve.document,"scroll"),this.stopListening(Ve.window,"resize")}}function fd(l){return Se(l)?l:Ge(l)?l.commonAncestorContainer:"function"==typeof l?fd(l()):null}function md(l={}){const{sideOffset:n=pd.arrowSideOffset,heightOffset:e=pd.arrowHeightOffset,stickyVerticalOffset:t=pd.stickyVerticalOffset,config:o}=l;return{northWestArrowSouthWest:(l,e)=>({top:u(l,e),left:l.left-n,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.left-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(l,n)=>({top:u(l,n),left:l.left-n.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.left-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(l,e)=>({top:u(l,e),left:l.left-e.width+n,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(l,e)=>({top:u(l,e),left:l.left+l.width/2-n,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.left+l.width/2-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(l,n)=>({top:u(l,n),left:l.left+l.width/2-n.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.left+l.width/2-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(l,e)=>({top:u(l,e),left:l.left+l.width/2-e.width+n,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(l,e)=>({top:u(l,e),left:l.right-n,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.right-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(l,n)=>({top:u(l,n),left:l.right-n.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.right-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(l,e)=>({top:u(l,e),left:l.right-e.width+n,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:l=>({top:i(l),left:l.left-n,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.left-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(l,n)=>({top:i(l),left:l.left-n.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.left-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(l,e)=>({top:i(l),left:l.left-e.width+n,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:l=>({top:i(l),left:l.left+l.width/2-n,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.left+l.width/2-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(l,n)=>({top:i(l),left:l.left+l.width/2-n.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.left+l.width/2-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(l,e)=>({top:i(l),left:l.left+l.width/2-e.width+n,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:l=>({top:i(l),left:l.right-n,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.right-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(l,n)=>({top:i(l),left:l.right-n.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.right-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(l,e)=>({top:i(l),left:l.right-e.width+n,name:"arrow_ne",...o&&{config:o}}),westArrowEast:(l,n)=>({top:l.top+l.height/2-n.height/2,left:l.left-n.width-e,name:"arrow_e",...o&&{config:o}}),eastArrowWest:(l,n)=>({top:l.top+l.height/2-n.height/2,left:l.right+e,name:"arrow_w",...o&&{config:o}}),viewportStickyNorth:(l,n,e)=>l.getIntersection(e)?{top:e.top+t,left:l.left+l.width/2-n.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null};function u(l,n){return l.top-n.height-e}function i(l){return l.bottom+e}}pd.arrowSideOffset=25,pd.arrowHeightOffset=10,pd.stickyVerticalOffset=20,pd._getOptimalPosition=tt,pd.defaultPositions=md();var hd=o(3332);Ht()(hd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hd.Z.locals;const gd="ck-tooltip";class vd extends(qe()){constructor(l){if(super(),vd._editors.add(l),vd._instance)return vd._instance;vd._instance=this,this.tooltipTextView=new rd(l.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new pd(l.locale),this.balloonPanelView.class=gd,this.balloonPanelView.content.add(this.tooltipTextView),this._resizeObserver=null,this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=vi(this._pinTooltip,600),this.listenTo(Ve.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(l){const n=l.ui.view&&l.ui.view.body;vd._editors.delete(l),this.stopListening(l.ui),n&&n.has(this.balloonPanelView)&&n.remove(this.balloonPanelView),vd._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),vd._instance=null)}static getPositioningFunctions(l){const n=vd.defaultBalloonPositions;return{s:[n.southArrowNorth,n.southArrowNorthEast,n.southArrowNorthWest],n:[n.northArrowSouth],e:[n.eastArrowWest],w:[n.westArrowEast],sw:[n.southArrowNorthEast],se:[n.southArrowNorthWest]}[l]}_onEnterOrFocus(l,{target:n}){const e=bd(n);var t;e&&e!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(e,{text:(t=e).dataset.ckeTooltipText,position:t.dataset.ckeTooltipPosition||"s",cssClass:t.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(l,{target:n,relatedTarget:e}){if("mouseleave"===l.name){if(!Se(n))return;if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;const l=bd(n),t=bd(e);l&&l!==t&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(l,{target:n}){this._currentElementWithTooltip&&(n.contains(this.balloonPanelView.element)&&n.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(l,{text:n,position:e,cssClass:t}){const o=Ot(vd._editors.values()).ui.view.body;o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=n,this.balloonPanelView.pin({target:l,positions:vd.getPositioningFunctions(e)}),this._resizeObserver=new Ke(l,()=>{et(l)||this._unpinTooltip()}),this.balloonPanelView.class=[gd,t].filter(l=>l).join(" ");for(const u of vd._editors)this.listenTo(u.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=l,this._currentTooltipPosition=e}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const l of vd._editors)this.stopListening(l.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){et(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:vd.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}function bd(l){return Se(l)?l.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}vd.defaultBalloonPositions=md({heightOffset:5,sideOffset:13}),vd._editors=new Set,vd._instance=null;class yd extends(U()){constructor(l){super(),this.editor=l,this.componentFactory=new Ts(l),this.focusTracker=new St,this.tooltipManager=new vd(l),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",()=>{this.isReady=!0}),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(l.editing.view.document,"layoutChanged",()=>this.update()),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);for(const l of this._editableElementsMap.values())l.ckeditorInstance=null;this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(l,n){this._editableElementsMap.set(l,n),n.ckeditorInstance||(n.ckeditorInstance=this.editor),this.focusTracker.add(n);const e=()=>{this.editor.editing.view.getDomRoot(l)||this.editor.keystrokes.listenTo(n)};this.isReady?e():this.once("ready",e)}getEditableElement(l="main"){return this._editableElementsMap.get(l)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(l,n={}){l.isRendered?(this.focusTracker.add(l.element),this.editor.keystrokes.listenTo(l.element)):l.once("render",()=>{this.focusTracker.add(l.element),this.editor.keystrokes.listenTo(l.element)}),this._focusableToolbarDefinitions.push({toolbarView:l,options:n})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const l=this.editor,n=l.config.get("ui.viewportOffset");if(n)return n;const e=l.config.get("toolbar.viewportTopOffset");return e?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:e}):{top:0}}_initFocusTracking(){const l=this.editor,n=l.editing.view;let e,t;l.keystrokes.set("Alt+F10",(l,o)=>{const u=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(u)&&!Array.from(n.domRoots.values()).includes(u)&&(e=u);const i=this._getCurrentFocusedToolbarDefinition();i&&t||(t=this._getFocusableCandidateToolbarDefinitions());for(let n=0;n{const o=this._getCurrentFocusedToolbarDefinition();o&&(e?(e.focus(),e=null):l.editing.view.focus(),o.options.afterBlur&&o.options.afterBlur(),t())})}_getFocusableCandidateToolbarDefinitions(){const l=[];for(const n of this._focusableToolbarDefinitions){const{toolbarView:e,options:t}=n;(et(e.element)||t.beforeFocus)&&l.push(n)}return l.sort((l,n)=>xd(l)-xd(n)),l}_getCurrentFocusedToolbarDefinition(){for(const l of this._focusableToolbarDefinitions)if(l.toolbarView.element&&l.toolbarView.element.contains(this.focusTracker.focusedElement))return l;return null}_focusFocusableCandidateToolbar(l){const{toolbarView:n,options:{beforeFocus:e}}=l;return e&&e(),!!et(n.element)&&(n.focus(),!0)}}function xd(l){const{toolbarView:n,options:e}=l;let t=10;return et(n.element)&&t--,e.isContextual&&t--,t}function Ad(l){return class extends l{setData(l){this.data.set(l)}getData(l){return this.data.get(l)}}}{const l=Ad(Object);Ad.setData=l.prototype.setData,Ad.getData=l.prototype.getData}function _d(l){return class extends l{updateSourceElement(l=this.data.get()){if(!this.sourceElement)throw new b("editor-missing-sourceelement",this);const n=this.config.get("updateSourceElementOnDestroy"),e=this.sourceElement instanceof HTMLTextAreaElement;!function(l,n){l instanceof HTMLTextAreaElement&&(l.value=n),l.innerHTML=n}(this.sourceElement,n||e?l:"")}}}_d.updateSourceElement=_d(Object).prototype.updateSourceElement;class Cd extends Gt{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Et({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(l){if("string"!=typeof l)throw new b("pendingactions-add-invalid-message",this);const n=new(U());return n.set("message",l),this._actions.add(n),this.hasAny=!0,n}remove(l){this._actions.remove(l),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const wd={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',image:'',lowVision:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:''};function Rd({emitter:l,activator:n,callback:e,contextElements:t}){l.listenTo(document,"mousedown",(l,o)=>{if(!n())return;const u="function"==typeof o.composedPath?o.composedPath():[];for(const n of t)if(n.contains(o.target)||u.includes(n))return;e()})}function Ld(l){const n=l;n.set("_isCssTransitionsDisabled",!1),n.disableCssTransitions=(()=>{n._isCssTransitionsDisabled=!0}),n.enableCssTransitions=(()=>{n._isCssTransitionsDisabled=!1}),n.extendTemplate({attributes:{class:[n.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Md({view:l}){l.listenTo(l.element,"submit",(n,e)=>{e.preventDefault(),l.fire("submit")},{useCapture:!0})}class Ed extends Bs{constructor(l,n=[]){super(n),this.locale=l}attachToDom(){this._bodyCollectionContainer=new Vs({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let l=document.querySelector(".ck-body-wrapper");l||(l=pl(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(l)),l.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const l=document.querySelector(".ck-body-wrapper");l&&0==l.childElementCount&&l.remove()}}var Od=o(6574);Ht()(Od.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Od.Z.locals;class Sd extends rd{constructor(){super();const l=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",l.if("isColorInherited","ck-icon_inherit-color")],viewBox:l.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const l=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),n=l.getAttribute("viewBox");n&&(this.viewBox=n);for(const{name:e,value:t}of Array.from(l.attributes))Sd.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,t);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;l.childNodes.length>0;)this.element.appendChild(l.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(l=>{l.style.fill=this.fillColor})}}Sd.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];var kd=o(4906);Ht()(kd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),kd.Z.locals;class Id extends rd{constructor(l){super(l);const n=this.bindTemplate,e=h();this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(e),this.iconView=new Sd,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const o={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",l=>!l),n.if("isVisible","ck-hidden",l=>!l),n.to("isOn",l=>l?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],type:n.to("type",l=>l||"button"),tabindex:n.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${e}`,"aria-disabled":n.if("isEnabled",!0,l=>!l),"aria-pressed":n.to("isOn",l=>!!this.isToggleable&&String(!!l)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(l=>{this.isEnabled?this.fire("execute"):l.preventDefault()})}};t.isSafari&&(o.on.mousedown=n.to(l=>{this.focus(),l.preventDefault()})),this.setTemplate(o)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createLabelView(l){const n=new rd,e=this.bindTemplate;return n.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("labelStyle"),id:`ck-editor__aria-label_${l}`},children:[{text:this.bindTemplate.to("label")}]}),n}_createKeystrokeView(){const l=new rd;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>_t(l))}]}),l}_getTooltipString(l,n,e){return l?"string"==typeof l?l:(e&&(e=_t(e)),l instanceof Function?l(n,e):`${n}${e?` (${e})`:""}`):""}}var Fd=o(5332);Ht()(Fd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fd.Z.locals;class Nd extends Id{constructor(l){super(l),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const l=new rd;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),l}}var Dd=o(6781);Ht()(Dd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Dd.Z.locals;const zd='';class qd extends Id{constructor(l){super(l),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",l=>String(l))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const l=new Sd;return l.content=zd,l.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),l}}var Td=o(7686);Ht()(Td.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Td.Z.locals;class Pd extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new kt,this.focusTracker=new St,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",l=>!l),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(l,n)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),n())}),this.keystrokes.set("arrowleft",(l,n)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),n())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const l=new Id;return l.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),l.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),l.delegate("execute").to(this),l}_createArrowView(){const l=new Id,n=l.bindTemplate;return l.icon=zd,l.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":n.to("isOn"),"aria-haspopup":!0,"aria-expanded":n.to("isOn",l=>String(l))}}),l.bind("isEnabled").to(this),l.bind("label").to(this),l.bind("tooltip").to(this),l.delegate("execute").to(this,"open"),l}}class Bd extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",n.to("position",l=>`ck-dropdown__panel_${l}`),n.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:n.to(l=>l.preventDefault())}})}focus(){if(this.children.length){const l=this.children.first;"function"==typeof l.focus?l.focus():y("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const l=this.children.last;"function"==typeof l.focusLast?l.focusLast():l.focus()}}}var Vd=o(5485);Ht()(Vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vd.Z.locals;class Ud extends rd{constructor(l,n,e){super(l);const t=this.bindTemplate;this.buttonView=n,this.panelView=e,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new kt,this.focusTracker=new St,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",t.to("class"),t.if("isEnabled","ck-disabled",l=>!l)],id:t.to("id"),"aria-describedby":t.to("ariaDescribedById")},children:[n,e]}),n.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":t.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(l,n,e)=>{e&&("auto"===this.panelPosition?this.panelView.position=Ud._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)}),this.keystrokes.listenTo(this.element);const l=(l,n)=>{this.isOpen&&(this.isOpen=!1,n())};this.keystrokes.set("arrowdown",(l,n)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,n())}),this.keystrokes.set("arrowright",(l,n)=>{this.isOpen&&n()}),this.keystrokes.set("arrowleft",l),this.keystrokes.set("esc",l)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:l,north:n,southEast:e,southWest:t,northEast:o,northWest:u,southMiddleEast:i,southMiddleWest:a,northMiddleEast:r,northMiddleWest:s}=Ud.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[e,t,i,a,l,o,u,r,s,n]:[t,e,a,i,l,u,o,s,r,n]}}Ud.defaultPanelPositions={south:(l,n)=>({top:l.bottom,left:l.left-(n.width-l.width)/2,name:"s"}),southEast:l=>({top:l.bottom,left:l.left,name:"se"}),southWest:(l,n)=>({top:l.bottom,left:l.left-n.width+l.width,name:"sw"}),southMiddleEast:(l,n)=>({top:l.bottom,left:l.left-(n.width-l.width)/4,name:"sme"}),southMiddleWest:(l,n)=>({top:l.bottom,left:l.left-3*(n.width-l.width)/4,name:"smw"}),north:(l,n)=>({top:l.top-n.height,left:l.left-(n.width-l.width)/2,name:"n"}),northEast:(l,n)=>({top:l.top-n.height,left:l.left,name:"ne"}),northWest:(l,n)=>({top:l.top-n.height,left:l.left-n.width+l.width,name:"nw"}),northMiddleEast:(l,n)=>({top:l.top-n.height,left:l.left-(n.width-l.width)/4,name:"nme"}),northMiddleWest:(l,n)=>({top:l.top-n.height,left:l.left-3*(n.width-l.width)/4,name:"nmw"})},Ud._getOptimalPosition=tt;class Wd{constructor(l){if(this.focusables=l.focusables,this.focusTracker=l.focusTracker,this.keystrokeHandler=l.keystrokeHandler,this.actions=l.actions,l.actions&&l.keystrokeHandler)for(const n in l.actions){let e=l.actions[n];"string"==typeof e&&(e=[e]);for(const t of e)l.keystrokeHandler.set(t,(l,e)=>{this[n](),e()})}}get first(){return this.focusables.find(Gd)||null}get last(){return this.focusables.filter(Gd).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let l=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((n,e)=>{const t=n.element===this.focusTracker.focusedElement;return t&&(l=e),t}),l)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(l){l&&l.focus()}_getFocusableItem(l){const n=this.current,e=this.focusables.length;if(!e)return null;if(null===n)return this[1===l?"first":"last"];let t=(n+e+l)%e;do{const n=this.focusables.get(t);if(Gd(n))return n;t=(t+e+l)%e}while(t!==n);return null}}function Gd(l){return!(!l.focus||!et(l.element))}class jd extends rd{constructor(l){super(l),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Hd extends rd{constructor(l){super(l),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Yd(l){return Array.isArray(l)?{items:l,removeItems:[]}:l?Object.assign({items:[],removeItems:[]},l):{items:[],removeItems:[]}}var Zd=o(5542);Ht()(Zd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zd.Z.locals;const{threeVerticalDots:Xd}=wd,$d={alignLeft:wd.alignLeft,bold:wd.bold,importExport:wd.importExport,paragraph:wd.paragraph,plus:wd.plus,text:wd.text,threeVerticalDots:wd.threeVerticalDots};class Kd extends rd{constructor(l,n){super(l);const e=this.bindTemplate,t=this.t;this.options=n||{},this.set("ariaLabel",t("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new St,this.keystrokes=new kt,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Qd(l),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const o="rtl"===l.uiLanguageDirection;this._focusCycler=new Wd({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[o?"arrowright":"arrowleft","arrowup"],focusNext:[o?"arrowleft":"arrowright","arrowdown"]}});const u=["ck","ck-toolbar",e.to("class"),e.if("isCompact","ck-toolbar_compact")];var i;this.options.shouldGroupWhenFull&&this.options.isFloating&&u.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:u,role:"toolbar","aria-label":e.to("ariaLabel"),style:{maxWidth:e.to("maxWidth")}},children:this.children,on:{mousedown:(i=this,i.bindTemplate.to(l=>{l.target===i.element&&l.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new lc(this):new Jd(this)}render(){super.render();for(const l of this.items)this.focusTracker.add(l.element);this.items.on("add",(l,n)=>{this.focusTracker.add(n.element)}),this.items.on("remove",(l,n)=>{this.focusTracker.remove(n.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(l,n,e){const t=Yd(l),o=e||t.removeItems,u=this._cleanItemsConfiguration(t.items,n,o).map(l=>D(l)?this._createNestedToolbarDropdown(l,n,o):"|"===l?new jd:"-"===l?new Hd:n.create(l)).filter(l=>!!l);this.items.addMany(u)}_cleanItemsConfiguration(l,n,e){const t=l.filter((l,t,o)=>"|"===l||-1===e.indexOf(l)&&("-"===l?!this.options.shouldGroupWhenFull||(y("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!D(l)&&!n.has(l)&&(y("toolbarview-item-unavailable",{item:l}),1))));return this._cleanSeparatorsAndLineBreaks(t)}_cleanSeparatorsAndLineBreaks(l){const n=l=>"-"!==l&&"|"!==l,e=l.length,t=l.findIndex(n);if(-1===t)return[];const o=e-l.slice().reverse().findIndex(n);return l.slice(t,o).filter((l,e,t)=>!!n(l)||!(e>0&&t[e-1]===l))}_createNestedToolbarDropdown(l,n,e){let{label:t,icon:o,items:u,tooltip:i=!0,withText:a=!1}=l;if(!(u=this._cleanItemsConfiguration(u,n,e)).length)return null;const r=ac(this.locale);return t||y("toolbarview-nested-toolbar-dropdown-missing-label",l),r.class="ck-toolbar__nested-toolbar-dropdown",r.buttonView.set({label:t,tooltip:i,withText:!!a}),!1!==o?r.buttonView.icon=$d[o]||o||Xd:r.buttonView.withText=!0,rc(r,[]),r.toolbarView.fillFromConfig(u,n,e),r}}class Qd extends rd{constructor(l){super(l),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Jd{constructor(l){const n=l.bindTemplate;l.set("isVertical",!1),l.itemsView.children.bindTo(l.items).using(l=>l),l.focusables.bindTo(l.items).using(l=>l),l.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class lc{constructor(l){this.view=l,this.viewChildren=l.children,this.viewFocusables=l.focusables,this.viewItemsView=l.itemsView,this.viewFocusTracker=l.focusTracker,this.viewLocale=l.locale,this.ungroupedItems=l.createCollection(),this.groupedItems=l.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,l.itemsView.children.bindTo(this.ungroupedItems).using(l=>l),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),l.children.on("change",this._updateFocusCycleableItems.bind(this)),l.items.on("change",(l,n)=>{const e=n.index,t=Array.from(n.added);for(const o of n.removed)e>=this.ungroupedItems.length?this.groupedItems.remove(o):this.ungroupedItems.remove(o);for(let o=e;othis.ungroupedItems.length?this.groupedItems.add(l,o-this.ungroupedItems.length):this.ungroupedItems.add(l,o)}this._updateGrouping()}),l.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(l){this.viewElement=l.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(l)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!et(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const l=this.groupedItems.length;let n;for(;this._areItemsOverflowing;)this._groupLastItem(),n=!0;if(!n&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==l&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const l=this.viewElement,n=this.viewLocale.uiLanguageDirection,e=new Ye(l.lastChild),t=new Ye(l);if(!this.cachedPadding){const e=Ve.window.getComputedStyle(l),t="ltr"===n?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(e[t])}return"ltr"===n?e.right>t.right-this.cachedPadding:e.left{l&&l===n.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),l=n.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(l){l.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new jd),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const l=this.viewLocale,n=l.t,e=ac(l);return e.class="ck-toolbar__grouped-dropdown",e.panelPosition="ltr"===l.uiLanguageDirection?"sw":"se",rc(e,[]),e.buttonView.set({label:n("Show more items"),tooltip:!0,tooltipPosition:"rtl"===l.uiLanguageDirection?"se":"sw",icon:Xd}),e.toolbarView.items.bindTo(this.groupedItems).using(l=>l),e}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(l=>{this.viewFocusables.add(l)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var nc=o(1046);Ht()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nc.Z.locals;class ec extends rd{constructor(l){super(l),this.items=this.createCollection(),this.focusTracker=new St,this.keystrokes=new kt,this._focusCycler=new Wd({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const l of this.items)this.focusTracker.add(l.element);this.items.on("add",(l,n)=>{this.focusTracker.add(n.element)}),this.items.on("remove",(l,n)=>{this.focusTracker.remove(n.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class tc extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",n.if("isVisible","ck-hidden",l=>!l)]},children:this.children})}focus(){this.children.first.focus()}}class oc extends rd{constructor(l){super(l),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var uc=o(7339);Ht()(uc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uc.Z.locals;var ic=o(3949);function ac(l,n=qd){const e=new n(l),t=new Bd(l),o=new Ud(l,e,t);return e.bind("isEnabled").to(o),e instanceof Pd?e.arrowView.bind("isOn").to(o,"isOpen"):e.bind("isOn").to(o,"isOpen"),function(l){(function(l){l.on("render",()=>{Rd({emitter:l,activator:()=>l.isOpen,callback:()=>{l.isOpen=!1},contextElements:[l.element]})})})(l),function(l){l.on("execute",n=>{n.source instanceof Nd||(l.isOpen=!1)})}(l),function(l){l.focusTracker.on("change:isFocused",(n,e,t)=>{l.isOpen&&!t&&(l.isOpen=!1)})}(l),function(l){l.keystrokes.set("arrowdown",(n,e)=>{l.isOpen&&(l.panelView.focus(),e())}),l.keystrokes.set("arrowup",(n,e)=>{l.isOpen&&(l.panelView.focusLast(),e())})}(l),function(l){l.on("change:isOpen",(n,e,t)=>{t||l.panelView.element.contains(Ve.document.activeElement)&&l.buttonView.focus()})}(l),function(l){l.on("change:isOpen",(n,e,t)=>{t&&l.panelView.focus()},{priority:"low"})}(l)}(o),o}function rc(l,n,e={}){const t=l.locale,o=t.t,u=l.toolbarView=new Kd(t);u.set("ariaLabel",o("Dropdown toolbar")),l.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),n.map(l=>u.items.add(l)),e.enableActiveItemFocusOnDropdownOpen&&dc(l,()=>u.items.find(l=>l.isOn)),l.panelView.children.add(u),u.items.delegate("execute").to(l)}function sc(l,n){const e=l.locale,t=l.listView=new ec(e);t.items.bindTo(n).using(l=>{if("separator"===l.type)return new oc(e);if("button"===l.type||"switchbutton"===l.type){const n=new tc(e);let t;return(t="button"===l.type?new Id(e):new Nd(e)).bind(...Object.keys(l.model)).to(l.model),t.delegate("execute").to(n),n.children.add(t),n}return null}),l.panelView.children.add(t),t.items.delegate("execute").to(l),dc(l,()=>t.items.find(l=>l instanceof tc&&l.children.first.isOn))}function dc(l,n){l.on("change:isOpen",()=>{if(!l.isOpen)return;const e=n();e&&("function"==typeof e.focus?e.focus():y("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:g.low-10})}Ht()(ic.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ic.Z.locals;var cc=o(9688);Ht()(cc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cc.Z.locals;class pc extends rd{constructor(l){super(l),this.body=new Ed(l)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var fc=o(3662);Ht()(fc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),fc.Z.locals;class mc extends rd{constructor(l){super(l),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${h()}`;const n=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:n.to("for")},children:[{text:n.to("text")}]})}}class hc extends pc{constructor(l){super(l),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:l.uiLanguageDirection,lang:l.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const l=this.t,n=new mc;return n.text=l("Rich Text Editor"),n.extendTemplate({attributes:{class:"ck-voice-label"}}),n}}class gc extends rd{constructor(l,n,e){super(l),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:l.contentLanguage,dir:l.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=e,this._hasExternalElement=!!this._editableElement,this._editingView=n}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const l=this._editingView;function n(n){l.change(e=>{const t=l.document.getRoot(n.name);e.addClass(n.isFocused?"ck-focused":"ck-blurred",t),e.removeClass(n.isFocused?"ck-blurred":"ck-focused",t)})}l.isRenderingInProgress?function e(t){l.once("change:isRenderingInProgress",(l,o,u)=>{u?e(t):n(t)})}(this):n(this)}}class vc extends gc{constructor(l,n,e,t={}){super(l,n,e);const o=l.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=t.label||(()=>o("Editor editing area: %0",this.name))}render(){super.render();const l=this._editingView;l.change(n=>{const e=l.document.getRoot(this.name);n.setAttribute("aria-label",this._generateLabel(this),e)})}}var bc=o(8847);Ht()(bc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bc.Z.locals;var yc=o(4879);Ht()(yc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yc.Z.locals;class xc extends rd{constructor(l){super(l),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new St,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const n=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",n.if("isFocused","ck-input_focused"),n.if("isEmpty","ck-input-text_empty"),n.if("hasError","ck-error")],id:n.to("id"),placeholder:n.to("placeholder"),readonly:n.to("isReadOnly"),inputmode:n.to("inputMode"),"aria-invalid":n.if("hasError",!0),"aria-describedby":n.to("ariaDescribedById")},on:{input:n.to((...l)=>{this.fire("input",...l),this._updateIsEmpty()}),change:n.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(l,n,e)=>{this._setDomElementValue(e),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(l){this.element.value=l||0===l?l:""}}class Ac extends xc{constructor(l){super(l),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var _c=o(2577);Ht()(_c.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_c.Z.locals;class Cc extends rd{constructor(l,n){super(l);const e=`ck-labeled-field-view-${h()}`,t=`ck-labeled-field-view-status-${h()}`;this.fieldView=n(this,e,t),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(e),this.statusView=this._createStatusView(t),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(l,n)=>l||n);const o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",l=>!l),o.if("isEmpty","ck-labeled-field-view_empty"),o.if("isFocused","ck-labeled-field-view_focused"),o.if("placeholder","ck-labeled-field-view_placeholder"),o.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(l){const n=new mc(this.locale);return n.for=l,n.bind("text").to(this,"label"),n}_createStatusView(l){const n=new rd(this.locale),e=this.bindTemplate;return n.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",e.if("errorText","ck-labeled-field-view__status_error"),e.if("_statusText","ck-hidden",l=>!l)],id:l,role:e.if("errorText","alert")},children:[{text:e.to("_statusText")}]}),n}focus(){this.fieldView.focus()}}function wc(l,n,e){const t=new Ac(l.locale);return t.set({id:n,ariaDescribedById:e}),t.bind("isReadOnly").to(l,"isEnabled",l=>!l),t.bind("hasError").to(l,"errorText",l=>!!l),t.on("input",()=>{l.errorText=null}),l.bind("isEmpty","isFocused","placeholder").to(t),t}class Rc extends Gt{static get pluginName(){return"Notification"}init(){this.on("show:warning",(l,n)=>{window.alert(n.message)},{priority:"lowest"})}showSuccess(l,n={}){this._showNotification({message:l,type:"success",namespace:n.namespace,title:n.title})}showInfo(l,n={}){this._showNotification({message:l,type:"info",namespace:n.namespace,title:n.title})}showWarning(l,n={}){this._showNotification({message:l,type:"warning",namespace:n.namespace,title:n.title})}_showNotification(l){const n=l.namespace?`show:${l.type}:${l.namespace}`:`show:${l.type}`;this.fire(n,{message:l.message,type:l.type,title:l.title||""})}}class Lc extends(U()){constructor(l,n){super(),n&&ei(this,n),l&&this.set(l)}}var Mc=o(4650);Ht()(Mc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Mc.Z.locals;var Ec=o(7676);Ht()(Ec.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ec.Z.locals;const Oc=Qe("px");class Sc extends qt{static get pluginName(){return"ContextualBalloon"}constructor(l){super(l),this.positionLimiter=(()=>{const l=this.editor.editing.view,n=l.document.selection.editableElement;return n?l.domConverter.mapViewToDom(n.root):null}),this.set("visibleView",null),this.view=new pd(l.locale),l.ui.view.body.add(this.view),l.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(l){return Array.from(this._viewToStack.keys()).includes(l)}add(l){if(this.hasView(l.view))throw new b("contextualballoon-add-view-exist",[this,l]);const n=l.stackId||"main";if(!this._idToStack.has(n))return this._idToStack.set(n,new Map([[l.view,l]])),this._viewToStack.set(l.view,this._idToStack.get(n)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!l.singleViewMode||this.showStack(n));const e=this._idToStack.get(n);l.singleViewMode&&this.showStack(n),e.set(l.view,l),this._viewToStack.set(l.view,e),e===this._visibleStack&&this._showView(l)}remove(l){if(!this.hasView(l))throw new b("contextualballoon-remove-view-not-exist",[this,l]);const n=this._viewToStack.get(l);this._singleViewMode&&this.visibleView===l&&(this._singleViewMode=!1),this.visibleView===l&&(1===n.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(n.values())[n.size-2])),1===n.size?(this._idToStack.delete(this._getStackId(n)),this._numberOfStacks=this._idToStack.size):n.delete(l),this._viewToStack.delete(l)}updatePosition(l){l&&(this._visibleStack.get(this.visibleView).position=l),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(l){this.visibleStack=l;const n=this._idToStack.get(l);if(!n)throw new b("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==n&&this._showView(Array.from(n.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(l){return Array.from(this._idToStack.entries()).find(n=>n[1]===l)[0]}_showNextStack(){const l=Array.from(this._idToStack.values());let n=l.indexOf(this._visibleStack)+1;l[n]||(n=0),this.showStack(this._getStackId(l[n]))}_showPrevStack(){const l=Array.from(this._idToStack.values());let n=l.indexOf(this._visibleStack)-1;l[n]||(n=l.length-1),this.showStack(this._getStackId(l[n]))}_createRotatorView(){const l=new kc(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(l),l.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(l,n)=>!n&&l>1),l.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),l.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(l,e)=>{if(e<2)return"";const t=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return n("%0 of %1",[t,e])}),l.buttonNextView.on("execute",()=>{l.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),l.buttonPrevView.on("execute",()=>{l.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),l}_createFakePanelsView(){const l=new Ic(this.editor.locale,this.view);return l.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,n)=>!n&&l>=2?Math.min(l-1,2):0),l.listenTo(this.view,"change:top",()=>l.updatePosition()),l.listenTo(this.view,"change:left",()=>l.updatePosition()),this.editor.ui.view.body.add(l),l}_showView({view:l,balloonClassName:n="",withArrow:e=!0,singleViewMode:t=!1}){this.view.class=n,this.view.withArrow=e,this._rotatorView.showView(l),this.visibleView=l,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),t&&(this._singleViewMode=!0)}_getBalloonPosition(){let l=Array.from(this._visibleStack.values()).pop().position;return l&&(l.limiter||(l=Object.assign({},l,{limiter:this.positionLimiter})),l=Object.assign({},l,{viewportOffsetConfig:this.editor.ui.viewportOffset})),l}}class kc extends rd{constructor(l){super(l);const n=l.t,e=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new St,this.buttonPrevView=this._createButtonView(n("Previous"),''),this.buttonNextView=this._createButtonView(n("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",e.to("isNavigationVisible",l=>l?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:e.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(l){this.hideView(),this.content.add(l)}hideView(){this.content.clear()}_createButtonView(l,n){const e=new Id(this.locale);return e.set({label:l,icon:n,tooltip:!0}),e}}class Ic extends rd{constructor(l,n){super(l);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=n,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",e.to("numberOfPanels",l=>l?"":"ck-hidden")],style:{top:e.to("top",Oc),left:e.to("left",Oc),width:e.to("width",Oc),height:e.to("height",Oc)}},children:this.content}),this.on("change:numberOfPanels",(l,n,e,t)=>{e>t?this._addPanels(e-t):this._removePanels(t-e),this.updatePosition()})}_addPanels(l){for(;l--;){const l=new rd;l.setTemplate({tag:"div"}),this.content.add(l),this.registerChild(l)}}_removePanels(l){for(;l--;){const l=this.content.last;this.content.remove(l),this.deregisterChild(l),l.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:l,left:n}=this._balloonPanelView,{width:e,height:t}=new Ye(this._balloonPanelView.element);Object.assign(this,{top:l,left:n,width:e,height:t})}}}var Fc=o(5868);Ht()(Fc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fc.Z.locals;const Nc=Qe("px");class Dc extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Vs({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:n.to("isSticky",l=>l?"block":"none"),height:n.to("isSticky",l=>l?Nc(this._panelRect.height):null)}}}).render(),this._contentPanel=new Vs({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",n.if("isSticky","ck-sticky-panel__content_sticky"),n.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:n.to("isSticky",l=>l?Nc(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:n.to("_hasViewportTopOffset",l=>l?Nc(this.viewportTopOffset):null),bottom:n.to("_isStickyToTheLimiter",l=>l?Nc(this.limiterBottomOffset):null),marginLeft:n.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Ve.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const l=this._panelRect=this._contentPanel.getBoundingClientRect();let n;this.limiterElement?(n=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&n.topl||0),l.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(l.toolbar)}_initPlaceholder(){const l=this.editor,n=l.editing.view,e=n.document.getRoot(),t=l.sourceElement,o=l.config.get("placeholder")||t&&"textarea"===t.tagName.toLowerCase()&&t.getAttribute("placeholder");o&&Xt({view:n,element:e,text:o,isDirectHost:!1,keepOnFocus:!0})}}var Pc=o(3143);Ht()(Pc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pc.Z.locals;class Bc extends hc{constructor(l,n,e={}){super(l),this.stickyPanel=new Dc(l),this.toolbar=new Kd(l,{shouldGroupWhenFull:e.shouldToolbarGroupWhenFull}),this.editable=new vc(l,n)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Vc extends(Ad(_d(qs))){constructor(l,n={}){if(!Uc(l)&&void 0!==n.initialData)throw new b("editor-create-initial-data",null);super(n),void 0===this.config.get("initialData")&&this.config.set("initialData",function(l){return Uc(l)?(n=l)instanceof HTMLTextAreaElement?n.value:n.innerHTML:l;var n}(l)),Uc(l)&&(this.sourceElement=l),this.model.document.createRoot();const e=!this.config.get("toolbar.shouldNotGroupWhenFull"),t=new Bc(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:e});this.ui=new Tc(this,t),function(l){if(!Ll(l.updateSourceElement))throw new b("attachtoform-missing-elementapi-interface",l);const n=l.sourceElement;if(n&&"textarea"===n.tagName.toLowerCase()&&n.form){let e;const t=n.form,o=()=>l.updateSourceElement();Ll(t.submit)&&(e=t.submit,t.submit=(()=>{o(),e.apply(t)})),t.addEventListener("submit",o),l.on("destroy",()=>{t.removeEventListener("submit",o),e&&(t.submit=e)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(l,n={}){return new Promise(e=>{const t=new this(l,n);e(t.initPlugins().then(()=>t.ui.init(Uc(l)?l:null)).then(()=>t.data.init(t.config.get("initialData"))).then(()=>t.fire("ready")).then(()=>t))})}}function Uc(l){return Se(l)}class Wc extends oi{constructor(l){super(l);const n=this.document;function e(l){return(e,t)=>{t.preventDefault();const o=t.dropRange?[t.dropRange]:null,u=new f(n,l);n.fire(u,{dataTransfer:t.dataTransfer,method:e.name,targetRanges:o,target:t.target}),u.stop.called&&t.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(n,"paste",e("clipboardInput"),{priority:"low"}),this.listenTo(n,"drop",e("clipboardInput"),{priority:"low"}),this.listenTo(n,"dragover",e("dragging"),{priority:"low"})}onDomEvent(l){const n={dataTransfer:new Vi("clipboardData"in l?l.clipboardData:l.dataTransfer)};"drop"!=l.type&&"dragover"!=l.type||(n.dropRange=function(l,n){const e=n.target.ownerDocument,t=n.clientX,o=n.clientY;let u;return e.caretRangeFromPoint&&e.caretRangeFromPoint(t,o)?u=e.caretRangeFromPoint(t,o):n.rangeParent&&((u=e.createRange()).setStart(n.rangeParent,n.rangeOffset),u.collapse(!0)),u?l.domConverter.domRangeToView(u):null}(this.view,l)),this.fire(l.type,l,n)}}const Gc=["figcaption","li"];class jc extends qt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Wc),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const l=this.editor,n=l.model,e=l.editing.view,t=e.document;this.listenTo(t,"clipboardInput",n=>{l.isReadOnly&&n.stop()},{priority:"highest"}),this.listenTo(t,"clipboardInput",(l,n)=>{const t=n.dataTransfer;let o;if(n.content)o=n.content;else{let l="";t.getData("text/html")?l=function(l){return t.getData("text/html").replace(/(\s+)<\/span>/g,(l,n)=>1==n.length?" ":n).replace(//g,"")}():t.getData("text/plain")&&(((u=(u=t.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||u.includes("
"))&&(u=`

${u}

`),l=u),o=this.editor.data.htmlProcessor.toView(l)}var u;const i=new f(this,"inputTransformation");this.fire(i,{content:o,dataTransfer:t,targetRanges:n.targetRanges,method:n.method}),i.stop.called&&l.stop(),e.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,e)=>{if(e.content.isEmpty)return;const t=this.editor.data.toModel(e.content,"$clipboardHolder");0!=t.childCount&&(l.stop(),n.change(()=>{this.fire("contentInsertion",{content:t,method:e.method,dataTransfer:e.dataTransfer,targetRanges:e.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,e)=>{e.resultRange=n.insertContent(e.content)},{priority:"low"})}_setupCopyCut(){const l=this.editor,n=l.model.document,e=l.editing.view.document,t=(t,o)=>{const u=o.dataTransfer;o.preventDefault();const i=l.data.toView(l.model.getSelectedContent(n.selection));e.fire("clipboardOutput",{dataTransfer:u,content:i,method:t.name})};this.listenTo(e,"copy",t,{priority:"low"}),this.listenTo(e,"cut",(n,e)=>{l.isReadOnly?e.preventDefault():t(n,e)},{priority:"low"}),this.listenTo(e,"clipboardOutput",(e,t)=>{t.content.isEmpty||(t.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(t.content)),t.dataTransfer.setData("text/plain",function l(n){let e="";if(n.is("$text")||n.is("$textProxy"))e=n.data;else if(n.is("element","img")&&n.hasAttribute("alt"))e=n.getAttribute("alt");else if(n.is("element","br"))e="\n";else{let t=null;for(const o of n.getChildren()){const n=l(o);t&&(t.is("containerElement")||o.is("containerElement"))&&(Gc.includes(t.name)||Gc.includes(o.name)?e+="\n":e+="\n\n"),e+=n,t=o}}return e}(t.content))),"cut"==t.method&&l.model.deleteContent(n.selection)},{priority:"low"})}}class Hc{constructor(l,n=20){this._batch=null,this.model=l,this._size=0,this.limit=n,this._isLocked=!1,this._changeCallback=((l,n)=>{n.isLocal&&n.isUndoable&&n!==this._batch&&this._reset(!0)}),this._selectionChangeCallback=(()=>{this._reset()}),this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(l){this._size+=l,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(l=!1){this.isLocked&&!l||(this._batch=null,this._size=0)}}class Yc extends Pt{constructor(l,n){super(l),this._buffer=new Hc(l.model,n)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(l={}){const n=this.editor.model,e=n.document,t=l.text||"",o=t.length;let u=e.selection;l.selection?u=l.selection:l.range&&(u=n.createSelection(l.range));const i=l.resultRange;n.enqueueChange(this._buffer.batch,l=>{this._buffer.lock(),n.deleteContent(u),t&&n.insertContent(l.createText(t,e.selection.getAttributes()),u),i?l.setSelection(i):u.is("documentSelection")||l.setSelection(u),this._buffer.unlock(),this._buffer.input(o)})}}const Zc=["insertText","insertReplacementText"];class Xc extends ni{constructor(l){super(l),t.isAndroid&&Zc.push("insertCompositionText");const n=l.document;n.on("beforeinput",(e,t)=>{if(!this.isEnabled)return;const{data:o,targetRanges:u,inputType:i,domEvent:a}=t;if(!Zc.includes(i))return;const r=new f(n,"insertText");n.fire(r,new ti(l,a,{text:o,selection:l.createSelection(u)})),r.stop.called&&e.stop()}),n.on("compositionend",(e,{data:o,domEvent:u})=>{this.isEnabled&&!t.isAndroid&&o&&n.fire("insertText",new ti(l,u,{text:o,selection:n.selection}))},{priority:"lowest"})}observe(){}}class $c extends qt{static get pluginName(){return"Input"}init(){const l=this.editor,n=l.model,e=l.editing.view,o=n.document.selection;e.addObserver(Xc);const u=new Yc(l,l.config.get("typing.undoStep")||20);l.commands.add("insertText",u),l.commands.add("input",u),this.listenTo(e.document,"insertText",(o,u)=>{e.document.isComposing||u.preventDefault();const{text:i,selection:a,resultRange:r}=u,s=Array.from(a.getRanges()).map(n=>l.editing.mapper.toModelRange(n));let d=i;if(t.isAndroid){const l=Array.from(s[0].getItems()).reduce((l,n)=>l+(n.is("$textProxy")?n.data:""),"");l&&(l.length<=d.length?d.startsWith(l)&&(d=d.substring(l.length),s[0].start=s[0].start.getShiftedBy(l.length)):l.startsWith(d)&&(s[0].start=s[0].start.getShiftedBy(d.length),d=""))}const c={text:d,selection:n.createSelection(s)};r&&(c.resultRange=l.editing.mapper.toModelRange(r)),l.execute("insertText",c)}),t.isAndroid?this.listenTo(e.document,"keydown",(l,t)=>{!o.isCollapsed&&229==t.keyCode&&e.document.isComposing&&Kc(n,u)}):this.listenTo(e.document,"compositionstart",()=>{o.isCollapsed||Kc(n,u)})}}function Kc(l,n){if(!n.isEnabled)return;const e=n.buffer;e.lock(),l.enqueueChange(e.batch,()=>{l.deleteContent(l.document.selection)}),e.unlock()}class Qc extends Pt{constructor(l,n){super(l),this.direction=n,this._buffer=new Hc(l.model,l.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(l={}){const n=this.editor.model,e=n.document;n.enqueueChange(this._buffer.batch,t=>{this._buffer.lock();const o=t.createSelection(l.selection||e.selection),u=l.sequence||1,i=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:this.direction,unit:l.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(u))return void this._replaceEntireContentWithParagraph(t);if(this._shouldReplaceFirstBlockWithParagraph(o,u))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let a=0;o.getFirstRange().getMinimalFlatRanges().forEach(l=>{a+=X(l.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),n.deleteContent(o,{doNotResetEntireContent:i,direction:this.direction}),this._buffer.input(a),t.setSelection(o),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(l){if(l>1)return!1;const n=this.editor.model,e=n.document.selection,t=n.schema.getLimitElement(e);if(!e.isCollapsed||!e.containsEntireContent(t))return!1;if(!n.schema.checkChild(t,"paragraph"))return!1;const o=t.getChild(0);return!o||!o.is("element","paragraph")}_replaceEntireContentWithParagraph(l){const n=this.editor.model,e=n.document.selection,t=n.schema.getLimitElement(e),o=l.createElement("paragraph");l.remove(l.createRangeIn(t)),l.insert(o,t),l.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(l,n){const e=this.editor.model;if(n>1||"backward"!=this.direction)return!1;if(!l.isCollapsed)return!1;const t=l.getFirstPosition(),o=e.schema.getLimitElement(t),u=o.getChild(0);return t.parent==u&&!!l.containsEntireContent(u)&&!!e.schema.checkChild(o,"paragraph")&&"paragraph"!=u.name}}const Jc="selection",lp="backward",np="forward",ep={deleteContent:{unit:Jc,direction:lp},deleteContentBackward:{unit:"codePoint",direction:lp},deleteWordBackward:{unit:"word",direction:lp},deleteHardLineBackward:{unit:Jc,direction:lp},deleteSoftLineBackward:{unit:Jc,direction:lp},deleteContentForward:{unit:"character",direction:np},deleteWordForward:{unit:"word",direction:np},deleteHardLineForward:{unit:Jc,direction:np},deleteSoftLineForward:{unit:Jc,direction:np}};class tp extends ni{constructor(l){super(l);const n=l.document;let e=0;n.on("keydown",()=>{e++}),n.on("keyup",()=>{e=0}),n.on("beforeinput",(o,u)=>{if(!this.isEnabled)return;const{targetRanges:i,domEvent:a,inputType:r}=u,s=ep[r];if(!s)return;const d={direction:s.direction,unit:s.unit,sequence:e};d.unit==Jc&&(d.selectionToRemove=l.createSelection(i[0])),t.isAndroid&&"deleteContentBackward"===r&&(d.sequence=1,1!=i.length||i[0].start.parent==i[0].end.parent&&i[0].start.offset+1==i[0].end.offset||(d.unit=Jc,d.selectionToRemove=l.createSelection(i)));const c=new ou(n,"delete",i[0]);n.fire(c,new ti(l,a,d)),c.stop.called&&o.stop()}),t.isBlink&&function(l){const n=l.view,e=n.document;let t=null,o=!1;function u(l){return l==bt.backspace||l==bt.delete}function i(l){return l==bt.backspace?lp:np}e.on("keydown",(l,{keyCode:n})=>{t=n,o=!1}),e.on("keyup",(a,{keyCode:r,domEvent:s})=>{const d=e.selection,c=l.isEnabled&&r==t&&u(r)&&!d.isCollapsed&&!o;if(t=null,c){const l=d.getFirstRange(),t=new ou(e,"delete",l),o={unit:Jc,direction:i(r),selectionToRemove:d};e.fire(t,new ti(n,s,o))}}),e.on("beforeinput",(l,{inputType:n})=>{const e=ep[n];u(t)&&e&&e.direction==i(t)&&(o=!0)},{priority:"high"}),e.on("beforeinput",(l,{inputType:n,data:e})=>{t==bt.delete&&"insertText"==n&&"\x7f"==e&&l.stop()},{priority:"high"})}(this)}observe(){}}class op extends qt{static get pluginName(){return"Delete"}init(){const l=this.editor,n=l.editing.view,e=n.document,t=l.model.document;n.addObserver(tp),this._undoOnBackspace=!1;const o=new Qc(l,"forward");l.commands.add("deleteForward",o),l.commands.add("forwardDelete",o),l.commands.add("delete",new Qc(l,"backward")),this.listenTo(e,"delete",(t,o)=>{e.isComposing||o.preventDefault();const{direction:u,sequence:i,selectionToRemove:a,unit:r}=o,s="forward"===u?"deleteForward":"delete",d={sequence:i};if("selection"==r){const n=Array.from(a.getRanges()).map(n=>l.editing.mapper.toModelRange(n));d.selection=l.model.createSelection(n)}else d.unit=r;l.execute(s,d),n.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(e,"delete",(n,e)=>{this._undoOnBackspace&&"backward"==e.direction&&1==e.sequence&&"codePoint"==e.unit&&(this._undoOnBackspace=!1,l.execute("undo"),e.preventDefault(),n.stop())},{context:"$capture"}),this.listenTo(t,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class up extends qt{static get requires(){return[$c,op]}static get pluginName(){return"Typing"}}function ip(l,n){let e=l.start;return{text:Array.from(l.getItems()).reduce((l,t)=>t.is("$text")||t.is("$textProxy")?l+t.data:(e=n.createPositionAfter(t),""),""),range:n.createRange(e,l.end)}}class ap extends(U()){constructor(l,n){super(),this.model=l,this.testCallback=n,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(l.document.selection),this.stopListening(l.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const l=this.model.document;this.listenTo(l.selection,"change:range",(n,{directChange:e})=>{e&&(l.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(l,"change:data",(l,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(l,n={}){const e=this.model,t=e.document.selection,o=e.createRange(e.createPositionAt(t.focus.parent,0),t.focus),{text:u,range:i}=ip(o,e),a=this.testCallback(u);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const e=Object.assign(n,{text:u,range:i});"object"==typeof a&&Object.assign(e,a),this.fire(`matched:${l}`,e)}}}class rp extends qt{static get pluginName(){return"TwoStepCaretMovement"}constructor(l){super(l),this.attributes=new Set,this._overrideUid=null}init(){const l=this.editor,n=l.model,e=l.editing.view,t=l.locale,o=n.document.selection;this.listenTo(e.document,"arrowKey",(l,n)=>{if(!o.isCollapsed)return;if(n.shiftKey||n.altKey||n.ctrlKey)return;const e=n.keyCode==bt.arrowright,u=n.keyCode==bt.arrowleft;if(!e&&!u)return;const i=t.contentLanguageDirection;let a=!1;!0===(a="ltr"===i&&e||"rtl"===i&&u?this._handleForwardMovement(n):this._handleBackwardMovement(n))&&l.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(l,n)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!n.directChange&&pp(o.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(l){this.attributes.add(l)}_handleForwardMovement(l){const n=this.attributes,e=this.editor.model.document.selection,t=e.getFirstPosition();return!(this._isGravityOverridden||t.isAtStart&&sp(e,n)||!pp(t,n)||(cp(l),this._overrideGravity(),0))}_handleBackwardMovement(l){const n=this.attributes,e=this.editor.model,t=e.document.selection,o=t.getFirstPosition();return this._isGravityOverridden?(cp(l),this._restoreGravity(),dp(e,n,o),!0):o.isAtStart?!!sp(t,n)&&(cp(l),dp(e,n,o),!0):!!function(l,n){return pp(o.getShiftedBy(-1),n)}(0,n)&&(o.isAtEnd&&!sp(t,n)&&pp(o,n)?(cp(l),dp(e,n,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(l=>l.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(l=>{l.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function sp(l,n){for(const e of n)if(l.hasAttribute(e))return!0;return!1}function dp(l,n,e){const t=e.nodeBefore;l.change(l=>{t?l.setSelectionAttribute(t.getAttributes()):l.removeSelectionAttribute(n)})}function cp(l){l.preventDefault()}function pp(l,n){const{nodeBefore:e,nodeAfter:t}=l;for(const o of n){const l=e?e.getAttribute(o):void 0;if((t?t.getAttribute(o):void 0)!==l)return!0}return!1}var fp=/[\\^$.*+?()[\]{}|]/g,mp=RegExp(fp.source);const hp=function(l){return(l=yo(l))&&mp.test(l)?l.replace(fp,"\\$&"):l},gp={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:_p('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:_p("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:_p("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:_p('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:_p('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:_p("'"),to:[null,"\u201a",null,"\u2019"]}},vp={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},bp=["symbols","mathematical","typography","quotes"];function yp(l){return"string"==typeof l?new RegExp(`(${hp(l)})$`):l}function xp(l){return"string"==typeof l?()=>[l]:l instanceof Array?()=>l:l}function Ap(l){return(l.textNode?l.textNode:l.nodeAfter).getAttributes()}function _p(l){return new RegExp(`(^|\\s)(${l})([^${l}]*)(${l})$`)}function Cp(l,n,e,t){return t.createRange(wp(l,n,e,!0,t),wp(l,n,e,!1,t))}function wp(l,n,e,t,o){let u=l.textNode||(t?l.nodeBefore:l.nodeAfter),i=null;for(;u&&u.getAttribute(n)==e;)i=u,u=t?u.previousSibling:u.nextSibling;return i?o.createPositionAt(i,t?"before":"after"):l}function*Rp(l,n){for(const e of n)e&&l.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class Lp extends Pt{execute(){this.editor.model.change(l=>{this.enterBlock(l),this.fire("afterExecute",{writer:l})})}enterBlock(l){const n=this.editor.model,e=n.document.selection,t=n.schema,o=e.isCollapsed,u=e.getFirstRange(),i=u.start.parent,a=u.end.parent;if(t.isLimit(i)||t.isLimit(a))return o||i!=a||n.deleteContent(e),!1;if(o){const n=Rp(l.model.schema,e.getAttributes());return Mp(l,u.start),l.setSelectionAttribute(n),!0}{const t=!(u.start.isAtStart&&u.end.isAtEnd),o=i==a;if(n.deleteContent(e,{leaveUnmerged:t}),t){if(o)return Mp(l,e.focus),!0;l.setSelection(a,0)}}return!1}}function Mp(l,n){l.split(n),l.setSelection(n.parent.nextSibling,0)}const Ep={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Op extends ni{constructor(l){super(l);const n=this.document;n.on("beforeinput",(e,t)=>{if(!this.isEnabled)return;const o=t.domEvent,u=Ep[t.inputType];if(!u)return;const i=new ou(n,"enter",t.targetRanges[0]);n.fire(i,new ti(l,o,{isSoft:u.isSoft})),i.stop.called&&e.stop()})}observe(){}}class Sp extends qt{static get pluginName(){return"Enter"}init(){const l=this.editor,n=l.editing.view,e=n.document;n.addObserver(Op),l.commands.add("enter",new Lp(l)),this.listenTo(e,"enter",(t,o)=>{e.isComposing||o.preventDefault(),o.isSoft||(l.execute("enter"),n.scrollToTheSelection())},{priority:"low"})}}class kp extends Pt{execute(){const l=this.editor.model,n=l.document;l.change(e=>{!function(l,n,e){const t=e.isCollapsed,o=e.getFirstRange(),u=o.start.parent,i=o.end.parent,a=u==i;if(t){const t=Rp(l.schema,e.getAttributes());Ip(l,n,o.end),n.removeSelectionAttribute(e.getAttributeKeys()),n.setSelectionAttribute(t)}else{const t=!(o.start.isAtStart&&o.end.isAtEnd);l.deleteContent(e,{leaveUnmerged:t}),a?Ip(l,n,e.focus):t&&n.setSelection(i,0)}}(l,e,n.selection),this.fire("afterExecute",{writer:e})})}refresh(){const l=this.editor.model,n=l.document;this.isEnabled=function(l,n){if(n.rangeCount>1)return!1;const e=n.anchor;if(!e||!l.checkChild(e,"softBreak"))return!1;const t=n.getFirstRange(),o=t.start.parent,u=t.end.parent;return!Fp(o,l)&&!Fp(u,l)||o===u}(l.schema,n.selection)}}function Ip(l,n,e){const t=n.createElement("softBreak");l.insertContent(t,e),n.setSelection(t,"after")}function Fp(l,n){return!l.is("rootElement")&&(n.isLimit(l)||Fp(l.parent,n))}class Np extends qt{static get pluginName(){return"ShiftEnter"}init(){const l=this.editor,n=l.model.schema,e=l.conversion,t=l.editing.view,o=t.document;n.register("softBreak",{allowWhere:"$text",isInline:!0}),e.for("upcast").elementToElement({model:"softBreak",view:"br"}),e.for("downcast").elementToElement({model:"softBreak",view:(l,{writer:n})=>n.createEmptyElement("br")}),t.addObserver(Op),l.commands.add("shiftEnter",new kp(l)),this.listenTo(o,"enter",(n,e)=>{o.isComposing||e.preventDefault(),e.isSoft&&(l.execute("shiftEnter"),t.scrollToTheSelection())},{priority:"low"})}}class Dp extends(E()){constructor(){super(),this._stack=[]}add(l,n){const e=this._stack,t=e[0];this._insertDescriptor(l);const o=e[0];t===o||zp(t,o)||this.fire("change:top",{oldDescriptor:t,newDescriptor:o,writer:n})}remove(l,n){const e=this._stack,t=e[0];this._removeDescriptor(l);const o=e[0];t===o||zp(t,o)||this.fire("change:top",{oldDescriptor:t,newDescriptor:o,writer:n})}_insertDescriptor(l){const n=this._stack,e=n.findIndex(n=>n.id===l.id);if(zp(l,n[e]))return;e>-1&&n.splice(e,1);let t=0;for(;n[t]&&qp(n[t],l);)t++;n.splice(t,0,l)}_removeDescriptor(l){const n=this._stack,e=n.findIndex(n=>n.id===l);e>-1&&n.splice(e,1)}}function zp(l,n){return l&&n&&l.priority==n.priority&&Tp(l.classes)==Tp(n.classes)}function qp(l,n){return l.priority>n.priority||!(l.priorityTp(n.classes)}function Tp(l){return Array.isArray(l)?l.sort().join(","):l}const Pp='',Bp="ck-widget_selected";function Vp(l){return!!l.is("element")&&!!l.getCustomProperty("widget")}function Up(l,n,e={}){if(!l.is("containerElement"))throw new b("widget-to-widget-wrong-element-type",null,{element:l});return n.setAttribute("contenteditable","false",l),n.addClass("ck-widget",l),n.setCustomProperty("widget",!0,l),l.getFillerOffset=Hp,n.setCustomProperty("widgetLabel",[],l),e.label&&function(l,n){l.getCustomProperty("widgetLabel").push(n)}(l,e.label),e.hasSelectionHandle&&function(l,n){const e=n.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(l){const n=this.toDomElement(l),e=new Sd;return e.set("content",Pp),e.render(),n.appendChild(e.element),n});n.insert(n.createPositionAt(l,0),e),n.addClass(["ck-widget_with-selection-handle"],l)}(l,n),Wp(l,n),l}function Wp(l,n,e=function(l,n,e){if(n.classes&&e.addClass(wt(n.classes),l),n.attributes)for(const t in n.attributes)e.setAttribute(t,n.attributes[t],l)},t=function(l,n,e){if(n.classes&&e.removeClass(wt(n.classes),l),n.attributes)for(const t in n.attributes)e.removeAttribute(t,l)}){const o=new Dp;o.on("change:top",(n,o)=>{o.oldDescriptor&&t(l,o.oldDescriptor,o.writer),o.newDescriptor&&e(l,o.newDescriptor,o.writer)}),n.setCustomProperty("addHighlight",(l,n,e)=>o.add(n,e),l),n.setCustomProperty("removeHighlight",(l,n,e)=>o.remove(n,e),l)}function Gp(l,n,e={}){return n.addClass(["ck-editor__editable","ck-editor__nested-editable"],l),n.setAttribute("role","textbox",l),e.label&&n.setAttribute("aria-label",e.label,l),n.setAttribute("contenteditable",l.isReadOnly?"false":"true",l),l.on("change:isReadOnly",(e,t,o)=>{n.setAttribute("contenteditable",o?"false":"true",l)}),l.on("change:isFocused",(e,t,o)=>{o?n.addClass("ck-editor__nested-editable_focused",l):n.removeClass("ck-editor__nested-editable_focused",l)}),Wp(l,n),l}function jp(l,n){const e=l.getSelectedElement();if(e){const t=Xp(l);if(t)return n.createRange(n.createPositionAt(e,t))}return Ls(l,n)}function Hp(){return null}const Yp="widget-type-around";function Zp(l,n,e){return!!l&&Vp(l)&&!e.isInline(n)}function Xp(l){return l.getAttribute(Yp)}var $p=o(4921);Ht()($p.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$p.Z.locals;const Kp=["before","after"],Qp=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Jp="ck-widget__type-around_disabled";class lf extends qt{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Sp,op]}constructor(l){super(l),this._currentFakeCaretModelElement=null}init(){const l=this.editor,n=l.editing.view;this.on("change:isEnabled",(e,t,o)=>{n.change(l=>{for(const e of n.document.roots)o?l.removeClass(Jp,e):l.addClass(Jp,e)}),o||l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(l,n){const e=this.editor,t=e.editing.view,o=e.model.schema.getAttributesWithProperty(l,"copyOnReplace",!0);e.execute("insertParagraph",{position:e.model.createPositionAt(l,n),attributes:o}),t.focus(),t.scrollToTheSelection()}_listenToIfEnabled(l,n,e,t){this.listenTo(l,n,(...l)=>{this.isEnabled&&e(...l)},t)}_insertParagraphAccordingToFakeCaretPosition(){const l=this.editor.model.document.selection,n=Xp(l);if(!n)return!1;const e=l.getSelectedElement();return this._insertParagraph(e,n),!0}_enableTypeAroundUIInjection(){const l=this.editor,n=l.model.schema,e=l.locale.t,t={before:e("Insert paragraph before block"),after:e("Insert paragraph after block")};l.editing.downcastDispatcher.on("insert",(l,o,u)=>{const i=u.mapper.toViewElement(o.item);i&&Zp(i,o.item,n)&&(!function(l,n,e){const t=l.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(l){const e=this.toDomElement(l);return function(l,n){for(const e of Kp){const t=new Vs({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${e}`],title:n[e],"aria-hidden":"true"},children:[l.ownerDocument.importNode(Qp,!0)]});l.appendChild(t.render())}}(e,n),function(l){const n=new Vs({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});l.appendChild(n.render())}(e),e});l.insert(l.createPositionAt(e,"end"),t)}(u.writer,t,i),i.getCustomProperty("widgetLabel").push(()=>this.isEnabled?e("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const l=this.editor,n=l.model,e=n.document.selection,t=n.schema,o=l.editing.view;function u(l){return`ck-widget_type-around_show-fake-caret_${l}`}this._listenToIfEnabled(o.document,"arrowKey",(l,n)=>{this._handleArrowKeyPress(l,n)},{context:[Vp,"$text"],priority:"high"}),this._listenToIfEnabled(e,"change:range",(n,e)=>{e.directChange&&l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._listenToIfEnabled(n.document,"change:data",()=>{const n=e.getSelectedElement();n&&Zp(l.editing.mapper.toViewElement(n),n,t)||l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._listenToIfEnabled(l.editing.downcastDispatcher,"selection",(l,n,e)=>{const o=e.writer;if(this._currentFakeCaretModelElement){const l=e.mapper.toViewElement(this._currentFakeCaretModelElement);l&&(o.removeClass(Kp.map(u),l),this._currentFakeCaretModelElement=null)}const i=n.selection.getSelectedElement();if(!i)return;const a=e.mapper.toViewElement(i);if(!Zp(a,i,t))return;const r=Xp(n.selection);r&&(o.addClass(u(r),a),this._currentFakeCaretModelElement=i)}),this._listenToIfEnabled(l.ui.focusTracker,"change:isFocused",(n,e,t)=>{t||l.model.change(l=>{l.removeSelectionAttribute(Yp)})})}_handleArrowKeyPress(l,n){const e=this.editor,t=e.model,o=t.document.selection,u=t.schema,i=e.editing.view,a=function(l,n){const e=Ct(l,n);return"down"===e||"right"===e}(n.keyCode,e.locale.contentLanguageDirection),r=i.document.selection.getSelectedElement();let s;Zp(r,e.editing.mapper.toModelElement(r),u)?s=this._handleArrowKeyPressOnSelectedWidget(a):o.isCollapsed?s=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):n.shiftKey||(s=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),s&&(n.preventDefault(),l.stop())}_handleArrowKeyPressOnSelectedWidget(l){const n=this.editor.model,e=Xp(n.document.selection);return n.change(n=>e?e!==(l?"after":"before")&&(n.removeSelectionAttribute(Yp),!0):(n.setSelectionAttribute(Yp,l?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(l){const n=this.editor,e=n.model,t=e.schema,o=n.plugins.get("Widget"),u=o._getObjectElementNextToSelection(l);return!!Zp(n.editing.mapper.toViewElement(u),u,t)&&(e.change(n=>{o._setSelectionOverElement(u),n.setSelectionAttribute(Yp,l?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(l){const n=this.editor,e=n.model,t=e.schema,o=n.editing.mapper,u=e.document.selection,i=l?u.getLastPosition().nodeBefore:u.getFirstPosition().nodeAfter;return!!Zp(o.toViewElement(i),i,t)&&(e.change(n=>{n.setSelection(i,"on"),n.setSelectionAttribute(Yp,l?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const l=this.editor,n=l.editing.view;this._listenToIfEnabled(n.document,"mousedown",(e,t)=>{const o=t.domTarget.closest(".ck-widget__type-around__button");if(!o)return;const u=function(l){return o.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(),i=function(l,n){const e=l.closest(".ck-widget");return n.mapDomToView(e)}(o,n.domConverter),a=l.editing.mapper.toModelElement(i);this._insertParagraph(a,u),t.preventDefault(),e.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const l=this.editor,n=l.model.document.selection,e=l.editing.view;this._listenToIfEnabled(e.document,"enter",(e,t)=>{if("atTarget"!=e.eventPhase)return;const o=n.getSelectedElement(),u=l.editing.mapper.toViewElement(o),i=l.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:Zp(u,o,i)&&(this._insertParagraph(o,t.isSoft?"before":"after"),a=!0),a&&(t.preventDefault(),e.stop())},{context:Vp})}_enableInsertingParagraphsOnTypingKeystroke(){const l=this.editor.editing.view.document;this._listenToIfEnabled(l,"insertText",(n,e)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(e.selection=l.selection)},{priority:"high"}),t.isAndroid?this._listenToIfEnabled(l,"keydown",(l,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(l,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const l=this.editor,n=l.editing.view,e=l.model,t=e.schema;this._listenToIfEnabled(n.document,"delete",(n,o)=>{if("atTarget"!=n.eventPhase)return;const u=Xp(e.document.selection);if(!u)return;const i=o.direction,a=e.document.selection.getSelectedElement(),r="forward"==i;if("before"===u===r)l.execute("delete",{selection:e.createSelection(a,"on")});else{const n=t.getNearestSelectionRange(e.createPositionAt(a,u),i);if(n)if(n.isCollapsed){const o=e.createSelection(n.start);if(e.modifySelection(o,{direction:i}),o.focus.isEqual(n.start)){const l=function(l,n){let e=n;for(const t of n.getAncestors({parentFirst:!0})){if(t.childCount>1||l.isLimit(t))break;e=t}return e}(t,n.start.parent);e.deleteContent(e.createSelection(l,"on"),{doNotAutoparagraph:!0})}else e.change(e=>{e.setSelection(n),l.execute(r?"deleteForward":"delete")})}else e.change(e=>{e.setSelection(n),l.execute(r?"deleteForward":"delete")})}o.preventDefault(),n.stop()},{context:Vp})}_enableInsertContentIntegration(){const l=this.editor,n=this.editor.model,e=n.document.selection;this._listenToIfEnabled(l.model,"insertContent",(l,[t,o])=>{if(o&&!o.is("documentSelection"))return;const u=Xp(e);return u?(l.stop(),n.change(l=>{const o=e.getSelectedElement(),i=n.createPositionAt(o,u),a=l.createSelection(i),r=n.insertContent(t,a);return l.setSelection(a),r})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const l=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(l.model,"insertObject",(l,e)=>{const[,t,,o={}]=e;if(t&&!t.is("documentSelection"))return;const u=Xp(n);u&&(o.findOptimalPosition=u,e[3]=o)},{priority:"high"})}_enableDeleteContentIntegration(){const l=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(l.model,"deleteContent",(l,[e])=>{e&&!e.is("documentSelection")||Xp(n)&&l.stop()},{priority:"high"})}}function nf(l,n,e){const t=l.schema,o=l.createRangeIn(n.root),u="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:i,item:a,type:r}of o.getWalker({startPosition:n,direction:e})){if(t.isLimit(a)&&!t.isInline(a))return i;if(r==u&&t.isBlock(a))return null}return null}function ef(l,n,e){const t="backward"==e?n.end:n.start;if(l.checkChild(t,"$text"))return t;for(const{nextPosition:o}of n.getWalker({direction:e}))if(l.checkChild(o,"$text"))return o;return null}var tf=o(3488);Ht()(tf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tf.Z.locals;class of extends qt{static get pluginName(){return"Widget"}static get requires(){return[lf,op]}init(){const l=this.editor,n=l.editing.view,e=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(n,e,t)=>{const o=t.writer,u=e.selection;if(u.isCollapsed)return;const i=u.getSelectedElement();if(!i)return;const a=l.editing.mapper.toViewElement(i);var r;Vp(a)&&t.consumable.consume(u,"selection")&&o.setSelection(o.createRangeOn(a),{fake:!0,label:(r=a,r.getCustomProperty("widgetLabel").reduce((l,n)=>"function"==typeof n?l?l+". "+n():n():l?l+". "+n:n,""))})}),this.editor.editing.downcastDispatcher.on("selection",(l,n,e)=>{this._clearPreviouslySelectedWidgets(e.writer);const t=e.writer,o=t.document.selection;let u=null;for(const i of o.getRanges())for(const l of i){const n=l.item;Vp(n)&&!uf(n,u)&&(t.addClass(Bp,n),this._previouslySelected.add(n),u=n)}},{priority:"low"}),n.addObserver(Fs),this.listenTo(e,"mousedown",(...l)=>this._onMousedown(...l)),this.listenTo(e,"arrowKey",(...l)=>{this._handleSelectionChangeOnArrowKeyPress(...l)},{context:[Vp,"$text"]}),this.listenTo(e,"arrowKey",(...l)=>{this._preventDefaultOnArrowKeyPress(...l)},{context:"$root"}),this.listenTo(e,"arrowKey",function(l){const n=l.model;return(e,t)=>{const o=t.keyCode==bt.arrowup,u=t.keyCode==bt.arrowdown,i=t.shiftKey,a=n.document.selection;if(!o&&!u)return;const r=u;if(i&&function(l,n){return!l.isCollapsed&&l.isBackward==n}(a,r))return;const s=function(l,n,e){const t=l.model;if(e){const l=n.isCollapsed?n.focus:n.getLastPosition(),e=nf(t,l,"forward");if(!e)return null;const o=t.createRange(l,e),u=ef(t.schema,o,"backward");return u?t.createRange(l,u):null}{const l=n.isCollapsed?n.focus:n.getFirstPosition(),e=nf(t,l,"backward");if(!e)return null;const o=t.createRange(e,l),u=ef(t.schema,o,"forward");return u?t.createRange(u,l):null}}(l,a,r);if(s){if(s.isCollapsed){if(a.isCollapsed)return;if(i)return}(s.isCollapsed||function(l,n,e){const t=l.model,o=l.view.domConverter;if(e){const l=t.createSelection(n.start);t.modifySelection(l),l.focus.isAtEnd||n.start.isEqual(l.focus)||(n=t.createRange(l.focus,n.end))}const u=l.mapper.toViewRange(n),i=o.viewRangeToDom(u),a=Ye.getDomRangeRects(i);let r;for(const s of a)if(void 0!==r){if(Math.round(s.top)>=r)return!1;r=Math.max(r,Math.round(s.bottom))}else r=Math.round(s.bottom);return!0}(l,s,r))&&(n.change(l=>{const e=r?s.end:s.start;if(i){const t=n.createSelection(a.anchor);t.setFocus(e),l.setSelection(t)}else l.setSelection(e)}),e.stop(),t.preventDefault(),t.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(e,"delete",(l,n)=>{this._handleDelete("forward"==n.direction)&&(n.preventDefault(),l.stop())},{context:"$root"})}_onMousedown(l,n){const e=this.editor,o=e.editing.view,u=o.document;let i=n.target;if(function(l){let n=i;for(;n;){if(n.is("editableElement")&&!n.is("rootElement"))return!0;if(Vp(n))return!1;n=n.parent}return!1}()){if((t.isSafari||t.isGecko)&&n.domEvent.detail>=3){const l=e.editing.mapper,t=i.is("attributeElement")?i.findAncestor(l=>!l.is("attributeElement")):i,o=l.toModelElement(t);n.preventDefault(),this.editor.model.change(l=>{l.setSelection(o,"in")})}return}if(!Vp(i)&&!(i=i.findAncestor(Vp)))return;t.isAndroid&&n.preventDefault(),u.isFocused||o.focus();const a=e.editing.mapper.toModelElement(i);this._setSelectionOverElement(a)}_handleSelectionChangeOnArrowKeyPress(l,n){const e=n.keyCode,t=this.editor.model,o=t.schema,u=t.document.selection,i=u.getSelectedElement(),a=Ct(e,this.editor.locale.contentLanguageDirection),r="down"==a||"right"==a,s="up"==a||"down"==a;if(i&&o.isObject(i)){const e=r?u.getLastPosition():u.getFirstPosition(),i=o.getNearestSelectionRange(e,r?"forward":"backward");return void(i&&(t.change(l=>{l.setSelection(i)}),n.preventDefault(),l.stop()))}if(!u.isCollapsed&&!n.shiftKey){const e=u.getFirstPosition(),i=u.getLastPosition(),a=e.nodeAfter,s=i.nodeBefore;return void((a&&o.isObject(a)||s&&o.isObject(s))&&(t.change(l=>{l.setSelection(r?i:e)}),n.preventDefault(),l.stop()))}if(!u.isCollapsed)return;const d=this._getObjectElementNextToSelection(r);if(d&&o.isObject(d)){if(o.isInline(d)&&s)return;this._setSelectionOverElement(d),n.preventDefault(),l.stop()}}_preventDefaultOnArrowKeyPress(l,n){const e=this.editor.model,t=e.schema,o=e.document.selection.getSelectedElement();o&&t.isObject(o)&&(n.preventDefault(),l.stop())}_handleDelete(l){if(this.editor.isReadOnly)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const e=this._getObjectElementNextToSelection(l);return e?(this.editor.model.change(l=>{let t=n.anchor.parent;for(;t.isEmpty;){const n=t;t=n.parent,l.remove(n)}this._setSelectionOverElement(e)}),!0):void 0}_setSelectionOverElement(l){this.editor.model.change(n=>{n.setSelection(n.createRangeOn(l))})}_getObjectElementNextToSelection(l){const n=this.editor.model,e=n.schema,t=n.document.selection,o=n.createSelection(t);if(n.modifySelection(o,{direction:l?"forward":"backward"}),o.isEqual(t))return null;const u=l?o.focus.nodeBefore:o.focus.nodeAfter;return u&&e.isObject(u)?u:null}_clearPreviouslySelectedWidgets(l){for(const n of this._previouslySelected)l.removeClass(Bp,n);this._previouslySelected.clear()}}function uf(l,n){return!!n&&Array.from(l.getAncestors()).includes(n)}class af extends qt{static get requires(){return[Sc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const l=this.editor;if(l.plugins.has("BalloonToolbar")){const n=l.plugins.get("BalloonToolbar");this.listenTo(n,"show",n=>{(function(l){const n=l.getSelectedElement();return!(!n||!Vp(n))})(l.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(l.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(l.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const l of this._toolbarDefinitions.values())l.view.destroy()}register(l,{ariaLabel:n,items:e,getRelatedElement:t,balloonClassName:o="ck-toolbar-container"}){if(!e.length)return void y("widget-toolbar-no-items",{toolbarId:l});const u=this.editor,i=u.t,a=new Kd(u.locale);if(a.ariaLabel=n||i("Widget toolbar"),this._toolbarDefinitions.has(l))throw new b("widget-toolbar-duplicated",this,{toolbarId:l});a.fillFromConfig(e,u.ui.componentFactory);const r={view:a,getRelatedElement:t,balloonClassName:o};u.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const l=t(u.editing.view.document.selection);l&&this._showToolbar(r,l)},afterBlur:()=>{this._hideToolbar(r)}}),this._toolbarDefinitions.set(l,r)}_updateToolbarsVisibility(){let l=0,n=null,e=null;for(const t of this._toolbarDefinitions.values()){const o=t.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o)if(this.editor.ui.focusTracker.isFocused){const u=o.getAncestors().length;u>l&&(l=u,n=o,e=t)}else this._isToolbarVisible(t)&&this._hideToolbar(t);else this._isToolbarInBalloon(t)&&this._hideToolbar(t)}e&&this._showToolbar(e,n)}_hideToolbar(l){this._balloon.remove(l.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(l,n){this._isToolbarVisible(l)?rf(this.editor,n):this._isToolbarInBalloon(l)||(this._balloon.add({view:l.view,position:sf(this.editor,n),balloonClassName:l.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const l of this._toolbarDefinitions.values())if(this._isToolbarVisible(l)){const n=l.getRelatedElement(this.editor.editing.view.document.selection);rf(this.editor,n)}}))}_isToolbarVisible(l){return this._balloon.visibleView===l.view}_isToolbarInBalloon(l){return this._balloon.hasView(l.view)}}function rf(l,n){const e=l.plugins.get("ContextualBalloon"),t=sf(l,n);e.updatePosition(t)}function sf(l,n){const e=l.editing.view,t=pd.defaultPositions;return{target:e.domConverter.mapViewToDom(n),positions:[t.northArrowSouth,t.northArrowSouthWest,t.northArrowSouthEast,t.southArrowNorth,t.southArrowNorthWest,t.southArrowNorthEast,t.viewportStickyNorth]}}var df=o(8506);Ht()(df.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),df.Z.locals;const cf=function(l,n,e){var t=!0,o=!0;if("function"!=typeof l)throw new TypeError("Expected a function");return D(e)&&(t="leading"in e?!!e.leading:t,o="trailing"in e?!!e.trailing:o),vi(l,n,{leading:t,maxWait:n,trailing:o})};var pf=o(903);Ht()(pf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pf.Z.locals;class ff extends qt{static get pluginName(){return"DragDrop"}static get requires(){return[jc,of]}init(){const l=this.editor,n=l.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=cf(l=>this._updateDropMarker(l),40),this._removeDropMarkerDelayed=gf(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=gf(()=>this._clearDraggableAttributes(),40),n.addObserver(Wc),n.addObserver(Fs),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(l,"change:isReadOnly",(l,n,e)=>{e?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(l,n,e)=>{e||this._finalizeDragging(!1)}),t.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const l=this.editor,n=l.model,e=n.document,o=l.editing.view,u=o.document;this.listenTo(u,"dragstart",(t,o)=>{const i=e.selection;if(o.target&&o.target.is("editableElement"))return void o.preventDefault();const a=o.target?vf(o.target):null;if(a){const e=l.editing.mapper.toModelElement(a);this._draggedRange=ba.fromRange(n.createRangeOn(e)),l.plugins.has("WidgetToolbarRepository")&&l.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!u.selection.isCollapsed){const l=u.selection.getSelectedElement();l&&Vp(l)||(this._draggedRange=ba.fromRange(i.getFirstRange()))}if(!this._draggedRange)return void o.preventDefault();this._draggingUid=h(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const r=n.createSelection(this._draggedRange.toRange()),s=l.data.toView(n.getSelectedContent(r));u.fire("clipboardOutput",{dataTransfer:o.dataTransfer,content:s,method:"dragstart"}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(u,"dragend",(l,n)=>{this._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)},{priority:"low"}),this.listenTo(u,"dragenter",()=>{this.isEnabled&&o.focus()}),this.listenTo(u,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(u,"dragging",(n,e)=>{if(!this.isEnabled)return void(e.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=mf(l,e.targetRanges,e.target);this._draggedRange||(e.dataTransfer.dropEffect="copy"),t.isGecko||("copy"==e.dataTransfer.effectAllowed?e.dataTransfer.dropEffect="copy":["all","copyMove"].includes(e.dataTransfer.effectAllowed)&&(e.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)},{priority:"low"})}_setupClipboardInputIntegration(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"clipboardInput",(n,e)=>{if("drop"!=e.method)return;const t=mf(l,e.targetRanges,e.target);return this._removeDropMarker(),t?(this._draggedRange&&this._draggingUid!=e.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==hf(e.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(t,!0)?(this._finalizeDragging(!1),void n.stop()):void(e.targetRanges=[l.editing.mapper.toViewRange(t)])):(this._finalizeDragging(!1),void n.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const l=this.editor.plugins.get(jc);l.on("contentInsertion",(l,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const e=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(e))},{priority:"high"}),l.on("contentInsertion",(l,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const e="move"==hf(n.dataTransfer),t=!n.resultRange||!n.resultRange.isCollapsed;this._finalizeDragging(t&&e)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const l=this.editor,n=l.editing.view,e=n.document;this.listenTo(e,"mousedown",(o,u)=>{if(t.isAndroid||!u)return;this._clearDraggableAttributesDelayed.cancel();let i=vf(u.target);if(t.isBlink&&!l.isReadOnly&&!i&&!e.selection.isCollapsed){const l=e.selection.getSelectedElement();l&&Vp(l)||(i=e.selection.editableElement)}i&&(n.change(l=>{l.setAttribute("draggable","true",i)}),this._draggableElement=l.editing.mapper.toModelElement(i))}),this.listenTo(e,"mouseup",()=>{t.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const l=this.editor.editing;l.view.change(n=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&n.removeAttribute("draggable",l.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_setupDropMarker(){const l=this.editor;l.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),l.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(n,{writer:e})=>{if(l.model.schema.checkChild(n.markerRange.start,"$text"))return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(l){const n=this.toDomElement(l);return n.append("\u2060",l.createElement("span"),"\u2060"),n})}})}_updateDropMarker(l){const n=this.editor,e=n.model.markers;n.model.change(n=>{e.has("drop-target")?e.get("drop-target").getRange().isEqual(l)||n.updateMarker("drop-target",{range:l}):n.addMarker("drop-target",{range:l,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){const l=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),l.markers.has("drop-target")&&l.change(l=>{l.removeMarker("drop-target")})}_finalizeDragging(l){const n=this.editor,e=n.model;this._removeDropMarker(),this._clearDraggableAttributes(),n.plugins.has("WidgetToolbarRepository")&&n.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(l&&this.isEnabled&&e.deleteContent(e.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function mf(l,n,e){const o=l.model,u=l.editing.mapper;let i=null;const a=n?n[0].start:null;if(e.is("uiElement")&&(e=e.parent),i=function(l,n){const e=l.model,t=l.editing.mapper;if(Vp(n))return e.createRangeOn(t.toModelElement(n));if(!n.is("editableElement")){const l=n.findAncestor(l=>Vp(l)||l.is("editableElement"));if(Vp(l))return e.createRangeOn(t.toModelElement(l))}return null}(l,e))return i;const r=function(l,n){const e=l.editing.mapper,t=l.editing.view,o=e.toModelElement(n);if(o)return o;const u=t.createPositionBefore(n),i=e.findMappedViewAncestor(u);return e.toModelElement(i)}(l,e),s=a?u.toModelPosition(a):null;return s?(i=function(l,n,e){const t=l.model;if(!t.schema.checkChild(e,"$block"))return null;const o=t.createPositionAt(e,0),u=n.path.slice(0,o.path.length),i=t.createPositionFromPath(n.root,u).nodeAfter;return i&&t.schema.isObject(i)?t.createRangeOn(i):null}(l,s,r))||((i=o.schema.getNearestSelectionRange(s,t.isGecko?"forward":"backward"))||function(l,n){const e=l.model;let t=n;for(;t;){if(e.schema.isObject(t))return e.createRangeOn(t);t=t.parent}return null}(l,s.parent)):function(l,n){const e=l.model,t=e.schema,o=e.createPositionAt(n,0);return t.getNearestSelectionRange(o,"forward")}(l,r)}function hf(l){return t.isGecko?l.dropEffect:["all","copyMove"].includes(l.effectAllowed)?"move":"copy"}function gf(l,n){let e;function t(...o){t.cancel(),e=setTimeout(()=>l(...o),n)}return t.cancel=(()=>{clearTimeout(e)}),t}function vf(l){if(l.is("editableElement"))return null;if(l.hasClass("ck-widget__selection-handle"))return l.findAncestor(Vp);if(Vp(l))return l;const n=l.findAncestor(l=>Vp(l)||l.is("editableElement"));return Vp(n)?n:null}class bf extends qt{static get pluginName(){return"PastePlainText"}static get requires(){return[jc]}init(){const l=this.editor,n=l.model,e=l.editing.view,t=e.document,o=n.document.selection;let u=!1;e.addObserver(Wc),this.listenTo(t,"keydown",(l,n)=>{u=n.shiftKey}),l.plugins.get(jc).on("contentInsertion",(l,e)=>{(u||function(l,n){if(l.childCount>1)return!1;const e=l.getChild(0);return!n.isObject(e)&&0==Array.from(e.getAttributeKeys()).length}(e.content,n.schema))&&n.change(l=>{const t=Array.from(o.getAttributes()).filter(([l])=>n.schema.getAttributeProperties(l).isFormatting);o.isCollapsed||n.deleteContent(o,{doNotAutoparagraph:!0}),t.push(...o.getAttributes());const u=l.createRangeIn(e.content);for(const n of u.getItems())n.is("$textProxy")&&l.setAttributes(t,n)})})}}class yf extends qt{static get pluginName(){return"Clipboard"}static get requires(){return[jc,ff,bf]}}class xf extends Pt{constructor(l){super(l),this.affectsData=!1}execute(){const l=this.editor.model,n=l.document.selection;let e=l.schema.getLimitElement(n);if(n.containsEntireContent(e)||!Af(l.schema,e))do{if(!(e=e.parent))return}while(!Af(l.schema,e));l.change(l=>{l.setSelection(e,"in")})}}function Af(l,n){return l.isLimit(n)&&(l.checkChild(n,"$text")||l.checkChild(n,"paragraph"))}const _f=At("Ctrl+A");class Cf extends qt{static get pluginName(){return"SelectAllEditing"}init(){const l=this.editor,n=l.editing.view.document;l.commands.add("selectAll",new xf(l)),this.listenTo(n,"keydown",(n,e)=>{xt(e)===_f&&(l.execute("selectAll"),e.preventDefault())})}}class wf extends qt{static get pluginName(){return"SelectAllUI"}init(){const l=this.editor;l.ui.componentFactory.add("selectAll",n=>{const e=l.commands.get("selectAll"),t=new Id(n),o=n.t;return t.set({label:o("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),t.bind("isEnabled").to(e,"isEnabled"),this.listenTo(t,"execute",()=>{l.execute("selectAll"),l.editing.view.focus()}),t})}}class Rf extends qt{static get requires(){return[Cf,wf]}static get pluginName(){return"SelectAll"}}class Lf extends Pt{constructor(l){super(l),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(l.data,"set",(l,n)=>{n[1]={...n[1]};const e=n[1];e.batchType||(e.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(l.data,"set",(l,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(l){const n=this.editor.model.document.selection,e={ranges:n.hasOwnRange?Array.from(n.getRanges()):[],isBackward:n.isBackward};this._stack.push({batch:l,selection:e}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(l,n,e){const t=this.editor.model,o=t.document,u=[],i=l.map(l=>l.getTransformedByOperations(e)),a=i.flat();for(const r of i){const l=r.filter(l=>l.root!=o.graveyard).filter(l=>!Ef(l,a));l.length&&(Mf(l),u.push(l[0]))}u.length&&t.change(l=>{l.setSelection(u,{backward:n})})}_undo(l,n){const e=this.editor.model,t=e.document;this._createdBatches.add(n);const o=l.operations.slice().filter(l=>l.isDocumentOperation);o.reverse();for(const u of o){const l=u.baseVersion+1,o=Array.from(t.history.getOperations(l)),i=Wr([u.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const a of i)n.addOperation(a),e.applyOperation(a),t.history.setOperationAsUndone(u,a)}}}function Mf(l){l.sort((l,n)=>l.start.isBefore(n.start)?-1:1);for(let n=1;nn!==l&&n.containsRange(l,!0))}class Of extends Lf{execute(l=null){const n=l?this._stack.findIndex(n=>n.batch==l):this._stack.length-1,e=this._stack.splice(n,1)[0],t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{this._undo(e.batch,t);const l=this.editor.model.document.history.getOperations(e.batch.baseVersion);this._restoreSelection(e.selection.ranges,e.selection.isBackward,l),this.fire("revert",e.batch,t)}),this.refresh()}}class Sf extends Lf{execute(){const l=this._stack.pop(),n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,()=>{const e=l.batch.operations[l.batch.operations.length-1].baseVersion+1,t=this.editor.model.document.history.getOperations(e);this._restoreSelection(l.selection.ranges,l.selection.isBackward,t),this._undo(l.batch,n)}),this.refresh()}}class kf extends qt{static get pluginName(){return"UndoEditing"}constructor(l){super(l),this._batchRegistry=new WeakSet}init(){const l=this.editor;this._undoCommand=new Of(l),this._redoCommand=new Sf(l),l.commands.add("undo",this._undoCommand),l.commands.add("redo",this._redoCommand),this.listenTo(l.model,"applyOperation",(l,n)=>{const e=n[0];if(!e.isDocumentOperation)return;const t=e.batch,o=this._redoCommand._createdBatches.has(t),u=this._undoCommand._createdBatches.has(t);this._batchRegistry.has(t)||(this._batchRegistry.add(t),t.isUndoable&&(o?this._undoCommand.addBatch(t):u||(this._undoCommand.addBatch(t),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,n,e)=>{this._redoCommand.addBatch(e)}),l.keystrokes.set("CTRL+Z","undo"),l.keystrokes.set("CTRL+Y","redo"),l.keystrokes.set("CTRL+SHIFT+Z","redo")}}const If='',Ff='';class Nf extends qt{static get pluginName(){return"UndoUI"}init(){const l=this.editor,n=l.locale,e=l.t,t="ltr"==n.uiLanguageDirection?If:Ff,o="ltr"==n.uiLanguageDirection?Ff:If;this._addButton("undo",e("Undo"),"CTRL+Z",t),this._addButton("redo",e("Redo"),"CTRL+Y",o)}_addButton(l,n,e,t){const o=this.editor;o.ui.componentFactory.add(l,u=>{const i=o.commands.get(l),a=new Id(u);return a.set({label:n,icon:t,keystroke:e,tooltip:!0}),a.bind("isEnabled").to(i,"isEnabled"),this.listenTo(a,"execute",()=>{o.execute(l),o.editing.view.focus()}),a})}}class Df extends qt{static get requires(){return[kf,Nf]}static get pluginName(){return"Undo"}}class zf extends(U()){constructor(){super();const l=new window.FileReader;this._reader=l,this._data=void 0,this.set("loaded",0),l.onprogress=(l=>{this.loaded=l.loaded})}get error(){return this._reader.error}get data(){return this._data}read(l){const n=this._reader;return this.total=l.size,new Promise((e,t)=>{n.onload=(()=>{const l=n.result;this._data=l,e(l)}),n.onerror=(()=>{t("error")}),n.onabort=(()=>{t("aborted")}),this._reader.readAsDataURL(l)})}abort(){this._reader.abort()}}class qf extends qt{static get pluginName(){return"FileRepository"}static get requires(){return[Cd]}init(){this.loaders=new Et,this.loaders.on("change",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(l,n)=>n?l/n*100:0)}getLoader(l){return this._loadersMap.get(l)||null}createLoader(l){if(!this.createUploadAdapter)return y("filerepository-no-upload-adapter"),null;const n=new Tf(Promise.resolve(l),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(l,n),l instanceof Promise&&n.file.then(l=>{this._loadersMap.set(l,n)}).catch(()=>{}),n.on("change:uploaded",()=>{let l=0;for(const n of this.loaders)l+=n.uploaded;this.uploaded=l}),n.on("change:uploadTotal",()=>{let l=0;for(const n of this.loaders)n.uploadTotal&&(l+=n.uploadTotal);this.uploadTotal=l}),n}destroyLoader(l){const n=l instanceof Tf?l:this.getLoader(l);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((l,e)=>{l===n&&this._loadersMap.delete(e)})}_updatePendingAction(){const l=this.editor.plugins.get(Cd);if(this.loaders.length){if(!this._pendingAction){const n=this.editor.t,e=l=>`${n("Upload in progress")} ${parseInt(l)}%.`;this._pendingAction=l.add(e(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",e)}}else l.remove(this._pendingAction),this._pendingAction=null}}class Tf extends(U()){constructor(l,n){super(),this.id=h(),this._filePromiseWrapper=this._createFilePromiseWrapper(l),this._adapter=n(this),this._reader=new zf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(l,n)=>n?l/n*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(l=>this._filePromiseWrapper?l:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new b("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(l=>this._reader.read(l)).then(l=>{if("reading"!==this.status)throw this.status;return this.status="idle",l}).catch(l=>{if("aborted"===l)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:l})}upload(){if("idle"!=this.status)throw new b("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(l=>(this.uploadResponse=l,this.status="idle",l)).catch(l=>{if("aborted"===this.status)throw"aborted";throw this.status="error",l})}abort(){const l=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==l?this._reader.abort():"uploading"==l&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(l){const n={};return n.promise=new Promise((e,t)=>{n.rejecter=t,n.isFulfilled=!1,l.then(l=>{n.isFulfilled=!0,e(l)}).catch(l=>{n.isFulfilled=!0,t(l)})}),n}}class Pf extends rd{constructor(l){super(l),this.buttonView=new Id(l),this._fileInputView=new Bf(l),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class Bf extends rd{constructor(l){super(l),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const n=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:n.to("acceptedType"),multiple:n.to("allowMultipleFiles")},on:{change:n.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const Vf="ckCsrfToken",Uf="abcdefghijklmnopqrstuvwxyz0123456789";class Wf{constructor(l,n,e){this.loader=l,this.url=n,this.t=e}upload(){return this.loader.file.then(l=>new Promise((n,e)=>{this._initRequest(),this._initListeners(n,e,l),this._sendRequest(l)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const l=this.xhr=new XMLHttpRequest;l.open("POST",this.url,!0),l.responseType="json"}_initListeners(l,n,e){const t=this.xhr,o=this.loader,u=(0,this.t)("Cannot upload file:")+` ${e.name}.`;t.addEventListener("error",()=>n(u)),t.addEventListener("abort",()=>n()),t.addEventListener("load",()=>{const e=t.response;if(!e||!e.uploaded)return n(e&&e.error&&e.error.message?e.error.message:u);l({default:e.url})}),t.upload&&t.upload.addEventListener("progress",l=>{l.lengthComputable&&(o.uploadTotal=l.total,o.uploaded=l.loaded)})}_sendRequest(l){const n=new FormData;n.append("upload",l),n.append("ckCsrfToken",function(){let l=function(l){l=l.toLowerCase();const n=document.cookie.split(";");for(const e of n){const n=e.split("=");if(decodeURIComponent(n[0].trim().toLowerCase())===l)return decodeURIComponent(n[1])}return null}(Vf);var n,e;return l&&40==l.length||(l=function(l){let n="";const e=new Uint8Array(40);window.crypto.getRandomValues(e);for(let t=0;t.5?l.toUpperCase():l}return n}(),n=Vf,e=l,document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(e)+";path=/"),l}()),this.xhr.send(n)}}function Gf(l,n,e,t){let o,u=null;"function"==typeof t?o=t:(u=l.commands.get(t),o=(()=>{l.execute(t)})),l.model.document.on("change:data",(i,a)=>{if(u&&!u.isEnabled||!n.isEnabled)return;const r=Ot(l.model.document.selection.getRanges());if(!r.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const s=Array.from(l.model.document.differ.getChanges()),d=s[0];if(1!=s.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const c=d.position.parent;if(c.is("element","codeBlock"))return;if(c.is("element","listItem")&&"function"!=typeof t&&!["numberedList","bulletedList","todoList"].includes(t))return;if(u&&!0===u.value)return;const p=c.getChild(0),f=l.model.createRangeOn(p);if(!f.containsRange(r)&&!r.end.isEqual(f.end))return;const m=e.exec(p.data.substr(0,r.end.offset));m&&l.model.enqueueChange(n=>{const e=n.createPositionAt(c,0),t=n.createPositionAt(c,m[0].length),u=new ba(e,t);if(!1!==o({match:m})){n.remove(u);const e=l.model.document.selection.getFirstRange(),t=n.createRangeIn(c);!c.isEmpty||t.isEqual(e)||t.containsRange(e,!0)||n.remove(c)}u.detach(),l.model.enqueueChange(()=>{l.plugins.get("Delete").requestUndoOnBackspace()})})})}function jf(l,n,e,t){let o,u;e instanceof RegExp?o=e:u=e,u=u||(l=>{let n;const e=[],t=[];for(;null!==(n=o.exec(l))&&!(n&&n.length<4);){let{index:l,1:o,2:u,3:i}=n;const a=o+u+i,r=[l+=n[0].length-a.length,l+o.length],s=[l+o.length+u.length,l+o.length+u.length+i.length];e.push(r),e.push(s),t.push([l+o.length,l+o.length+u.length])}return{remove:e,format:t}}),l.model.document.on("change:data",(e,o)=>{if(o.isUndo||!o.isLocal||!n.isEnabled)return;const i=l.model,a=i.document.selection;if(!a.isCollapsed)return;const r=Array.from(i.document.differ.getChanges()),s=r[0];if(1!=r.length||"insert"!==s.type||"$text"!=s.name||1!=s.length)return;const d=a.focus,c=d.parent,{text:p,range:f}=function(l,n){let e=l.start;return{text:Array.from(l.getItems()).reduce((l,t)=>!t.is("$text")&&!t.is("$textProxy")||t.getAttribute("code")?(e=n.createPositionAfter(t),""):l+t.data,""),range:n.createRange(e,l.end)}}(i.createRange(i.createPositionAt(c,0),d),i),m=u(p),h=Hf(f.start,m.format,i),g=Hf(f.start,m.remove,i);h.length&&g.length&&i.enqueueChange(n=>{if(!1!==t(n,h)){for(const l of g.reverse())n.remove(l);i.enqueueChange(()=>{l.plugins.get("Delete").requestUndoOnBackspace()})}})})}function Hf(l,n,e){return n.filter(l=>void 0!==l[0]&&void 0!==l[1]).map(n=>e.createRange(l.getShiftedBy(n[0]),l.getShiftedBy(n[1])))}function Yf(l,n){return(e,t)=>{if(!l.commands.get(n).isEnabled)return!1;const o=l.model.schema.getValidRanges(t,n);for(const l of o)e.setAttribute(n,!0,l);e.removeSelectionAttribute(n)}}class Zf extends Pt{constructor(l,n){super(l),this.attributeKey=n}refresh(){const l=this.editor.model,n=l.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=l.schema.checkAttributeInSelection(n.selection,this.attributeKey)}execute(l={}){const n=this.editor.model,e=n.document.selection,t=void 0===l.forceValue?!this.value:l.forceValue;n.change(l=>{if(e.isCollapsed)t?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const o=n.schema.getValidRanges(e.getRanges(),this.attributeKey);for(const n of o)t?l.setAttribute(this.attributeKey,t,n):l.removeAttribute(this.attributeKey,n)}})}_getValueFromFirstAllowedNode(){const l=this.editor.model,n=l.schema,e=l.document.selection;if(e.isCollapsed)return e.hasAttribute(this.attributeKey);for(const t of e.getRanges())for(const l of t.getItems())if(n.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Xf="bold";class $f extends qt{static get pluginName(){return"BoldEditing"}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:Xf}),l.model.schema.setAttributeProperties(Xf,{isFormatting:!0,copyOnEnter:!0}),l.conversion.attributeToElement({model:Xf,view:"strong",upcastAlso:["b",l=>{const n=l.getStyle("font-weight");return n?"bold"==n||Number(n)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),l.commands.add(Xf,new Zf(l,Xf)),l.keystrokes.set("CTRL+B",Xf)}}const Kf="bold";class Qf extends qt{static get pluginName(){return"BoldUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add(Kf,e=>{const t=l.commands.get(Kf),o=new Id(e);return o.set({label:n("Bold"),icon:wd.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute(Kf),l.editing.view.focus()}),o})}}const Jf="italic";class lm extends qt{static get pluginName(){return"ItalicEditing"}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:Jf}),l.model.schema.setAttributeProperties(Jf,{isFormatting:!0,copyOnEnter:!0}),l.conversion.attributeToElement({model:Jf,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),l.commands.add(Jf,new Zf(l,Jf)),l.keystrokes.set("CTRL+I",Jf)}}const nm="italic";class em extends qt{static get pluginName(){return"ItalicUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add(nm,e=>{const t=l.commands.get(nm),o=new Id(e);return o.set({label:n("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute(nm),l.editing.view.focus()}),o})}}class tm extends Pt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(l={}){const n=this.editor.model,e=n.schema,t=n.document.selection,o=Array.from(t.getSelectedBlocks()),u=void 0===l.forceValue?!this.value:l.forceValue;n.change(l=>{if(u){const n=o.filter(l=>om(l)||im(e,l));this._applyQuote(l,n)}else this._removeQuote(l,o.filter(om))})}_getValue(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());return!(!l||!om(l))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.document.selection,n=this.editor.model.schema,e=Ot(l.getSelectedBlocks());return!!e&&im(n,e)}_removeQuote(l,n){um(l,n).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void l.unwrap(n.start.parent);if(n.start.isAtStart){const e=l.createPositionBefore(n.start.parent);return void l.move(n,e)}n.end.isAtEnd||l.split(n.end);const e=l.createPositionAfter(n.end.parent);l.move(n,e)})}_applyQuote(l,n){const e=[];um(l,n).reverse().forEach(n=>{let t=om(n.start);t||(t=l.createElement("blockQuote"),l.wrap(n,t)),e.push(t)}),e.reverse().reduce((n,e)=>n.nextSibling==e?(l.merge(l.createPositionAfter(n)),n):e)}}function om(l){return"blockQuote"==l.parent.name?l.parent:null}function um(l,n){let e,t=0;const o=[];for(;t{const t=l.model.document.differ.getChanges();for(const l of t)if("insert"==l.type){const t=l.position.nodeAfter;if(!t)continue;if(t.is("element","blockQuote")&&t.isEmpty)return e.remove(t),!0;if(t.is("element","blockQuote")&&!n.checkChild(l.position,t))return e.unwrap(t),!0;if(t.is("element")){const l=e.createRangeIn(t);for(const t of l.getItems())if(t.is("element","blockQuote")&&!n.checkChild(e.createPositionBefore(t),t))return e.unwrap(t),!0}}else if("remove"==l.type){const n=l.position.parent;if(n.is("element","blockQuote")&&n.isEmpty)return e.remove(n),!0}return!1});const e=this.editor.editing.view.document,t=l.model.document.selection,o=l.commands.get("blockQuote");this.listenTo(e,"enter",(n,e)=>{t.isCollapsed&&o.value&&t.getLastPosition().parent.isEmpty&&(l.execute("blockQuote"),l.editing.view.scrollToTheSelection(),e.preventDefault(),n.stop())},{context:"blockquote"}),this.listenTo(e,"delete",(n,e)=>{if("backward"!=e.direction||!t.isCollapsed||!o.value)return;const u=t.getLastPosition().parent;u.isEmpty&&!u.previousSibling&&(l.execute("blockQuote"),l.editing.view.scrollToTheSelection(),e.preventDefault(),n.stop())},{context:"blockquote"})}}var rm=o(3062);Ht()(rm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rm.Z.locals;class sm extends qt{static get pluginName(){return"BlockQuoteUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add("blockQuote",e=>{const t=l.commands.get("blockQuote"),o=new Id(e);return o.set({label:n("Block quote"),icon:wd.quote,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute("blockQuote"),l.editing.view.focus()}),o})}}class dm extends qt{static get pluginName(){return"CKBoxUI"}afterInit(){const l=this.editor;if(!l.commands.get("ckbox"))return;const n=l.t;l.ui.componentFactory.add("ckbox",e=>{const t=l.commands.get("ckbox"),o=new Id(e);return o.set({label:n("Open file manager"),icon:'',tooltip:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),o.on("execute",()=>{l.execute("ckbox")}),o})}}function cm({token:l,id:n,origin:e,width:t,extension:o}){const u=pm(l),i=function(l){const n=[10*l/100,80],e=Math.floor(Math.max(...n)),t=[Math.min(l,4e3)];let o=t[0];for(;o-e>=e;)o-=e,t.unshift(o);return t}(t);return{imageFallbackUrl:fm({environmentId:u,id:n,origin:e,width:t,extension:"bmp"===o||"tiff"===o||"jpg"===o?"jpeg":o}),imageSources:[{srcset:i.map(l=>`${fm({environmentId:u,id:n,origin:e,width:l,extension:"webp"})} ${l}w`).join(","),sizes:`(max-width: ${t}px) 100vw, ${t}px`,type:"image/webp"}]}}function pm(l){const[,n]=l.value.split(".");return JSON.parse(atob(n)).aud}function fm({environmentId:l,id:n,origin:e,width:t,extension:o}){return new URL(`${l}/assets/${n}/images/${t}.${o}`,e).toString()}class mm extends Pt{constructor(l){super(l),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const l=this.editor.commands.get("insertImage"),n=this.editor.commands.get("link");return!(!l.isEnabled&&!n.isEnabled)}_prepareOptions(){const l=this.editor.config.get("ckbox");return{theme:l.theme,language:l.language,tokenUrl:l.tokenUrl,serviceOrigin:l.serviceOrigin,assetsOrigin:l.assetsOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:l=>this.fire("ckbox:choose",l)}}}_initListeners(){const l=this.editor,n=l.model,e=!l.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=pl(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(t,o)=>{if(!this.isEnabled)return;const u=l.commands.get("insertImage"),i=l.commands.get("link"),a=l.plugins.get("CKBoxEditing"),r=function({assets:l,origin:n,token:e,isImageAllowed:t,isLinkAllowed:o}){return l.map(l=>({id:l.data.id,type:gm(l)?"image":"link",attributes:hm(l,e,n)})).filter(l=>"image"===l.type?t:o)}({assets:o,origin:l.config.get("ckbox.assetsOrigin"),token:a.getToken(),isImageAllowed:u.isEnabled,isLinkAllowed:i.isEnabled});0!==r.length&&n.change(l=>{for(const n of r){const t=n===r[r.length-1];this._insertAsset(n,t,l),e&&(setTimeout(()=>this._chosenAssets.delete(n),1e3),this._chosenAssets.add(n))}})}),this.listenTo(l,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(l,n,e){const t=this.editor.model.document.selection;e.removeSelectionAttribute("linkHref"),"image"===l.type?this._insertImage(l):this._insertLink(l,e),n||e.setSelection(t.getLastPosition())}_insertImage(l){const n=this.editor,{imageFallbackUrl:e,imageSources:t,imageTextAlternative:o}=l.attributes;n.execute("insertImage",{source:{src:e,sources:t,alt:o}})}_insertLink(l,n){const e=this.editor,t=e.model,o=t.document.selection,{linkName:u,linkHref:i}=l.attributes;if(o.isCollapsed){const l=It(o.getAttributes()),e=n.createText(u,l),i=t.insertContent(e);n.setSelection(i)}e.execute("link",i)}}function hm(l,n,e){if(gm(l)){const{imageFallbackUrl:t,imageSources:o}=cm({token:n,origin:e,id:l.data.id,width:l.data.metadata.width,extension:l.data.extension});return{imageFallbackUrl:t,imageSources:o,imageTextAlternative:l.data.metadata.description||""}}return{linkName:l.data.name,linkHref:vm(l,n,e)}}function gm(l){const n=l.data.metadata;return!!n&&n.width&&n.height}function vm(l,n,e){const t=pm(n),o=new URL(`${t}/assets/${l.data.id}/file`,e);return o.searchParams.set("download","true"),o.toString()}class bm extends qt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",qf,Am]}static get pluginName(){return"CKBoxUploadAdapter"}async afterInit(){const l=this.editor,n=!!l.config.get("ckbox"),e=!!window.CKBox;if(!n&&!e)return;const t=l.plugins.get(qf),o=l.plugins.get(Am);t.createUploadAdapter=(n=>new ym(n,o.getToken(),l));const u=!l.config.get("ckbox.ignoreDataId"),i=l.plugins.get("ImageUploadEditing");u&&i.on("uploadComplete",(n,{imageElement:e,data:t})=>{l.model.change(l=>{l.setAttribute("ckboxImageId",t.ckboxImageId,e)})})}}class ym{constructor(l,n,e){this.loader=l,this.token=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin"),this.assetsOrigin=e.config.get("ckbox.assetsOrigin")}async getAvailableCategories(l=0){const n=new URL("categories",this.serviceOrigin);return n.searchParams.set("limit",50..toString()),n.searchParams.set("offset",l.toString()),this._sendHttpRequest({url:n}).then(async n=>{if(n.totalCount-(l+50)>0){const e=await this.getAvailableCategories(l+50);return[...n.items,...e]}return n.items}).catch(()=>{this.controller.signal.throwIfAborted(),x("ckbox-fetch-category-http-error")})}async getCategoryIdForFile(l){const n=xm(l.name),e=await this.getAvailableCategories();if(!e)return null;const t=this.editor.config.get("ckbox.defaultUploadCategories");if(t){const l=Object.keys(t).find(l=>t[l].includes(n));if(l){const n=e.find(n=>n.id===l||n.name===l);return n?n.id:null}}const o=e.find(l=>l.extensions.includes(n));return o?o.id:null}async upload(){const l=this.editor.t,n=l("Cannot determine a category for the uploaded file."),e=await this.loader.file,t=await this.getCategoryIdForFile(e);if(!t)return Promise.reject(n);const o=new URL("assets",this.serviceOrigin),u=new FormData;u.append("categoryId",t),u.append("file",e);const i={method:"POST",url:o,data:u,onUploadProgress:l=>{l.lengthComputable&&(this.loader.uploadTotal=l.total,this.loader.uploaded=l.loaded)}};return this._sendHttpRequest(i).then(async l=>{const n=await this._getImageWidth(),t=xm(e.name),o=cm({token:this.token,id:l.id,origin:this.assetsOrigin,width:n,extension:t});return{ckboxImageId:l.id,default:o.imageFallbackUrl,sources:o.imageSources}}).catch(()=>{const n=l("Cannot upload file:")+` ${e.name}.`;return Promise.reject(n)})}abort(){this.controller.abort()}_sendHttpRequest(l){const{url:n,data:e,onUploadProgress:t}=l,o=l.method||"GET",u=this.controller.signal,i=new XMLHttpRequest;i.open(o,n.toString(),!0),i.setRequestHeader("Authorization",this.token.value),i.setRequestHeader("CKBox-Version","CKEditor 5"),i.responseType="json";const a=()=>{i.abort()};return new Promise((l,n)=>{u.addEventListener("abort",a),i.addEventListener("loadstart",()=>{u.addEventListener("abort",a)}),i.addEventListener("loadend",()=>{u.removeEventListener("abort",a)}),i.addEventListener("error",()=>{n()}),i.addEventListener("abort",()=>{n()}),i.addEventListener("load",async()=>{const e=i.response;return!e||e.statusCode>=400?n(e&&e.message):l(e)}),t&&i.upload.addEventListener("progress",l=>{t(l)}),i.send(e)})}_getImageWidth(){return new Promise(l=>{const n=new Image;n.onload=(()=>{URL.revokeObjectURL(n.src),l(n.width)}),n.src=this.loader.data})}}function xm(l){return l.match(/\.(?[^.]+)$/).groups.ext}class Am extends qt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",bm]}async init(){const l=this.editor,n=!!l.config.get("ckbox"),e=!!window.CKBox;if(!n&&!e)return;this._initConfig();const t=l.plugins.get("CloudServicesCore"),o=l.config.get("ckbox.tokenUrl"),u=l.config.get("cloudServices.tokenUrl");this._token=o===u?l.plugins.get("CloudServices").token:await t.createToken(o).init(),l.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),e&&l.commands.add("ckbox",new mm(l))}getToken(){return this._token}_initConfig(){const l=this.editor;if(l.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:l.locale.uiLanguage,theme:"default",tokenUrl:l.config.get("cloudServices.tokenUrl")}),!l.config.get("ckbox.tokenUrl"))throw new b("ckbox-plugin-missing-token-url",this);l.plugins.has("ImageBlockEditing")||l.plugins.has("ImageInlineEditing")||x("ckbox-plugin-image-feature-missing",l)}_initSchema(){const l=this.editor.model.schema;l.extend("$text",{allowAttributes:"ckboxLinkId"}),l.isRegistered("imageBlock")&&l.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),l.isRegistered("imageInline")&&l.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),l.addAttributeCheck((l,n)=>{if(!l.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const l=this.editor;l.conversion.for("downcast").add(l=>{l.on("attribute:ckboxLinkId:imageBlock",(l,n,e)=>{const{writer:t,mapper:o,consumable:u}=e;if(!u.consume(n.item,l.name))return;const i=[...o.toViewElement(n.item).getChildren()].find(l=>"a"===l.name);i&&(n.item.hasAttribute("ckboxLinkId")?t.setAttribute("data-ckbox-resource-id",n.item.getAttribute("ckboxLinkId"),i):t.removeAttribute("data-ckbox-resource-id",i))},{priority:"low"}),l.on("attribute:ckboxLinkId",(l,n,e)=>{const{writer:t,mapper:o,consumable:u}=e;if(u.consume(n.item,l.name)){if(n.attributeOldValue){const l=Cm(t,n.attributeOldValue);t.unwrap(o.toViewRange(n.range),l)}if(n.attributeNewValue){const l=Cm(t,n.attributeNewValue);if(n.item.is("selection")){const n=t.document.selection;t.wrap(n.getFirstRange(),l)}else t.wrap(o.toViewRange(n.range),l)}}},{priority:"low"})}),l.conversion.for("upcast").add(l=>{l.on("element:a",(l,n,e)=>{const{writer:t,consumable:o}=e;if(!n.viewItem.getAttribute("href"))return;if(!o.consume(n.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const u=n.viewItem.getAttribute("data-ckbox-resource-id");if(u)if(n.modelRange)for(let i of n.modelRange.getItems())i.is("$textProxy")&&(i=i.textNode),wm(i)&&t.setAttribute("ckboxLinkId",u,i);else{const l=n.modelCursor.nodeBefore||n.modelCursor.parent;t.setAttribute("ckboxLinkId",u,l)}},{priority:"low"})}),l.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),l.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:l=>l.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const l=this.editor,n=l.model,e=n.document.selection;n.document.registerPostFixer(function(l){return n=>{let e=!1;const t=l.model,o=l.commands.get("ckbox");if(!o)return e;for(const l of t.document.differ.getChanges()){if("insert"!==l.type&&"attribute"!==l.type)continue;const t="insert"===l.type?new ia(l.position,l.position.getShiftedBy(l.length)):l.range,u="attribute"===l.type&&"linkHref"===l.attributeKey&&null===l.attributeNewValue;for(const l of t.getItems()){if(u&&l.hasAttribute("ckboxLinkId")){n.removeAttribute("ckboxLinkId",l),e=!0;continue}const t=_m(l,o._chosenAssets);for(const o of t){const t="image"===o.type?"ckboxImageId":"ckboxLinkId";o.id!==l.getAttribute(t)&&(n.setAttribute(t,o.id,l),e=!0)}}}return e}}(l)),n.document.registerPostFixer(function(l){return n=>{!l.hasAttribute("linkHref")&&l.hasAttribute("ckboxLinkId")&&n.removeSelectionAttribute("ckboxLinkId")}}(e))}}function _m(l,n){const e=l.is("element","imageInline")||l.is("element","imageBlock"),t=l.hasAttribute("linkHref");return[...n].filter(n=>"image"===n.type&&e?n.attributes.imageFallbackUrl===l.getAttribute("src"):"link"===n.type&&t?n.attributes.linkHref===l.getAttribute("linkHref"):void 0)}function Cm(l,n){const e=l.createAttributeElement("a",{"data-ckbox-resource-id":n},{priority:5});return l.setCustomProperty("link",!0,e),e}function wm(l){return!!l.is("$text")||!(!l.is("element","imageInline")&&!l.is("element","imageBlock"))}class Rm extends qt{static get pluginName(){return"CKFinderUI"}init(){const l=this.editor,n=l.ui.componentFactory,e=l.t;n.add("ckfinder",n=>{const t=l.commands.get("ckfinder"),o=new Id(n);return o.set({label:e("Insert image or file"),icon:'',tooltip:!0}),o.bind("isEnabled").to(t),o.on("execute",()=>{l.execute("ckfinder"),l.editing.view.focus()}),o})}}class Lm extends Pt{constructor(l){super(l),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const l=this.editor.commands.get("insertImage"),n=this.editor.commands.get("link");this.isEnabled=l.isEnabled||n.isEnabled}execute(){const l=this.editor,n=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=n&&"modal"!=n)throw new b("ckfinder-unknown-openermethod",l);const e=this.editor.config.get("ckfinder.options")||{};e.chooseFiles=!0;const t=e.onInit;e.language||(e.language=l.locale.uiLanguage),e.onInit=(n=>{t&&t(n),n.on("files:choose",e=>{const t=e.data.files.toArray(),o=t.filter(l=>!l.isImage()),u=t.filter(l=>l.isImage());for(const n of o)l.execute("link",n.getUrl());const i=[];for(const l of u){const e=l.getUrl();i.push(e||n.request("file:getProxyUrl",{file:l}))}i.length&&Mm(l,i)}),n.on("file:choose:resizedImage",n=>{const e=n.data.resizedUrl;if(e)Mm(l,[e]);else{const n=l.plugins.get("Notification"),e=l.locale.t;n.showWarning(e("Could not obtain resized image URL."),{title:e("Selecting resized image failed"),namespace:"ckfinder"})}})}),window.CKFinder[n](e)}}function Mm(l,n){if(l.commands.get("insertImage").isEnabled)l.execute("insertImage",{source:n});else{const n=l.plugins.get("Notification"),e=l.locale.t;n.showWarning(e("Could not insert image at the current position."),{title:e("Inserting image failed"),namespace:"ckfinder"})}}class Em extends qt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Rc,"LinkEditing"]}init(){const l=this.editor;if(!l.plugins.has("ImageBlockEditing")&&!l.plugins.has("ImageInlineEditing"))throw new b("ckfinder-missing-image-plugin",l);l.commands.add("ckfinder",new Lm(l))}}class Om extends qt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",qf]}init(){const l=this.editor,n=l.plugins.get("CloudServices"),e=n.token,t=n.uploadUrl;e&&(this._uploadGateway=l.plugins.get("CloudServicesCore").createUploadGateway(e,t),l.plugins.get(qf).createUploadAdapter=(l=>new Sm(this._uploadGateway,l)))}}class Sm{constructor(l,n){this.uploadGateway=l,this.loader=n}upload(){return this.loader.file.then(l=>(this.fileUploader=this.uploadGateway.upload(l),this.fileUploader.on("progress",(l,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class km extends Pt{refresh(){const l=this.editor.model,n=Ot(l.document.selection.getSelectedBlocks());this.value=!!n&&n.is("element","paragraph"),this.isEnabled=!!n&&Im(n,l.schema)}execute(l={}){const n=this.editor.model,e=n.document;n.change(t=>{const o=(l.selection||e.selection).getSelectedBlocks();for(const l of o)!l.is("element","paragraph")&&Im(l,n.schema)&&t.rename(l,"paragraph")})}}function Im(l,n){return n.checkChild(l.parent,"paragraph")&&!n.isObject(l)}class Fm extends Pt{execute(l){const n=this.editor.model,e=l.attributes;let t=l.position;n.change(l=>{const o=l.createElement("paragraph");if(e&&n.schema.setAllowedAttributes(o,e,l),!n.schema.checkChild(t.parent,o)){const e=n.schema.findAllowedParent(t,o);if(!e)return;t=l.split(t,e).position}n.insertContent(o,t),l.setSelection(o,"in")})}}class Nm extends qt{static get pluginName(){return"Paragraph"}init(){const l=this.editor,n=l.model;l.commands.add("paragraph",new km(l)),l.commands.add("insertParagraph",new Fm(l)),n.schema.register("paragraph",{inheritAllFrom:"$block"}),l.conversion.elementToElement({model:"paragraph",view:"p"}),l.conversion.for("upcast").elementToElement({model:(l,{writer:n})=>Nm.paragraphLikeElements.has(l.name)?l.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Nm.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Dm extends Pt{constructor(l,n){super(l),this.modelElements=n}refresh(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());this.value=!!l&&this.modelElements.includes(l.name)&&l.name,this.isEnabled=!!l&&this.modelElements.some(n=>zm(l,n,this.editor.model.schema))}execute(l){const n=this.editor.model,e=n.document,t=l.value;n.change(l=>{const o=Array.from(e.selection.getSelectedBlocks()).filter(l=>zm(l,t,n.schema));for(const n of o)n.is("element",t)||l.rename(n,t)})}}function zm(l,n,e){return e.checkChild(l.parent,n)&&!e.isObject(l)}const qm="paragraph";class Tm extends qt{static get pluginName(){return"HeadingEditing"}constructor(l){super(l),l.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Nm]}init(){const l=this.editor,n=l.config.get("heading.options"),e=[];for(const t of n)t.model!==qm&&(l.model.schema.register(t.model,{inheritAllFrom:"$block"}),l.conversion.elementToElement(t),e.push(t.model));this._addDefaultH1Conversion(l),l.commands.add("heading",new Dm(l,e))}afterInit(){const l=this.editor,n=l.commands.get("enter"),e=l.config.get("heading.options");n&&this.listenTo(n,"afterExecute",(n,t)=>{const o=l.model.document.selection.getFirstPosition().parent;e.some(l=>o.is("element",l.model))&&!o.is("element",qm)&&0===o.childCount&&t.writer.rename(o,qm)})}_addDefaultH1Conversion(l){l.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:g.get("low")+1})}}var Pm=o(8733);Ht()(Pm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pm.Z.locals;class Bm extends qt{static get pluginName(){return"HeadingUI"}init(){const l=this.editor,n=l.t,e=function(l){const n=l.t,e={Paragraph:n("Paragraph"),"Heading 1":n("Heading 1"),"Heading 2":n("Heading 2"),"Heading 3":n("Heading 3"),"Heading 4":n("Heading 4"),"Heading 5":n("Heading 5"),"Heading 6":n("Heading 6")};return l.config.get("heading.options").map(l=>{const n=e[l.title];return n&&n!=l.title&&(l.title=n),l})}(l),t=n("Choose heading"),o=n("Heading");l.ui.componentFactory.add("heading",n=>{const u={},i=new Et,a=l.commands.get("heading"),r=l.commands.get("paragraph"),s=[a];for(const l of e){const n={type:"button",model:new Lc({label:l.title,class:l.class,withText:!0})};"paragraph"===l.model?(n.model.bind("isOn").to(r,"value"),n.model.set("commandName","paragraph"),s.push(r)):(n.model.bind("isOn").to(a,"value",n=>n===l.model),n.model.set({commandName:"heading",commandValue:l.model})),i.add(n),u[l.model]=l.title}const d=ac(n);return sc(d,i),d.buttonView.set({isOn:!1,withText:!0,tooltip:o}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(s,"isEnabled",(...l)=>l.some(l=>l)),d.buttonView.bind("label").to(a,"value",r,"value",(l,n)=>{const e=l||n&&"paragraph";return u[e]?u[e]:t}),this.listenTo(d,"execute",n=>{l.execute(n.source.commandName,n.source.commandValue?{value:n.source.commandValue}:void 0),l.editing.view.focus()}),d})}}class Vm extends Pt{refresh(){const l=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!l,this.isEnabled&&l.hasAttribute("alt")?this.value=l.getAttribute("alt"):this.value=!1}execute(l){const n=this.editor,e=n.plugins.get("ImageUtils"),t=n.model,o=e.getClosestSelectedImageElement(t.document.selection);t.change(n=>{n.setAttribute("alt",l.newValue,o)})}}function Um(l){return l.createContainerElement("figure",{class:"image"},[l.createEmptyElement("img"),l.createSlot()])}function Wm(l,n){const e=l.plugins.get("ImageUtils"),t=l.plugins.has("ImageInlineEditing")&&l.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?t&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==n?null:o(l):null;function o(l){const n={name:!0};return l.hasAttribute("src")&&(n.attributes=["src"]),n}}function Gm(l,n){const e=Ot(n.getSelectedBlocks());return!e||l.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}class jm extends qt{static get pluginName(){return"ImageUtils"}isImage(l){return this.isInlineImage(l)||this.isBlockImage(l)}isInlineImageView(l){return!!l&&l.is("element","img")}isBlockImageView(l){return!!l&&l.is("element","figure")&&l.hasClass("image")}insertImage(l={},n=null,e=null){const t=this.editor,o=t.model,u=o.document.selection;e=Hm(t,n||u,e),l={...Object.fromEntries(u.getAttributes()),...l};for(const i in l)o.schema.checkAttribute(e,i)||delete l[i];return o.change(t=>{const u=t.createElement(e,l);return o.insertObject(u,n,null,{setSelection:"on",findOptimalPosition:!n&&"imageInline"!=e}),u.parent?u:null})}getClosestSelectedImageWidget(l){const n=l.getFirstPosition();if(!n)return null;const e=l.getSelectedElement();if(e&&this.isImageWidget(e))return e;let t=n.parent;for(;t;){if(t.is("element")&&this.isImageWidget(t))return t;t=t.parent}return null}getClosestSelectedImageElement(l){const n=l.getSelectedElement();return this.isImage(n)?n:l.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const l=this.editor.model.document.selection;return function(l,n){if("imageBlock"==Hm(l,n)){const e=function(l,n){const e=jp(l,n).start.parent;return e.isEmpty&&!e.is("element","$root")?e.parent:e}(n,l.model);if(l.model.schema.checkChild(e,"imageBlock"))return!0}else if(l.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,l)&&function(l){return[...l.focus.getAncestors()].every(l=>!l.is("element","imageBlock"))}(l)}toImageWidget(l,n,e){return n.setCustomProperty("image",!0,l),Up(l,n,{label:()=>{const n=this.findViewImgElement(l).getAttribute("alt");return n?`${n} ${e}`:e}})}isImageWidget(l){return!!l.getCustomProperty("image")&&Vp(l)}isBlockImage(l){return!!l&&l.is("element","imageBlock")}isInlineImage(l){return!!l&&l.is("element","imageInline")}findViewImgElement(l){if(this.isInlineImageView(l))return l;const n=this.editor.editing.view;for(const{item:e}of n.createRangeIn(l))if(this.isInlineImageView(e))return e}}function Hm(l,n,e){const t=l.model.schema,o=l.config.get("image.insert.type");return l.plugins.has("ImageBlockEditing")?l.plugins.has("ImageInlineEditing")?e||("inline"===o?"imageInline":"block"===o?"imageBlock":n.is("selection")?Gm(t,n):t.checkChild(n,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Ym extends qt{static get requires(){return[jm]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Vm(this.editor))}}var Zm=o(1905);Ht()(Zm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zm.Z.locals;var Xm=o(6764);Ht()(Xm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xm.Z.locals;class $m extends rd{constructor(l){super(l);const n=this.locale.t;this.focusTracker=new St,this.keystrokes=new kt,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(n("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),Ld(this)}render(){super.render(),this.keystrokes.listenTo(this.element),Md({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}_createLabeledInputView(){const l=this.locale.t,n=new Cc(this.locale,wc);return n.label=l("Text alternative"),n}}function Km(l){const n=l.editing.view,e=pd.defaultPositions,t=l.plugins.get("ImageUtils");return{target:n.domConverter.mapViewToDom(t.getClosestSelectedImageWidget(n.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class Qm extends qt{static get requires(){return[Sc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const l=this.editor,n=l.t;l.ui.componentFactory.add("imageTextAlternative",e=>{const t=l.commands.get("imageTextAlternative"),o=new Id(e);return o.set({label:n("Change image text alternative"),icon:wd.lowVision,tooltip:!0}),o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",l=>!!l),this.listenTo(o,"execute",()=>{this._showForm()}),o})}_createForm(){const l=this.editor,n=l.editing.view.document,e=l.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new $m(l.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{l.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(l,n)=>{this._hideForm(!0),n()}),this.listenTo(l.ui,"update",()=>{e.getClosestSelectedImageWidget(n.selection)?this._isVisible&&function(l){const n=l.plugins.get("ContextualBalloon");if(l.plugins.get("ImageUtils").getClosestSelectedImageWidget(l.editing.view.document.selection)){const e=Km(l);n.updatePosition(e)}}(l):this._hideForm(!0)}),Rd({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const l=this.editor,n=l.commands.get("imageTextAlternative"),e=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Km(l)}),e.fieldView.value=e.fieldView.element.value=n.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(l){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),l&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class Jm extends qt{static get requires(){return[Ym,Qm]}static get pluginName(){return"ImageTextAlternative"}}function lh(l,n){return l=>{l.on(`attribute:srcset:${n}`,e)};function e(n,e,t){if(!t.consumable.consume(e.item,n.name))return;const o=t.writer,u=t.mapper.toViewElement(e.item),i=l.findViewImgElement(u);if(null===e.attributeNewValue){const l=e.attributeOldValue;l.data&&(o.removeAttribute("srcset",i),o.removeAttribute("sizes",i),l.width&&o.removeAttribute("width",i))}else{const l=e.attributeNewValue;l.data&&(o.setAttribute("srcset",l.data,i),o.setAttribute("sizes","100vw",i),l.width&&o.setAttribute("width",l.width,i))}}}function nh(l,n,e){return l=>{l.on(`attribute:${e}:${n}`,t)};function t(n,e,t){if(!t.consumable.consume(e.item,n.name))return;const o=t.writer,u=t.mapper.toViewElement(e.item),i=l.findViewImgElement(u);o.setAttribute(e.attributeKey,e.attributeNewValue||"",i)}}class eh extends ni{observe(l){this.listenTo(l,"load",(l,n)=>{const e=n.target;this.checkShouldIgnoreEventFromTarget(e)||"IMG"==e.tagName&&this._fireEvents(n)},{useCapture:!0})}_fireEvents(l){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",l))}}class th extends Pt{constructor(l){super(l);const n=l.config.get("image.insert.type");l.plugins.has("ImageBlockEditing")||"block"===n&&y("image-block-plugin-required"),l.plugins.has("ImageInlineEditing")||"inline"===n&&y("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(l){const n=wt(l.source),e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(e.getAttributes());n.forEach((l,n)=>{const u=e.getSelectedElement();if("string"==typeof l&&(l={src:l}),n&&u&&t.isImage(u)){const n=this.editor.model.createPositionAfter(u);t.insertImage({...l,...o},n)}else t.insertImage({...l,...o})})}}class oh extends qt{static get requires(){return[jm]}static get pluginName(){return"ImageEditing"}init(){const l=this.editor,n=l.conversion;l.editing.view.addObserver(eh),n.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:l=>{const n={data:l.getAttribute("srcset")};return l.hasAttribute("width")&&(n.width=l.getAttribute("width")),n}}});const e=new th(l);l.commands.add("insertImage",e),l.commands.add("imageInsert",e)}}class uh extends Pt{constructor(l,n){super(l),this._modelElementName=n}refresh(){const l=this.editor.plugins.get("ImageUtils"),n=l.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=l.isInlineImage(n):this.isEnabled=l.isBlockImage(n)}execute(){const l=this.editor,n=this.editor.model,e=l.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(t.getAttributes());return o.src||o.uploadId?n.change(l=>{const u=Array.from(n.markers).filter(l=>l.getRange().containsItem(t)),i=e.insertImage(o,n.createSelection(t,"on"),this._modelElementName);if(!i)return null;const a=l.createRangeOn(i);for(const n of u){const e=n.getRange(),t="$graveyard"!=e.root.rootName?e.getJoined(a,!0):a;l.updateMarker(n,{range:t})}return{oldElement:t,newElement:i}}):null}}class ih extends qt{static get requires(){return[oh,jm,jc]}static get pluginName(){return"ImageBlockEditing"}init(){const l=this.editor;l.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),l.plugins.has("ImageInlineEditing")&&(l.commands.add("imageTypeBlock",new uh(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const l=this.editor,n=l.t,e=l.conversion,t=l.plugins.get("ImageUtils");e.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:n})=>Um(n)}),e.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:e})=>t.toImageWidget(Um(e),e,n("image widget"))}),e.for("downcast").add(nh(t,"imageBlock","src")).add(nh(t,"imageBlock","alt")).add(lh(t,"imageBlock")),e.for("upcast").elementToElement({view:Wm(l,"imageBlock"),model:(l,{writer:n})=>n.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:null)}).add(function(l){return l=>{l.on("element:figure",n)};function n(n,e,t){if(!t.consumable.test(e.viewItem,{name:!0,classes:"image"}))return;const o=l.findViewImgElement(e.viewItem);if(!o||!t.consumable.test(o,{name:!0}))return;t.consumable.consume(e.viewItem,{name:!0,classes:"image"});const u=Ot(t.convertItem(o,e.modelCursor).modelRange.getItems());u?(t.convertChildren(e.viewItem,u),t.updateConversionResult(u,e)):t.consumable.revert(e.viewItem,{name:!0,classes:"image"})}}(t))}_setupClipboardIntegration(){const l=this.editor,n=l.model,e=l.editing.view,t=l.plugins.get("ImageUtils");this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(o,u)=>{const i=Array.from(u.content.getChildren());let a;if(!i.every(t.isInlineImageView))return;a=u.targetRanges?l.editing.mapper.toModelRange(u.targetRanges[0]):n.document.selection.getFirstRange();const r=n.createSelection(a);if("imageBlock"===Gm(n.schema,r)){const l=new Ns(e.document),n=i.map(n=>l.createElement("figure",{class:"image"},n));u.content=l.createDocumentFragment(n)}})}}var ah=o(3508);Ht()(ah.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ah.Z.locals;class rh extends qt{static get requires(){return[ih,of,Jm]}static get pluginName(){return"ImageBlock"}}class sh extends qt{static get requires(){return[oh,jm,jc]}static get pluginName(){return"ImageInlineEditing"}init(){const l=this.editor,n=l.model.schema;n.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),n.addChildCheck((l,n)=>{if(l.endsWith("caption")&&"imageInline"===n.name)return!1}),this._setupConversion(),l.plugins.has("ImageBlockEditing")&&(l.commands.add("imageTypeInline",new uh(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const l=this.editor,n=l.t,e=l.conversion,t=l.plugins.get("ImageUtils");e.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:n})=>n.createEmptyElement("img")}),e.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:e})=>t.toImageWidget(function(l){return l.createContainerElement("span",{class:"image-inline"},l.createEmptyElement("img"))}(e),e,n("image widget"))}),e.for("downcast").add(nh(t,"imageInline","src")).add(nh(t,"imageInline","alt")).add(lh(t,"imageInline")),e.for("upcast").elementToElement({view:Wm(l,"imageInline"),model:(l,{writer:n})=>n.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:null)})}_setupClipboardIntegration(){const l=this.editor,n=l.model,e=l.editing.view,t=l.plugins.get("ImageUtils");this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(o,u)=>{const i=Array.from(u.content.getChildren());let a;if(!i.every(t.isBlockImageView))return;a=u.targetRanges?l.editing.mapper.toModelRange(u.targetRanges[0]):n.document.selection.getFirstRange();const r=n.createSelection(a);if("imageInline"===Gm(n.schema,r)){const l=new Ns(e.document),n=i.map(n=>1===n.childCount?(Array.from(n.getAttributes()).forEach(e=>l.setAttribute(...e,t.findViewImgElement(n))),n.getChild(0)):n);u.content=l.createDocumentFragment(n)}})}}class dh extends qt{static get requires(){return[sh,of,Jm]}static get pluginName(){return"ImageInline"}}class ch extends Pt{refresh(){const l=this.editor,n=l.plugins.get("ImageCaptionUtils");if(!l.plugins.has(ih))return this.isEnabled=!1,void(this.value=!1);const e=l.model.document.selection,t=e.getSelectedElement();if(!t){const l=n.getCaptionFromModelSelection(e);return this.isEnabled=!!l,void(this.value=!!l)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(t),this.isEnabled?this.value=!!n.getCaptionFromImageModelElement(t):this.value=!1}execute(l={}){const{focusCaptionOnShow:n}=l;this.editor.model.change(l=>{this.value?this._hideImageCaption(l):this._showImageCaption(l,n)})}_showImageCaption(l,n){const e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageCaptionEditing");let o=e.getSelectedElement();const u=t._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=e.getSelectedElement());const i=u||l.createElement("caption");l.append(i,o),n&&l.setSelection(i,"in")}_hideImageCaption(l){const n=this.editor,e=n.model.document.selection,t=n.plugins.get("ImageCaptionEditing"),o=n.plugins.get("ImageCaptionUtils");let u,i=e.getSelectedElement();i?u=o.getCaptionFromImageModelElement(i):i=(u=o.getCaptionFromModelSelection(e)).parent,t._saveCaption(i,u),l.setSelection(i,"on"),l.remove(u)}}class ph extends qt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[jm]}getCaptionFromImageModelElement(l){for(const n of l.getChildren())if(n&&n.is("element","caption"))return n;return null}getCaptionFromModelSelection(l){const n=this.editor.plugins.get("ImageUtils"),e=l.getFirstPosition().findAncestor("caption");return e&&n.isBlockImage(e.parent)?e:null}matchImageCaptionViewElement(l){const n=this.editor.plugins.get("ImageUtils");return"figcaption"==l.name&&n.isBlockImageView(l.parent)?{name:!0}:null}}class fh extends qt{static get requires(){return[jm,ph]}static get pluginName(){return"ImageCaptionEditing"}constructor(l){super(l),this._savedCaptionsMap=new WeakMap}init(){const l=this.editor,n=l.model.schema;n.isRegistered("caption")?n.extend("caption",{allowIn:"imageBlock"}):n.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),l.commands.add("toggleImageCaption",new ch(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const l=this.editor,n=l.editing.view,e=l.plugins.get("ImageUtils"),t=l.plugins.get("ImageCaptionUtils"),o=l.t;l.conversion.for("upcast").elementToElement({view:l=>t.matchImageCaptionViewElement(l),model:"caption"}),l.conversion.for("dataDowncast").elementToElement({model:"caption",view:(l,{writer:n})=>e.isBlockImage(l.parent)?n.createContainerElement("figcaption"):null}),l.conversion.for("editingDowncast").elementToElement({model:"caption",view:(l,{writer:t})=>{if(!e.isBlockImage(l.parent))return null;const u=t.createEditableElement("figcaption");t.setCustomProperty("imageCaption",!0,u),Xt({view:n,element:u,text:o("Enter image caption"),keepOnFocus:!0});const i=l.parent.getAttribute("alt");return Gp(u,t,{label:i?o("Caption for image: %0",[i]):o("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const l=this.editor,n=l.plugins.get("ImageUtils"),e=l.plugins.get("ImageCaptionUtils"),t=l.commands.get("imageTypeInline"),o=l.commands.get("imageTypeBlock"),u=l=>{if(!l.return)return;const{oldElement:t,newElement:o}=l.return;if(!t)return;if(n.isBlockImage(t)){const l=e.getCaptionFromImageModelElement(t);if(l)return void this._saveCaption(o,l)}const u=this._getSavedCaption(t);u&&this._saveCaption(o,u)};t&&this.listenTo(t,"execute",u,{priority:"low"}),o&&this.listenTo(o,"execute",u,{priority:"low"})}_getSavedCaption(l){const n=this._savedCaptionsMap.get(l);return n?Ki.fromJSON(n):null}_saveCaption(l,n){this._savedCaptionsMap.set(l,n.toJSON())}_registerCaptionReconversion(){const l=this.editor,n=l.model,e=l.plugins.get("ImageUtils"),t=l.plugins.get("ImageCaptionUtils");n.document.on("change:data",()=>{const o=n.document.differ.getChanges();for(const n of o){if("alt"!==n.attributeKey)continue;const o=n.range.start.nodeAfter;if(e.isBlockImage(o)){const n=t.getCaptionFromImageModelElement(o);if(!n)return;l.editing.reconvertItem(n)}}})}}class mh extends qt{static get requires(){return[ph]}static get pluginName(){return"ImageCaptionUI"}init(){const l=this.editor,n=l.editing.view,e=l.plugins.get("ImageCaptionUtils"),t=l.t;l.ui.componentFactory.add("toggleImageCaption",o=>{const u=l.commands.get("toggleImageCaption"),i=new Id(o);return i.set({icon:wd.caption,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),i.bind("label").to(u,"value",l=>t(l?"Toggle caption off":"Toggle caption on")),this.listenTo(i,"execute",()=>{l.execute("toggleImageCaption",{focusCaptionOnShow:!0});const t=e.getCaptionFromModelSelection(l.model.document.selection);if(t){const e=l.editing.mapper.toViewElement(t);n.scrollToTheSelection(),n.change(l=>{l.addClass("image__caption_highlighted",e)})}l.editing.view.focus()}),i})}}var hh=o(2640);Ht()(hh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hh.Z.locals;class gh extends Pt{constructor(l,n){super(l),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(n.map(l=>{if(l.isDefault)for(const n of l.modelElements)this._defaultStyles[n]=l.name;return[l.name,l]}))}refresh(){const l=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!l,this.isEnabled?l.hasAttribute("imageStyle")?this.value=l.getAttribute("imageStyle"):this.value=this._defaultStyles[l.name]:this.value=!1}execute(l={}){const n=this.editor,e=n.model,t=n.plugins.get("ImageUtils");e.change(n=>{const o=l.value;let u=t.getClosestSelectedImageElement(e.document.selection);o&&this.shouldConvertImageType(o,u)&&(this.editor.execute(t.isBlockImage(u)?"imageTypeInline":"imageTypeBlock"),u=t.getClosestSelectedImageElement(e.document.selection)),!o||this._styles.get(o).isDefault?n.removeAttribute("imageStyle",u):n.setAttribute("imageStyle",o,u)})}shouldConvertImageType(l,n){return!this._styles.get(l).modelElements.includes(n.name)}}const{objectFullWidth:vh,objectInline:bh,objectLeft:yh,objectRight:xh,objectCenter:Ah,objectBlockLeft:_h,objectBlockRight:Ch}=wd,wh={get inline(){return{name:"inline",title:"In line",icon:bh,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:yh,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:_h,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Ah,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:xh,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Ch,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Ah,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:xh,modelElements:["imageBlock"],className:"image-style-side"}}},Rh={full:vh,left:_h,right:Ch,center:Ah,inlineLeft:yh,inlineRight:xh,inline:bh},Lh=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mh(l){y("image-style-configuration-definition-invalid",l)}const Eh={normalizeStyles:function(l){return(l.configuredStyles.options||[]).map(l=>(function(l){return"string"==typeof(l="string"==typeof l?wh[l]?{...wh[l]}:{name:l}:function(l,n){const e={...n};for(const t in l)Object.prototype.hasOwnProperty.call(n,t)||(e[t]=l[t]);return e}(wh[l.name],l)).icon&&(l.icon=Rh[l.icon]||l.icon),l})(l)).filter(n=>(function(l,{isBlockPluginLoaded:n,isInlinePluginLoaded:e}){const{modelElements:t,name:o}=l;if(!(t&&t.length&&o))return Mh({style:l}),!1;{const o=[n?"imageBlock":null,e?"imageInline":null];if(!t.some(l=>o.includes(l)))return y("image-style-missing-dependency",{style:l,missingPlugins:t.map(l=>"imageBlock"===l?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0})(n,l))},getDefaultStylesConfiguration:function(l,n){return l&&n?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:l?{options:["block","side"]}:n?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(l){return l.has("ImageBlockEditing")&&l.has("ImageInlineEditing")?[...Lh]:[]},warnInvalidStyle:Mh,DEFAULT_OPTIONS:wh,DEFAULT_ICONS:Rh,DEFAULT_DROPDOWN_DEFINITIONS:Lh};function Oh(l,n){for(const e of n)if(e.name===l)return e}class Sh extends qt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[jm]}init(){const{normalizeStyles:l,getDefaultStylesConfiguration:n}=Eh,e=this.editor,t=e.plugins.has("ImageBlockEditing"),o=e.plugins.has("ImageInlineEditing");e.config.define("image.styles",n(t,o)),this.normalizedStyles=l({configuredStyles:e.config.get("image.styles"),isBlockPluginLoaded:t,isInlinePluginLoaded:o}),this._setupConversion(t,o),this._setupPostFixer(),e.commands.add("imageStyle",new gh(e,this.normalizedStyles))}_setupConversion(l,n){const e=this.editor,t=e.model.schema,o=(u=this.normalizedStyles,(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=Oh(n.attributeNewValue,u),o=Oh(n.attributeOldValue,u),i=e.mapper.toViewElement(n.item),a=e.writer;o&&a.removeClass(o.className,i),t&&a.addClass(t.className,i)});var u;const i=function(l){const n={imageInline:l.filter(l=>!l.isDefault&&l.modelElements.includes("imageInline")),imageBlock:l.filter(l=>!l.isDefault&&l.modelElements.includes("imageBlock"))};return(l,e,t)=>{if(!e.modelRange)return;const o=e.viewItem,u=Ot(e.modelRange.getItems());if(u&&t.schema.checkAttribute(u,"imageStyle"))for(const i of n[u.name])t.consumable.consume(o,{classes:i.className})&&t.writer.setAttribute("imageStyle",i.name,u)}}(this.normalizedStyles);e.editing.downcastDispatcher.on("attribute:imageStyle",o),e.data.downcastDispatcher.on("attribute:imageStyle",o),l&&(t.extend("imageBlock",{allowAttributes:"imageStyle"}),e.data.upcastDispatcher.on("element:figure",i,{priority:"low"})),n&&(t.extend("imageInline",{allowAttributes:"imageStyle"}),e.data.upcastDispatcher.on("element:img",i,{priority:"low"}))}_setupPostFixer(){const l=this.editor,n=l.model.document,e=l.plugins.get(jm),t=new Map(this.normalizedStyles.map(l=>[l.name,l]));n.registerPostFixer(l=>{let o=!1;for(const u of n.differ.getChanges())if("insert"==u.type||"attribute"==u.type&&"imageStyle"==u.attributeKey){let n="insert"==u.type?u.position.nodeAfter:u.range.start.nodeAfter;if(n&&n.is("element","paragraph")&&n.childCount>0&&(n=n.getChild(0)),!e.isImage(n))continue;const i=n.getAttribute("imageStyle");if(!i)continue;const a=t.get(i);a&&a.modelElements.includes(n.name)||(l.removeAttribute("imageStyle",n),o=!0)}return o})}}var kh=o(5083);Ht()(kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),kh.Z.locals;class Ih extends qt{static get requires(){return[Sh]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const l=this.editor.t;return{"Wrap text":l("Wrap text"),"Break text":l("Break text"),"In line":l("In line"),"Full size image":l("Full size image"),"Side image":l("Side image"),"Left aligned image":l("Left aligned image"),"Centered image":l("Centered image"),"Right aligned image":l("Right aligned image")}}init(){const l=this.editor.plugins,n=this.editor.config.get("image.toolbar")||[],e=Fh(l.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const o of e)this._createButton(o);const t=Fh([...n.filter(D),...Eh.getDefaultDropdownDefinitions(l)],this.localizedDefaultStylesTitles);for(const o of t)this._createDropdown(o,e)}_createDropdown(l,n){const e=this.editor.ui.componentFactory;e.add(l.name,t=>{let o;const{defaultItem:u,items:i,title:a}=l,r=i.filter(l=>n.find(({name:n})=>Nh(n)===l)).map(l=>{const n=e.create(l);return l===u&&(o=n),n});i.length!==r.length&&Eh.warnInvalidStyle({dropdown:l});const s=ac(t,Pd),d=s.buttonView,c=d.arrowView;return rc(s,r,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:Dh(a,o.label),class:null,tooltip:!0}),c.unbind("label"),c.set({label:a}),d.bind("icon").toMany(r,"isOn",(...l)=>{const n=l.findIndex(ko);return n<0?o.icon:r[n].icon}),d.bind("label").toMany(r,"isOn",(...l)=>{const n=l.findIndex(ko);return Dh(a,n<0?o.label:r[n].label)}),d.bind("isOn").toMany(r,"isOn",(...l)=>l.some(ko)),d.bind("class").toMany(r,"isOn",(...l)=>l.some(ko)?"ck-splitbutton_flatten":null),d.on("execute",()=>{r.some(({isOn:l})=>l)?s.isOpen=!s.isOpen:o.fire("execute")}),s.bind("isEnabled").toMany(r,"isEnabled",(...l)=>l.some(ko)),this.listenTo(s,"execute",()=>{this.editor.editing.view.focus()}),s})}_createButton(l){const n=l.name;this.editor.ui.componentFactory.add(Nh(n),e=>{const t=this.editor.commands.get("imageStyle"),o=new Id(e);return o.set({label:l.title,icon:l.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",l=>l===n),o.on("execute",this._executeCommand.bind(this,n)),o})}_executeCommand(l){this.editor.execute("imageStyle",{value:l}),this.editor.editing.view.focus()}}function Fh(l,n){for(const e of l)n[e.title]&&(e.title=n[e.title]);return l}function Nh(l){return`imageStyle:${l}`}function Dh(l,n){return(l?l+": ":"")+n}function zh(l){const n=l.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${n.join("|")})$`)}function qh(l){return new Promise((n,e)=>{const t=l.getAttribute("src");fetch(t).then(l=>l.blob()).then(l=>{const e=Th(l,t),o=e.replace("image/",""),u=new File([l],`image.${o}`,{type:e});n(u)}).catch(l=>l&&"TypeError"===l.name?function(l){return function(l){return new Promise((n,e)=>{const t=Ve.document.createElement("img");t.addEventListener("load",()=>{const l=Ve.document.createElement("canvas");l.width=t.width,l.height=t.height,l.getContext("2d").drawImage(t,0,0),l.toBlob(l=>l?n(l):e())}),t.addEventListener("error",()=>e()),t.src=l})}(l).then(n=>{const e=Th(n,l),t=e.replace("image/","");return new File([n],`image.${t}`,{type:e})})}(t).then(n).catch(e):e(l))})}function Th(l,n){return l.type?l.type:n.match(/data:(image\/\w+);base64/)?n.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Ph extends qt{static get pluginName(){return"ImageUploadUI"}init(){const l=this.editor,n=l.t,e=e=>{const t=new Pf(e),o=l.commands.get("uploadImage"),u=l.config.get("image.upload.types"),i=zh(u);return t.set({acceptedType:u.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0}),t.buttonView.set({label:n("Insert image"),icon:wd.image,tooltip:!0}),t.buttonView.bind("isEnabled").to(o),t.on("done",(n,e)=>{const t=Array.from(e).filter(l=>i.test(l.type));t.length&&(l.execute("uploadImage",{file:t}),l.editing.view.focus())}),t};l.ui.componentFactory.add("uploadImage",e),l.ui.componentFactory.add("imageUpload",e)}}var Bh=o(3689);Ht()(Bh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bh.Z.locals;var Vh=o(4036);Ht()(Vh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vh.Z.locals;var Uh=o(3773);Ht()(Uh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Uh.Z.locals;class Wh extends qt{static get pluginName(){return"ImageUploadProgress"}constructor(l){super(l),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const l=this.editor;l.plugins.has("ImageBlockEditing")&&l.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(...l)=>this.uploadStatusChange(...l)),l.plugins.has("ImageInlineEditing")&&l.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(...l)=>this.uploadStatusChange(...l))}uploadStatusChange(l,n,e){const t=this.editor,o=n.item,u=o.getAttribute("uploadId");if(!e.consumable.consume(n.item,l.name))return;const i=t.plugins.get("ImageUtils"),a=t.plugins.get(qf),r=u?n.attributeNewValue:null,s=this.placeholder,d=t.editing.mapper.toViewElement(o),c=e.writer;if("reading"==r)return Gh(d,c),void jh(i,s,d,c);if("uploading"==r){const l=a.loaders.get(u);return Gh(d,c),void(l?(Hh(d,c),function(l,n,e,t){const o=function(l){const n=l.createUIElement("div",{class:"ck-progress-bar"});return l.setCustomProperty("progressBar",!0,n),n}(n);n.insert(n.createPositionAt(l,"end"),o),e.on("change:uploadedPercent",(l,n,e)=>{t.change(l=>{l.setStyle("width",e+"%",o)})})}(d,c,l,t.editing.view),function(l,n,e,t){if(t.data){const o=l.findViewImgElement(n);e.setAttribute("src",t.data,o)}}(i,d,c,l)):jh(i,s,d,c))}"complete"==r&&a.loaders.get(u)&&function(l,n,e){const t=n.createUIElement("div",{class:"ck-image-upload-complete-icon"});n.insert(n.createPositionAt(l,"end"),t),setTimeout(()=>{e.change(l=>l.remove(l.createRangeOn(t)))},3e3)}(d,c,t.editing.view),Zh(d,c,"progressBar"),Hh(d,c),function(l,n){c.removeClass("ck-appear",l)}(d)}}function Gh(l,n){l.hasClass("ck-appear")||n.addClass("ck-appear",l)}function jh(l,n,e,t){e.hasClass("ck-image-upload-placeholder")||t.addClass("ck-image-upload-placeholder",e);const o=l.findViewImgElement(e);o.getAttribute("src")!==n&&t.setAttribute("src",n,o),Yh(e,"placeholder")||t.insert(t.createPositionAfter(o),function(l){const n=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,n),n}(t))}function Hh(l,n){l.hasClass("ck-image-upload-placeholder")&&n.removeClass("ck-image-upload-placeholder",l),Zh(l,n,"placeholder")}function Yh(l,n){for(const e of l.getChildren())if(e.getCustomProperty(n))return e}function Zh(l,n,e){const t=Yh(l,e);t&&n.remove(n.createRangeOn(t))}class Xh extends Pt{refresh(){const l=this.editor,n=l.plugins.get("ImageUtils"),e=l.model.document.selection.getSelectedElement();this.isEnabled=n.isImageAllowed()||n.isImage(e)}execute(l){const n=wt(l.file),e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(e.getAttributes());n.forEach((l,n)=>{const u=e.getSelectedElement();if(n&&u&&t.isImage(u)){const n=this.editor.model.createPositionAfter(u);this._uploadImage(l,o,n)}else this._uploadImage(l,o)})}_uploadImage(l,n,e){const t=this.editor,o=t.plugins.get(qf).createLoader(l),u=t.plugins.get("ImageUtils");o&&u.insertImage({...n,uploadId:o.id},e)}}class $h extends qt{static get requires(){return[qf,Rc,jc,jm]}static get pluginName(){return"ImageUploadEditing"}constructor(l){super(l),l.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const l=this.editor,n=l.model.document,e=l.conversion,t=l.plugins.get(qf),o=l.plugins.get("ImageUtils"),u=zh(l.config.get("image.upload.types")),i=new Xh(l);l.commands.add("uploadImage",i),l.commands.add("imageUpload",i),e.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(l.editing.view.document,"clipboardInput",(n,e)=>{if(t=e.dataTransfer,Array.from(t.types).includes("text/html")&&""!==t.getData("text/html"))return;var t;const o=Array.from(e.dataTransfer.files).filter(l=>!!l&&u.test(l.type));o.length&&(n.stop(),l.model.change(n=>{e.targetRanges&&n.setSelection(e.targetRanges.map(n=>l.editing.mapper.toModelRange(n))),l.model.enqueueChange(()=>{l.execute("uploadImage",{file:o})})}))}),this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(n,e)=>{const u=Array.from(l.editing.view.createRangeIn(e.content)).filter(l=>(function(l,n){return!(!l.isInlineImageView(n)||!n.getAttribute("src"))&&(n.getAttribute("src").match(/^data:image\/\w+;base64,/g)||n.getAttribute("src").match(/^blob:/g))})(o,l.item)&&!l.item.getAttribute("uploadProcessed")).map(l=>({promise:qh(l.item),imageElement:l.item}));if(!u.length)return;const i=new Ns(l.editing.view.document);for(const l of u){i.setAttribute("uploadProcessed",!0,l.imageElement);const n=t.createLoader(l.promise);n&&(i.setAttribute("src","",l.imageElement),i.setAttribute("uploadId",n.id,l.imageElement))}}),l.editing.view.document.on("dragover",(l,n)=>{n.preventDefault()}),n.on("change",()=>{const e=n.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(const n of e)if("insert"==n.type&&"$text"!=n.name){const e=n.position.nodeAfter,u="$graveyard"==n.position.root.rootName;for(const n of Kh(l,e)){const l=n.getAttribute("uploadId");if(!l)continue;const e=t.loaders.get(l);e&&(u?o.has(l)||e.abort():(o.add(l),this._uploadImageElements.set(l,n),"idle"==e.status&&this._readAndUpload(e)))}}}),this.on("uploadComplete",(l,{imageElement:n,data:e})=>{const t=e.urls?e.urls:e;this.editor.model.change(l=>{l.setAttribute("src",t.default,n),this._parseAndSetSrcsetAttributeOnImage(t,n,l)})},{priority:"low"})}afterInit(){const l=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&l.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&l.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(l){const n=this.editor,e=n.model,o=n.locale.t,u=n.plugins.get(qf),i=n.plugins.get(Rc),a=n.plugins.get("ImageUtils"),r=this._uploadImageElements;return e.enqueueChange({isUndoable:!1},n=>{n.setAttribute("uploadStatus","reading",r.get(l.id))}),l.read().then(()=>{const o=l.upload(),u=r.get(l.id);if(t.isSafari){const l=n.editing.mapper.toViewElement(u),e=a.findViewImgElement(l);n.editing.view.once("render",()=>{if(!e.parent)return;const l=n.editing.view.domConverter.mapViewToDom(e.parent);if(!l)return;const t=l.style.display;l.style.display="none",l._ckHack=l.offsetHeight,l.style.display=t})}return e.enqueueChange({isUndoable:!1},l=>{l.setAttribute("uploadStatus","uploading",u)}),o}).then(n=>{e.enqueueChange({isUndoable:!1},e=>{const t=r.get(l.id);e.setAttribute("uploadStatus","complete",t),this.fire("uploadComplete",{data:n,imageElement:t})}),s()}).catch(n=>{if("error"!==l.status&&"aborted"!==l.status)throw n;"error"==l.status&&n&&i.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),e.enqueueChange({isUndoable:!1},n=>{n.remove(r.get(l.id))}),s()});function s(){e.enqueueChange({isUndoable:!1},n=>{const e=r.get(l.id);n.removeAttribute("uploadId",e),n.removeAttribute("uploadStatus",e),r.delete(l.id)}),u.destroyLoader(l)}}_parseAndSetSrcsetAttributeOnImage(l,n,e){let t=0;const o=Object.keys(l).filter(l=>{const n=parseInt(l,10);if(!isNaN(n))return t=Math.max(t,n),!0}).map(n=>`${l[n]} ${n}w`).join(", ");""!=o&&e.setAttribute("srcset",{data:o,width:t},n)}}function Kh(l,n){const e=l.plugins.get("ImageUtils");return Array.from(l.model.createRangeOn(n)).filter(l=>e.isImage(l.item)).map(l=>l.item)}class Qh extends qt{static get pluginName(){return"IndentEditing"}init(){const l=this.editor;l.commands.add("indent",new Vt(l)),l.commands.add("outdent",new Vt(l))}}const Jh='',lg='';class ng extends qt{static get pluginName(){return"IndentUI"}init(){const l=this.editor,n=l.locale,e=l.t,t="ltr"==n.uiLanguageDirection?Jh:lg,o="ltr"==n.uiLanguageDirection?lg:Jh;this._defineButton("indent",e("Increase indent"),t),this._defineButton("outdent",e("Decrease indent"),o)}_defineButton(l,n,e){const t=this.editor;t.ui.componentFactory.add(l,o=>{const u=t.commands.get(l),i=new Id(o);return i.set({label:n,icon:e,tooltip:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),this.listenTo(i,"execute",()=>{t.execute(l),t.editing.view.focus()}),i})}}class eg{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(l){Array.isArray(l)?l.forEach(l=>this._definitions.add(l)):this._definitions.add(l)}getDispatcher(){return l=>{l.on("attribute:linkHref",(l,n,e)=>{if(!e.consumable.test(n.item,"attribute:linkHref"))return;if(!n.item.is("selection")&&!e.schema.isInline(n.item))return;const t=e.writer,o=t.document.selection;for(const u of this._definitions){const l=t.createAttributeElement("a",u.attributes,{priority:5});u.classes&&t.addClass(u.classes,l);for(const n in u.styles)t.setStyle(n,u.styles[n],l);t.setCustomProperty("link",!0,l),u.callback(n.attributeNewValue)?n.item.is("selection")?t.wrap(o.getFirstRange(),l):t.wrap(e.mapper.toViewRange(n.range),l):t.unwrap(e.mapper.toViewRange(n.range),l)}},{priority:"high"})}}getDispatcherForLinkedImage(){return l=>{l.on("attribute:linkHref:imageBlock",(l,n,{writer:e,mapper:t})=>{const o=t.toViewElement(n.item),u=Array.from(o.getChildren()).find(l=>"a"===l.name);for(const i of this._definitions){const l=It(i.attributes);if(i.callback(n.attributeNewValue)){for(const[n,t]of l)"class"===n?e.addClass(t,u):e.setAttribute(n,t,u);i.classes&&e.addClass(i.classes,u);for(const l in i.styles)e.setStyle(l,i.styles[l],u)}else{for(const[n,t]of l)"class"===n?e.removeClass(t,u):e.removeAttribute(n,u);i.classes&&e.removeClass(i.classes,u);for(const l in i.styles)e.removeStyle(l,u)}}})}}}var tg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const og=function(l){return tg.test(l)};var ug="\\ud800-\\udfff",ig="["+ug+"]",ag="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rg="\\ud83c[\\udffb-\\udfff]",sg="[^"+ug+"]",dg="(?:\\ud83c[\\udde6-\\uddff]){2}",cg="[\\ud800-\\udbff][\\udc00-\\udfff]",pg="(?:"+ag+"|"+rg+")?",fg="[\\ufe0e\\ufe0f]?",mg=fg+pg+"(?:\\u200d(?:"+[sg,dg,cg].join("|")+")"+fg+pg+")*",hg="(?:"+[sg+ag+"?",ag,dg,cg,ig].join("|")+")",gg=RegExp(rg+"(?="+rg+")|"+hg+mg,"g");const vg=function(l){return og(l)?function(l){return l.match(gg)||[]}(l):function(l){return l.split("")}(l)},bg=function(l){return function(l){l=yo(l);var n=og(l)?vg(l):void 0,e=n?n[0]:l.charAt(0),t=n?function(l,n,e){var t=l.length;return e=void 0===e?t:e,!n&&e>=t?l:Co(l,n,e)}(n,1).join(""):l.slice(1);return e.toUpperCase()+t}}(),yg=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,xg=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Ag=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,_g=/^((\w+:(\/{2,})?)|(\W))/i,Cg="Ctrl+K";function wg(l,{writer:n}){const e=n.createAttributeElement("a",{href:l},{priority:5});return n.setCustomProperty("link",!0,e),e}function Rg(l){return function(l){return l.replace(yg,"").match(xg)}(l=String(l))?l:"#"}function Lg(l,n){return!!l&&n.checkAttribute(l.name,"linkHref")}function Mg(l,n){const e=(t=l,Ag.test(t)?"mailto:":n);var t;const o=!!e&&!Eg(l);return l&&o?e+l:l}function Eg(l){return _g.test(l)}function Og(l){window.open(l,"_blank","noopener")}class Sg extends Pt{constructor(l){super(l),this.manualDecorators=new Et,this.automaticDecorators=new eg}restoreManualDecoratorStates(){for(const l of this.manualDecorators)l.value=this._getDecoratorStateFromModel(l.id)}refresh(){const l=this.editor.model,n=l.document.selection,e=n.getSelectedElement()||Ot(n.getSelectedBlocks());Lg(e,l.schema)?(this.value=e.getAttribute("linkHref"),this.isEnabled=l.schema.checkAttribute(e,"linkHref")):(this.value=n.getAttribute("linkHref"),this.isEnabled=l.schema.checkAttributeInSelection(n,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(l,n={}){const e=this.editor.model,t=e.document.selection,o=[],u=[];for(const i in n)n[i]?o.push(i):u.push(i);e.change(n=>{if(t.isCollapsed){const i=t.getFirstPosition();if(t.hasAttribute("linkHref")){const a=Cp(i,"linkHref",t.getAttribute("linkHref"),e);n.setAttribute("linkHref",l,a),o.forEach(l=>{n.setAttribute(l,!0,a)}),u.forEach(l=>{n.removeAttribute(l,a)}),n.setSelection(n.createPositionAfter(a.end.nodeBefore))}else if(""!==l){const u=It(t.getAttributes());u.set("linkHref",l),o.forEach(l=>{u.set(l,!0)});const{end:a}=e.insertContent(n.createText(l,u),i);n.setSelection(a)}["linkHref",...o,...u].forEach(l=>{n.removeSelectionAttribute(l)})}else{const i=e.schema.getValidRanges(t.getRanges(),"linkHref"),a=[];for(const l of t.getSelectedBlocks())e.schema.checkAttribute(l,"linkHref")&&a.push(n.createRangeOn(l));const r=a.slice();for(const l of i)this._isRangeToUpdate(l,a)&&r.push(l);for(const e of r)n.setAttribute("linkHref",l,e),o.forEach(l=>{n.setAttribute(l,!0,e)}),u.forEach(l=>{n.removeAttribute(l,e)})}})}_getDecoratorStateFromModel(l){const n=this.editor.model,e=n.document.selection,t=e.getSelectedElement();return Lg(t,n.schema)?t.getAttribute(l):e.getAttribute(l)}_isRangeToUpdate(l,n){for(const e of n)if(e.containsRange(l))return!1;return!0}}class kg extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=n.getSelectedElement();Lg(e,l.schema)?this.isEnabled=l.schema.checkAttribute(e,"linkHref"):this.isEnabled=l.schema.checkAttributeInSelection(n,"linkHref")}execute(){const l=this.editor,n=this.editor.model,e=n.document.selection,t=l.commands.get("link");n.change(l=>{const o=e.isCollapsed?[Cp(e.getFirstPosition(),"linkHref",e.getAttribute("linkHref"),n)]:n.schema.getValidRanges(e.getRanges(),"linkHref");for(const n of o)if(l.removeAttribute("linkHref",n),t)for(const e of t.manualDecorators)l.removeAttribute(e.id,n)})}}class Ig{constructor({id:l,label:n,attributes:e,classes:t,styles:o,defaultValue:u}){this.id=l,this.set("value"),this.defaultValue=u,this.label=n,this.attributes=e,this.classes=t,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}c(Ig,U);var Fg=o(9773);Ht()(Fg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fg.Z.locals;const Ng="automatic",Dg=/^(https?:)?\/\//;class zg extends qt{static get pluginName(){return"LinkEditing"}static get requires(){return[rp,$c,jc]}constructor(l){super(l),l.config.define("link",{addTargetToExternalLinks:!1})}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:"linkHref"}),l.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:wg}),l.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(l,n)=>wg(Rg(l),n)}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:l=>l.getAttribute("href")}}),l.commands.add("link",new Sg(l)),l.commands.add("unlink",new kg(l));const n=function(l,n){const e={"Open in a new tab":l("Open in a new tab"),Downloadable:l("Downloadable")};return n.forEach(l=>(l.label&&e[l.label]&&(l.label=e[l.label]),l)),n}(l.t,function(l){const n=[];if(l)for(const[e,t]of Object.entries(l)){const l=Object.assign({},t,{id:`link${bg(e)}`});n.push(l)}return n}(l.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter(l=>l.mode===Ng)),this._enableManualDecorators(n.filter(l=>"manual"===l.mode)),l.plugins.get(rp).registerAttribute("linkHref"),function(l,n,e,t){const o=l.editing.view,u=new Set;o.document.registerPostFixer(e=>{const o=l.model.document.selection;let i=!1;if(o.hasAttribute(n)){const a=Cp(o.getFirstPosition(),n,o.getAttribute(n),l.model),r=l.editing.mapper.toViewRange(a);for(const l of r.getItems())l.is("element","a")&&!l.hasClass(t)&&(e.addClass(t,l),u.add(l),i=!0)}return i}),l.conversion.for("editingDowncast").add(l=>{function n(){o.change(l=>{for(const n of u.values())l.removeClass(t,n),u.delete(n)})}l.on("insert",n,{priority:"highest"}),l.on("remove",n,{priority:"highest"}),l.on("attribute",n,{priority:"highest"}),l.on("selection",n,{priority:"highest"})})}(l,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(l){const n=this.editor,e=n.commands.get("link").automaticDecorators;n.config.get("link.addTargetToExternalLinks")&&e.add({id:"linkIsExternal",mode:Ng,callback:l=>Dg.test(l),attributes:{target:"_blank",rel:"noopener noreferrer"}}),e.add(l),e.length&&n.conversion.for("downcast").add(e.getDispatcher())}_enableManualDecorators(l){if(!l.length)return;const n=this.editor,e=n.commands.get("link").manualDecorators;l.forEach(l=>{n.model.schema.extend("$text",{allowAttributes:l.id}),l=new Ig(l),e.add(l),n.conversion.for("downcast").attributeToElement({model:l.id,view:(n,{writer:e,schema:t},{item:o})=>{if((o.is("selection")||t.isInline(o))&&n){const n=e.createAttributeElement("a",l.attributes,{priority:5});l.classes&&e.addClass(l.classes,n);for(const t in l.styles)e.setStyle(t,l.styles[t],n);return e.setCustomProperty("link",!0,n),n}}}),n.conversion.for("upcast").elementToAttribute({view:{name:"a",...l._createPattern()},model:{key:l.id}})})}_enableLinkOpen(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"click",(l,n)=>{if(!(t.isMac?n.domEvent.metaKey:n.domEvent.ctrlKey))return;let e=n.domTarget;if("a"!=e.tagName.toLowerCase()&&(e=e.closest("a")),!e)return;const o=e.getAttribute("href");o&&(l.stop(),n.preventDefault(),Og(o))},{context:"$capture"}),this.listenTo(n,"keydown",(n,e)=>{const t=l.commands.get("link").value;t&&e.keyCode===bt.enter&&e.altKey&&(n.stop(),Og(t))})}_enableInsertContentSelectionAttributesFixer(){const l=this.editor.model,n=l.document.selection;this.listenTo(l,"insertContent",()=>{const e=n.anchor.nodeBefore,t=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(t&&t.hasAttribute("linkHref")||l.change(n=>{qg(n,Pg(l.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const l=this.editor,n=l.model;l.editing.view.addObserver(Fs);let e=!1;this.listenTo(l.editing.view.document,"mousedown",()=>{e=!0}),this.listenTo(l.editing.view.document,"selectionChange",()=>{if(!e)return;e=!1;const l=n.document.selection;if(!l.isCollapsed)return;if(!l.hasAttribute("linkHref"))return;const t=l.getFirstPosition(),o=Cp(t,"linkHref",l.getAttribute("linkHref"),n);(t.isTouching(o.start)||t.isTouching(o.end))&&n.change(l=>{qg(l,Pg(n.schema))})})}_enableTypingOverLink(){const l=this.editor,n=l.editing.view;let e,t;this.listenTo(n.document,"delete",()=>{t=!0},{priority:"high"}),this.listenTo(l.model,"deleteContent",()=>{const n=l.model.document.selection;n.isCollapsed||(t?t=!1:Tg(l)&&function(l){const n=l.document.selection,e=n.getFirstPosition(),t=n.getLastPosition(),o=e.nodeAfter;return!!o&&(!!o.is("$text")&&(!!o.hasAttribute("linkHref")&&(o===(t.textNode||t.nodeBefore)||Cp(e,"linkHref",o.getAttribute("linkHref"),l).containsRange(l.createRange(e,t),!0))))}(l.model)&&(e=n.getAttributes()))},{priority:"high"}),this.listenTo(l.model,"insertContent",(n,[o])=>{t=!1,Tg(l)&&e&&(l.model.change(l=>{for(const[n,t]of e)l.setAttribute(n,t,o)}),e=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const l=this.editor,n=l.model,e=n.document.selection,t=l.editing.view;let o=!1,u=!1;this.listenTo(t.document,"delete",(l,n)=>{u="backward"===n.direction},{priority:"high"}),this.listenTo(n,"deleteContent",()=>{o=!1;const l=e.getFirstPosition(),t=e.getAttribute("linkHref");if(!t)return;const u=Cp(l,"linkHref",t,n);o=u.containsPosition(l)||u.end.isEqual(l)},{priority:"high"}),this.listenTo(n,"deleteContent",()=>{u&&(u=!1,o||l.model.enqueueChange(l=>{qg(l,Pg(n.schema))}))},{priority:"low"})}}function qg(l,n){l.removeSelectionAttribute("linkHref");for(const e of n)l.removeSelectionAttribute(e)}function Tg(l){return l.model.change(l=>l.batch).isTyping}function Pg(l){return l.getDefinition("$text").allowAttributes.filter(l=>l.startsWith("link"))}var Bg=o(7754);Ht()(Bg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bg.Z.locals;class Vg extends rd{constructor(l,n){super(l);const e=l.t;this.focusTracker=new St,this.keystrokes=new kt,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(e("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(n),this.children=this._createFormChildren(n.manualDecorators),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const t=["ck","ck-link-form","ck-responsive-form"];n.manualDecorators.length&&t.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:t,tabindex:"-1"},children:this.children}),Ld(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((l,n)=>(l[n.name]=n.isOn,l),{})}render(){super.render(),Md({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const l=this.locale.t,n=new Cc(this.locale,wc);return n.label=l("Link URL"),n}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}_createManualDecoratorSwitches(l){const n=this.createCollection();for(const e of l.manualDecorators){const t=new Nd(this.locale);t.set({name:e.id,label:e.label,withText:!0}),t.bind("isOn").toMany([e,l],"value",(l,n)=>void 0===n&&void 0===l?e.defaultValue:l),t.on("execute",()=>{e.set("value",!t.isOn)}),n.add(t)}return n}_createFormChildren(l){const n=this.createCollection();if(n.add(this.urlInputView),l.length){const l=new rd;l.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(l=>({tag:"li",children:[l],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),n.add(l)}return n.add(this.saveButtonView),n.add(this.cancelButtonView),n}}var Ug=o(2347);Ht()(Ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ug.Z.locals;class Wg extends rd{constructor(l){super(l);const n=l.t;this.focusTracker=new St,this.keystrokes=new kt,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'',"unlink"),this.editButtonView=this._createButton(n("Edit link"),wd.pencil,"edit"),this.set("href"),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(l,n,e){const t=new Id(this.locale);return t.set({label:l,icon:n,tooltip:!0}),t.delegate("execute").to(this,e),t}_createPreviewButton(){const l=new Id(this.locale),n=this.bindTemplate,e=this.t;return l.set({withText:!0,tooltip:e("Open link in new tab")}),l.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:n.to("href",l=>l&&Rg(l)),target:"_blank",rel:"noopener noreferrer"}}),l.bind("label").to(this,"href",l=>l||e("This link has no URL")),l.bind("isEnabled").to(this,"href",l=>!!l),l.template.tag="a",l.template.eventListeners={},l}}const Gg="link-ui";class jg extends qt{static get requires(){return[Sc]}static get pluginName(){return"LinkUI"}init(){const l=this.editor;l.editing.view.addObserver(Is),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=l.plugins.get(Sc),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),l.conversion.for("editingDowncast").markerToHighlight({model:Gg,view:{classes:["ck-fake-link-selection"]}}),l.conversion.for("editingDowncast").markerToElement({model:Gg,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const l=this.editor,n=new Wg(l.locale),e=l.commands.get("link"),t=l.commands.get("unlink");return n.bind("href").to(e,"value"),n.editButtonView.bind("isEnabled").to(e),n.unlinkButtonView.bind("isEnabled").to(t),this.listenTo(n,"edit",()=>{this._addFormView()}),this.listenTo(n,"unlink",()=>{l.execute("unlink"),this._hideUI()}),n.keystrokes.set("Esc",(l,n)=>{this._hideUI(),n()}),n.keystrokes.set(Cg,(l,n)=>{this._addFormView(),n()}),n}_createFormView(){const l=this.editor,n=l.commands.get("link"),e=l.config.get("link.defaultProtocol"),t=new Vg(l.locale,n);return t.urlInputView.fieldView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",l=>!l),t.saveButtonView.bind("isEnabled").to(n),this.listenTo(t,"submit",()=>{const{value:n}=t.urlInputView.fieldView.element,o=Mg(n,e);l.execute("link",o,t.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(t,"cancel",()=>{this._closeFormView()}),t.keystrokes.set("Esc",(l,n)=>{this._closeFormView(),n()}),t}_createToolbarLinkButton(){const l=this.editor,n=l.commands.get("link"),e=l.t;l.keystrokes.set(Cg,(l,e)=>{e(),n.isEnabled&&this._showUI(!0)}),l.ui.componentFactory.add("link",l=>{const t=new Id(l);return t.isEnabled=!0,t.label=e("Link"),t.icon='',t.keystroke=Cg,t.tooltip=!0,t.isToggleable=!0,t.bind("isEnabled").to(n,"isEnabled"),t.bind("isOn").to(n,"value",l=>!!l),this.listenTo(t,"execute",()=>this._showUI(!0)),t})}_enableUserBalloonInteractions(){const l=this.editor.editing.view.document;this.listenTo(l,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,n)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),n())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,n)=>{this._isUIVisible&&(this._hideUI(),n())}),Rd({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const l=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=l.value||""}_closeFormView(){const l=this.editor.commands.get("link");l.restoreManualDecoratorStates(),void 0!==l.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(l=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),l&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),l&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const l=this.editor;this.stopListening(l.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),l.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const l=this.editor,n=l.editing.view.document;let e=this._getSelectedLinkElement(),t=u();const o=()=>{const l=this._getSelectedLinkElement(),n=u();e&&!l||!e&&n!==t?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),e=l,t=n};function u(){return n.selection.focus.getAncestors().reverse().find(l=>l.is("element"))}this.listenTo(l.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const l=this.editor.editing.view,n=this.editor.model,e=l.document;let t=null;if(n.markers.has(Gg)){const n=Array.from(this.editor.editing.mapper.markerNameToElements(Gg)),e=l.createRange(l.createPositionBefore(n[0]),l.createPositionAfter(n[n.length-1]));t=l.domConverter.viewRangeToDom(e)}else t=(()=>{const n=this._getSelectedLinkElement();return n?l.domConverter.mapViewToDom(n):l.domConverter.viewRangeToDom(e.selection.getFirstRange())});return{target:t}}_getSelectedLinkElement(){const l=this.editor.editing.view,n=l.document.selection,e=n.getSelectedElement();if(n.isCollapsed||e&&Vp(e))return Hg(n.getFirstPosition());{const e=n.getFirstRange().getTrimmed(),t=Hg(e.start),o=Hg(e.end);return t&&t==o&&l.createRangeIn(t).getTrimmed().isEqual(e)?t:null}}_showFakeVisualSelection(){const l=this.editor.model;l.change(n=>{const e=l.document.selection.getFirstRange();if(l.markers.has(Gg))n.updateMarker(Gg,{range:e});else if(e.start.isAtEnd){const t=e.start.getLastMatchingPosition(({item:n})=>!l.schema.isContent(n),{boundaries:e});n.addMarker(Gg,{usingOperation:!1,affectsData:!1,range:n.createRange(t,e.end)})}else n.addMarker(Gg,{usingOperation:!1,affectsData:!1,range:e})})}_hideFakeVisualSelection(){const l=this.editor.model;l.markers.has(Gg)&&l.change(l=>{l.removeMarker(Gg)})}}function Hg(l){return l.getAncestors().find(l=>{return(n=l).is("attributeElement")&&!!n.getCustomProperty("link");var n})}const Yg=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class Zg extends qt{static get requires(){return[op]}static get pluginName(){return"AutoLink"}init(){const l=this.editor.model.document.selection;l.on("change:range",()=>{this.isEnabled=!l.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const l=this.editor,n=new ap(l.model,l=>{if(!function(l){return l.length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]}(l))return;const n=Xg(l.substr(0,l.length-1));return n?{url:n}:void 0});n.on("matched:data",(n,e)=>{const{batch:t,range:o,url:u}=e;if(!t.isTyping)return;const i=o.end.getShiftedBy(-1),a=i.getShiftedBy(-u.length),r=l.model.createRange(a,i);this._applyAutoLink(u,r)}),n.bind("isEnabled").to(this)}_enableEnterHandling(){const l=this.editor,n=l.model,e=l.commands.get("enter");e&&e.on("execute",()=>{const l=n.document.selection.getFirstPosition();if(!l.parent.previousSibling)return;const e=n.createRangeIn(l.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(e)})}_enableShiftEnterHandling(){const l=this.editor,n=l.model,e=l.commands.get("shiftEnter");e&&e.on("execute",()=>{const l=n.document.selection.getFirstPosition(),e=n.createRange(n.createPositionAt(l.parent,0),l.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(e)})}_checkAndApplyAutoLinkOnRange(l){const n=this.editor.model,{text:e,range:t}=ip(l,n),o=Xg(e);if(o){const l=n.createRange(t.end.getShiftedBy(-o.length),t.end);this._applyAutoLink(o,l)}}_applyAutoLink(l,n){const e=this.editor.model,t=Mg(l,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(l,n){return n.schema.checkAttributeInSelection(n.createSelection(l),"linkHref")}(n,e)&&Eg(t)&&!function(l){const n=l.start.nodeAfter;return n&&n.hasAttribute("linkHref")}(n)&&this._persistAutoLink(t,n)}_persistAutoLink(l,n){const e=this.editor.model,t=this.editor.plugins.get("Delete");e.enqueueChange(o=>{o.setAttribute("linkHref",l,n),e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}}function Xg(l){const n=Yg.exec(l);return n?n[2]:null}class $g extends Pt{constructor(l,n){super(l),this.type=n}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(l={}){const n=this.editor.model,e=n.document,t=Array.from(e.selection.getSelectedBlocks()).filter(l=>Qg(l,n.schema)),o=void 0!==l.forceValue?!l.forceValue:this.value;n.change(l=>{if(o){let n=t[t.length-1].nextSibling,e=Number.POSITIVE_INFINITY,o=[];for(;n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){const l=n.getAttribute("listIndent");l=e;)u>o.getAttribute("listIndent")&&(u=o.getAttribute("listIndent")),o.getAttribute("listIndent")==u&&l[n?"unshift":"push"](o),o=o[n?"previousSibling":"nextSibling"]}}function Qg(l,n){return n.checkChild(l.parent,"listItem")&&!n.isObject(l)}class Jg extends Pt{constructor(l,n){super(l),this._indentBy="forward"==n?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const l=this.editor.model,n=l.document;let e=Array.from(n.selection.getSelectedBlocks());l.change(l=>{const n=e[e.length-1];let t=n.nextSibling;for(;t&&"listItem"==t.name&&t.getAttribute("listIndent")>n.getAttribute("listIndent");)e.push(t),t=t.nextSibling;this._indentBy<0&&(e=e.reverse());for(const o of e){const n=o.getAttribute("listIndent")+this._indentBy;n<0?l.rename(o,"paragraph"):l.setAttribute("listIndent",n,o)}this.fire("_executeCleanup",e)})}_checkEnabled(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());if(!l||!l.is("element","listItem"))return!1;if(this._indentBy>0){const n=l.getAttribute("listIndent"),e=l.getAttribute("listType");let t=l.previousSibling;for(;t&&t.is("element","listItem")&&t.getAttribute("listIndent")>=n;){if(t.getAttribute("listIndent")==n)return t.getAttribute("listType")==e;t=t.previousSibling}return!1}return!0}}function lv(l,n,e,t){const o=n.parent,u=e.mapper,i=e.writer;let a=u.toViewPosition(t.createPositionBefore(l));const r=tv(l.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:l.getAttribute("listIndent")}),s=l.previousSibling;if(r&&r.getAttribute("listIndent")==l.getAttribute("listIndent")){const l=u.toViewElement(r);a=i.breakContainer(i.createPositionAfter(l))}else if(s&&"listItem"==s.name){a=u.toViewPosition(t.createPositionAt(s,"end"));const l=u.findMappedViewAncestor(a),n=function(l){for(const n of l.getChildren())if("ul"==n.name||"ol"==n.name)return n;return null}(l);a=n?i.createPositionBefore(n):i.createPositionAt(l,"end")}else a=u.toViewPosition(t.createPositionBefore(l));if(a=ev(a),i.insert(a,o),s&&"listItem"==s.name){const l=u.toViewElement(s),e=i.createRange(i.createPositionAt(l,0),a).getWalker({ignoreElementEnd:!0});for(const t of e)if(t.item.is("element","li")){const l=i.breakContainer(i.createPositionBefore(t.item)),o=t.item.parent,u=i.createPositionAt(n,"end");nv(i,u.nodeBefore,u.nodeAfter),i.move(i.createRangeOn(o),u),e.position=l}}else{const e=o.nextSibling;if(e&&(e.is("element","ul")||e.is("element","ol"))){let t=null;for(const n of e.getChildren()){const e=u.toModelElement(n);if(!(e&&e.getAttribute("listIndent")>l.getAttribute("listIndent")))break;t=n}t&&(i.breakContainer(i.createPositionAfter(t)),i.move(i.createRangeOn(t.parent),i.createPositionAt(n,"end")))}}nv(i,o,o.nextSibling),nv(i,o.previousSibling,o)}function nv(l,n,e){return!n||!e||"ul"!=n.name&&"ol"!=n.name||n.name!=e.name||n.getAttribute("class")!==e.getAttribute("class")?null:l.mergeContainers(l.createPositionAfter(n))}function ev(l){return l.getLastMatchingPosition(l=>l.item.is("uiElement"))}function tv(l,n){const e=!!n.sameIndent,t=!!n.smallerIndent,o=n.listIndent;let u=l;for(;u&&"listItem"==u.name;){const l=u.getAttribute("listIndent");if(e&&o==l||t&&o>l)return u;u="forward"===n.direction?u.nextSibling:u.previousSibling}return null}function ov(l,n,e,t){l.ui.componentFactory.add(n,o=>{const u=l.commands.get(n),i=new Id(o);return i.set({label:e,icon:t,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),i.on("execute",()=>{l.execute(n),l.editing.view.focus()}),i})}function uv(l,n){const e=[],t=l.parent,o={ignoreElementEnd:!1,startPosition:l,shallow:!0,direction:n},u=t.getAttribute("listIndent"),i=[...new Qi(o)].filter(l=>l.item.is("element")).map(l=>l.item);for(const a of i){if(!a.is("element","listItem"))break;if(a.getAttribute("listIndent")u)){if(a.getAttribute("listType")!==t.getAttribute("listType"))break;if(a.getAttribute("listStyle")!==t.getAttribute("listStyle"))break;if(a.getAttribute("listReversed")!==t.getAttribute("listReversed"))break;if(a.getAttribute("listStart")!==t.getAttribute("listStart"))break;"backward"===n?e.unshift(a):e.push(a)}}return e}const iv=["disc","circle","square"],av=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function rv(){const l=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||l?0:Zo.call(this)}class sv extends qt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(l){return function(l){return iv.includes(l)?"bulleted":av.includes(l)?"numbered":null}(l)}getSelectedListItems(l){return function(l){let n=[...l.document.selection.getSelectedBlocks()].filter(l=>l.is("element","listItem")).map(n=>{const e=l.change(l=>l.createPositionAt(n,0));return[...uv(e,"backward"),...uv(e,"forward")]}).flat();return n=[...new Set(n)]}(l)}getSiblingNodes(l,n){return uv(l,n)}}function dv(l){return(n,e,t)=>{const o=t.consumable;if(!o.test(e.item,"insert")||!o.test(e.item,"attribute:listType")||!o.test(e.item,"attribute:listIndent"))return;o.consume(e.item,"insert"),o.consume(e.item,"attribute:listType"),o.consume(e.item,"attribute:listIndent");const u=e.item;lv(u,function(l,n){const e=n.mapper,t=n.writer,o="numbered"==l.getAttribute("listType")?"ol":"ul",u=function(l){const n=t.createContainerElement("li");return n.getFillerOffset=rv,n}(),i=t.createContainerElement(o,null);return t.insert(t.createPositionAt(i,0),u),e.bindElements(l,u),u}(u,t),t,l)}}function cv(l,n,e){if(!e.consumable.test(n.item,l.name))return;const t=e.mapper.toViewElement(n.item),o=e.writer;o.breakContainer(o.createPositionBefore(t)),o.breakContainer(o.createPositionAfter(t));const u=t.parent,i="numbered"==n.attributeNewValue?"ol":"ul";o.rename(i,u)}function pv(l,n,e){e.consumable.consume(n.item,l.name);const t=e.mapper.toViewElement(n.item).parent,o=e.writer;nv(o,t,t.nextSibling),nv(o,t.previousSibling,t)}function fv(l,n,e){if(e.consumable.test(n.item,l.name)&&"listItem"!=n.item.name){let l=e.mapper.toViewPosition(n.range.start);const t=e.writer,o=[];for(;("ul"==l.parent.name||"ol"==l.parent.name)&&"li"==(l=t.breakContainer(l)).parent.name;){const n=l,e=t.createPositionAt(l.parent,"end");if(!n.isEqual(e)){const l=t.remove(t.createRange(n,e));o.push(l)}l=t.createPositionAfter(l.parent)}if(o.length>0){for(let n=0;n0){const n=nv(t,e,e.nextSibling);n&&n.parent==e&&l.offset--}}nv(t,l.nodeBefore,l.nodeAfter)}}}function mv(l,n,e){const t=e.mapper.toViewPosition(n.position),o=t.nodeBefore,u=t.nodeAfter;nv(e.writer,o,u)}function hv(l,n,e){if(e.consumable.consume(n.viewItem,{name:!0})){const l=e.writer,t=l.createElement("listItem"),o=function(l){let n=0,e=l.parent;for(;e;){if(e.is("element","li"))n++;else{const l=e.previousSibling;l&&l.is("element","li")&&n++}e=e.parent}return n}(n.viewItem);l.setAttribute("listIndent",o,t);const u=n.viewItem.parent&&"ol"==n.viewItem.parent.name?"numbered":"bulleted";if(l.setAttribute("listType",u,t),!e.safeInsert(t,n.modelCursor))return;const i=function(l,n,e){const{writer:t,schema:o}=e;let u=t.createPositionAfter(l);for(const i of n)if("ul"==i.name||"ol"==i.name)u=e.convertItem(i,u).modelCursor;else{const n=e.convertItem(i,t.createPositionAt(l,"end")),a=n.modelRange.start.nodeAfter;a&&a.is("element")&&!o.checkChild(l,a.name)&&(l=n.modelCursor.parent.is("element","listItem")?n.modelCursor.parent:xv(n.modelCursor),u=t.createPositionAfter(l))}return u}(t,n.viewItem.getChildren(),e);n.modelRange=l.createRange(n.modelCursor,i),e.updateConversionResult(t,n)}}function gv(l,n,e){if(e.consumable.test(n.viewItem,{name:!0})){const l=Array.from(n.viewItem.getChildren());for(const n of l)!n.is("element","li")&&!_v(n)&&n._remove()}}function vv(l,n,e){if(e.consumable.test(n.viewItem,{name:!0})){if(0===n.viewItem.childCount)return;const l=[...n.viewItem.getChildren()];let e=!1;for(const n of l)e&&!_v(n)&&n._remove(),_v(n)&&(e=!0)}}function bv(l){return(n,e)=>{if(e.isPhantom)return;const t=e.modelPosition.nodeBefore;if(t&&t.is("element","listItem")){const n=e.mapper.toViewElement(t),o=n.getAncestors().find(_v),u=l.createPositionAt(n,0).getWalker();for(const l of u){if("elementStart"==l.type&&l.item.is("element","li")){e.viewPosition=l.previousPosition;break}if("elementEnd"==l.type&&l.item==o){e.viewPosition=l.nextPosition;break}}}}}function yv(l,[n,e,t]){let o,u=n.is("documentFragment")?n.getChild(0):n;if(o=e?this.createSelection(e,t):this.document.selection,u&&u.is("element","listItem")){const l=o.getFirstPosition();let n=null;if(l.parent.is("element","listItem")?n=l.parent:l.nodeBefore&&l.nodeBefore.is("element","listItem")&&(n=l.nodeBefore),n){const l=n.getAttribute("listIndent");if(l>0)for(;u&&u.is("element","listItem");)u._setAttribute("listIndent",u.getAttribute("listIndent")+l),u=u.nextSibling}}}function xv(l){const n=new Qi({startPosition:l});let e;do{e=n.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Av(l,n,e,t,o,u){const i=tv(n.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:l,foo:"b"}),a=o.mapper,r=o.writer,s=i?i.getAttribute("listIndent"):null;let d;if(i)if(s==l){const l=a.toViewElement(i).parent;d=r.createPositionAfter(l)}else{const l=u.createPositionAt(i,"end");d=a.toViewPosition(l)}else d=e;d=ev(d);for(const c of[...t.getChildren()])_v(c)&&(d=r.move(r.createRangeOn(c),d).end,nv(r,c,c.nextSibling),nv(r,c.previousSibling,c))}function _v(l){return l.is("element","ol")||l.is("element","ul")}class Cv extends qt{static get pluginName(){return"ListEditing"}static get requires(){return[Sp,op,sv]}init(){const l=this.editor;l.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const n=l.data,e=l.editing;var t;l.model.document.registerPostFixer(n=>(function(l,n){const e=l.document.differ.getChanges(),t=new Map;let o=!1;for(const r of e)if("insert"==r.type&&"listItem"==r.name)u(r.position);else if("insert"==r.type&&"listItem"!=r.name){if("$text"!=r.name){const e=r.position.nodeAfter;e.hasAttribute("listIndent")&&(n.removeAttribute("listIndent",e),o=!0),e.hasAttribute("listType")&&(n.removeAttribute("listType",e),o=!0),e.hasAttribute("listStyle")&&(n.removeAttribute("listStyle",e),o=!0),e.hasAttribute("listReversed")&&(n.removeAttribute("listReversed",e),o=!0),e.hasAttribute("listStart")&&(n.removeAttribute("listStart",e),o=!0);for(const n of Array.from(l.createRangeIn(e)).filter(l=>l.item.is("element","listItem")))u(n.previousPosition)}u(r.position.getShiftedBy(r.length))}else"remove"==r.type&&"listItem"==r.name?u(r.position):("attribute"==r.type&&"listIndent"==r.attributeKey||"attribute"==r.type&&"listType"==r.attributeKey)&&u(r.range.start);for(const r of t.values())i(r),a(r);return o;function u(l){const n=l.nodeBefore;if(n&&n.is("element","listItem")){let l=n;if(t.has(l))return;for(let n=l.previousSibling;n&&n.is("element","listItem");n=l.previousSibling)if(l=n,t.has(l))return;t.set(n,l)}else{const n=l.nodeAfter;n&&n.is("element","listItem")&&t.set(n,n)}}function i(l){let e=0,t=null;for(;l&&l.is("element","listItem");){const u=l.getAttribute("listIndent");if(u>e){let i;null===t?(t=u-e,i=e):(t>u&&(t=u),i=u-t),n.setAttribute("listIndent",i,l),o=!0}else t=null,e=l.getAttribute("listIndent")+1;l=l.nextSibling}}function a(l){let e=[],t=null;for(;l&&l.is("element","listItem");){const u=l.getAttribute("listIndent");if(t&&t.getAttribute("listIndent")>u&&(e=e.slice(0,u+1)),0!=u)if(e[u]){const t=e[u];l.getAttribute("listType")!=t&&(n.setAttribute("listType",t,l),o=!0)}else e[u]=l.getAttribute("listType");t=l,l=l.nextSibling}}})(l.model,n)),e.mapper.registerViewToModelLength("li",wv),n.mapper.registerViewToModelLength("li",wv),e.mapper.on("modelToViewPosition",bv(e.view)),e.mapper.on("viewToModelPosition",(t=l.model,(l,n)=>{const e=n.viewPosition,o=e.parent,u=n.mapper;if("ul"==o.name||"ol"==o.name){if(e.isAtEnd){const l=u.toModelElement(e.nodeBefore),o=u.getModelLength(e.nodeBefore);n.modelPosition=t.createPositionBefore(l).getShiftedBy(o)}else{const l=u.toModelElement(e.nodeAfter);n.modelPosition=t.createPositionBefore(l)}l.stop()}else if("li"==o.name&&e.nodeBefore&&("ul"==e.nodeBefore.name||"ol"==e.nodeBefore.name)){const i=u.toModelElement(o);let a=1,r=e.nodeBefore;for(;r&&_v(r);)a+=u.getModelLength(r),r=r.previousSibling;n.modelPosition=t.createPositionBefore(i).getShiftedBy(a),l.stop()}})),n.mapper.on("modelToViewPosition",bv(e.view)),l.conversion.for("editingDowncast").add(n=>{n.on("insert",fv,{priority:"high"}),n.on("insert:listItem",dv(l.model)),n.on("attribute:listType:listItem",cv,{priority:"high"}),n.on("attribute:listType:listItem",pv,{priority:"low"}),n.on("attribute:listIndent:listItem",function(l){return(n,e,t)=>{if(!t.consumable.consume(e.item,"attribute:listIndent"))return;const o=t.mapper.toViewElement(e.item),u=t.writer;u.breakContainer(u.createPositionBefore(o)),u.breakContainer(u.createPositionAfter(o));const i=o.parent,a=i.previousSibling,r=u.createRangeOn(i);u.remove(r),a&&a.nextSibling&&nv(u,a,a.nextSibling),Av(e.attributeOldValue+1,e.range.start,r.start,o,t,l),lv(e.item,o,t,l);for(const l of e.item.getChildren())t.consumable.consume(l,"insert")}}(l.model)),n.on("remove:listItem",function(l){return(n,e,t)=>{const o=t.mapper.toViewPosition(e.position).getLastMatchingPosition(l=>!l.item.is("element","li")).nodeAfter,u=t.writer;u.breakContainer(u.createPositionBefore(o)),u.breakContainer(u.createPositionAfter(o));const i=o.parent,a=i.previousSibling,r=u.createRangeOn(i),s=u.remove(r);a&&a.nextSibling&&nv(u,a,a.nextSibling),Av(t.mapper.toModelElement(o).getAttribute("listIndent")+1,e.position,r.start,o,t,l);for(const l of u.createRangeIn(s).getItems())t.mapper.unbindViewElement(l);n.stop()}}(l.model)),n.on("remove",mv,{priority:"low"})}),l.conversion.for("dataDowncast").add(n=>{n.on("insert",fv,{priority:"high"}),n.on("insert:listItem",dv(l.model))}),l.conversion.for("upcast").add(l=>{l.on("element:ul",gv,{priority:"high"}),l.on("element:ol",gv,{priority:"high"}),l.on("element:li",vv,{priority:"high"}),l.on("element:li",hv)}),l.model.on("insertContent",yv,{priority:"high"}),l.commands.add("numberedList",new $g(l,"numbered")),l.commands.add("bulletedList",new $g(l,"bulleted")),l.commands.add("indentList",new Jg(l,"forward")),l.commands.add("outdentList",new Jg(l,"backward"));const o=e.view.document;this.listenTo(o,"enter",(l,n)=>{const e=this.editor.model.document,t=e.selection.getLastPosition().parent;e.selection.isCollapsed&&"listItem"==t.name&&t.isEmpty&&(this.editor.execute("outdentList"),n.preventDefault(),l.stop())},{context:"li"}),this.listenTo(o,"delete",(l,n)=>{if("backward"!==n.direction)return;const e=this.editor.model.document.selection;if(!e.isCollapsed)return;const t=e.getFirstPosition();if(!t.isAtStart)return;const o=t.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(this.editor.execute("outdentList"),n.preventDefault(),l.stop()))},{context:"li"}),this.listenTo(l.editing.view.document,"tab",(n,e)=>{const t=e.shiftKey?"outdentList":"indentList";this.editor.commands.get(t).isEnabled&&(l.execute(t),e.stopPropagation(),e.preventDefault(),n.stop())},{context:"li"})}afterInit(){const l=this.editor.commands,n=l.get("indent"),e=l.get("outdent");n&&n.registerChildCommand(l.get("indentList")),e&&e.registerChildCommand(l.get("outdentList"))}}function wv(l){let n=1;for(const e of l.getChildren())if("ul"==e.name||"ol"==e.name)for(const l of e.getChildren())n+=wv(l);return n}class Rv extends qt{static get pluginName(){return"ListUI"}init(){const l=this.editor.t;ov(this.editor,"numberedList",l("Numbered List"),''),ov(this.editor,"bulletedList",l("Bulleted List"),'')}}function Lv(l,n){return l=>{l.on("attribute:url:media",e)};function e(e,t,o){if(!o.consumable.consume(t.item,e.name))return;const u=t.attributeNewValue,i=o.writer,a=o.mapper.toViewElement(t.item),r=[...a.getChildren()].find(l=>l.getCustomProperty("media-content"));i.remove(r);const s=l.getMediaViewElement(i,u,n);i.insert(i.createPositionAt(a,0),s)}}function Mv(l,n,e,t){return l.createContainerElement("figure",{class:"media"},[n.getMediaViewElement(l,e,t),l.createSlot()])}function Ev(l){const n=l.getSelectedElement();return n&&n.is("element","media")?n:null}function Ov(l,n,e,t){l.change(o=>{const u=o.createElement("media",{url:n});l.insertObject(u,e,null,{setSelection:"on",findOptimalPosition:t})})}class Sv extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=Ev(n);this.value=e?e.getAttribute("url"):null,this.isEnabled=function(l){const n=l.getSelectedElement();return!!n&&"media"===n.name}(n)||function(l,n){let e=jp(l,n).start.parent;return e.isEmpty&&!n.schema.isLimit(e)&&(e=e.parent),n.schema.checkChild(e,"media")}(n,l)}execute(l){const n=this.editor.model,e=n.document.selection,t=Ev(e);t?n.change(n=>{n.setAttribute("url",l,t)}):Ov(n,l,e,!0)}}class kv{constructor(l,n){const e=n.providers,t=n.extraProviders||[],o=new Set(n.removeProviders),u=e.concat(t).filter(l=>{const n=l.name;return n?!o.has(n):(y("media-embed-no-provider-name",{provider:l}),!1)});this.locale=l,this.providerDefinitions=u}hasMedia(l){return!!this._getMedia(l)}getMediaViewElement(l,n,e){return this._getMedia(n).getViewElement(l,e)}_getMedia(l){if(!l)return new Iv(this.locale);l=l.trim();for(const n of this.providerDefinitions){const e=n.html,t=wt(n.url);for(const n of t){const t=this._getUrlMatches(l,n);if(t)return new Iv(this.locale,l,t,e)}}return null}_getUrlMatches(l,n){let e=l.match(n);if(e)return e;let t=l.replace(/^https?:\/\//,"");return(e=t.match(n))||((e=(t=t.replace(/^www\./,"")).match(n))||null)}}class Iv{constructor(l,n,e,t){this.url=this._getValidUrl(n),this._locale=l,this._match=e,this._previewRenderer=t}getViewElement(l,n){const e={};let t;if(n.renderForEditingView||n.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(e["data-oembed-url"]=this.url),n.renderForEditingView&&(e.class="ck-media__wrapper");const o=this._getPreviewHtml(n);t=l.createRawElement("div",e,(l,n)=>{n.setContentOf(l,o)})}else this.url&&(e.url=this.url),t=l.createEmptyElement(n.elementName,e);return l.setCustomProperty("media-content",!0,t),t}_getPreviewHtml(l){return this._previewRenderer?this._previewRenderer(this._match):this.url&&l.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const l=new Sd,n=this._locale.t;return l.content='',l.viewBox="0 0 64 42",new Vs({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[l]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":n("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(l){return l?l.match(/^https?/)?l:"https://"+l:null}}var Fv=o(7442);Ht()(Fv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fv.Z.locals;class Nv extends qt{static get pluginName(){return"MediaEmbedEditing"}constructor(l){super(l),l.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:l=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:l=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:l=>{const n=l[1],e=l[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:l=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new kv(l.locale,l.config.get("mediaEmbed"))}init(){const l=this.editor,n=l.model.schema,e=l.t,t=l.conversion,o=l.config.get("mediaEmbed.previewsInData"),u=l.config.get("mediaEmbed.elementName"),i=this.registry;l.commands.add("mediaEmbed",new Sv(l)),n.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),t.for("dataDowncast").elementToStructure({model:"media",view:(l,{writer:n})=>{const e=l.getAttribute("url");return Mv(n,i,e,{elementName:u,renderMediaPreview:e&&o})}}),t.for("dataDowncast").add(Lv(i,{elementName:u,renderMediaPreview:o})),t.for("editingDowncast").elementToStructure({model:"media",view:(l,{writer:n})=>{const t=l.getAttribute("url");return function(l,n,e){return n.setCustomProperty("media",!0,l),Up(l,n,{label:e})}(Mv(n,i,t,{elementName:u,renderForEditingView:!0}),n,e("media widget"))}}),t.for("editingDowncast").add(Lv(i,{elementName:u,renderForEditingView:!0})),t.for("upcast").elementToElement({view:l=>["oembed",u].includes(l.name)&&l.getAttribute("url")?{name:!0}:null,model:(l,{writer:n})=>{const e=l.getAttribute("url");if(i.hasMedia(e))return n.createElement("media",{url:e})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(l,{writer:n})=>{const e=l.getAttribute("data-oembed-url");if(i.hasMedia(e))return n.createElement("media",{url:e})}}).add(l=>{l.on("element:figure",function(l,n,e){if(!e.consumable.consume(n.viewItem,{name:!0,classes:"media"}))return;const{modelRange:t,modelCursor:o}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=t,n.modelCursor=o,Ot(t.getItems())||e.consumable.revert(n.viewItem,{name:!0,classes:"media"})})})}}const Dv=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class zv extends qt{static get requires(){return[yf,op,Df]}static get pluginName(){return"AutoMediaEmbed"}constructor(l){super(l),this._timeoutId=null,this._positionToInsert=null}init(){const l=this.editor,n=l.model.document;this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const l=n.selection.getFirstRange(),e=$r.fromPosition(l.start);e.stickiness="toPrevious";const t=$r.fromPosition(l.end);t.stickiness="toNext",n.once("change:data",()=>{this._embedMediaBetweenPositions(e,t),e.detach(),t.detach()},{priority:"high"})}),l.commands.get("undo").on("execute",()=>{this._timeoutId&&(Ve.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(l,n){const e=this.editor,t=e.plugins.get(Nv).registry,o=new ba(l,n),u=o.getWalker({ignoreElementEnd:!0});let i="";for(const a of u)a.item.is("$textProxy")&&(i+=a.item.data);(i=i.trim()).match(Dv)&&t.hasMedia(i)&&e.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=$r.fromPosition(l),this._timeoutId=Ve.window.setTimeout(()=>{e.model.change(l=>{let n;this._timeoutId=null,l.remove(o),o.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(n=this._positionToInsert),Ov(e.model,i,n,!1),this._positionToInsert.detach(),this._positionToInsert=null}),e.plugins.get("Delete").requestUndoOnBackspace()},100)):o.detach()}}var qv=o(9292);Ht()(qv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),qv.Z.locals;class Tv extends rd{constructor(l,n){super(n);const e=n.t;this.focusTracker=new St,this.keystrokes=new kt,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(e("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",l=>!!l),this.cancelButtonView=this._createButton(e("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=l,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Ld(this)}render(){super.render(),Md({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element);const l=l=>l.stopPropagation();this.keystrokes.set("arrowright",l),this.keystrokes.set("arrowleft",l),this.keystrokes.set("arrowup",l),this.keystrokes.set("arrowdown",l),this.listenTo(this.urlInputView.element,"selectstart",(l,n)=>{n.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(l){this.urlInputView.fieldView.element.value=l.trim()}isValid(){this.resetFormStatus();for(const l of this._validators){const n=l(this);if(n)return this.urlInputView.errorText=n,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const l=this.locale.t,n=new Cc(this.locale,wc),e=n.fieldView;return this._urlInputViewInfoDefault=l("Paste the media URL in the input."),this._urlInputViewInfoTip=l("Tip: Paste the URL into the content to embed faster."),n.label=l("Media URL"),n.infoText=this._urlInputViewInfoDefault,e.on("input",()=>{n.infoText=e.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=e.element.value.trim()}),n}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}}class Pv extends qt{static get requires(){return[Nv]}static get pluginName(){return"MediaEmbedUI"}init(){const l=this.editor,n=l.commands.get("mediaEmbed"),e=l.plugins.get(Nv).registry;l.ui.componentFactory.add("mediaEmbed",t=>{const o=ac(t),u=new Tv(function(l,n){return[n=>{if(!n.url.length)return l("The URL must not be empty.")},e=>{if(!n.hasMedia(e.url))return l("This media URL is not supported.")}]}(l.t,e),l.locale);return this._setUpDropdown(o,u,n,l),this._setUpForm(o,u,n),o})}_setUpDropdown(l,n,e){const t=this.editor,o=t.t,u=l.buttonView;l.bind("isEnabled").to(e),l.panelView.children.add(n),u.set({label:o("Insert media"),icon:'',tooltip:!0}),u.on("open",()=>{n.disableCssTransitions(),n.url=e.value||"",n.urlInputView.fieldView.select(),n.enableCssTransitions()},{priority:"low"}),l.on("submit",()=>{n.isValid()&&(t.execute("mediaEmbed",n.url),t.editing.view.focus())}),l.on("change:isOpen",()=>n.resetFormStatus()),l.on("cancel",()=>{t.editing.view.focus()})}_setUpForm(l,n,e){n.delegate("submit","cancel").to(l),n.urlInputView.bind("value").to(e,"value"),n.urlInputView.bind("isReadOnly").to(e,"isEnabled",l=>!l)}}var Bv=o(4652);function Vv(l,n,e,{blockElements:t,inlineObjectElements:o}){let u=e.createPositionAt(l,"forward"==n?"after":"before");return u=u.getLastMatchingPosition(({item:l})=>l.is("element")&&!t.includes(l.name)&&!o.includes(l.name),{direction:n}),"forward"==n?u.nodeAfter:u.nodeBefore}function Uv(l,n){return!!l&&l.is("element")&&n.includes(l.name)}function Wv(l){if(l.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(l){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return l;default:return null}}function Gv(l,n,e){const t=n.parent,o=e.createElement(l.type),u=t.getChildIndex(n)+1;return e.insertChild(u,o,t),l.style&&e.setStyle("list-style-type",l.style,o),l.startIndex&&l.startIndex>1&&e.setAttribute("start",l.startIndex,o),o}function jv(l){const n={},e=l.getStyle("mso-list");if(e){const l=e.match(/(^|\s{1,100})l(\d+)/i),t=e.match(/\s{0,100}lfo(\d+)/i),o=e.match(/\s{0,100}level(\d+)/i);l&&t&&o&&(n.id=l[2],n.order=t[1],n.indent=o[1])}return n}Ht()(Bv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bv.Z.locals;const Hv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Yv{constructor(l){this.document=l}isActive(l){return Hv.test(l)}execute(l){const n=new Ns(this.document),{body:e}=l._parsedData;!function(l,n){for(const e of l.getChildren())if(e.is("element","b")&&"normal"===e.getStyle("font-weight")){const t=l.getChildIndex(e);n.remove(e),n.insertChild(t,e.getChildren(),l)}}(e,n),function(l,n){for(const e of n.createRangeIn(l)){const l=e.item;if(l.is("element","li")){const e=l.getChild(0);e&&e.is("element","p")&&n.unwrapElement(e)}}}(e,n),function(l,n){const e=new cu(n.document.stylesProcessor),t=new Ku(e,{renderingMode:"data"}),o=t.blockElements,u=t.inlineObjectElements,i=[];for(const a of n.createRangeIn(l)){const l=a.item;if(l.is("element","br")){const e=Vv(l,"forward",n,{blockElements:o,inlineObjectElements:u}),t=Vv(l,"backward",n,{blockElements:o,inlineObjectElements:u}),a=Uv(e,o);(Uv(t,o)||a)&&i.push(l)}}for(const a of i)a.hasClass("Apple-interchange-newline")?n.remove(a):n.replace(a,n.createElement("p"))}(e,n),l.content=e}}function Zv(l){return btoa(l.match(/\w{2}/g).map(l=>String.fromCharCode(parseInt(l,16))).join(""))}const Xv=//i,$v=/xmlns:o="urn:schemas-microsoft-com/i;class Kv{constructor(l){this.document=l}isActive(l){return Xv.test(l)||$v.test(l)}execute(l){const{body:n,stylesString:e}=l._parsedData;(function(l,n){if(!l.childCount)return;const e=new Ns(l.document),t=function(l,n){const e=n.createRangeIn(l),t=new oo({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[];for(const u of e)if("elementStart"===u.type&&t.match(u.item)){const l=jv(u.item);o.push({element:u.item,id:l.id,order:l.order,indent:l.indent})}return o}(l,e);if(!t.length)return;let o=null,u=1;t.forEach((l,i)=>{const a=function(l,n){if(!l)return!0;if(l.id!==n.id)return n.indent-l.indent!=1;const e=n.element.previousSibling;return!e||!((t=e).is("element","ol")||t.is("element","ul"));var t}(t[i-1],l),r=(d=l,(s=a?null:t[i-1])?d.indent-s.indent:d.indent-1);var s,d;if(a&&(o=null,u=1),!o||0!==r){const t=function(l,n){const e=/mso-level-number-format:([^;]{0,100});/gi,t=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,o=new RegExp(`@list l${l.id}:level${l.indent}\\s*({[^}]*)`,"gi").exec(n);let u="decimal",i="ol",a=null;if(o&&o[1]){const n=e.exec(o[1]);if(n&&n[1]&&(i="bullet"!==(u=n[1].trim())&&"image"!==u?"ol":"ul"),"bullet"===u){const n=function(l){const n=function(l){if(l.getChild(0).is("$text"))return null;for(const n of l.getChildren()){if(!n.is("element","span"))continue;const l=n.getChild(0);return l.is("$text")?l:l.getChild(0)}}(l);if(!n)return null;const e=n._data;return"o"===e?"circle":"\xb7"===e?"disc":"\xa7"===e?"square":null}(l.element);n&&(u=n)}else{const l=t.exec(o[1]);l&&l[1]&&(a=parseInt(l[1]))}}return{type:i,startIndex:a,style:Wv(u)}}(l,n);if(o){if(l.indent>u){const l=o.getChild(o.childCount-1),n=l.getChild(l.childCount-1);o=Gv(t,n,e),u+=1}else if(l.indentl.indexOf(n)>-1)?u.push(n):n.getAttribute("src")||u.push(n)}for(const i of u)e.remove(i)}(function(l,n){const e=n.createRangeIn(l),t=new oo({name:/v:(.+)/}),o=[];for(const u of e){if("elementStart"!=u.type)continue;const l=u.item,n=l.previousSibling&&l.previousSibling.name||null;t.match(l)&&l.getAttribute("o:gfxdata")&&"v:shapetype"!==n&&o.push(u.item.getAttribute("id"))}return o}(l,e),l,e),function(l,n){const e=n.createRangeIn(l),t=new oo({name:/v:(.+)/}),o=[];for(const u of e)"elementStart"==u.type&&t.match(u.item)&&o.push(u.item);for(const u of o)n.remove(u)}(l,e);const t=function(l,n){const e=n.createRangeIn(l),t=new oo({name:"img"}),o=[];for(const u of e)t.match(u.item)&&u.item.getAttribute("src").startsWith("file://")&&o.push(u.item);return o}(l,e);t.length&&function(l,n,e){if(l.length===n.length)for(let t=0;t(\s+)<\/span>/g,(l,n)=>1===n.length?" ":Array(n.length+1).join("\xa0 ").substr(0,n.length))}function Jv(l,n,e,t,o=1){n>o?t.setAttribute(l,n,e):t.removeAttribute(l,e)}function lb(l,n,e={}){const t=l.createElement("tableCell",e);return l.insertElement("paragraph",t),l.insert(t,n),t}function nb(l,n){const e=n.parent.parent,t=parseInt(e.getAttribute("headingColumns")||0),{column:o}=l.getCellLocation(n);return!!t&&o{n.on(`element:${l}`,(l,n,e)=>{if(n.modelRange&&n.viewItem.isEmpty){const l=n.modelRange.start.nodeAfter,t=e.writer.createPositionAt(l,0);e.writer.insertElement("paragraph",t)}},{priority:"low"})}}function tb(l){let n=0,e=0;const t=Array.from(l.getChildren()).filter(l=>"th"===l.name||"td"===l.name);for(;e1||o>1)&&this._recordSpans(e,o,t),this._shouldSkipSlot()||(n=this._formatOutValue(e)),this._nextCellAtColumn=this._column+t}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,n||this.next()}skipRow(l){this._skipRows.add(l)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(l,n=this._row,e=this._column){return{done:!1,value:new ub(this,l,n,e)}}_shouldSkipSlot(){const l=this._skipRows.has(this._row),n=this._rowthis._endColumn;return l||n||e||t}_getSpanned(){const l=this._spannedCells.get(this._row);return l&&l.get(this._column)||null}_recordSpans(l,n,e){const t={cell:l,row:this._row,column:this._column};for(let o=this._row;o{const o=e.getAttribute("headingRows")||0,u=[];o>0&&u.push(t.createContainerElement("thead",null,t.createSlot(l=>l.is("element","tableRow")&&l.indexl.is("element","tableRow")&&l.index>=o)));const i=t.createContainerElement("figure",{class:"table"},[t.createContainerElement("table",null,u),t.createSlot(l=>!l.is("element","tableRow"))]);return n.asWidget?function(l,n){return n.setCustomProperty("table",!0,l),Up(l,n,{hasSelectionHandle:!0})}(i,t):i}}function ab(l={}){return(n,{writer:e})=>{const t=n.parent,o=t.parent,u=o.getChildIndex(t),i=new ob(o,{row:u}),a=o.getAttribute("headingRows")||0,r=o.getAttribute("headingColumns")||0;for(const s of i)if(s.cell==n){const n=s.row{if(n.parent.is("element","tableCell")&&sb(n))return l.asWidget?e.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(t.consume(n,"insert"),void o.bindElements(n,o.toViewElement(n.parent)))}}function sb(l){return 1==l.parent.childCount&&![...l.getAttributeKeys()].length}class db extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=l.schema;this.isEnabled=function(l,n){const e=l.getFirstPosition().parent,t=e===e.root?e:e.parent;return n.checkChild(t,"table")}(n,e)}execute(l={}){const n=this.editor.model,e=this.editor.plugins.get("TableUtils"),t=this.editor.config.get("table"),o=t.defaultHeadings.rows,u=t.defaultHeadings.columns;void 0===l.headingRows&&o&&(l.headingRows=o),void 0===l.headingColumns&&u&&(l.headingColumns=u),n.change(t=>{const o=e.createTable(t,l);n.insertObject(o,null,null,{findOptimalPosition:"auto"}),t.setSelection(t.createPositionAt(o.getNodeByPath([0,0,0]),0))})}}class cb extends Pt{constructor(l,n={}){super(l),this.order=n.order||"below"}refresh(){const l=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(l).length;this.isEnabled=n}execute(){const l=this.editor,n=l.model.document.selection,e=l.plugins.get("TableUtils"),t="above"===this.order,o=e.getSelectionAffectedTableCells(n),u=e.getRowIndexes(o),i=t?u.first:u.last,a=o[0].findAncestor("table");e.insertRows(a,{at:t?i:i+1,copyStructureFromAbove:!t})}}class pb extends Pt{constructor(l,n={}){super(l),this.order=n.order||"right"}refresh(){const l=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(l).length;this.isEnabled=n}execute(){const l=this.editor,n=l.model.document.selection,e=l.plugins.get("TableUtils"),t="left"===this.order,o=e.getSelectionAffectedTableCells(n),u=e.getColumnIndexes(o),i=t?u.first:u.last,a=o[0].findAncestor("table");e.insertColumns(a,{columns:1,at:t?i:i+1})}}class fb extends Pt{constructor(l,n={}){super(l),this.direction=n.direction||"horizontally"}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===l.length}execute(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?l.splitCellHorizontally(n,2):l.splitCellVertically(n,2)}}function mb(l,n,e){const{startRow:t,startColumn:o,endRow:u,endColumn:i}=n,a=e.createElement("table"),r=u-t+1;for(let d=0;d0&&Jv("headingRows",u-e,l,o,0);const i=parseInt(n.getAttribute("headingColumns")||0);i>0&&Jv("headingColumns",i-t,l,o,0)}(a,l,t,o,e),a}function hb(l,n,e=0){const t=[],o=new ob(l,{startRow:e,endRow:n-1});for(const u of o){const{row:l,cellHeight:e}=u;l1&&(a.rowspan=r);const s=parseInt(l.getAttribute("colspan")||1);s>1&&(a.colspan=s);const d=u+i,c=[...new ob(o,{startRow:u,endRow:d,includeAllSlots:!0})];let p,f=null;for(const m of c){const{row:n,column:t,cell:o}=m;o===l&&void 0===p&&(p=t),void 0!==p&&p===t&&n===d&&(f=lb(e,m.getPositionBefore(),a))}return Jv("rowspan",i,l,e),f}function vb(l,n){const e=[],t=new ob(l);for(const o of t){const{column:l,cellWidth:t}=o;l1&&(u.colspan=i);const a=parseInt(l.getAttribute("rowspan")||1);a>1&&(u.rowspan=a);const r=lb(t,t.createPositionAfter(l),u);return Jv("colspan",o,l,t),r}function yb(l,n,e,t,o,u){const i=parseInt(l.getAttribute("colspan")||1),a=parseInt(l.getAttribute("rowspan")||1);e+i-1>o&&Jv("colspan",o-e+1,l,u,1),n+a-1>t&&Jv("rowspan",t-n+1,l,u,1)}function xb(l,n){const e=n.getColumns(l),t=new Array(e).fill(0);for(const{column:u}of new ob(l))t[u]++;const o=t.reduce((l,n,e)=>n?l:[...l,e],[]);if(o.length>0){const e=o[o.length-1];return n.removeColumns(l,{at:e}),!0}return!1}function Ab(l,n){const e=[],t=n.getRows(l);for(let o=0;o0){const t=e[e.length-1];return n.removeRows(l,{at:t}),!0}return!1}function _b(l,n){xb(l,n)||Ab(l,n)}function Cb(l,n){const e=Array.from(new ob(l,{startColumn:n.firstColumn,endColumn:n.lastColumn,row:n.lastRow}));if(e.every(({cellHeight:l})=>1===l))return n.lastRow;const t=e[0].cellHeight-1;return n.lastRow+t}function wb(l,n){const e=Array.from(new ob(l,{startRow:n.firstRow,endRow:n.lastRow,column:n.lastColumn}));if(e.every(({cellWidth:l})=>1===l))return n.lastColumn;const t=e[0].cellWidth-1;return n.lastColumn+t}class Rb extends Pt{constructor(l,n){super(l),this.direction=n.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const l=this._getMergeableCell();this.value=l,this.isEnabled=!!l}execute(){const l=this.editor.model,n=l.document,e=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(n.selection)[0],t=this.value,o=this.direction;l.change(l=>{const n="right"==o||"down"==o,u=n?e:t,i=n?t:e,a=i.parent;!function(l,n,e){Lb(l)||(Lb(n)&&e.remove(e.createRangeIn(n)),e.move(e.createRangeIn(l),e.createPositionAt(n,"end"))),e.remove(l)}(i,u,l);const r=this.isHorizontal?"colspan":"rowspan",s=parseInt(e.getAttribute(r)||1),d=parseInt(t.getAttribute(r)||1);l.setAttribute(r,s+d,u),l.setSelection(l.createRangeIn(u));const c=this.editor.plugins.get("TableUtils");_b(a.findAncestor("table"),c)})}_getMergeableCell(){const l=this.editor.model.document,n=this.editor.plugins.get("TableUtils"),e=n.getTableCellsContainingSelection(l.selection)[0];if(!e)return;const t=this.isHorizontal?function(l,n,e){const t=l.parent.parent,o="right"==n?l.nextSibling:l.previousSibling,u=(t.getAttribute("headingColumns")||0)>0;if(!o)return;const i="right"==n?l:o,a="right"==n?o:l,{column:r}=e.getCellLocation(i),{column:s}=e.getCellLocation(a),d=parseInt(i.getAttribute("colspan")||1),c=nb(e,i),p=nb(e,a);return u&&c!=p?void 0:r+d===s?o:void 0}(e,this.direction,n):function(l,n,e){const t=l.parent,o=t.parent,u=o.getChildIndex(t);if("down"==n&&u===e.getRows(o)-1||"up"==n&&0===u)return;const i=parseInt(l.getAttribute("rowspan")||1),a=o.getAttribute("headingRows")||0;if(a&&("down"==n&&u+i===a||"up"==n&&u===a))return;const r=parseInt(l.getAttribute("rowspan")||1),s="down"==n?u+r:u,d=[...new ob(o,{endRow:s})],c=d.find(n=>n.cell===l).column,p=d.find(({row:l,cellHeight:e,column:t})=>t===c&&("down"==n?l===s:s===l+e));return p&&p.cell}(e,this.direction,n);if(!t)return;const o=this.isHorizontal?"rowspan":"colspan",u=parseInt(e.getAttribute(o)||1);return parseInt(t.getAttribute(o)||1)===u?t:void 0}}function Lb(l){return 1==l.childCount&&l.getChild(0).is("element","paragraph")&&l.getChild(0).isEmpty}class Mb extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection),e=n[0];if(e){const t=e.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(t)-1,u=l.getRowIndexes(n),i=0===u.first&&u.last===o;this.isEnabled=!i}else this.isEnabled=!1}execute(){const l=this.editor.model,n=this.editor.plugins.get("TableUtils"),e=n.getSelectionAffectedTableCells(l.document.selection),t=n.getRowIndexes(e),o=e[0],u=o.findAncestor("table"),i=n.getCellLocation(o).column;l.change(l=>{const e=t.last-t.first+1;n.removeRows(u,{at:t.first,rows:e});const o=function(l,n,e,t){const o=l.getChild(Math.min(n,t-1));let u=o.getChild(0),i=0;for(const a of o.getChildren()){if(i>e)return u;u=a,i+=parseInt(a.getAttribute("colspan")||1)}return u}(u,t.first,i,n.getRows(u));l.setSelection(l.createPositionAt(o,0))})}}class Eb extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection),e=n[0];if(e){const t=e.findAncestor("table"),o=l.getColumns(t),{first:u,last:i}=l.getColumnIndexes(n);this.isEnabled=i-ul.cell===n).column,last:o.find(l=>l.cell===e).column},i=function(l,n,e,t){return parseInt(e.getAttribute("colspan")||1)>1?e:n.previousSibling||e.nextSibling?e.nextSibling||n.previousSibling:t.first?l.reverse().find(({column:l})=>ll>t.last).cell}(o,n,e,u);this.editor.model.change(l=>{const n=u.last-u.first+1;this.editor.plugins.get("TableUtils").removeColumns(t,{at:u.first,columns:n}),l.setSelection(l.createPositionAt(i,0))})}}class Ob extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=this.editor.model,e=l.getSelectionAffectedTableCells(n.document.selection),t=e.length>0;this.isEnabled=t,this.value=t&&e.every(l=>this._isInHeading(l,l.parent.parent))}execute(l={}){if(l.forceValue===this.value)return;const n=this.editor.plugins.get("TableUtils"),e=this.editor.model,t=n.getSelectionAffectedTableCells(e.document.selection),o=t[0].findAncestor("table"),{first:u,last:i}=n.getRowIndexes(t),a=this.value?u:i+1,r=o.getAttribute("headingRows")||0;e.change(l=>{if(a){const n=hb(o,a,a>r?r:0);for(const{cell:e}of n)gb(e,a,l)}Jv("headingRows",a,o,l,0)})}_isInHeading(l,n){const e=parseInt(n.getAttribute("headingRows")||0);return!!e&&l.parent.index0;this.isEnabled=t,this.value=t&&e.every(l=>nb(n,l))}execute(l={}){if(l.forceValue===this.value)return;const n=this.editor.plugins.get("TableUtils"),e=this.editor.model,t=n.getSelectionAffectedTableCells(e.document.selection),o=t[0].findAncestor("table"),{first:u,last:i}=n.getColumnIndexes(t),a=this.value?u:i+1;e.change(l=>{if(a){const n=vb(o,a);for(const{cell:e,column:t}of n)bb(e,t,a,l)}Jv("headingColumns",a,o,l,0)})}}class kb extends qt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(l){const n=l.parent,e=n.parent,t=e.getChildIndex(n),o=new ob(e,{row:t});for(const{cell:u,row:i,column:a}of o)if(u===l)return{row:i,column:a}}createTable(l,n){const e=l.createElement("table"),t=parseInt(n.rows)||2,o=parseInt(n.columns)||2;return Ib(l,e,0,t,o),n.headingRows&&Jv("headingRows",Math.min(n.headingRows,t),e,l,0),n.headingColumns&&Jv("headingColumns",Math.min(n.headingColumns,o),e,l,0),e}insertRows(l,n={}){const e=this.editor.model,t=n.at||0,o=n.rows||1,u=void 0!==n.copyStructureFromAbove,i=n.copyStructureFromAbove?t-1:t,a=this.getRows(l),r=this.getColumns(l);if(t>a)throw new b("tableutils-insertrows-insert-out-of-range",this,{options:n});e.change(n=>{const e=l.getAttribute("headingRows")||0;if(e>t&&Jv("headingRows",e+o,l,n,0),!u&&(0===t||t===a))return void Ib(n,l,t,o,r);const s=u?Math.max(t,i):t,d=new ob(l,{endRow:s}),c=new Array(r).fill(1);for(const{row:l,column:a,cellHeight:r,cellWidth:p,cell:f}of d){const e=l+r-1,s=l<=i&&i<=e;l0&&lb(n,o,t>1?{colspan:t}:null),l+=Math.abs(t)-1}}})}insertColumns(l,n={}){const e=this.editor.model,t=n.at||0,o=n.columns||1;e.change(n=>{const e=l.getAttribute("headingColumns");to-1)throw new b("tableutils-removerows-row-index-out-of-range",this,{table:l,options:n});e.change(n=>{const{cellsToMove:e,cellsToTrim:t}=function(l,n,e){const t=new Map,o=[];for(const{row:u,column:i,cellHeight:a,cell:r}of new ob(l,{endRow:e})){const l=u+a-1;if(u>=n&&u<=e&&l>e){const l=a-(e-u+1);t.set(i,{cell:r,rowspan:l})}if(u=n){let t;t=l>=e?e-n+1:l-n+1,o.push({cell:r,rowspan:a-t})}}return{cellsToMove:t,cellsToTrim:o}}(l,u,i);e.size&&function(l,n,e,t){const o=[...new ob(l,{includeAllSlots:!0,row:n})],u=l.getChild(n);let i;for(const{column:a,cell:r,isAnchor:s}of o)if(e.has(a)){const{cell:l,rowspan:n}=e.get(a),o=i?t.createPositionAfter(i):t.createPositionAt(u,0);t.move(t.createRangeOn(l),o),Jv("rowspan",n,l,t),i=l}else s&&(i=r)}(l,i+1,e,n);for(let o=i;o>=u;o--)n.remove(l.getChild(o));for(const{rowspan:l,cell:o}of t)Jv("rowspan",l,o,n);!function(l,n,e,t){const o=l.getAttribute("headingRows")||0;n{!function(l,n,e){const t=l.getAttribute("headingColumns")||0;if(t&&n.first=t;e--)for(const{cell:t,column:o,cellWidth:u}of[...new ob(l)])o<=e&&u>1&&o+u>e?Jv("colspan",u-1,t,n):o===e&&n.remove(t);Ab(l,this)||xb(l,this)})}splitCellVertically(l,n=2){const e=this.editor.model,t=l.parent.parent,o=parseInt(l.getAttribute("rowspan")||1),u=parseInt(l.getAttribute("colspan")||1);e.change(e=>{if(u>1){const{newCellsSpan:t,updatedSpan:i}=Nb(u,n);Jv("colspan",i,l,e);const a={};t>1&&(a.colspan=t),o>1&&(a.rowspan=o),Fb(u>n?n-1:u-1,e,e.createPositionAfter(l),a)}if(un===l),s=a.filter(({cell:n,cellWidth:e,column:t})=>n!==l&&t===r||tr);for(const{cell:l,cellWidth:n}of s)e.setAttribute("colspan",n+i,l);const d={};o>1&&(d.rowspan=o),Fb(i,e,e.createPositionAfter(l),d);const c=t.getAttribute("headingColumns")||0;c>r&&Jv("headingColumns",c+i,t,e)}})}splitCellHorizontally(l,n=2){const e=this.editor.model,t=l.parent,o=t.parent,u=o.getChildIndex(t),i=parseInt(l.getAttribute("rowspan")||1),a=parseInt(l.getAttribute("colspan")||1);e.change(e=>{if(i>1){const t=[...new ob(o,{startRow:u,endRow:u+i-1,includeAllSlots:!0})],{newCellsSpan:r,updatedSpan:s}=Nb(i,n);Jv("rowspan",s,l,e);const{column:d}=t.find(({cell:n})=>n===l),c={};r>1&&(c.rowspan=r),a>1&&(c.colspan=a);for(const l of t){const{column:n,row:t}=l;t>=u+s&&n===d&&(t+u+s)%r==0&&Fb(1,e,l.getPositionBefore(),c)}}if(iu){const l=o+t;e.setAttribute("rowspan",l,n)}const s={};a>1&&(s.colspan=a),Ib(e,o,u+1,t,1,s);const d=o.getAttribute("headingRows")||0;d>u&&Jv("headingRows",d+t,o,e)}})}getColumns(l){return[...l.getChild(0).getChildren()].reduce((l,n)=>l+parseInt(n.getAttribute("colspan")||1),0)}getRows(l){return Array.from(l.getChildren()).reduce((l,n)=>n.is("element","tableRow")?l+1:l,0)}createTableWalker(l,n={}){return new ob(l,n)}getSelectedTableCells(l){const n=[];for(const e of this.sortRanges(l.getRanges())){const l=e.getContainedElement();l&&l.is("element","tableCell")&&n.push(l)}return n}getTableCellsContainingSelection(l){const n=[];for(const e of l.getRanges()){const l=e.start.findAncestor("tableCell");l&&n.push(l)}return n}getSelectionAffectedTableCells(l){const n=this.getSelectedTableCells(l);return n.length?n:this.getTableCellsContainingSelection(l)}getRowIndexes(l){const n=l.map(l=>l.parent.index);return this._getFirstLastIndexesObject(n)}getColumnIndexes(l){const n=l[0].findAncestor("table"),e=[...new ob(n)].filter(n=>l.includes(n.cell)).map(l=>l.column);return this._getFirstLastIndexesObject(e)}isSelectionRectangular(l){if(l.length<2||!this._areCellInTheSameTableSection(l))return!1;const n=new Set,e=new Set;let t=0;for(const o of l){const{row:l,column:u}=this.getCellLocation(o),i=parseInt(o.getAttribute("rowspan")||1),a=parseInt(o.getAttribute("colspan")||1);n.add(l),e.add(u),i>1&&n.add(l+i-1),a>1&&e.add(u+a-1),t+=i*a}return function(l,n){const e=Array.from(l.values()),t=Array.from(n.values());return(Math.max(...e)-Math.min(...e)+1)*(Math.max(...t)-Math.min(...t)+1)}(n,e)==t}sortRanges(l){return Array.from(l).sort(Db)}_getFirstLastIndexesObject(l){const n=l.sort((l,n)=>l-n);return{first:n[0],last:n[n.length-1]}}_areCellInTheSameTableSection(l){const n=l[0].findAncestor("table"),e=this.getRowIndexes(l),t=parseInt(n.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(e,t))return!1;const o=parseInt(n.getAttribute("headingColumns")||0),u=this.getColumnIndexes(l);return this._areIndexesInSameSection(u,o)}_areIndexesInSameSection({first:l,last:n},e){return l{const t=n.getSelectedTableCells(l.document.selection),o=t.shift(),{mergeWidth:u,mergeHeight:i}=function(l,n,e){let t=0,o=0;for(const a of n){const{row:l,column:n}=e.getCellLocation(a);t=Pb(a,n,t,"colspan"),o=Pb(a,l,o,"rowspan")}const{row:u,column:i}=e.getCellLocation(l);return{mergeWidth:t-i,mergeHeight:o-u}}(o,t,n);Jv("colspan",u,o,e),Jv("rowspan",i,o,e);for(const l of t)qb(l,o,e);_b(o.findAncestor("table"),n),e.setSelection(o,"in")})}}function qb(l,n,e){Tb(l)||(Tb(n)&&e.remove(e.createRangeIn(n)),e.move(e.createRangeIn(l),e.createPositionAt(n,"end"))),e.remove(l)}function Tb(l){return 1==l.childCount&&l.getChild(0).is("element","paragraph")&&l.getChild(0).isEmpty}function Pb(l,n,e,t){const o=parseInt(l.getAttribute(t)||1);return Math.max(e,n+o)}class Bb extends Pt{constructor(l){super(l),this.affectsData=!1}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=l.length>0}execute(){const l=this.editor.model,n=this.editor.plugins.get("TableUtils"),e=n.getSelectionAffectedTableCells(l.document.selection),t=n.getRowIndexes(e),o=e[0].findAncestor("table"),u=[];for(let i=t.first;i<=t.last;i++)for(const n of o.getChild(i).getChildren())u.push(l.createRangeOn(n));l.change(l=>{l.setSelection(u)})}}class Vb extends Pt{constructor(l){super(l),this.affectsData=!1}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=l.length>0}execute(){const l=this.editor.plugins.get("TableUtils"),n=this.editor.model,e=l.getSelectionAffectedTableCells(n.document.selection),t=e[0],o=e.pop(),u=t.findAncestor("table"),i=l.getCellLocation(t),a=l.getCellLocation(o),r=Math.min(i.column,a.column),s=Math.max(i.column,a.column),d=[];for(const c of new ob(u,{startColumn:r,endColumn:s}))d.push(n.createRangeOn(c.cell));n.change(l=>{l.setSelection(d)})}}function Ub(l,n){let e=!1;const t=function(l){const n=parseInt(l.getAttribute("headingRows")||0),e=Array.from(l.getChildren()).reduce((l,n)=>n.is("element","tableRow")?l+1:l,0),t=[];for(const{row:o,cell:u,cellHeight:i}of new ob(l)){if(i<2)continue;const l=ol){const n=l-o;t.push({cell:u,rowspan:n})}}return t}(l);if(t.length){e=!0;for(const l of t)Jv("rowspan",l.rowspan,l.cell,n,1)}return e}function Wb(l,n){let e=!1;const t=function(l){const n=new Array(l.childCount).fill(0);for(const{rowIndex:e}of new ob(l,{includeAllSlots:!0}))n[e]++;return n}(l),o=[];for(const[a,r]of t.entries())!r&&l.getChild(a).is("element","tableRow")&&o.push(a);if(o.length){e=!0;for(const e of o.reverse())n.remove(l.getChild(e)),t.splice(e,1)}const u=t.filter((n,e)=>l.getChild(e).is("element","tableRow")),i=u[0];if(!u.every(l=>l===i)){const t=u.reduce((l,n)=>n>l?n:l,0);for(const[o,i]of u.entries()){const u=t-i;if(u){for(let e=0;el.is("$text"));for(const t of e)n.wrap(n.createRangeOn(t),"paragraph");return!!e.length}function Zb(l){return!(!l.position||!l.position.parent.is("element","tableCell"))&&("insert"==l.type&&"$text"==l.name||"remove"==l.type)}function Xb(l,n){if(!l.is("element","paragraph"))return!1;const e=n.toViewElement(l);return!!e&&sb(l)!==e.is("element","span")}var $b=o(3881);Ht()($b.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$b.Z.locals;class Kb extends qt{static get pluginName(){return"TableEditing"}static get requires(){return[kb]}init(){const l=this.editor,n=l.model,e=n.schema,t=l.conversion,o=l.plugins.get(kb);e.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),e.register("tableRow",{allowIn:"table",isLimit:!0}),e.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),t.for("upcast").add(l=>{l.on("element:figure",(l,n,e)=>{if(!e.consumable.test(n.viewItem,{name:!0,classes:"table"}))return;const t=function(l){for(const n of l.getChildren())if(n.is("element","table"))return n}(n.viewItem);if(!t||!e.consumable.test(t,{name:!0}))return;e.consumable.consume(n.viewItem,{name:!0,classes:"table"});const o=Ot(e.convertItem(t,n.modelCursor).modelRange.getItems());o?(e.convertChildren(n.viewItem,e.writer.createPositionAt(o,"end")),e.updateConversionResult(o,n)):e.consumable.revert(n.viewItem,{name:!0,classes:"table"})})}),t.for("upcast").add(l=>{l.on("element:table",(l,n,e)=>{const t=n.viewItem;if(!e.consumable.test(t,{name:!0}))return;const{rows:o,headingRows:u,headingColumns:i}=function(l){const n={headingRows:0,headingColumns:0},e=[],t=[];let o;for(const u of Array.from(l.getChildren()))if("tbody"===u.name||"thead"===u.name||"tfoot"===u.name){"thead"!==u.name||o||(o=u);const l=Array.from(u.getChildren()).filter(l=>l.is("element","tr"));for(const u of l)if("thead"===u.parent.name&&u.parent===o)n.headingRows++,e.push(u);else{t.push(u);const l=tb(u);l>n.headingColumns&&(n.headingColumns=l)}}return n.rows=[...e,...t],n}(t),a={};i&&(a.headingColumns=i),u&&(a.headingRows=u);const r=e.writer.createElement("table",a);if(e.safeInsert(r,n.modelCursor)){if(e.consumable.consume(t,{name:!0}),o.forEach(l=>e.convertItem(l,e.writer.createPositionAt(r,"end"))),e.convertChildren(t,e.writer.createPositionAt(r,"end")),r.isEmpty){const l=e.writer.createElement("tableRow");e.writer.insert(l,e.writer.createPositionAt(r,"end")),lb(e.writer,e.writer.createPositionAt(l,"end"))}e.updateConversionResult(r,n)}})}),t.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ib(o,{asWidget:!0})}),t.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ib(o)}),t.for("upcast").elementToElement({model:"tableRow",view:"tr"}),t.for("upcast").add(l=>{l.on("element:tr",(l,n)=>{n.viewItem.isEmpty&&0==n.modelCursor.index&&l.stop()},{priority:"high"})}),t.for("downcast").elementToElement({model:"tableRow",view:(l,{writer:n})=>l.isEmpty?n.createEmptyElement("tr"):n.createContainerElement("tr")}),t.for("upcast").elementToElement({model:"tableCell",view:"td"}),t.for("upcast").elementToElement({model:"tableCell",view:"th"}),t.for("upcast").add(eb("td")),t.for("upcast").add(eb("th")),t.for("editingDowncast").elementToElement({model:"tableCell",view:ab({asWidget:!0})}),t.for("dataDowncast").elementToElement({model:"tableCell",view:ab()}),t.for("editingDowncast").elementToElement({model:"paragraph",view:rb({asWidget:!0}),converterPriority:"high"}),t.for("dataDowncast").elementToElement({model:"paragraph",view:rb(),converterPriority:"high"}),t.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),t.for("upcast").attributeToAttribute({model:{key:"colspan",value:Qb("colspan")},view:"colspan"}),t.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),t.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Qb("rowspan")},view:"rowspan"}),l.data.mapper.on("modelToViewPosition",(l,n)=>{const e=n.modelPosition.parent,t=n.modelPosition.nodeBefore;if(!e.is("element","tableCell"))return;if(!t||!t.is("element","paragraph"))return;const o=n.mapper.toViewElement(t),u=n.mapper.toViewElement(e);o===u&&(n.viewPosition=n.mapper.findPositionIn(u,t.maxOffset))}),l.config.define("table.defaultHeadings.rows",0),l.config.define("table.defaultHeadings.columns",0),l.commands.add("insertTable",new db(l)),l.commands.add("insertTableRowAbove",new cb(l,{order:"above"})),l.commands.add("insertTableRowBelow",new cb(l,{order:"below"})),l.commands.add("insertTableColumnLeft",new pb(l,{order:"left"})),l.commands.add("insertTableColumnRight",new pb(l,{order:"right"})),l.commands.add("removeTableRow",new Mb(l)),l.commands.add("removeTableColumn",new Eb(l)),l.commands.add("splitTableCellVertically",new fb(l,{direction:"vertically"})),l.commands.add("splitTableCellHorizontally",new fb(l,{direction:"horizontally"})),l.commands.add("mergeTableCells",new zb(l)),l.commands.add("mergeTableCellRight",new Rb(l,{direction:"right"})),l.commands.add("mergeTableCellLeft",new Rb(l,{direction:"left"})),l.commands.add("mergeTableCellDown",new Rb(l,{direction:"down"})),l.commands.add("mergeTableCellUp",new Rb(l,{direction:"up"})),l.commands.add("setTableColumnHeader",new Sb(l)),l.commands.add("setTableRowHeader",new Ob(l)),l.commands.add("selectTableRow",new Bb(l)),l.commands.add("selectTableColumn",new Vb(l)),function(l){l.document.registerPostFixer(n=>(function(l,n){const e=n.document.differ.getChanges();let t=!1;const o=new Set;for(const u of e){let n;"table"==u.name&&"insert"==u.type&&(n=u.position.nodeAfter),"tableRow"!=u.name&&"tableCell"!=u.name||(n=u.position.findAncestor("table")),Gb(u)&&(n=u.range.start.findAncestor("table")),n&&!o.has(n)&&(t=Ub(n,l)||t,t=Wb(n,l)||t,o.add(n))}return t})(n,l))}(n),function(l){l.document.registerPostFixer(n=>(function(l,n){const e=n.document.differ.getChanges();let t=!1;for(const o of e)"insert"==o.type&&"table"==o.name&&(t=jb(o.position.nodeAfter,l)||t),"insert"==o.type&&"tableRow"==o.name&&(t=Hb(o.position.nodeAfter,l)||t),"insert"==o.type&&"tableCell"==o.name&&(t=Yb(o.position.nodeAfter,l)||t),Zb(o)&&(t=Yb(o.position.parent,l)||t);return t})(n,l))}(n),this.listenTo(n.document,"change:data",()=>{!function(l,n){const e=l.document.differ;for(const t of e.getChanges()){let l,e=!1;if("attribute"==t.type){const n=t.range.start.nodeAfter;if(!n||!n.is("element","table"))continue;if("headingRows"!=t.attributeKey&&"headingColumns"!=t.attributeKey)continue;l=n,e="headingRows"==t.attributeKey}else"tableRow"!=t.name&&"tableCell"!=t.name||(l=t.position.findAncestor("table"),e="tableRow"==t.name);if(!l)continue;const o=l.getAttribute("headingRows")||0,u=l.getAttribute("headingColumns")||0,i=new ob(l);for(const t of i){const l=t.rowXb(l,n.mapper));for(const e of l)n.reconvertItem(e)}}(n,l.editing)})}}function Qb(l){return n=>{const e=parseInt(n.getAttribute(l));return Number.isNaN(e)||e<=0?null:e}}var Jb=o(1613);Ht()(Jb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jb.Z.locals;class ly extends rd{constructor(l){super(l);const n=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new kt,this.focusTracker=new St,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(l,n)=>`${n} \xd7 ${l}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":n.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:n.to("label")}]}],on:{mousedown:n.to(l=>{l.preventDefault()}),click:n.to(()=>{this.fire("execute")})}}),this.on("boxover",(l,n)=>{const{row:e,column:t}=n.target.dataset;this.items.get(10*(parseInt(e,10)-1)+(parseInt(t,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(l,n,e)=>{if(!e)return;const{row:t,column:o}=e.dataset;this.set({rows:parseInt(t),columns:parseInt(o)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:l,focusTracker:n,gridItems:e,numberOfColumns:t,uiLanguageDirection:o}){const u="number"==typeof t?()=>t:t;function i(l){return t=>{const o=e.find(l=>l.element===n.focusedElement),u=e.getIndex(o),i=l(u,e);e.get(i).focus(),t.stopPropagation(),t.preventDefault()}}function a(l,n){return l===n-1?0:l+1}function r(l,n){return 0===l?n-1:l-1}l.set("arrowright",i((l,n)=>"rtl"===o?r(l,n.length):a(l,n.length))),l.set("arrowleft",i((l,n)=>"rtl"===o?a(l,n.length):r(l,n.length))),l.set("arrowup",i((l,n)=>{let e=l-u();return e<0&&((e=l+u()*Math.floor(n.length/u()))>n.length-1&&(e-=u())),e})),l.set("arrowdown",i((l,n)=>{let e=l+u();return e>n.length-1&&(e=l%u()),e}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const l of this.items)this.focusTracker.add(l.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const l=this.rows,n=this.columns;this.items.map((e,t)=>{const o=Math.floor(t/10){const t=l.commands.get("insertTable"),o=ac(e);let u;return o.bind("isEnabled").to(t),o.buttonView.set({icon:'',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",()=>{u||(u=new ly(e),o.panelView.children.add(u),u.delegate("execute").to(o),o.on("execute",()=>{l.execute("insertTable",{rows:u.rows,columns:u.columns}),l.editing.view.focus()}))}),o}),l.ui.componentFactory.add("tableColumn",l=>{const t=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:e?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:e?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return this._prepareDropdown(n("Column"),'',t,l)}),l.ui.componentFactory.add("tableRow",l=>{const e=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return this._prepareDropdown(n("Row"),'',e,l)}),l.ui.componentFactory.add("mergeTableCells",l=>{const t=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:e?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:e?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(n("Merge cells"),'',t,l)})}_prepareDropdown(l,n,e,t){const o=this.editor,u=ac(t),i=this._fillDropdownWithListOptions(u,e);return u.buttonView.set({label:l,icon:n,tooltip:!0}),u.bind("isEnabled").toMany(i,"isEnabled",(...l)=>l.some(l=>l)),this.listenTo(u,"execute",l=>{o.execute(l.source.commandName),l.source instanceof Nd||o.editing.view.focus()}),u}_prepareMergeSplitButtonDropdown(l,n,e,t){const o=this.editor,u=ac(t,Pd),i="mergeTableCells",a=o.commands.get(i),r=this._fillDropdownWithListOptions(u,e);return u.buttonView.set({label:l,icon:n,tooltip:!0,isEnabled:!0}),u.bind("isEnabled").toMany([a,...r],"isEnabled",(...l)=>l.some(l=>l)),this.listenTo(u.buttonView,"execute",()=>{o.execute(i),o.editing.view.focus()}),this.listenTo(u,"execute",l=>{o.execute(l.source.commandName),o.editing.view.focus()}),u}_fillDropdownWithListOptions(l,n){const e=this.editor,t=[],o=new Et;for(const u of n)ey(u,e,t,o);return sc(l,o,e.ui.componentFactory),t}}function ey(l,n,e,t){const o=l.model=new Lc(l.model),{commandName:u,bindIsOn:i}=l.model;if("button"===l.type||"switchbutton"===l.type){const l=n.commands.get(u);e.push(l),o.set({commandName:u}),o.bind("isEnabled").to(l),i&&o.bind("isOn").to(l,"value")}o.set({withText:!0}),t.add(l)}var ty=o(6945);Ht()(ty.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ty.Z.locals;class oy extends qt{static get pluginName(){return"TableSelection"}static get requires(){return[kb,kb]}init(){const l=this.editor,n=l.model,e=l.editing.view;this.listenTo(n,"deleteContent",(l,n)=>this._handleDeleteContent(l,n),{priority:"high"}),this.listenTo(e.document,"insertText",(l,n)=>this._handleInsertTextEvent(l,n),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const l=this.editor.plugins.get(kb),n=this.editor.model.document.selection,e=l.getSelectedTableCells(n);return 0==e.length?null:e}getSelectionAsFragment(){const l=this.editor.plugins.get(kb),n=this.getSelectedTableCells();return n?this.editor.model.change(e=>{const t=e.createDocumentFragment(),{first:o,last:u}=l.getColumnIndexes(n),{first:i,last:a}=l.getRowIndexes(n),r=n[0].findAncestor("table");let s=a,d=u;if(l.isSelectionRectangular(n)){const l={firstColumn:o,lastColumn:u,firstRow:i,lastRow:a};s=Cb(r,l),d=wb(r,l)}const c=mb(r,{startRow:i,startColumn:o,endRow:s,endColumn:d},e);return e.insert(c,t,0),t}):null}setCellSelection(l,n){const e=this._getCellsToSelect(l,n);this.editor.model.change(l=>{l.setSelection(e.cells.map(n=>l.createRangeOn(n)),{backward:e.backward})})}getFocusCell(){const l=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return l&&l.is("element","tableCell")?l:null}getAnchorCell(){const l=Ot(this.editor.model.document.selection.getRanges()).getContainedElement();return l&&l.is("element","tableCell")?l:null}_defineSelectionConverter(){const l=this.editor,n=new Set;l.conversion.for("editingDowncast").add(l=>l.on("selection",(l,e,t)=>{const o=t.writer;!function(l){for(const e of n)l.removeClass("ck-editor__editable_selected",e);n.clear()}(o);const u=this.getSelectedTableCells();if(!u)return;for(const a of u){const l=t.mapper.toViewElement(a);o.addClass("ck-editor__editable_selected",l),n.add(l)}const i=t.mapper.toViewElement(u[u.length-1]);o.setSelection(i,0)},{priority:"lowest"}))}_enablePluginDisabling(){const l=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const n=this.getSelectedTableCells();if(!n)return;l.model.change(e=>{const t=e.createPositionAt(n[0],0),o=l.model.schema.getNearestSelectionRange(t);e.setSelection(o)})}})}_handleDeleteContent(l,n){const e=this.editor.plugins.get(kb),[t,o]=n,u=this.editor.model,i=!o||"backward"==o.direction,a=e.getSelectedTableCells(t);a.length&&(l.stop(),u.change(l=>{const n=a[i?a.length-1:0];u.change(l=>{for(const n of a)u.deleteContent(l.createSelection(n,"in"))});const e=u.schema.getNearestSelectionRange(l.createPositionAt(n,0));t.is("documentSelection")?l.setSelection(e):t.setTo(e)}))}_handleInsertTextEvent(l,n){const e=this.editor,t=e.model.document.selection,o=this.getSelectedTableCells(t);if(!o)return;const u=e.editing.view,i=e.editing.mapper,a=o.map(l=>u.createRangeOn(i.toViewElement(l)));n.selection=u.createSelection(a)}_getCellsToSelect(l,n){const e=this.editor.plugins.get("TableUtils"),t=e.getCellLocation(l),o=e.getCellLocation(n),u=Math.min(t.row,o.row),i=Math.max(t.row,o.row),a=Math.min(t.column,o.column),r=Math.max(t.column,o.column),s=new Array(i-u+1).fill(null).map(()=>[]),d={startRow:u,endRow:i,startColumn:a,endColumn:r};for(const{row:f,cell:m}of new ob(l.findAncestor("table"),d))s[f-u].push(m);const c=o.rowl.reverse()),{cells:s.flat(),backward:c||p}}}class uy extends qt{static get pluginName(){return"TableClipboard"}static get requires(){return[oy,kb]}init(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"copy",(l,n)=>this._onCopyCut(l,n)),this.listenTo(n,"cut",(l,n)=>this._onCopyCut(l,n)),this.listenTo(l.model,"insertContent",(l,n)=>this._onInsertContent(l,...n),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(l,n){const e=this.editor.plugins.get(oy);if(!e.getSelectedTableCells())return;if("cut"==l.name&&this.editor.isReadOnly)return;n.preventDefault(),l.stop();const t=this.editor.data,o=this.editor.editing.view.document,u=t.toView(e.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:n.dataTransfer,content:u,method:l.name})}_onInsertContent(l,n,e){if(e&&!e.is("documentSelection"))return;const t=this.editor.model,o=this.editor.plugins.get(kb);let u=iy(n,t);if(!u)return;const i=o.getSelectionAffectedTableCells(t.document.selection);i.length?(l.stop(),t.change(l=>{const n={width:o.getColumns(u),height:o.getRows(u)},e=function(l,n,e,t){const o=l[0].findAncestor("table"),u=t.getColumnIndexes(l),i=t.getRowIndexes(l),a={firstColumn:u.first,lastColumn:u.last,firstRow:i.first,lastRow:i.last},r=1===l.length;return r&&(a.lastRow+=n.height-1,a.lastColumn+=n.width-1,function(l,n,e,t){const o=t.getColumns(l),u=t.getRows(l);e>o&&t.insertColumns(l,{at:o,columns:e-o}),n>u&&t.insertRows(l,{at:u,rows:n-u})}(o,a.lastRow+1,a.lastColumn+1,t)),r||!t.isSelectionRectangular(l)?function(l,n,e){const{firstRow:t,lastRow:o,firstColumn:u,lastColumn:i}=n,a={first:t,last:o},r={first:u,last:i};ry(l,u,a,e),ry(l,i+1,a,e),ay(l,t,r,e),ay(l,o+1,r,e,t)}(o,a,e):(a.lastRow=Cb(o,a),a.lastColumn=wb(o,a)),a}(i,n,l,o),t=e.lastRow-e.firstRow+1,a=e.lastColumn-e.firstColumn+1,r={startRow:0,startColumn:0,endRow:Math.min(t,n.height)-1,endColumn:Math.min(a,n.width)-1};u=mb(u,r,l);const s=i[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(u,n,s,e,l);if(this.editor.plugins.get("TableSelection").isEnabled){const n=o.sortRanges(d.map(n=>l.createRangeOn(n)));l.setSelection(n)}else l.setSelection(d[0],0)})):_b(u,o)}_replaceSelectedCellsWithPasted(l,n,e,t,o){const{width:u,height:i}=n,a=function(l,n,e){const t=new Array(i).fill(null).map(()=>new Array(n).fill(null));for(const{column:o,row:u,cell:i}of new ob(l))t[u][o]=i;return t}(l,u),r=[...new ob(e,{startRow:t.firstRow,endRow:t.lastRow,startColumn:t.firstColumn,endColumn:t.lastColumn,includeAllSlots:!0})],s=[];let d;for(const h of r){const{row:l,column:n}=h;n===t.firstColumn&&(d=h.getPositionBefore());const e=l-t.firstRow,r=n-t.firstColumn,c=a[e%i][r%u],p=c?o.cloneElement(c):null,f=this._replaceTableSlotCell(h,p,d,o);f&&(yb(f,l,n,t.lastRow,t.lastColumn,o),s.push(f),d=o.createPositionAfter(f))}const c=parseInt(e.getAttribute("headingRows")||0),p=parseInt(e.getAttribute("headingColumns")||0),f=t.firstRowsy(l,n,e)).map(({cell:l})=>gb(l,n,t))}function ry(l,n,e,t){if(!(n<1))return vb(l,n).filter(({row:l,cellHeight:n})=>sy(l,n,e)).map(({cell:l,column:e})=>bb(l,e,n,t))}function sy(l,n,e){const t=l+n-1,{first:o,last:u}=e;return l>=o&&l<=u||l=o}class dy extends qt{static get pluginName(){return"TableKeyboard"}static get requires(){return[oy,kb]}init(){const l=this.editor.editing.view.document;this.listenTo(l,"arrowKey",(...l)=>this._onArrowKey(...l),{context:"table"}),this.listenTo(l,"tab",(...l)=>this._handleTabOnSelectedTable(...l),{context:"figure"}),this.listenTo(l,"tab",(...l)=>this._handleTab(...l),{context:["th","td"]})}_handleTabOnSelectedTable(l,n){const e=this.editor,t=e.model.document.selection.getSelectedElement();t&&t.is("element","table")&&(n.preventDefault(),n.stopPropagation(),l.stop(),e.model.change(l=>{l.setSelection(l.createRangeIn(t.getChild(0).getChild(0)))}))}_handleTab(l,n){const e=this.editor,t=this.editor.plugins.get(kb),o=e.model.document.selection,u=!n.shiftKey;let i=t.getTableCellsContainingSelection(o)[0];if(i||(i=this.editor.plugins.get("TableSelection").getFocusCell()),!i)return;n.preventDefault(),n.stopPropagation(),l.stop();const a=i.parent,r=a.parent,s=r.getChildIndex(a),d=a.getChildIndex(i),c=0===d;if(!u&&c&&0===s)return void e.model.change(l=>{l.setSelection(l.createRangeOn(r))});const p=d===a.childCount-1,f=s===t.getRows(r)-1;if(u&&f&&p&&(e.execute("insertTableRowBelow"),s===t.getRows(r)-1))return void e.model.change(l=>{l.setSelection(l.createRangeOn(r))});let m;if(u&&p){const l=r.getChild(s+1);m=l.getChild(0)}else if(!u&&c){const l=r.getChild(s-1);m=l.getChild(l.childCount-1)}else m=a.getChild(d+(u?1:-1));e.model.change(l=>{l.setSelection(l.createRangeIn(m))})}_onArrowKey(l,n){const e=this.editor,t=Ct(n.keyCode,e.locale.contentLanguageDirection);this._handleArrowKeys(t,n.shiftKey)&&(n.preventDefault(),n.stopPropagation(),l.stop())}_handleArrowKeys(l,n){const e=this.editor.plugins.get(kb),t=this.editor.model,o=t.document.selection,u=["right","down"].includes(l),i=e.getSelectedTableCells(o);if(i.length){let e;return e=n?this.editor.plugins.get("TableSelection").getFocusCell():u?i[i.length-1]:i[0],this._navigateFromCellInDirection(e,l,n),!0}const a=o.focus.findAncestor("tableCell");if(!a)return!1;if(!o.isCollapsed)if(n){if(o.isBackward==u&&!o.containsEntireContent(a))return!1}else{const l=o.getSelectedElement();if(!l||!t.schema.isObject(l))return!1}return!!this._isSelectionAtCellEdge(o,a,u)&&(this._navigateFromCellInDirection(a,l,n),!0)}_isSelectionAtCellEdge(l,n,e){const t=this.editor.model,o=this.editor.model.schema,u=e?l.getLastPosition():l.getFirstPosition();if(!o.getLimitElement(u).is("element","tableCell"))return t.createPositionAt(n,e?"end":0).isTouching(u);const i=t.createSelection(u);return t.modifySelection(i,{direction:e?"forward":"backward"}),u.isEqual(i.focus)}_navigateFromCellInDirection(l,n,e=!1){const t=this.editor.model,o=l.findAncestor("table"),u=[...new ob(o,{includeAllSlots:!0})],{row:i,column:a}=u[u.length-1],r=u.find(({cell:n})=>n==l);let{row:s,column:d}=r;switch(n){case"left":d--;break;case"up":s--;break;case"right":d+=r.cellWidth;break;case"down":s+=r.cellHeight}if(s<0||s>i||d<0&&s<=0||d>a&&s>=i)return void t.change(l=>{l.setSelection(l.createRangeOn(o))});d<0?(d=e?0:a,s--):d>a&&(d=e?a:0,s++);const c=u.find(l=>l.row==s&&l.column==d).cell,p=["right","down"].includes(n),f=this.editor.plugins.get("TableSelection");if(e&&f.isEnabled){const n=f.getAnchorCell()||l;f.setCellSelection(n,c)}else{const l=t.createPositionAt(c,p?0:"end");t.change(n=>{n.setSelection(l)})}}}class cy extends oi{constructor(l){super(l),this.domEventType=["mousemove","mouseleave"]}onDomEvent(l){this.fire(l.type,l)}}class py extends qt{static get pluginName(){return"TableMouse"}static get requires(){return[oy,kb]}init(){this.editor.editing.view.addObserver(cy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const l=this.editor,n=l.plugins.get(kb);let e=!1;const t=l.plugins.get(oy);this.listenTo(l.editing.view.document,"mousedown",(o,u)=>{const i=l.model.document.selection;if(!this.isEnabled||!t.isEnabled)return;if(!u.domEvent.shiftKey)return;const a=t.getAnchorCell()||n.getTableCellsContainingSelection(i)[0];if(!a)return;const r=this._getModelTableCellFromDomEvent(u);r&&fy(a,r)&&(e=!0,t.setCellSelection(a,r),u.preventDefault())}),this.listenTo(l.editing.view.document,"mouseup",()=>{e=!1}),this.listenTo(l.editing.view.document,"selectionChange",l=>{e&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const l=this.editor;let n,e,t=!1,o=!1;const u=l.plugins.get(oy);this.listenTo(l.editing.view.document,"mousedown",(l,e)=>{this.isEnabled&&u.isEnabled&&(e.domEvent.shiftKey||e.domEvent.ctrlKey||e.domEvent.altKey||(n=this._getModelTableCellFromDomEvent(e)))}),this.listenTo(l.editing.view.document,"mousemove",(l,i)=>{if(!i.domEvent.buttons)return;if(!n)return;const a=this._getModelTableCellFromDomEvent(i);a&&fy(n,a)&&(e=a,t||e==n||(t=!0)),t&&(o=!0,u.setCellSelection(n,e),i.preventDefault())}),this.listenTo(l.editing.view.document,"mouseup",()=>{t=!1,o=!1,n=null,e=null}),this.listenTo(l.editing.view.document,"selectionChange",l=>{o&&l.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(l){const n=l.target,e=this.editor.editing.view.createPositionAt(n,0);return this.editor.editing.mapper.toModelPosition(e).parent.findAncestor("tableCell",{includeSelf:!0})}}function fy(l,n){return l.parent.parent==n.parent.parent}var my=o(6306);function hy(l){const n=l.getSelectedElement();return n&&vy(n)?n:null}function gy(l){const n=l.getFirstPosition();if(!n)return null;let e=n.parent;for(;e;){if(e.is("element")&&vy(e))return e;e=e.parent}return null}function vy(l){return!!l.getCustomProperty("table")&&Vp(l)}Ht()(my.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),my.Z.locals;const by={autoRefresh:!0},yy=36e5;class xy{constructor(l,n=by){if(!l)throw new b("token-missing-token-url",this);n.initValue&&this._validateTokenValue(n.initValue),this.set("value",n.initValue),this._refresh="function"==typeof l?l:()=>{return n=l,new Promise((l,e)=>{const t=new XMLHttpRequest;t.open("GET",n),t.addEventListener("load",()=>{const n=t.status,o=t.response;return n<200||n>299?e(new b("token-cannot-download-new-token",null)):l(o)}),t.addEventListener("error",()=>e(new Error("Network Error"))),t.addEventListener("abort",()=>e(new Error("Abort"))),t.send()});var n},this._options=Object.assign({},by,n)}init(){return new Promise((l,n)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),l(this)):this.refreshToken().then(l).catch(n)})}refreshToken(){return this._refresh().then(l=>{this._validateTokenValue(l),this.set("value",l),this._options.autoRefresh&&this._registerRefreshTokenTimeout()}).then(()=>this)}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(l){const n="string"==typeof l,e=!/^".*"$/.test(l),t=n&&3===l.split(".").length;if(!e||!t)throw new b("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const l=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},l)}_getTokenRefreshTimeoutTime(){try{const[,l]=this.value.split("."),{exp:n}=JSON.parse(atob(l));return n?Math.floor((1e3*n-Date.now())/2):yy}catch(e){return yy}}static create(l,n=by){return new xy(l,n).init()}}c(xy,U);const Ay=xy,_y=/^data:(\S*?);base64,/;class Cy{constructor(l,n,e){if(!l)throw new b("fileuploader-missing-file",null);if(!n)throw new b("fileuploader-missing-token",null);if(!e)throw new b("fileuploader-missing-api-address",null);this.file=function(l){if("string"!=typeof l)return!1;const n=l.match(_y);return!(!n||!n.length)}(l)?function(l,n=512){try{const e=l.match(_y)[1],t=atob(l.replace(_y,"")),o=[];for(let l=0;ll(e)),this}onError(l){return this.once("error",(n,e)=>l(e)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const l=new XMLHttpRequest;l.open("POST",this._apiAddress),l.setRequestHeader("Authorization",this._token.value),l.responseType="json",this.xhr=l}_attachXHRListeners(){const l=this,n=this.xhr;function e(n){return()=>l.fire("error",n)}n.addEventListener("error",e("Network Error")),n.addEventListener("abort",e("Abort")),n.upload&&n.upload.addEventListener("progress",l=>{l.lengthComputable&&this.fire("progress",{total:l.total,uploaded:l.loaded})}),n.addEventListener("load",()=>{const l=n.status,e=n.response;if(l<200||l>299)return this.fire("error",e.message||e.error)})}_sendRequest(){const l=new FormData,n=this.xhr;return l.append("file",this.file),new Promise((e,t)=>{n.addEventListener("load",()=>{const l=n.status,o=n.response;return l<200||l>299?o.message?t(new b("fileuploader-uploading-data-failed",this,{message:o.message})):t(o.error):e(o)}),n.addEventListener("error",()=>t(new Error("Network Error"))),n.addEventListener("abort",()=>t(new Error("Abort"))),n.send(l)})}}c(Cy,E);class wy{constructor(l,n){if(!l)throw new b("uploadgateway-missing-token",null);if(!n)throw new b("uploadgateway-missing-api-address",null);this._token=l,this._apiAddress=n}upload(l){return new Cy(l,this._token,this._apiAddress)}}class Ry extends Gt{static get pluginName(){return"CloudServicesCore"}createToken(l,n){return new Ay(l,n)}createUploadGateway(l,n){return new wy(l,n)}}class Ly extends Vc{}Ly.builtinPlugins=[class extends qt{static get requires(){return[yf,Sp,Rf,Np,up,Df]}static get pluginName(){return"Essentials"}},class extends qt{static get requires(){return[qf]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const l=this.editor.config.get("ckfinder.uploadUrl");l&&(this.editor.plugins.get(qf).createUploadAdapter=(n=>new Wf(n,l,this.editor.t)))}},class extends qt{static get requires(){return[op]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const l=this.editor.commands;l.get("bulletedList")&&Gf(this.editor,this,/^[*-]\s$/,"bulletedList"),l.get("numberedList")&&Gf(this.editor,this,/^1[.|)]\s$/,"numberedList"),l.get("todoList")&&Gf(this.editor,this,/^\[\s?\]\s$/,"todoList"),l.get("checkTodoList")&&Gf(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const l=this.editor.commands;if(l.get("bold")){const l=Yf(this.editor,"bold");jf(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,l),jf(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,l)}if(l.get("italic")){const l=Yf(this.editor,"italic");jf(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,l),jf(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,l)}if(l.get("code")){const l=Yf(this.editor,"code");jf(this.editor,this,/(`)([^`]+)(`)$/g,l)}if(l.get("strikethrough")){const l=Yf(this.editor,"strikethrough");jf(this.editor,this,/(~~)([^~]+)(~~)$/g,l)}}_addHeadingAutoformats(){const l=this.editor.commands.get("heading");l&&l.modelElements.filter(l=>l.match(/^heading[1-6]$/)).forEach(n=>{const e=n[7],t=new RegExp(`^(#{${e}})\\s$`);Gf(this.editor,this,t,()=>{if(!l.isEnabled||l.value===n)return!1;this.editor.execute("heading",{value:n})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Gf(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const l=this.editor,n=l.model.document.selection;l.commands.get("codeBlock")&&Gf(l,this,/^```$/,()=>{if(n.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Gf(this.editor,this,/^---$/,"horizontalLine")}},class extends qt{static get requires(){return[$f,Qf]}static get pluginName(){return"Bold"}},class extends qt{static get requires(){return[lm,em]}static get pluginName(){return"Italic"}},class extends qt{static get requires(){return[am,sm]}static get pluginName(){return"BlockQuote"}},class extends qt{static get pluginName(){return"CKBox"}static get requires(){return[Am,dm]}},class extends qt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Em,Rm]}},class extends Gt{static get pluginName(){return"CloudServices"}static get requires(){return[Ry]}init(){const l=this.context.config.get("cloudServices")||{};for(const n in l)this[n]=l[n];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(l){if(this._tokens.has(l))return Promise.resolve(this.getTokenFor(l));const n=this.context.plugins.get("CloudServicesCore").createToken(l);return this._tokens.set(l,n),n.init()}getTokenFor(l){const n=this._tokens.get(l);if(!n)throw new b("cloudservices-token-not-registered",this);return n}destroy(){super.destroy();for(const l of this._tokens.values())l.destroy()}},class extends qt{static get requires(){return[Om,"ImageUpload"]}init(){const l=this.editor;l.plugins.has("ImageBlockEditing")||l.plugins.has("ImageInlineEditing")||y("easy-image-image-feature-missing",l)}static get pluginName(){return"EasyImage"}},class extends qt{static get requires(){return[Tm,Bm]}static get pluginName(){return"Heading"}},class extends qt{static get requires(){return[rh,dh]}static get pluginName(){return"Image"}},class extends qt{static get requires(){return[fh,mh]}static get pluginName(){return"ImageCaption"}},class extends qt{static get requires(){return[Sh,Ih]}static get pluginName(){return"ImageStyle"}},class extends qt{static get requires(){return[af,jm]}static get pluginName(){return"ImageToolbar"}afterInit(){const l=this.editor,n=l.t,e=l.plugins.get(af),t=l.plugins.get("ImageUtils");var o;e.register("image",{ariaLabel:n("Image toolbar"),items:(o=l.config.get("image.toolbar")||[],o.map(l=>D(l)?l.name:l)),getRelatedElement:l=>t.getClosestSelectedImageWidget(l)})}},class extends qt{static get pluginName(){return"ImageUpload"}static get requires(){return[$h,Ph,Wh]}},class extends qt{static get pluginName(){return"Indent"}static get requires(){return[Qh,ng]}},class extends qt{static get requires(){return[zg,jg,Zg]}static get pluginName(){return"Link"}},class extends qt{static get requires(){return[Cv,Rv]}static get pluginName(){return"List"}},class extends qt{static get requires(){return[Nv,Pv,zv,of]}static get pluginName(){return"MediaEmbed"}},Nm,class extends qt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[jc]}init(){const l=this.editor,n=l.editing.view.document,e=[];e.push(new Kv(n)),e.push(new Yv(n)),l.plugins.get("ClipboardPipeline").on("inputTransformation",(t,o)=>{if(o._isTransformedWithPasteFromOffice)return;if(l.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const u=o.dataTransfer.getData("text/html"),i=e.find(l=>l.isActive(u));i&&(o._parsedData=function(l,n){const e=new DOMParser,t=function(l){return Qv(Qv(l)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g,"\xa0<\/o:p>/g,"\xa0").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(l){const n="",e=l.indexOf(n);if(e<0)return l;const t=l.indexOf("",e+n.length);return l.substring(0,e+n.length)+(t>=0?l.substring(t):"")}(l=l.replace(//gm,"").replace(//gm,"")).match(Pu))&&function(l,n,e){n.NumberFmt=[];for(var t=B(S._table),o=0;o":case"":case"":break;case"0){if(r>392){for(r=392;r>60&&null!=n.NumberFmt[r];--r);n.NumberFmt[r]=a}S.load(a,r)}break;case"":break;default:if(e.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}(t,o,e),(t=l.match(Uu))&&function(l,n,e,t){n.Fonts=[];var o={},u=!1;(l[0].match(yl)||[]).forEach(function(l){var i=_l(l);switch(Cl(i[0])){case"":case"":break;case"":break;case"":case"":n.Fonts.push(o),o={};break;case"":case"":break;case"":o.bold=1;break;case"":o.italic=1;break;case"":o.underline=1;break;case"":o.strike=1;break;case"":o.outline=1;break;case"":o.shadow=1;break;case"":o.condense=1;break;case"":o.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":u=!1;break;case"":case"":break;case"":u=!1;break;default:if(t&&t.WTF&&!u)throw new Error("unrecognized "+i[0]+" in fonts")}})}(t,o,n,e),(t=l.match(Vu))&&function(l,n,e,t){n.Fills=[];var o={},u=!1;(l[0].match(yl)||[]).forEach(function(l){var e=_l(l);switch(Cl(e[0])){case"":case"":break;case"":case"":o={},n.Fills.push(o);break;case"":case"":break;case"":n.Fills.push(o),o={};break;case"":e.patternType&&(o.patternType=e.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":u=!1;break;default:if(t&&t.WTF&&!u)throw new Error("unrecognized "+e[0]+" in fills")}})}(t,o,0,e),(t=l.match(Wu))&&function(l,n,e,t){n.Borders=[];var o={},u=!1;(l[0].match(yl)||[]).forEach(function(l){var e=_l(l);switch(Cl(e[0])){case"":case"":break;case"":case"":o={},e.diagonalUp&&(o.diagonalUp=ql(e.diagonalUp)),e.diagonalDown&&(o.diagonalDown=ql(e.diagonalDown)),n.Borders.push(o);break;case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":break;case"":case"":break;case"":case"":break;case"":u=!1;break;default:if(t&&t.WTF&&!u)throw new Error("unrecognized "+e[0]+" in borders")}})}(t,o,0,e),(t=l.match(Bu))&&function(l,n,e){var t;n.CellXf=[];var o=!1;(l[0].match(yl)||[]).forEach(function(l){var u=_l(l),i=0;switch(Cl(u[0])){case"":case"":case"":break;case"":for(delete(t=u)[0],i=0;i392)for(i=392;i>60;--i)if(n.NumberFmt[t.numFmtId]==n.NumberFmt[i]){t.numFmtId=i;break}n.CellXf.push(t);break;case"":break;case"":var a={};u.vertical&&(a.vertical=u.vertical),u.horizontal&&(a.horizontal=u.horizontal),null!=u.textRotation&&(a.textRotation=u.textRotation),u.indent&&(a.indent=u.indent),u.wrapText&&(a.wrapText=ql(u.wrapText)),t.alignment=a;break;case"":case"":case"":break;case"":o=!1;break;case"":case"":break;case"":o=!1;break;default:if(e&&e.WTF&&!o)throw new Error("unrecognized "+u[0]+" in cellXfs")}})}(t,o,e),o):o}),Zu=nn("styleSheet",null,{xmlns:un.main[0],"xmlns:vt":un.vt});function Xu(l,n){var e,t=[vl,Zu];return l.SSF&&null!=(e=function(l){var n=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var t=e[0];t<=e[1];++t)null!=l[t]&&(n[n.length]=nn("numFmt",null,{numFmtId:t,formatCode:kl(l[t])}))}),1===n.length?"":(n[n.length]="",n[0]=nn("numFmts",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(l.SSF))&&(t[t.length]=e),t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',(e=function(l){var n=[];return n[n.length]=nn("cellXfs",null),l.forEach(function(l){n[n.length]=nn("xf",null,l)}),n[n.length]="",2===n.length?"":(n[0]=nn("cellXfs",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(n.cellXfs))&&(t[t.length]=e),t[t.length]='',t[t.length]='',t[t.length]='',t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function $u(l,n,e){e||(e=Vn(6+4*n.length)),e.write_shift(2,l),ce(n,e);var t=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),t}function Ku(l,n){n||(n=Vn(153)),n.write_shift(2,20*l.sz),function(l,n){n||(n=Vn(2));var e=(l.italic?2:0)|(l.strike?8:0)|(l.outline?16:0)|(l.shadow?32:0)|(l.condense?64:0)|(l.extend?128:0);n.write_shift(1,e),n.write_shift(1,0)}(l,n),n.write_shift(2,l.bold?700:400);var e=0;"superscript"==l.vertAlign?e=1:"subscript"==l.vertAlign&&(e=2),n.write_shift(2,e),n.write_shift(1,l.underline||0),n.write_shift(1,l.family||0),n.write_shift(1,l.charset||0),n.write_shift(1,0),ke(l.color,n);var t=0;return"major"==l.scheme&&(t=1),"minor"==l.scheme&&(t=2),n.write_shift(1,t),ce(l.name,n),n.length>n.l?n.slice(0,n.l):n}lt.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";var Qu=U(["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"]),Ju=Bn;function li(l,n){n||(n=Vn(84));var e=Qu[l.patternType];null==e&&(e=40),n.write_shift(4,e);var t=0;if(40!=e)for(ke({auto:1},n),ke({auto:1},n);t<12;++t)n.write_shift(4,0);else{for(;t<4;++t)n.write_shift(4,0);for(;t<12;++t)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function ni(l,n,e){return e||(e=Vn(16)),e.write_shift(2,n||0),e.write_shift(2,l.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function ei(l,n){return n||(n=Vn(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var ti=Bn;function oi(l){var n;Gn(l,"BrtBeginBorders",se(1)),Gn(l,"BrtBorder",(n||(n=Vn(51)),n.write_shift(1,0),ei(0,n),ei(0,n),ei(0,n),ei(0,n),ei(0,n),n.length>n.l?n.slice(0,n.l):n)),Gn(l,"BrtEndBorders")}function ui(l){var n,e;Gn(l,"BrtBeginStyles",se(1)),Gn(l,"BrtStyle",(n={xfId:0,builtinId:0,name:"Normal"},e||(e=Vn(52)),e.write_shift(4,n.xfId),e.write_shift(2,1),e.write_shift(1,+n.builtinId),e.write_shift(1,0),Ae(n.name||"",e),e.length>e.l?e.slice(0,e.l):e)),Gn(l,"BrtEndStyles")}function ii(l){Gn(l,"BrtBeginTableStyles",function(l,n,e){var t=Vn(2052);return t.write_shift(4,l),Ae(n,t),Ae(e,t),t.length>t.l?t.slice(0,t.l):t}(0,"TableStyleMedium9","PivotStyleMedium4")),Gn(l,"BrtEndTableStyles")}function ai(l,n){var e=Wn();return Gn(e,"BrtBeginStyleSheet"),function(l,n){if(n){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(l){for(var t=l[0];t<=l[1];++t)null!=n[t]&&++e}),0!=e&&(Gn(l,"BrtBeginFmts",se(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var t=e[0];t<=e[1];++t)null!=n[t]&&Gn(l,"BrtFmt",$u(t,n[t]))}),Gn(l,"BrtEndFmts"))}}(e,l.SSF),function(l){Gn(l,"BrtBeginFonts",se(1)),Gn(l,"BrtFont",Ku({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Gn(l,"BrtEndFonts")}(e),function(l){Gn(l,"BrtBeginFills",se(2)),Gn(l,"BrtFill",li({patternType:"none"})),Gn(l,"BrtFill",li({patternType:"gray125"})),Gn(l,"BrtEndFills")}(e),oi(e),function(l){Gn(l,"BrtBeginCellStyleXFs",se(1)),Gn(l,"BrtXF",ni({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Gn(l,"BrtEndCellStyleXFs")}(e),function(l,n){Gn(l,"BrtBeginCellXFs",se(n.length)),n.forEach(function(n){Gn(l,"BrtXF",ni(n,0))}),Gn(l,"BrtEndCellXFs")}(e,n.cellXfs),ui(e),function(l){Gn(l,"BrtBeginDXFs",se(0)),Gn(l,"BrtEndDXFs")}(e),ii(e),Gn(e,"BrtEndStyleSheet"),e.end()}lt.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var ri=["","","","","","","","","","","",""];function si(l,n,e){n.themeElements.clrScheme=[];var t={};(l[0].match(yl)||[]).forEach(function(l){var o=_l(l);switch(o[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===o[0].charAt(1)?(n.themeElements.clrScheme[ri.indexOf(o[0])]=t,t={}):t.name=o[0].slice(3,o[0].length-1);break;default:if(e&&e.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}})}function di(){}function ci(){}var pi=/]*)>[\s\S]*<\/a:clrScheme>/,fi=/]*)>[\s\S]*<\/a:fontScheme>/,mi=/]*)>[\s\S]*<\/a:fmtScheme>/,hi=/]*)>[\s\S]*<\/a:themeElements>/;function gi(l,n){if(!l||0===l.length)return gi(vi());var e,t={};if(!(e=l.match(hi)))throw new Error("themeElements not found in theme");return function(l,n,e){var t;n.themeElements={},[["clrScheme",pi,si],["fontScheme",fi,di],["fmtScheme",mi,ci]].forEach(function(o){if(!(t=l.match(o[1])))throw new Error(o[0]+" not found in themeElements");o[2](t,n,e)})}(e[0],t,n),t.raw=l,t}function vi(l,n){if(n&&n.themeXLSX)return n.themeXLSX;if(l&&"string"==typeof l.raw)return l.raw;var e=[vl];return e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e.join("")}function bi(l){var n={};switch(n.xclrType=l.read_shift(2),n.nTintShade=l.read_shift(2),n.xclrType){case 0:l.l+=4;break;case 1:n.xclrValue=function(l,n){return Bn(l,n)}(l,4);break;case 2:n.xclrValue=uo(l);break;case 3:n.xclrValue=function(l){return l.read_shift(4)}(l);break;case 4:l.l+=4}return l.l+=8,n}function yi(l){var n=l.read_shift(2),e=l.read_shift(2)-4,t=[n];switch(n){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:t[1]=bi(l);break;case 6:t[1]=function(l,n){return Bn(l,n)}(l,e);break;case 14:case 15:t[1]=l.read_shift(1===e?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+n+" "+e)}return t}lt.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",lt.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";var xi=1024;function Ai(l,n){for(var e=[21600,21600],t=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),o=[nn("xml",null,{"xmlns:v":an.v,"xmlns:o":an.o,"xmlns:x":an.x,"xmlns:mv":an.mv}).replace(/\/>/,">"),nn("o:shapelayout",nn("o:idmap",null,{"v:ext":"edit",data:l}),{"v:ext":"edit"}),nn("v:shapetype",[nn("v:stroke",null,{joinstyle:"miter"}),nn("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:t})];xi<1e3*l;)xi+=1e3;return n.forEach(function(l){var n=Jn(l[0]),e={color2:"#BEFF82",type:"gradient"};"gradient"==e.type&&(e.angle="-180");var t="gradient"==e.type?nn("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=nn("v:fill",t,e);++xi,o=o.concat(["",u,nn("v:shadow",null,{on:"t",obscured:"t"}),nn("v:path",null,{"o:connecttype":"none"}),'
','',"","",Jl("x:Anchor",[n.c+1,0,n.r+1,0,n.c+3,20,n.r+5,20].join(",")),Jl("x:AutoFill","False"),Jl("x:Row",String(n.r)),Jl("x:Column",String(n.c)),l[1].hidden?"":"","",""])}),o.push(""),o.join("")}lt.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";var _i=nn("comments",null,{xmlns:un.main[0]}),Ci=de;function wi(l){var n=Wn(),e=[];return Gn(n,"BrtBeginComments"),Gn(n,"BrtBeginCommentAuthors"),l.forEach(function(l){l[1].forEach(function(l){e.indexOf(l.a)>-1||(e.push(l.a.slice(0,54)),Gn(n,"BrtCommentAuthor",ce(l.a.slice(0,54))))})}),Gn(n,"BrtEndCommentAuthors"),Gn(n,"BrtBeginCommentList"),l.forEach(function(l){l[1].forEach(function(t){t.iauthor=e.indexOf(t.a);var o,u,i={s:Jn(l[0]),e:Jn(l[0])};Gn(n,"BrtBeginComment",(o=[i,t],null==u&&(u=Vn(36)),u.write_shift(4,o[1].iauthor),Ee(o[0],u),u.write_shift(4,0),u.write_shift(4,0),u.write_shift(4,0),u.write_shift(4,0),u)),t.t&&t.t.length>0&&Gn(n,"BrtCommentText",he(t)),Gn(n,"BrtEndComment"),delete t.iauthor})}),Gn(n,"BrtEndCommentList"),Gn(n,"BrtEndComments"),n.end()}var Ri="application/vnd.ms-office.vbaProject",Li=["xlsb","xlsm","xlam","biff8","xla"];lt.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",lt.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";var Mi=function(){var l=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,n={r:0,c:0};function e(l,e,t,o){var u=!1,i=!1;0==t.length?i=!0:"["==t.charAt(0)&&(i=!0,t=t.slice(1,-1)),0==o.length?u=!0:"["==o.charAt(0)&&(u=!0,o=o.slice(1,-1));var a=t.length>0?0|parseInt(t,10):0,r=o.length>0?0|parseInt(o,10):0;return u?r+=n.c:--r,i?a+=n.r:--a,e+(u?"":"$")+Qn(r)+(i?"":"$")+$n(a)}return function(t,o){return n=o,t.replace(l,e)}}(),Ei=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Oi=function(l,n){return l.replace(Ei,function(l,e,t,o,u,i){var a=Kn(o)-(t?0:n.c),r=Xn(i)-(u?0:n.r);return e+"R"+(0==r?"":u?r+1:"["+r+"]")+"C"+(0==a?"":t?a+1:"["+a+"]")})};function Si(l,n,e){var t=ne(n).s,o=Jn(e);return function(l,n){return l.replace(Ei,function(l,e,t,o,u,i){return e+("$"==t?t+o:Qn(Kn(o)+n.c))+("$"==u?u+i:$n(Xn(i)+n.r))})}(l,{r:o.r-t.r,c:o.c-t.c})}function ki(l){return l.replace(/_xlfn\./g,"")}function Ii(l){l.l+=1}function Fi(l,n){var e=l.read_shift(1==n?1:2);return[16383&e,e>>14&1,e>>15&1]}function Ni(l,n,e){var t=2;if(e){if(e.biff>=2&&e.biff<=5)return Di(l);12==e.biff&&(t=4)}var o=l.read_shift(t),u=l.read_shift(t),i=Fi(l,2),a=Fi(l,2);return{s:{r:o,c:i[0],cRel:i[1],rRel:i[2]},e:{r:u,c:a[0],cRel:a[1],rRel:a[2]}}}function Di(l){var n=Fi(l,2),e=Fi(l,2),t=l.read_shift(1),o=l.read_shift(1);return{s:{r:n[0],c:t,cRel:n[1],rRel:n[2]},e:{r:e[0],c:o,cRel:e[1],rRel:e[2]}}}function zi(l,n,e){if(e&&e.biff>=2&&e.biff<=5)return function(l){var n=Fi(l,2),e=l.read_shift(1);return{r:n[0],c:e,cRel:n[1],rRel:n[2]}}(l);var t=l.read_shift(e&&12==e.biff?4:2),o=Fi(l,2);return{r:t,c:o[0],cRel:o[1],rRel:o[2]}}function qi(l){var n=l.read_shift(2),e=l.read_shift(2);return{r:n,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function Ti(l){return[l.read_shift(1),l.read_shift(1)]}function Pi(l,n){var e=[l.read_shift(1)];if(12==n)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=Gt(l,1)?"TRUE":"FALSE",12!=n&&(l.l+=7);break;case 37:case 16:e[1]=Ye[l[l.l]],l.l+=12==n?4:8;break;case 0:l.l+=8;break;case 1:e[1]=Oe(l);break;case 2:e[1]=lo(l,0,{biff:n>0&&n<8?2:n});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function Bi(l,n,e){for(var t=l.read_shift(12==e.biff?4:2),o=[],u=0;u!=t;++u)o.push((12==e.biff?Me:po)(l,8));return o}function Vi(l,n,e){var t=0,o=0;12==e.biff?(t=l.read_shift(4),o=l.read_shift(4)):(o=1+l.read_shift(1),t=1+l.read_shift(2)),e.biff>=2&&e.biff<8&&(--t,0==--o&&(o=256));for(var u=0,i=[];u!=t&&(i[u]=[]);++u)for(var a=0;a!=o;++a)i[u][a]=Pi(l,e.biff);return i}function Ui(l,n,e){return l.l+=2,[qi(l)]}function Wi(l){return l.l+=6,[]}var Gi=Ui,ji=Wi,Hi=Wi,Yi=Ui;function Zi(l){return l.l+=2,[Ht(l),1&l.read_shift(2)]}var Xi=Ui,$i=Zi,Ki=Wi,Qi=Ui,Ji=Ui,la=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],na={1:{n:"PtgExp",f:function(l,n,e){return l.l++,e&&12==e.biff?[l.read_shift(4,"i"),0]:[l.read_shift(2),l.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:Bn},3:{n:"PtgAdd",f:Ii},4:{n:"PtgSub",f:Ii},5:{n:"PtgMul",f:Ii},6:{n:"PtgDiv",f:Ii},7:{n:"PtgPower",f:Ii},8:{n:"PtgConcat",f:Ii},9:{n:"PtgLt",f:Ii},10:{n:"PtgLe",f:Ii},11:{n:"PtgEq",f:Ii},12:{n:"PtgGe",f:Ii},13:{n:"PtgGt",f:Ii},14:{n:"PtgNe",f:Ii},15:{n:"PtgIsect",f:Ii},16:{n:"PtgUnion",f:Ii},17:{n:"PtgRange",f:Ii},18:{n:"PtgUplus",f:Ii},19:{n:"PtgUminus",f:Ii},20:{n:"PtgPercent",f:Ii},21:{n:"PtgParen",f:Ii},22:{n:"PtgMissArg",f:Ii},23:{n:"PtgStr",f:function(l,n,e){return l.l++,Xt(l,0,e)}},26:{n:"PtgSheet",f:function(l,n,e){return l.l+=5,l.l+=2,l.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(l,n,e){return l.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(l){return l.l++,Ye[l.read_shift(1)]}},29:{n:"PtgBool",f:function(l){return l.l++,0!==l.read_shift(1)}},30:{n:"PtgInt",f:function(l){return l.l++,l.read_shift(2)}},31:{n:"PtgNum",f:function(l){return l.l++,Oe(l)}},32:{n:"PtgArray",f:function(l,n,e){var t=(96&l[l.l++])>>5;return l.l+=2==e.biff?6:12==e.biff?14:7,[t]}},33:{n:"PtgFunc",f:function(l,n,e){var t=(96&l[l.l])>>5;l.l+=1;var o=l.read_shift(e&&e.biff<=3?1:2);return[wa[o],Ca[o],t]}},34:{n:"PtgFuncVar",f:function(l,n,e){var t=l[l.l++],o=l.read_shift(1),u=e&&e.biff<=3?[88==t?-1:0,l.read_shift(1)]:function(l){return[l[l.l+1]>>7,32767&l.read_shift(2)]}(l);return[o,(0===u[0]?Ca:_a)[u[1]]]}},35:{n:"PtgName",f:function(l,n,e){var t=l.read_shift(1)>>>5&3,o=!e||e.biff>=8?4:2,u=l.read_shift(o);switch(e.biff){case 2:l.l+=5;break;case 3:case 4:l.l+=8;break;case 5:l.l+=12}return[t,0,u]}},36:{n:"PtgRef",f:function(l,n,e){var t=(96&l[l.l])>>5;return l.l+=1,[t,zi(l,0,e)]}},37:{n:"PtgArea",f:function(l,n,e){return[(96&l[l.l++])>>5,Ni(l,e.biff>=2&&e.biff,e)]}},38:{n:"PtgMemArea",f:function(l,n,e){var t=l.read_shift(1)>>>5&3;return l.l+=e&&2==e.biff?3:4,[t,l.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:Bn},40:{n:"PtgMemNoMem",f:Bn},41:{n:"PtgMemFunc",f:function(l,n,e){return[l.read_shift(1)>>>5&3,l.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function(l,n,e){var t=l.read_shift(1)>>>5&3;return l.l+=4,e.biff<8&&l.l--,12==e.biff&&(l.l+=2),[t]}},43:{n:"PtgAreaErr",f:function(l,n,e){var t=(96&l[l.l++])>>5;return l.l+=e&&e.biff>8?12:e.biff<8?6:8,[t]}},44:{n:"PtgRefN",f:function(l,n,e){var t=(96&l[l.l])>>5;return l.l+=1,[t,function(l,n,e){var t=e&&e.biff?e.biff:8;if(t>=2&&t<=5)return function(l){var n=l.read_shift(2),e=l.read_shift(1),t=(32768&n)>>15,o=(16384&n)>>14;return n&=16383,1==t&&n>=8192&&(n-=16384),1==o&&e>=128&&(e-=256),{r:n,c:e,cRel:o,rRel:t}}(l);var o=l.read_shift(t>=12?4:2),u=l.read_shift(2),i=(16384&u)>>14,a=(32768&u)>>15;if(u&=16383,1==a)for(;o>524287;)o-=1048576;if(1==i)for(;u>8191;)u-=16384;return{r:o,c:u,cRel:i,rRel:a}}(l,0,e)]}},45:{n:"PtgAreaN",f:function(l,n,e){return[(96&l[l.l++])>>5,function(l,n,e){if(e.biff<8)return Di(l);var t=l.read_shift(12==e.biff?4:2),o=l.read_shift(12==e.biff?4:2),u=Fi(l,2),i=Fi(l,2);return{s:{r:t,c:u[0],cRel:u[1],rRel:u[2]},e:{r:o,c:i[0],cRel:i[1],rRel:i[2]}}}(l,0,e)]}},46:{n:"PtgMemAreaN",f:function(l){return[l.read_shift(1)>>>5&3,l.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(l){return[l.read_shift(1)>>>5&3,l.read_shift(2)]}},57:{n:"PtgNameX",f:function(l,n,e){return 5==e.biff?function(l){var n=l.read_shift(1)>>>5&3,e=l.read_shift(2,"i");l.l+=8;var t=l.read_shift(2);return l.l+=12,[n,e,t]}(l):[l.read_shift(1)>>>5&3,l.read_shift(2),l.read_shift(4)]}},58:{n:"PtgRef3d",f:function(l,n,e){var t=(96&l[l.l])>>5;l.l+=1;var o=l.read_shift(2);return e&&5==e.biff&&(l.l+=12),[t,o,zi(l,0,e)]}},59:{n:"PtgArea3d",f:function(l,n,e){var t=(96&l[l.l++])>>5,o=l.read_shift(2,"i");if(e)switch(e.biff){case 5:l.l+=12}return[t,o,Ni(l,0,e)]}},60:{n:"PtgRefErr3d",f:function(l,n,e){var t=(96&l[l.l++])>>5,o=l.read_shift(2),u=4;if(e)switch(e.biff){case 5:u=15;break;case 12:u=6}return l.l+=u,[t,o]}},61:{n:"PtgAreaErr3d",f:function(l,n,e){var t=(96&l[l.l++])>>5,o=l.read_shift(2),u=8;if(e)switch(e.biff){case 5:l.l+=12,u=6;break;case 12:u=12}return l.l+=u,[t,o]}},255:{}},ea={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};!function(){for(var l in ea)na[l]=na[ea[l]]}();var ta={1:{n:"PtgElfLel",f:Zi},2:{n:"PtgElfRw",f:Qi},3:{n:"PtgElfCol",f:Gi},6:{n:"PtgElfRwV",f:Ji},7:{n:"PtgElfColV",f:Yi},10:{n:"PtgElfRadical",f:Xi},11:{n:"PtgElfRadicalS",f:Ki},13:{n:"PtgElfColS",f:ji},15:{n:"PtgElfColSV",f:Hi},16:{n:"PtgElfRadicalLel",f:$i},25:{n:"PtgList",f:function(l){l.l+=2;var n=l.read_shift(2),e=l.read_shift(2),t=l.read_shift(4),o=l.read_shift(2),u=l.read_shift(2);return{ixti:n,coltype:3&e,rt:la[e>>2&31],idx:t,c:o,C:u}}},29:{n:"PtgSxName",f:function(l){return l.l+=2,[l.read_shift(4)]}},255:{}},oa={0:{n:"PtgAttrNoop",f:function(l){return l.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(l,n,e){var t=255&l[l.l+1]?1:0;return l.l+=e&&2==e.biff?3:4,[t]}},2:{n:"PtgAttrIf",f:function(l,n,e){var t=255&l[l.l+1]?1:0;return l.l+=2,[t,l.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(l,n,e){l.l+=2;for(var t=l.read_shift(e&&2==e.biff?1:2),o=[],u=0;u<=t;++u)o.push(l.read_shift(e&&2==e.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(l,n,e){var t=255&l[l.l+1]?1:0;return l.l+=2,[t,l.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(l,n,e){l.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:function(l){var n=1&l[l.l+1];return l.l+=4,[n,1]}},64:{n:"PtgAttrSpace",f:function(l){return l.read_shift(2),Ti(l)}},65:{n:"PtgAttrSpaceSemi",f:function(l){return l.read_shift(2),Ti(l)}},128:{n:"PtgAttrIfError",f:function(l){var n=255&l[l.l+1]?1:0;return l.l+=2,[n,l.read_shift(2)]}},255:{}};function ua(l,n,e,t){if(t.biff<8)return Bn(l,n);for(var o=l.l+n,u=[],i=0;i!==e.length;++i)switch(e[i][0]){case"PtgArray":e[i][1]=Vi(l,0,t),u.push(e[i][1]);break;case"PtgMemArea":e[i][2]=Bi(l,e[i][1],t),u.push(e[i][2]);break;case"PtgExp":t&&12==t.biff&&(e[i][1][1]=l.read_shift(4),u.push(e[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[i][0]}return 0!=(n=o-l.l)&&u.push(Bn(l,n)),u}function ia(l,n,e){for(var t,o,u=l.l+n,i=[];u!=l.l;)n=u-l.l,o=l[l.l],t=na[o],24!==o&&25!==o||(t=(24===o?ta:oa)[l[l.l+1]]),t&&t.f?i.push([t.n,t.f(l,n,e)]):Bn(l,n);return i}function aa(l){for(var n=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"},sa=new RegExp(/[^\w\u4E00-\u9FFF\u3040-\u30FF]/);function da(l,n,e){if(!l)return"SH33TJSERR0";if(e.biff>8&&(!l.XTI||!l.XTI[n]))return l.SheetNames[n];if(!l.XTI)return"SH33TJSERR6";var t=l.XTI[n];if(e.biff<8)return n>1e4&&(n-=65536),n<0&&(n=-n),0==n?"":l.XTI[n-1];if(!t)return"SH33TJSERR1";var o="";if(e.biff>8)switch(l[t[0]][0]){case 357:return o=-1==t[1]?"#REF":l.SheetNames[t[1]],t[1]==t[2]?o:o+":"+l.SheetNames[t[2]];case 358:return null!=e.SID?l.SheetNames[e.SID]:"SH33TJSSAME"+l[t[0]][0];case 355:default:return"SH33TJSSRC"+l[t[0]][0]}switch(l[t[0]][0][0]){case 1025:return o=-1==t[1]?"#REF":l.SheetNames[t[1]]||"SH33TJSERR3",t[1]==t[2]?o:o+":"+l.SheetNames[t[2]];case 14849:return l[t[0]].slice(1).map(function(l){return l.Name}).join(";;");default:return l[t[0]][0][3]?(o=-1==t[1]?"#REF":l[t[0]][0][3][t[1]]||"SH33TJSERR4",t[1]==t[2]?o:o+":"+l[t[0]][0][3][t[2]]):"SH33TJSERR2"}}function ca(l,n,e){return function(l,n){if(!(l||n&&n.biff<=5&&n.biff>=2))throw new Error("empty sheet name");return sa.test(l)?"'"+l+"'":l}(da(l,n,e),e)}function pa(l,n,e,t,o){var u,i,a,r,s=o&&o.biff||8,d={s:{c:0,r:0},e:{c:0,r:0}},c=[],p=0,f=0,m="";if(!l[0]||!l[0][0])return"";for(var h=-1,g="",v=0,b=l[0].length;v=0){switch(l[0][h][1][0]){case 0:g=tl(" ",l[0][h][1][1]);break;case 1:g=tl("\r",l[0][h][1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+l[0][h][1][0])}i+=g,h=-1}c.push(i+ra[y[0]]+u);break;case"PtgIsect":u=c.pop(),i=c.pop(),c.push(i+" "+u);break;case"PtgUnion":u=c.pop(),i=c.pop(),c.push(i+","+u);break;case"PtgRange":u=c.pop(),i=c.pop(),c.push(i+":"+u);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":a=jn(y[1][1],d,o),c.push(Yn(a,s));break;case"PtgRefN":a=e?jn(y[1][1],e,o):y[1][1],c.push(Yn(a,s));break;case"PtgRef3d":p=y[1][1],a=jn(y[1][2],d,o),m=ca(t,p,o),c.push(m+"!"+Yn(a,s));break;case"PtgFunc":case"PtgFuncVar":var x=y[1][0],A=y[1][1];x||(x=0);var _=0==(x&=127)?[]:c.slice(-x);c.length-=x,"User"===A&&(A=_.shift()),c.push(A+"("+_.join(",")+")");break;case"PtgBool":c.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(y[1]);break;case"PtgNum":c.push(String(y[1]));break;case"PtgStr":c.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(y[1]);break;case"PtgAreaN":r=Hn(y[1][1],e?{s:e}:d,o),c.push(Zn(r,o));break;case"PtgArea":r=Hn(y[1][1],d,o),c.push(Zn(r,o));break;case"PtgArea3d":p=y[1][1],r=y[1][2],m=ca(t,p,o),c.push(m+"!"+Zn(r,o));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var C=(t.names||[])[f-1]||(t[0]||[])[f],w=C?C.Name:"SH33TJSNAME"+String(f);w in Ra&&(w=Ra[w]),c.push(w);break;case"PtgNameX":var R,L=y[1][1];if(f=y[1][2],!(o.biff<=5)){var M="";if(14849==((t[L]||[])[0]||[])[0]||(1025==((t[L]||[])[0]||[])[0]?t[L][f]&&t[L][f].itab>0&&(M=t.SheetNames[t[L][f].itab-1]+"!"):M=t.SheetNames[f-1]+"!"),t[L]&&t[L][f])M+=t[L][f].Name;else if(t[0]&&t[0][f])M+=t[0][f].Name;else{var E=da(t,L,o).split(";;");E[f-1]?M=E[f-1]:M+="SH33TJSERRX"}c.push(M);break}L<0&&(L=-L),t[L]&&(R=t[L][f]),R||(R={Name:"SH33TJSERRY"}),c.push(R.Name);break;case"PtgParen":var O="(",S=")";if(h>=0){switch(g="",l[0][h][1][0]){case 2:O=tl(" ",l[0][h][1][1])+O;break;case 3:O=tl("\r",l[0][h][1][1])+O;break;case 4:S=tl(" ",l[0][h][1][1])+S;break;case 5:S=tl("\r",l[0][h][1][1])+S;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+l[0][h][1][0])}h=-1}c.push(O+c.pop()+S);break;case"PtgRefErr":case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":a={c:y[1][1],r:y[1][0]};var k={c:e.c,r:e.r};if(t.sharedf[le(a)]){var I=t.sharedf[le(a)];c.push(pa(I,0,k,t,o))}else{var F=!1;for(u=0;u!=t.arrayf.length;++u)if(i=t.arrayf[u],!(a.ci[0].e.c||a.ri[0].e.r)){c.push(pa(i[1],0,k,t,o)),F=!0;break}F||c.push(y[1])}break;case"PtgArray":c.push("{"+aa(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":h=v;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":default:throw new Error("Unrecognized Formula Token: "+String(y))}if(3!=o.biff&&h>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(l[0][v][0])){var N=!0;switch((y=l[0][h])[1][0]){case 4:N=!1;case 0:g=tl(" ",y[1][1]);break;case 5:N=!1;case 1:g=tl("\r",y[1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}c.push((N?g:"")+c.pop()+(N?"":g)),h=-1}}if(c.length>1&&o.WTF)throw new Error("bad formula stack");return c[0]}function fa(l,n,e){var t,o=l.l+n,u=2==e.biff?1:2,i=l.read_shift(u);if(65535==i)return[[],Bn(l,n-2)];var a=ia(l,i,e);return n!==i+u&&(t=ua(l,n-i-u,a,e)),l.l=o,[a,t]}function ma(l,n,e){var t,o=l.l+n,u=l.read_shift(2),i=ia(l,u,e);return 65535==u?[[],Bn(l,n-2)]:(n!==u+2&&(t=ua(l,o-u-2,i,e)),[i,t])}function ha(l,n,e){var t=l.l+n,o=ao(l);2==e.biff&&++l.l;var u=function(l){var n;if(65535!==En(l,l.l+6))return[Oe(l),"n"];switch(l[l.l]){case 0:return l.l+=8,["String","s"];case 1:return n=1===l[l.l+2],l.l+=8,[n,"b"];case 2:return n=l[l.l+2],l.l+=8,[n,"e"];case 3:return l.l+=8,["","s"]}return[]}(l),i=l.read_shift(1);2!=e.biff&&(l.read_shift(1),e.biff>=5&&l.read_shift(4));var a=function(l,n,e){var t,o=l.l+n,u=2==e.biff?1:2,i=l.read_shift(u);if(65535==i)return[[],Bn(l,n-2)];var a=ia(l,i,e);return n!==i+u&&(t=ua(l,n-i-u,a,e)),l.l=o,[a,t]}(l,t-l.l,e);return{cell:o,val:u[0],formula:a,shared:i>>3&1,tt:u[1]}}function ga(l,n,e,t,o){var u=ro(n,e,o),i=function(l){if(null==l){var n=Vn(8);return n.write_shift(1,3),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,65535),n}return Se("number"==typeof l?l:0)}(l.v),a=Vn(6);a.write_shift(2,33),a.write_shift(4,0);for(var r=Vn(l.bf.length),s=0;s0?ua(l,u,o,e):null]}var ba=va,ya=va,xa=va,Aa=va,_a={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ca={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},wa={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0},Ra={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONCAT":"CONCAT","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORECAST.ETS":"FORECAST.ETS","_xlfn.FORECAST.ETS.CONFINT":"FORECAST.ETS.CONFINT","_xlfn.FORECAST.ETS.SEASONALITY":"FORECAST.ETS.SEASONALITY","_xlfn.FORECAST.ETS.STAT":"FORECAST.ETS.STAT","_xlfn.FORECAST.LINEAR":"FORECAST.LINEAR","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFERROR":"IFERROR","_xlfn.IFNA":"IFNA","_xlfn.IFS":"IFS","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MAXIFS":"MAXIFS","_xlfn.MINIFS":"MINIFS","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.SWITCH":"SWITCH","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.TEXTJOIN":"TEXTJOIN","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"};function La(l){return"of:"==l.slice(0,3)&&(l=l.slice(3)),61==l.charCodeAt(0)&&61==(l=l.slice(1)).charCodeAt(0)&&(l=l.slice(1)),(l=(l=(l=l.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(l,n){return n.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Ma(l){var n=l.split(":");return[n[0].split(".")[0],n[0].split(".")[1]+(n.length>1?":"+(n[1].split(".")[1]||n[1].split(".")[0]):"")]}var Ea={},Oa={};lt.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];var Sa="undefined"!=typeof Map;function ka(l,n,e){var t=0,o=l.length;if(e){if(Sa?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var u=Sa?e.get(n):e[n];t-1?(e.width=Iu(t),e.customWidth=1):null!=n.width&&(e.width=n.width),n.hidden&&(e.hidden=!0),e}function Fa(l,n){if(l){var e=[.7,.7,.75,.75,.3,.3];"xlml"==n&&(e=[1,1,1,1,.5,.5]),null==l.left&&(l.left=e[0]),null==l.right&&(l.right=e[1]),null==l.top&&(l.top=e[2]),null==l.bottom&&(l.bottom=e[3]),null==l.header&&(l.header=e[4]),null==l.footer&&(l.footer=e[5])}}function Na(l,n,e){var t=e.revssf[null!=n.z?n.z:"General"],o=60,u=l.length;if(null==t&&e.ssf)for(;o<392;++o)if(null==e.ssf[o]){S.load(n.z,o),e.ssf[o]=n.z,e.revssf[n.z]=t=o;break}for(o=0;o!=u;++o)if(l[o].numFmtId===t)return o;return l[u]={numFmtId:t,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},u}function Da(l,n,e,t,o,u){try{t.cellNF&&(l.z=S._table[n])}catch(Fd){if(t.WTF)throw Fd}if("z"!==l.t){if("d"===l.t&&"string"==typeof l.v&&(l.v=ll(l.v)),!t||!1!==t.cellText)try{if(null==S._table[n]&&S.load(N[n]||"General",n),"e"===l.t)l.w=l.w||Ye[l.v];else if(0===n)if("n"===l.t)(0|l.v)===l.v?l.w=S._general_int(l.v):l.w=S._general_num(l.v);else if("d"===l.t){var i=j(l.v);l.w=(0|i)===i?S._general_int(i):S._general_num(i)}else{if(void 0===l.v)return"";l.w=S._general(l.v,Oa)}else"d"===l.t?l.w=S.format(n,j(l.v),Oa):l.w=S.format(n,l.v,Oa)}catch(Fd){if(t.WTF)throw Fd}if(t.cellStyles&&null!=e)try{l.s=u.Fills[e],l.s.fgColor&&l.s.fgColor.theme&&!l.s.fgColor.rgb&&(l.s.fgColor.rgb=Ru(o.themeElements.clrScheme[l.s.fgColor.theme].rgb,l.s.fgColor.tint||0),t.WTF&&(l.s.fgColor.raw_rgb=o.themeElements.clrScheme[l.s.fgColor.theme].rgb)),l.s.bgColor&&l.s.bgColor.theme&&(l.s.bgColor.rgb=Ru(o.themeElements.clrScheme[l.s.bgColor.theme].rgb,l.s.bgColor.tint||0),t.WTF&&(l.s.bgColor.raw_rgb=o.themeElements.clrScheme[l.s.bgColor.theme].rgb))}catch(Fd){if(t.WTF&&u.Fills)throw Fd}}}function za(l,n,e){if(l&&l["!ref"]){var t=te(l["!ref"]);if(t.e.c/g,Ta=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Pa=/<(?:\w:)?hyperlink [^>]*>/gm,Ba=/"(\w*:\w*)"/,Va=/<(?:\w:)?col\b[^>]*[\/]?>/g,Ua=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Wa=/<(?:\w:)?pageMargins[^>]*\/>/g,Ga=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ja=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Ha(l,n,e,t,o,u,i){if(!l)return l;t||(t={"!id":{}}),null!=g&&null==n.dense&&(n.dense=g);var a=n.dense?[]:{},r={s:{r:2e6,c:2e6},e:{r:0,c:0}},s="",d="",c=l.match(Ta);c?(s=l.slice(0,c.index),d=l.slice(c.index+c[0].length)):s=d=l;var p=s.match(Ga);p&&Ya(p[0],0,o,e);var f=(s.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var m=s.slice(f,f+50).match(Ba);m&&function(l,n){var e=te(n);e.s.r<=e.e.r&&e.s.c<=e.e.c&&e.s.r>=0&&e.s.c>=0&&(l["!ref"]=ee(e))}(a,m[1])}var h=s.match(ja);h&&h[1]&&function(l,n){n.Views||(n.Views=[{}]),(l.match($a)||[]).forEach(function(l,e){var t=_l(l);n.Views[e]||(n.Views[e]={}),ql(t.rightToLeft)&&(n.Views[e].RTL=!0)})}(h[1],o);var v=[];if(n.cellStyles){var b=s.match(Va);b&&function(l,n){for(var e=!1,t=0;t!=n.length;++t){var o=_l(n[t],!0);o.hidden&&(o.hidden=ql(o.hidden));var u=parseInt(o.min,10)-1,i=parseInt(o.max,10)-1;for(delete o.min,delete o.max,o.width=+o.width,!e&&o.width&&(e=!0,Nu(o.width)),Du(o);u<=i;)l[u++]=el(o)}}(v,b)}c&&ur(c[1],a,n,r,u,i);var y=d.match(Ua);y&&(a["!autofilter"]=function(l){return{ref:(l.match(/ref="([^"]*)"/)||[])[1]}}(y[0]));var x=[],A=d.match(qa);if(A)for(f=0;f!=A.length;++f)x[f]=te(A[f].slice(A[f].indexOf('"')+1));var _=d.match(Pa);_&&function(l,n,e){for(var t=Array.isArray(l),o=0;o!=n.length;++o){var u=_l(Tl(n[o]),!0);if(!u.ref)return;var i=((e||{})["!id"]||[])[u.id];i?(u.Target=i.Target,u.location&&(u.Target+="#"+u.location)):(u.Target="#"+u.location,i={Target:u.Target,TargetMode:"Internal"}),u.Rel=i,u.tooltip&&(u.Tooltip=u.tooltip,delete u.tooltip);for(var a=te(u.ref),r=a.s.r;r<=a.e.r;++r)for(var s=a.s.c;s<=a.e.c;++s){var d=le({c:s,r:r});t?(l[r]||(l[r]=[]),l[r][s]||(l[r][s]={t:"z",v:void 0}),l[r][s].l=u):(l[d]||(l[d]={t:"z",v:void 0}),l[d].l=u)}}}(a,_,t);var C,w,R=d.match(Wa);if(R&&(a["!margins"]=(C=_l(R[0]),w={},["left","right","top","bottom","header","footer"].forEach(function(l){C[l]&&(w[l]=parseFloat(C[l]))}),w)),!a["!ref"]&&r.e.c>=r.s.c&&r.e.r>=r.s.r&&(a["!ref"]=ee(r)),n.sheetRows>0&&a["!ref"]){var L=te(a["!ref"]);n.sheetRows<=+L.e.r&&(L.e.r=n.sheetRows-1,L.e.r>r.e.r&&(L.e.r=r.e.r),L.e.rr.e.c&&(L.e.c=r.e.c),L.e.c0&&(a["!cols"]=v),x.length>0&&(a["!merges"]=x),a}function Ya(l,n,e,t){var o=_l(l);e.Sheets[t]||(e.Sheets[t]={}),o.codeName&&(e.Sheets[t].CodeName=El(Tl(o.codeName)))}var Za=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Xa=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],$a=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Ka(l,n,e,t){if(void 0===l.v&&"string"!=typeof l.f||"z"===l.t)return"";var o="",u=l.t,i=l.v;if("z"!==l.t)switch(l.t){case"b":o=l.v?"1":"0";break;case"n":o=""+l.v;break;case"e":o=Ye[l.v];break;case"d":t&&t.cellDates?o=ll(l.v,-1).toISOString():((l=el(l)).t="n",o=""+(l.v=j(ll(l.v)))),void 0===l.z&&(l.z=S._table[14]);break;default:o=l.v}var a=Jl("v",kl(o)),r={r:n},s=Na(t.cellXfs,l,t);switch(0!==s&&(r.s=s),l.t){case"n":break;case"d":r.t="d";break;case"b":r.t="b";break;case"e":r.t="e";break;case"z":break;default:if(null==l.v){delete l.t;break}if(t&&t.bookSST){a=Jl("v",""+ka(t.Strings,l.v,t.revStrings)),r.t="s";break}r.t="str"}if(l.t!=u&&(l.t=u,l.v=i),"string"==typeof l.f&&l.f){var d=l.F&&l.F.slice(0,n.length)==n?{t:"array",ref:l.F}:null;a=nn("f",kl(l.f),d)+(null!=l.v?a:"")}return l.l&&e["!links"].push([n,l.l]),l.c&&e["!comments"].push([n,l.c]),nn("c",a,r)}var Qa,Ja,lr,nr,er,tr,or,ur=(Qa=/<(?:\w+:)?c[ \/>]/,Ja=/<\/(?:\w+:)?row>/,lr=/r=["']([^"']*)["']/,nr=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,er=/ref=["']([^"']*)["']/,tr=Hl("v"),or=Hl("f"),function(l,n,e,t,o,u){for(var i,a,r,s,d,c=0,p="",f=[],m=[],h=0,g=0,v=0,b="",y=0,x=0,A=0,_=0,C=Array.isArray(u.CellXf),w=[],R=[],L=Array.isArray(n),M=[],E={},O=!1,k=!!e.sheetStubs,I=l.split(Ja),F=0,N=I.length;F!=N;++F){var D=(p=I[F].trim()).length;if(0!==D){for(c=0;cy-1&&(t.s.r=y-1),t.e.r":"")+p,null!=m&&2===m.length){for(h=0,b=m[1],g=0;g!=b.length&&!((v=b.charCodeAt(g)-64)<1||v>26);++g)h=26*h+v;x=--h}else++x;for(g=0;g!=p.length&&62!==p.charCodeAt(g);++g);if(++g,(a=_l(p.slice(0,g),!0)).r||(a.r=le({r:y-1,c:x})),i={t:""},null!=(m=(b=p.slice(g)).match(tr))&&""!==m[1]&&(i.v=El(m[1])),e.cellFormula){if(null!=(m=b.match(or))&&""!==m[1]){if(i.f=El(Tl(m[1])).replace(/\r\n/g,"\n"),e.xlfn||(i.f=ki(i.f)),m[0].indexOf('t="array"')>-1)i.F=(b.match(er)||[])[1],i.F.indexOf(":")>-1&&w.push([te(i.F),i.F]);else if(m[0].indexOf('t="shared"')>-1){s=_l(m[0]);var q=El(Tl(m[1]));e.xlfn||(q=ki(q)),R[parseInt(s.si,10)]=[s,q,a.r]}}else(m=b.match(/]*\/>/))&&R[(s=_l(m[0])).si]&&(i.f=Si(R[s.si][1],R[s.si][2],a.r));var T=Jn(a.r);for(g=0;g=w[g][0].s.r&&T.r<=w[g][0].e.r&&T.c>=w[g][0].s.c&&T.c<=w[g][0].e.c&&(i.F=w[g][1])}if(null==a.t&&void 0===i.v)if(i.f||i.F)i.v=0,i.t="n";else{if(!k)continue;i.t="z"}else i.t=a.t||"n";switch(t.s.c>x&&(t.s.c=x),t.e.c0&&(n["!rows"]=M)}),ir=nn("worksheet",null,{xmlns:un.main[0],"xmlns:r":un.r});function ar(l,n,e,t){var o,u=[vl,ir],i=e.SheetNames[l],a="",r=e.Sheets[i];null==r&&(r={});var s=r["!ref"]||"A1",d=te(s);if(d.e.c>16383||d.e.r>1048575){if(n.WTF)throw new Error("Range "+s+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),s=ee(d)}t||(t={}),r["!comments"]=[];var c=[];!function(l,n,e,t,o){var u=!1,i={},a=null;if("xlsx"!==t.bookType&&n.vbaraw){var r=n.SheetNames[e];try{n.Workbook&&(r=n.Workbook.Sheets[e].CodeName||r)}catch(Fd){}u=!0,i.codeName=Pl(kl(r))}if(l&&l["!outline"]){var s={summaryBelow:1,summaryRight:1};l["!outline"].above&&(s.summaryBelow=0),l["!outline"].left&&(s.summaryRight=0),a=(a||"")+nn("outlinePr",null,s)}(u||a)&&(o[o.length]=nn("sheetPr",a,i))}(r,e,l,n,u),u[u.length]=nn("dimension",null,{ref:s}),u[u.length]=function(l,n,e,t){var o={workbookViewId:"0"};return(((t||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=t.Workbook.Views[0].RTL?"1":"0"),nn("sheetViews",nn("sheetView",null,o),{})}(0,0,0,e),n.sheetFormat&&(u[u.length]=nn("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),null!=r["!cols"]&&r["!cols"].length>0&&(u[u.length]=function(l,n){for(var e,t=[""],o=0;o!=n.length;++o)(e=n[o])&&(t[t.length]=nn("col",null,Ia(o,e)));return t[t.length]="",t.join("")}(0,r["!cols"])),u[o=u.length]="",r["!links"]=[],null!=r["!ref"]&&(a=function(l,n,e,t){var o,u,i=[],a=[],r=te(l["!ref"]),s="",d="",c=[],p=0,f=0,m=l["!rows"],h=Array.isArray(l),g={r:d},v=-1;for(f=r.s.c;f<=r.e.c;++f)c[f]=Qn(f);for(p=r.s.r;p<=r.e.r;++p){for(a=[],d=$n(p),f=r.s.c;f<=r.e.c;++f){o=c[f]+d;var b=h?(l[p]||[])[f]:l[o];void 0!==b&&null!=(s=Ka(b,o,l,n))&&a.push(s)}(a.length>0||m&&m[p])&&(g={r:d},m&&m[p]&&((u=m[p]).hidden&&(g.hidden=1),v=-1,u.hpx?v=qu(u.hpx):u.hpt&&(v=u.hpt),v>-1&&(g.ht=v,g.customHeight=1),u.level&&(g.outlineLevel=u.level)),i[i.length]=nn("row",a.join(""),g))}if(m)for(;p-1&&(g.ht=v,g.customHeight=1),u.level&&(g.outlineLevel=u.level),i[i.length]=nn("row","",g));return i.join("")}(r,n)).length>0&&(u[u.length]=a),u.length>o+1&&(u[u.length]="",u[o]=u[o].replace("/>",">")),null!=r["!protect"]&&(u[u.length]=function(l){var n={sheet:1};return Za.forEach(function(e){null!=l[e]&&l[e]&&(n[e]="1")}),Xa.forEach(function(e){null==l[e]||l[e]||(n[e]="0")}),l.password&&(n.password=hu(l.password).toString(16).toUpperCase()),nn("sheetProtection",null,n)}(r["!protect"])),null!=r["!autofilter"]&&(u[u.length]=function(l,n,e,t){var o="string"==typeof l.ref?l.ref:ee(l.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var u=e.Workbook.Names,i=ne(o);i.s.r==i.e.r&&(i.e.r=ne(n["!ref"]).e.r,o=ee(i));for(var a=0;a0&&(u[u.length]=function(l){if(0===l.length)return"";for(var n='',e=0;e!=l.length;++e)n+='';return n+""}(r["!merges"]));var p,f,m=-1,h=-1;return r["!links"].length>0&&(u[u.length]="",r["!links"].forEach(function(l){l[1].Target&&(p={ref:l[0]},"#"!=l[1].Target.charAt(0)&&(h=it(t,-1,kl(l[1].Target).replace(/#.*$/,""),lt.HLINK),p["r:id"]="rId"+h),(m=l[1].Target.indexOf("#"))>-1&&(p.location=kl(l[1].Target.slice(m+1))),l[1].Tooltip&&(p.tooltip=kl(l[1].Tooltip)),u[u.length]=nn("hyperlink",null,p))}),u[u.length]=""),delete r["!links"],null!=r["!margins"]&&(u[u.length]=(Fa(f=r["!margins"]),nn("pageMargins",null,f))),n&&!n.ignoreEC&&null!=n.ignoreEC||(u[u.length]=Jl("ignoredErrors",nn("ignoredError",null,{numberStoredAsText:1,sqref:s}))),c.length>0&&(h=it(t,-1,"../drawings/drawing"+(l+1)+".xml",lt.DRAW),u[u.length]=nn("drawing",null,{"r:id":"rId"+h}),r["!drawing"]=c),r["!comments"].length>0&&(h=it(t,-1,"../drawings/vmlDrawing"+(l+1)+".vml",lt.VML),u[u.length]=nn("legacyDrawing",null,{"r:id":"rId"+h}),r["!legacy"]=h),u.length>1&&(u[u.length]="",u[1]=u[1].replace("/>",">")),u.join("")}function rr(l,n,e,t){var o=function(l,n,e){var t=Vn(145),o=(e["!rows"]||[])[l]||{};t.write_shift(4,l),t.write_shift(4,0);var u=320;o.hpx?u=20*qu(o.hpx):o.hpt&&(u=20*o.hpt),t.write_shift(2,u),t.write_shift(1,0);var i=0;o.level&&(i|=o.level),o.hidden&&(i|=16),(o.hpx||o.hpt)&&(i|=32),t.write_shift(1,i),t.write_shift(1,0);var a=0,r=t.l;t.l+=4;for(var s={r:l,c:0},d=0;d<16;++d)if(!(n.s.c>d+1<<10||n.e.ct.l?t.slice(0,t.l):t}(t,e,n);(o.length>17||(n["!rows"]||[])[t])&&Gn(l,"BrtRowHdr",o)}var sr=Me,dr=Ee;function cr(l,n,e){return null==e&&(e=Vn(12)),ve(n,e),function(l,n){null==n&&(n=Vn(4));var e=0,t=0,o=100*l;if(l==(0|l)&&l>=-(1<<29)&&l<1<<29?t=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(t=1,e=1),!t)throw new Error("unsupported RkNumber "+l);n.write_shift(-4,((e?o:l)<<2)+(e+2))}(l.v,e),e}var pr=Me,fr=Ee,mr=["left","right","top","bottom","header","footer"];function hr(l,n,e,t,o,u){if(void 0!==n.v){var i="";switch(n.t){case"b":i=n.v?"1":"0";break;case"d":(n=el(n)).z=n.z||S._table[14],n.v=j(ll(n.v)),n.t="n";break;case"n":case"e":i=""+n.v;break;default:i=n.v}var a={r:e,c:t};switch(a.s=Na(o.cellXfs,n,o),n.l&&u["!links"].push([le(a),n.l]),n.c&&u["!comments"].push([le(a),n.c]),n.t){case"s":case"str":return void(o.bookSST?(i=ka(o.Strings,n.v,o.revStrings),a.t="s",a.v=i,Gn(l,"BrtCellIsst",function(l,n,e){return null==e&&(e=Vn(12)),ve(n,e),e.write_shift(4,n.v),e}(0,a))):(a.t="str",Gn(l,"BrtCellSt",function(l,n,e){return null==e&&(e=Vn(12+4*l.v.length)),ve(n,e),ce(l.v,e),e.length>e.l?e.slice(0,e.l):e}(n,a))));case"n":return void(n.v==(0|n.v)&&n.v>-1e3&&n.v<1e3?Gn(l,"BrtCellRk",cr(n,a)):Gn(l,"BrtCellReal",function(l,n,e){return null==e&&(e=Vn(16)),ve(n,e),Se(l.v,e),e}(n,a)));case"b":return a.t="b",void Gn(l,"BrtCellBool",function(l,n,e){return null==e&&(e=Vn(9)),ve(n,e),e.write_shift(1,l.v?1:0),e}(n,a));case"e":a.t="e"}Gn(l,"BrtCellBlank",function(l,n,e){return null==e&&(e=Vn(8)),ve(n,e)}(0,a))}}function gr(l,n){var e,t;n&&n["!merges"]&&(Gn(l,"BrtBeginMergeCells",(e=n["!merges"].length,null==t&&(t=Vn(4)),t.write_shift(4,e),t)),n["!merges"].forEach(function(n){Gn(l,"BrtMergeCell",fr(n))}),Gn(l,"BrtEndMergeCells"))}function vr(l,n){n&&n["!cols"]&&(Gn(l,"BrtBeginColInfos"),n["!cols"].forEach(function(n,e){n&&Gn(l,"BrtColInfo",function(l,n,e){null==e&&(e=Vn(18));var t=Ia(l,n);e.write_shift(-4,l),e.write_shift(-4,l),e.write_shift(4,256*(t.width||10)),e.write_shift(4,0);var o=0;return n.hidden&&(o|=1),"number"==typeof t.width&&(o|=2),n.level&&(o|=n.level<<8),e.write_shift(2,o),e}(e,n))}),Gn(l,"BrtEndColInfos"))}function br(l,n){var e,t;n&&n["!ref"]&&(Gn(l,"BrtBeginCellIgnoreECs"),Gn(l,"BrtCellIgnoreEC",(e=te(n["!ref"]),(t=Vn(24)).write_shift(4,4),t.write_shift(4,1),Ee(e,t),t)),Gn(l,"BrtEndCellIgnoreECs"))}function yr(l,n,e){n["!links"].forEach(function(n){if(n[1].Target){var t=it(e,-1,n[1].Target.replace(/#.*$/,""),lt.HLINK);Gn(l,"BrtHLink",function(l,n){var e=Vn(50+4*(l[1].Target.length+(l[1].Tooltip||"").length));Ee({s:Jn(l[0]),e:Jn(l[0])},e),we("rId"+n,e);var t=l[1].Target.indexOf("#");return ce((-1==t?"":l[1].Target.slice(t+1))||"",e),ce(l[1].Tooltip||"",e),ce("",e),e.slice(0,e.l)}(n,t))}}),delete n["!links"]}function xr(l,n,e){Gn(l,"BrtBeginWsViews"),Gn(l,"BrtBeginWsView",function(l,n,e){null==e&&(e=Vn(30));var t=924;return(((n||{}).Views||[])[0]||{}).RTL&&(t|=32),e.write_shift(2,t),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),Gn(l,"BrtEndWsView"),Gn(l,"BrtEndWsViews")}function Ar(l,n){var e,t;n["!protect"]&&Gn(l,"BrtSheetProtection",(e=n["!protect"],null==t&&(t=Vn(66)),t.write_shift(2,e.password?hu(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(l){l[1]?t.write_shift(4,null==e[l[0]]||e[l[0]]?0:1):t.write_shift(4,null!=e[l[0]]&&e[l[0]]?0:1)}),t))}function _r(l,n,e,t){var o=Wn(),u=e.SheetNames[l],i=e.Sheets[u]||{},a=u;try{e&&e.Workbook&&(a=e.Workbook.Sheets[l].CodeName||a)}catch(Fd){}var r,s,d=te(i["!ref"]||"A1");if(d.e.c>16383||d.e.r>1048575){if(n.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return i["!links"]=[],i["!comments"]=[],Gn(o,"BrtBeginSheet"),e.vbaraw&&Gn(o,"BrtWsProp",function(l,n){null==n&&(n=Vn(84+4*l.length));for(var e=0;e<3;++e)n.write_shift(1,0);return ke({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),ye(l,n),n.slice(0,n.l)}(a)),Gn(o,"BrtWsDim",dr(d)),xr(o,0,e.Workbook),vr(o,i),function(l,n,e,t){var o,u=te(n["!ref"]||"A1"),i="",a=[];Gn(l,"BrtBeginSheetData");var r=Array.isArray(n),s=u.e.r;n["!rows"]&&(s=Math.max(u.e.r,n["!rows"].length-1));for(var d=u.s.r;d<=s;++d)if(i=$n(d),rr(l,n,u,d),d<=u.e.r)for(var c=u.s.c;c<=u.e.c;++c){d===u.s.r&&(a[c]=Qn(c)),o=a[c]+i;var p=r?(n[d]||[])[c]:n[o];p&&hr(l,p,d,c,t,n)}Gn(l,"BrtEndSheetData")}(o,i,0,n),Ar(o,i),function(l,n,e,t){if(n["!autofilter"]){var o=n["!autofilter"],u="string"==typeof o.ref?o.ref:ee(o.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var i=e.Workbook.Names,a=ne(u);a.s.r==a.e.r&&(a.e.r=ne(n["!ref"]).e.r,u=ee(a));for(var r=0;r0){var o=it(t,-1,"../drawings/vmlDrawing"+(e+1)+".vml",lt.VML);Gn(l,"BrtLegacyDrawing",we("rId"+o)),n["!legacy"]=o}}(o,i,l,t),Gn(o,"BrtEndSheet"),o.end()}function Cr(l,n,e,t,o,u){var i=u||{"!type":"chart"};if(!l)return u;var a=0,r=0,s="A",d={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(l.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(l){var n=function(l){var n,e=[],t=l.match(/^/);(l.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(l){var n=l.match(/(.*)<\/c:v><\/c:pt>/);n&&(e[+n[1]]=t?+n[2]:n[2])});var o=El((l.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(l.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(l){n=l.replace(/<.*?>/g,"")}),[e,o,n]}(l);d.s.r=d.s.c=0,d.e.c=a,s=Qn(a),n[0].forEach(function(l,e){i[s+$n(e)]={t:"n",v:l,z:n[1]},r=e}),d.e.r0&&(i["!ref"]=ee(d)),i}lt.CHART="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",lt.CHARTEX="http://schemas.microsoft.com/office/2014/relationships/chartEx",lt.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",nn("chartsheet",null,{xmlns:un.main[0],"xmlns:r":un.r});var wr=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Rr=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Lr=[],Mr=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Er(l,n){for(var e=0;e!=l.length;++e)for(var t=l[e],o=0;o!=n.length;++o){var u=n[o];if(null==t[u[0]])t[u[0]]=u[1];else switch(u[2]){case"bool":"string"==typeof t[u[0]]&&(t[u[0]]=ql(t[u[0]]));break;case"int":"string"==typeof t[u[0]]&&(t[u[0]]=parseInt(t[u[0]],10))}}}function Or(l,n){for(var e=0;e!=n.length;++e){var t=n[e];if(null==l[t[0]])l[t[0]]=t[1];else switch(t[2]){case"bool":"string"==typeof l[t[0]]&&(l[t[0]]=ql(l[t[0]]));break;case"int":"string"==typeof l[t[0]]&&(l[t[0]]=parseInt(l[t[0]],10))}}}function Sr(l){Or(l.WBProps,wr),Or(l.CalcPr,Mr),Er(l.WBView,Rr),Er(l.Sheets,Lr),Oa.date1904=ql(l.WBProps.date1904)}var kr="][*?/\\".split("");function Ir(l,n){if(l.length>31){if(n)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return kr.forEach(function(t){if(-1!=l.indexOf(t)){if(!n)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function Fr(l){if(!l||!l.SheetNames||!l.Sheets)throw new Error("Invalid Workbook");if(!l.SheetNames.length)throw new Error("Workbook is empty");var n,e,t,o=l.Workbook&&l.Workbook.Sheets||[];n=l.SheetNames,e=o,t=!!l.vbaraw,n.forEach(function(l,o){Ir(l);for(var u=0;u22)throw new Error("Bad Code Name: Worksheet"+i)}});for(var u=0;ui||(Gn(l,"BrtBeginBookViews"),Gn(l,"BrtBookView",(e=i,t||(t=Vn(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e),t.write_shift(1,120),t.length>t.l?t.slice(0,t.l):t)),Gn(l,"BrtEndBookViews"))}}function qr(l,e){var t=Wn();return Gn(t,"BrtBeginBook"),Gn(t,"BrtFileVersion",function(l,e){e||(e=Vn(127));for(var t=0;4!=t;++t)e.write_shift(4,0);return ce("SheetJS",e),ce(n.version,e),ce(n.version,e),ce("7262",e),e.length=e.l,e.length>e.l?e.slice(0,e.l):e}()),Gn(t,"BrtWbProp",function(l,n){n||(n=Vn(72));var e=0;return l&&l.filterPrivacy&&(e|=8),n.write_shift(4,e),n.write_shift(4,0),ye(l&&l.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(l.Workbook&&l.Workbook.WBProps||null)),zr(t,l),function(l,n){Gn(l,"BrtBeginBundleShs");for(var e=0;e!=n.SheetNames.length;++e){var t={Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e]&&n.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:n.SheetNames[e]};Gn(l,"BrtBundleSh",(o=t,(u=void 0)||(u=Vn(127)),u.write_shift(4,o.Hidden),u.write_shift(4,o.iTabID),we(o.strRelID,u),ce(o.name.slice(0,31),u),u.length>u.l?u.slice(0,u.l):u))}var o,u;Gn(l,"BrtEndBundleShs")}(t,l),Gn(t,"BrtEndBook"),t.end()}function Tr(l,n,e){return".bin"===n.slice(-4)?function(l,n){var e={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},t=[],o=!1;n||(n={}),n.biff=12;var u=[],i=[[]];return i.SheetNames=[],i.XTI=[],Un(l,function(l,a,r){switch(r){case 156:i.SheetNames.push(l.name),e.Sheets.push(l);break;case 153:e.WBProps=l;break;case 39:null!=l.Sheet&&(n.SID=l.Sheet),l.Ref=pa(l.Ptg,0,null,i,n),delete n.SID,delete l.Ptg,u.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:i[0].length?i.push([r,l]):i[0]=[r,l],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(l),i.XTI=i.XTI.concat(l);break;case 361:break;case 3072:case 3073:case 2071:case 534:case 677:case 158:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:t.push(a),o=!0;break;case 36:t.pop(),o=!1;break;case 37:t.push(a),o=!0;break;case 38:t.pop(),o=!1;break;case 16:break;default:if((a||"").indexOf("Begin")>0);else if((a||"").indexOf("End")>0);else if(!o||n.WTF&&"BrtACBegin"!=t[t.length-1]&&"BrtFRTBegin"!=t[t.length-1])throw new Error("Unexpected record "+r+" "+a)}},n),Sr(e),e.Names=u,e.supbooks=i,e}(l,e):function(l,n){if(!l)throw new Error("Could not find file");var e={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},t=!1,o="xmlns",u={},i=0;if(l.replace(yl,function(a,r){var s=_l(a);switch(Cl(s[0])){case"":break;case"":case"":case"":break;case"":wr.forEach(function(l){if(null!=s[l[0]])switch(l[2]){case"bool":e.WBProps[l[0]]=ql(s[l[0]]);break;case"int":e.WBProps[l[0]]=parseInt(s[l[0]],10);break;default:e.WBProps[l[0]]=s[l[0]]}}),s.codeName&&(e.WBProps.CodeName=Tl(s.codeName));break;case"":case"":break;case"":case"":break;case"":delete s[0],e.WBView.push(s);break;case"":break;case"":case"":break;case"":break;case"":case"":case"":case"":break;case"":case"":t=!1;break;case"":u.Ref=El(Tl(l.slice(i,r))),e.Names.push(u);break;case"":break;case"":delete s[0],e.CalcPr=s;break;case"":case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":break;case"":case"":case"":case"":case"":break;case"":t=!1;break;case"":t=!0;break;case"":t=!1;break;case"=k[0].s.r&&s.r<=k[0].e.r&&f>=k[0].s.c&&f<=k[0].e.c&&(d.F=ee(k[0]),L=!0)}!L&&l.length>3&&(d.f=l[3])}if(x.s.r>s.r&&(x.s.r=s.r),x.s.c>f&&(x.s.c=f),x.e.rs.r&&(x.s.r=s.r),x.s.c>f&&(x.s.c=f),x.e.r=l.s;)I[l.e--]={width:l.w/256,hidden:!!(1&l.flags),level:l.level},N||(N=!0,Nu(l.w/256)),Du(I[l.e+1]);break;case 161:y["!autofilter"]={ref:ee(l)};break;case 476:y["!margins"]=l;break;case 147:o.Sheets[e]||(o.Sheets[e]={}),l.name&&(o.Sheets[e].CodeName=l.name);break;case 137:o.Views||(o.Views=[{}]),o.Views[0]||(o.Views[0]={}),l.RTL&&(o.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:case 151:break;case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 49:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 152:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:_=!0;break;case 36:_=!1;break;case 37:A.push(n),_=!0;break;case 38:A.pop(),_=!1;break;default:if((n||"").indexOf("Begin")>0);else if((n||"").indexOf("End")>0);else if(!_||a.WTF)throw new Error("Unexpected record "+g+" "+n)}},a),delete a.supbooks,delete a["!row"],!y["!ref"]&&(x.s.r<2e6||r&&(r.e.r>0||r.e.c>0||r.s.r>0||r.s.c>0))&&(y["!ref"]=ee(r||x)),a.sheetRows&&y["!ref"]){var D=te(y["!ref"]);a.sheetRows<=+D.e.r&&(D.e.r=a.sheetRows-1,D.e.r>x.e.r&&(D.e.r=x.e.r),D.e.rx.e.c&&(D.e.c=x.e.c),D.e.c0&&(y["!merges"]=w),I.length>0&&(y["!cols"]=I),F.length>0&&(y["!rows"]=F),y}(l,t,e,o,u,i,a):Ha(l,t,e,o,u,i,a)}function Br(l,n,e,t,o,u,i,a){return".bin"===n.slice(-4)?function(l,n,e,t,o){if(!l)return l;t||(t={"!id":{}});var u={"!type":"chart","!drawel":null,"!rel":""},i=[],a=!1;return Un(l,function(l,t,r){switch(r){case 550:u["!rel"]=l;break;case 651:o.Sheets[e]||(o.Sheets[e]={}),l.name&&(o.Sheets[e].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:i.push(t);break;case 38:i.pop();break;default:if((t||"").indexOf("Begin")>0)i.push(t);else if((t||"").indexOf("End")>0)i.pop();else if(!a||n.WTF)throw new Error("Unexpected record "+r+" "+t)}},n),t["!id"][u["!rel"]]&&(u["!drawel"]=t["!id"][u["!rel"]]),u}(l,t,e,o,u):function(l,n,e,t,o){if(!l)return l;t||(t={"!id":{}});var u,i={"!type":"chart","!drawel":null,"!rel":""},a=l.match(Ga);return a&&Ya(a[0],0,o,e),(u=l.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=u[1]),t["!id"][i["!rel"]]&&(i["!drawel"]=t["!id"][i["!rel"]]),i}(l,0,e,o,u)}function Vr(l,n,e,t){return".bin"===n.slice(-4)?function(l,n,e){var t={NumberFmt:[]};for(var o in S._table)t.NumberFmt[o]=S._table[o];t.CellXf=[],t.Fonts=[];var u=[],i=!1;return Un(l,function(l,o,a){switch(a){case 44:t.NumberFmt[l[0]]=l[1],S.load(l[1],l[0]);break;case 43:t.Fonts.push(l),null!=l.color.theme&&n&&n.themeElements&&n.themeElements.clrScheme&&(l.color.rgb=Ru(n.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:case 45:case 46:break;case 47:"BrtBeginCellXFs"==u[u.length-1]&&t.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:u.push(o),i=!0;break;case 38:u.pop(),i=!1;break;default:if((o||"").indexOf("Begin")>0)u.push(o);else if((o||"").indexOf("End")>0)u.pop();else if(!i||e.WTF&&"BrtACBegin"!=u[u.length-1])throw new Error("Unexpected record "+a+" "+o)}}),t}(l,e,t):Yu(l,e,t)}function Ur(l,n,e){return".bin"===n.slice(-4)?function(l,n){var e=[],t=!1;return Un(l,function(l,o,u){switch(u){case 159:e.Count=l[0],e.Unique=l[1];break;case 19:e.push(l);break;case 160:return!0;case 35:t=!0;break;case 36:t=!1;break;default:if(o.indexOf("Begin")>0||o.indexOf("End"),!t||n.WTF)throw new Error("Unexpected record "+u+" "+o)}}),e}(l,e):function(l,n){var e=[],t="";if(!l)return e;var o=l.match(lu);if(o){t=o[2].replace(nu,"").split(eu);for(var u=0;u!=t.length;++u){var i=Jo(t[u].trim(),n);null!=i&&(e[e.length]=i)}o=_l(o[1]),e.Count=o.count,e.Unique=o.uniqueCount}return e}(l,e)}function Wr(l,n,e){return".bin"===n.slice(-4)?function(l,n){var e=[],t=[],o={},u=!1;return Un(l,function(l,i,a){switch(a){case 632:t.push(l);break;case 635:o=l;break;case 637:o.t=l.t,o.h=l.h,o.r=l.r;break;case 636:if(o.author=t[o.iauthor],delete o.iauthor,n.sheetRows&&o.rfx&&n.sheetRows<=o.rfx.r)break;o.t||(o.t=""),delete o.rfx,e.push(o);break;case 3072:break;case 35:u=!0;break;case 36:u=!1;break;case 37:case 38:break;default:if((i||"").indexOf("Begin")>0);else if((i||"").indexOf("End")>0);else if(!u||n.WTF)throw new Error("Unexpected record "+a+" "+i)}}),e}(l,e):function(l,n){if(l.match(/<(?:\w+:)?comments *\/>/))return[];var e=[],t=[],o=l.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);o&&o[1]&&o[1].split(/<\/\w*:?author>/).forEach(function(l){if(""!==l&&""!==l.trim()){var n=l.match(/<(?:\w+:)?author[^>]*>(.*)/);n&&e.push(n[1])}});var u=l.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return u&&u[1]&&u[1].split(/<\/\w*:?comment>/).forEach(function(l){if(""!==l&&""!==l.trim()){var o=l.match(/<(?:\w+:)?comment[^>]*>/);if(o){var u=_l(o[0]),i={author:u.authorId&&e[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},a=Jn(u.ref);if(!(n.sheetRows&&n.sheetRows<=a.r)){var r=l.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),s=!!r&&!!r[1]&&Jo(r[1])||{r:"",t:"",h:""};i.r=s.r,""==s.r&&(s.t=s.h=""),i.t=s.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),n.cellHTML&&(i.h=s.h),t.push(i)}}}}),t}(l,e)}function Gr(l,n,e){return".bin"===n.slice(-4)?function(l,n,e){var t=[];return Un(l,function(l,n,e){switch(e){case 63:t.push(l);break;default:if((n||"").indexOf("Begin")>0);else if(!((n||"").indexOf("End")>0))throw new Error("Unexpected record "+e+" "+n)}}),t}(l):function(l){var n=[];if(!l)return n;var e=1;return(l.match(yl)||[]).forEach(function(l){var t=_l(l);switch(t[0]){case"":case"":break;case"0);else if((n||"").indexOf("End")>0);else if(!u||o.WTF)throw new Error("Unexpected record "+e.toString(16)+" "+n)}},o)}(l,0,0,t)}function Hr(l,n,e){return(".bin"===n.slice(-4)?qr:function(l){var n=[vl];n[n.length]=Dr;var e=l.Workbook&&(l.Workbook.Names||[]).length>0,t={codeName:"ThisWorkbook"};l.Workbook&&l.Workbook.WBProps&&(wr.forEach(function(n){null!=l.Workbook.WBProps[n[0]]&&l.Workbook.WBProps[n[0]]!=n[1]&&(t[n[0]]=l.Workbook.WBProps[n[0]])}),l.Workbook.WBProps.CodeName&&(t.codeName=l.Workbook.WBProps.CodeName,delete t.CodeName)),n[n.length]=nn("workbookPr",null,t);var o=l.Workbook&&l.Workbook.Sheets||[],u=0;if(o&&o[0]&&o[0].Hidden){for(n[n.length]="",u=0;u!=l.SheetNames.length&&o[u]&&o[u].Hidden;++u);u==l.SheetNames.length&&(u=0),n[n.length]='',n[n.length]=""}for(n[n.length]="",u=0;u!=l.SheetNames.length;++u){var i={name:kl(l.SheetNames[u].slice(0,31))};if(i.sheetId=""+(u+1),i["r:id"]="rId"+(u+1),o[u])switch(o[u].Hidden){case 1:i.state="hidden";break;case 2:i.state="veryHidden"}n[n.length]=nn("sheet",null,i)}return n[n.length]="",e&&(n[n.length]="",l.Workbook&&l.Workbook.Names&&l.Workbook.Names.forEach(function(l){var e={name:l.Name};l.Comment&&(e.comment=l.Comment),null!=l.Sheet&&(e.localSheetId=""+l.Sheet),l.Hidden&&(e.hidden="1"),l.Ref&&(n[n.length]=nn("definedName",kl(l.Ref),e))}),n[n.length]=""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")})(l,e)}function Yr(l,n,e,t,o){return(".bin"===n.slice(-4)?_r:ar)(l,e,t,o)}function Zr(l,n,e){return(".bin"===n.slice(-4)?uu:function(l,n){if(!n.bookSST)return"";var e=[vl];e[e.length]=nn("sst",null,{xmlns:un.main[0],count:l.Count,uniqueCount:l.Unique});for(var t=0;t!=l.length;++t)if(null!=l[t]){var o=l[t],u="";o.r?u+=o.r:(u+=""),u+="",e[e.length]=u}return e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")})(l,e)}function Xr(l,n,e){return(".bin"===n.slice(-4)?wi:function(l){var n=[vl,_i],e=[];return n.push(""),l.forEach(function(l){l[1].forEach(function(l){var t=kl(l.a);e.indexOf(t)>-1||(e.push(t),n.push(""+t+""))})}),n.push(""),n.push(""),l.forEach(function(l){l[1].forEach(function(t){n.push(''),n.push(Jl("t",null==t.t?"":kl(t.t))),n.push("")})}),n.push(""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")})(l,e)}var $r=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Kr=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Qr(l,n){var e=l.split(/\s+/),t=[];if(n||(t[0]=e[0]),1===e.length)return t;var o,u,i,a=l.match($r);if(a)for(i=0;i!=a.length;++i)-1===(u=(o=a[i].match(Kr))[1].indexOf(":"))?t[o[1]]=o[2].slice(1,o[2].length-1):t["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(u+1)]=o[2].slice(1,o[2].length-1);return t}function Jr(l){var n={};if(1===l.split(/\s+/).length)return n;var e,t,o,u=l.match($r);if(u)for(o=0;o!=u.length;++o)-1===(t=(e=u[o].match(Kr))[1].indexOf(":"))?n[e[1]]=e[2].slice(1,e[2].length-1):n["xmlns:"===e[1].slice(0,6)?"xmlns"+e[1].slice(6):e[1].slice(t+1)]=e[2].slice(1,e[2].length-1);return n}function ls(l,n,e,t){var o=t;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":o=ql(t);break;case"i2":case"int":o=parseInt(t,10);break;case"r4":case"float":o=parseFloat(t);break;case"date":case"dateTime.tz":o=ll(t);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}l[El(n)]=o}function ns(l,n,e){if("z"!==l.t){if(!e||!1!==e.cellText)try{"e"===l.t?l.w=l.w||Ye[l.v]:"General"===n?"n"===l.t?(0|l.v)===l.v?l.w=S._general_int(l.v):l.w=S._general_num(l.v):l.w=S._general(l.v):l.w=(t=n||"General",o=l.v,"General"===(u=F[t]||El(t))?S._general(o):S.format(u,o))}catch(Fd){if(e.WTF)throw Fd}var t,o,u;try{var i=F[n]||n||"General";if(e.cellNF&&(l.z=i),e.cellDates&&"n"==l.t&&S.is_date(i)){var a=S.parse_date_code(l.v);a&&(l.t="d",l.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(Fd){if(e.WTF)throw Fd}}}function es(l,n,e){if(e.cellStyles&&n.Interior){var t=n.Interior;t.Pattern&&(t.patternType=Gu[t.Pattern]||t.Pattern)}l[n.ID]=n}function ts(l,n,e,t,o,u,i,a,r,s){var d="General",c=t.StyleID,p={};s=s||{};var f=[],m=0;for(void 0===c&&a&&(c=a.StyleID),void 0===c&&i&&(c=i.StyleID);void 0!==u[c]&&(u[c].nf&&(d=u[c].nf),u[c].Interior&&f.push(u[c].Interior),u[c].Parent);)c=u[c].Parent;switch(e.Type){case"Boolean":t.t="b",t.v=ql(l);break;case"String":t.t="s",t.r=Dl(El(l)),t.v=l.indexOf("<")>-1?El(n||l).replace(/<.*?>/g,""):t.r;break;case"DateTime":"Z"!=l.slice(-1)&&(l+="Z"),t.v=(ll(l)-new Date(Date.UTC(1899,11,30)))/864e5,t.v!=t.v?t.v=El(l):t.v<60&&(t.v=t.v-1),d&&"General"!=d||(d="yyyy-mm-dd");case"Number":void 0===t.v&&(t.v=+l),t.t||(t.t="n");break;case"Error":t.t="e",t.v=Ze[l],!1!==s.cellText&&(t.w=l);break;default:""==l&&""==n?t.t="z":(t.t="s",t.v=Dl(n||l))}if(ns(t,d,s),!1!==s.cellFormula)if(t.Formula){var h=El(t.Formula);61==h.charCodeAt(0)&&(h=h.slice(1)),t.f=Mi(h,o),delete t.Formula,"RC"==t.ArrayRange?t.F=Mi("RC:RC",o):t.ArrayRange&&(t.F=Mi(t.ArrayRange,o),r.push([te(t.F),t.F]))}else for(m=0;m=r[m][0].s.r&&o.r<=r[m][0].e.r&&o.c>=r[m][0].s.c&&o.c<=r[m][0].e.c&&(t.F=r[m][1]);s.cellStyles&&(f.forEach(function(l){!p.patternType&&l.patternType&&(p.patternType=l.patternType)}),t.s=p),void 0!==t.StyleID&&(t.ixfe=t.StyleID)}function os(l){l.t=l.v||"",l.t=l.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),l.v=l.w=l.ixfe=void 0}function us(l){if(b&&Buffer.isBuffer(l))return l.toString("utf8");if("string"==typeof l)return l;if("undefined"!=typeof Uint8Array&&l instanceof Uint8Array)return Tl(R(L(l)));throw new Error("Bad input format: expected Buffer or string")}var is=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm;function as(l,n){var e=n||{};k(S);var t=p(us(l));"binary"!=e.type&&"array"!=e.type&&"base64"!=e.type||(t="undefined"!=typeof cptable?cptable.utils.decode(65001,c(t)):Tl(t));var o,u=t.slice(0,1024).toLowerCase(),i=!1;if(-1==u.indexOf("=0&&(i=!0)}),i)return zs.to_workbook(t,e);var a,r=[];null!=g&&null==e.dense&&(e.dense=g);var s,d={},f=[],m=e.dense?[]:{},h="",v={},b={},y=Qr(''),x=0,A=0,_=0,C={s:{r:2e6,c:2e6},e:{r:0,c:0}},w={},R={},L="",M=0,E=[],O={},I={},N=0,D=[],z=[],q={},T=[],P=!1,B=[],V=[],U={},W=0,G=0,j={Sheets:[],WBProps:{date1904:!1}},H={};is.lastIndex=0,t=t.replace(//gm,"");for(var Y="";o=is.exec(t);)switch(o[3]=(Y=o[3]).toLowerCase()){case"data":if("data"==Y){if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&r.push([o[3],!0]);break}if(r[r.length-1][1])break;"/"===o[1]?ts(t.slice(x,o.index),L,y,"comment"==r[r.length-1][0]?q:v,{c:A,r:_},w,T[A],b,B,e):(L="",y=Qr(o[0]),x=o.index+o[0].length);break;case"cell":if("/"===o[1])if(z.length>0&&(v.c=z),(!e.sheetRows||e.sheetRows>_)&&void 0!==v.v&&(e.dense?(m[_]||(m[_]=[]),m[_][A]=v):m[Qn(A)+$n(_)]=v),v.HRef&&(v.l={Target:v.HRef},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(W=A+(0|parseInt(v.MergeAcross,10)),G=_+(0|parseInt(v.MergeDown,10)),E.push({s:{c:A,r:_},e:{c:W,r:G}})),e.sheetStubs)if(v.MergeAcross||v.MergeDown){for(var Z=A;Z<=W;++Z)for(var X=_;X<=G;++X)(Z>A||X>_)&&(e.dense?(m[X]||(m[X]=[]),m[X][Z]={t:"z"}):m[Qn(Z)+$n(X)]={t:"z"});A=W+1}else++A;else v.MergeAcross?A=W+1:++A;else(v=Jr(o[0])).Index&&(A=+v.Index-1),AC.e.c&&(C.e.c=A),"/>"===o[0].slice(-2)&&++A,z=[];break;case"row":"/"===o[1]||"/>"===o[0].slice(-2)?(_C.e.r&&(C.e.r=_),"/>"===o[0].slice(-2)&&(b=Qr(o[0])).Index&&(_=+b.Index-1),A=0,++_):((b=Qr(o[0])).Index&&(_=+b.Index-1),U={},("0"==b.AutoFitHeight||b.Height)&&(U.hpx=parseInt(b.Height,10),U.hpt=qu(U.hpx),V[_]=U),"1"==b.Hidden&&(U.hidden=!0,V[_]=U));break;case"worksheet":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"));f.push(h),C.s.r<=C.e.r&&C.s.c<=C.e.c&&(m["!ref"]=ee(C),e.sheetRows&&e.sheetRows<=C.e.r&&(m["!fullref"]=m["!ref"],C.e.r=e.sheetRows-1,m["!ref"]=ee(C))),E.length&&(m["!merges"]=E),T.length>0&&(m["!cols"]=T),V.length>0&&(m["!rows"]=V),d[h]=m}else C={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=A=0,r.push([o[3],!1]),a=Qr(o[0]),h=El(a.Name),m=e.dense?[]:{},E=[],B=[],V=[],H={name:h,Hidden:0},j.Sheets.push(H);break;case"table":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else{if("/>"==o[0].slice(-2))break;Qr(o[0]),r.push([o[3],!1]),T=[],P=!1}break;case"style":"/"===o[1]?es(w,R,e):R=Qr(o[0]);break;case"numberformat":R.nf=El(Qr(o[0]).Format||"General"),F[R.nf]&&(R.nf=F[R.nf]);for(var $=0;392!=$&&S._table[$]!=R.nf;++$);if(392==$)for($=57;392!=$;++$)if(null==S._table[$]){S.load(R.nf,$);break}break;case"column":if("table"!==r[r.length-1][0])break;if((s=Qr(o[0])).Hidden&&(s.hidden=!0,delete s.Hidden),s.Width&&(s.wpx=parseInt(s.Width,10)),!P&&s.wpx>10){P=!0,Ou=Lu;for(var K=0;K0&&(ll.Sheet=j.Sheets.length-1),j.Names.push(ll);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":break;case"font":if("/>"===o[0].slice(-2))break;"/"===o[1]?L+=t.slice(M,o.index):M=o.index+o[0].length;break;case"interior":if(!e.cellStyles)break;R.Interior=Qr(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===o[0].slice(-2))break;"/"===o[1]?wt(O,Y,t.slice(N,o.index)):N=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else r.push([o[3],!1]);break;case"comment":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"));os(q),z.push(q)}else r.push([o[3],!1]),q={a:(a=Qr(o[0])).Author};break;case"autofilter":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else if("/"!==o[0].charAt(o[0].length-2)){var nl=Qr(o[0]);m["!autofilter"]={ref:Mi(nl.Range).replace(/\$/g,"")},r.push([o[3],!0])}break;case"name":break;case"datavalidation":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&r.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===o[1]){if((a=r.pop())[0]!==o[3])throw new Error("Bad state: "+a.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&r.push([o[3],!0]);break;default:if(0==r.length&&"document"==o[3])return Ws(t,e);if(0==r.length&&"uof"==o[3])return Ws(t,e);var tl=!0;switch(r[r.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:tl=!1}break;case"componentoptions":switch(o[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:tl=!1}break;case"excelworkbook":switch(o[3]){case"date1904":j.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:tl=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":case"height":case"width":break;default:tl=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if("/>"===o[0].slice(-2));else if("/"===o[1])switch(t.slice(N,o.index)){case"SheetHidden":H.Hidden=1;break;case"SheetVeryHidden":H.Hidden=2}else N=o.index+o[0].length;break;case"header":m["!margins"]||Fa(m["!margins"]={},"xlml"),m["!margins"].header=_l(o[0]).Margin;break;case"footer":m["!margins"]||Fa(m["!margins"]={},"xlml"),m["!margins"].footer=_l(o[0]).Margin;break;case"pagemargins":var ol=_l(o[0]);m["!margins"]||Fa(m["!margins"]={},"xlml"),ol.Top&&(m["!margins"].top=ol.Top),ol.Left&&(m["!margins"].left=ol.Left),ol.Right&&(m["!margins"].right=ol.Right),ol.Bottom&&(m["!margins"].bottom=ol.Bottom);break;case"displayrighttoleft":j.Views||(j.Views=[]),j.Views[0]||(j.Views[0]={}),j.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"nosummaryrowsbelowdetail":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"nosummarycolumnsrightdetail":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:tl=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:tl=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:tl=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:tl=!1}break;case"querytable":switch(o[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:tl=!1}break;case"datavalidation":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:tl=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:tl=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:tl=!1}break;case"smarttags":break;default:tl=!1}if(tl)break;if(o[3].match(/!\[CDATA/))break;if(!r[r.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+r.join("|");if("customdocumentproperties"===r[r.length-1][0]){if("/>"===o[0].slice(-2))break;"/"===o[1]?ls(I,Y,D,t.slice(N,o.index)):(D=o,N=o.index+o[0].length);break}if(e.WTF)throw"Unrecognized tag: "+o[3]+"|"+r.join("|")}var ul={};return e.bookSheets||e.bookProps||(ul.Sheets=d),ul.SheetNames=f,ul.Workbook=j,ul.SSF=S.get_table(),ul.Props=O,ul.Custprops=I,ul}function rs(l,n){switch(od(n=n||{}),n.type||"base64"){case"base64":return as(v.decode(l),n);case"binary":case"buffer":case"file":return as(l,n);case"array":return as(R(l),n)}}function ss(l,n){var e=[];return l.Props&&e.push(function(l,n){var e=[];return B(_t).map(function(l){for(var n=0;n'+o.join("")+""}(l.Props,l.Custprops)),e.join("")}function ds(l){return nn("NamedRange",null,{"ss:Name":l.Name,"ss:RefersTo":"="+Oi(l.Ref,{r:0,c:0})})}function cs(l,n,e,t,o,u,i){if(!l||null==l.v&&null==l.f)return"";var a={};if(l.f&&(a["ss:Formula"]="="+kl(Oi(l.f,i))),l.F&&l.F.slice(0,n.length)==n){var r=Jn(l.F.slice(n.length+1));a["ss:ArrayRange"]="RC:R"+(r.r==i.r?"":"["+(r.r-i.r)+"]")+"C"+(r.c==i.c?"":"["+(r.c-i.c)+"]")}if(l.l&&l.l.Target&&(a["ss:HRef"]=kl(l.l.Target),l.l.Tooltip&&(a["x:HRefScreenTip"]=kl(l.l.Tooltip))),e["!merges"])for(var s=e["!merges"],d=0;d!=s.length;++d)s[d].s.c==i.c&&s[d].s.r==i.r&&(s[d].e.c>s[d].s.c&&(a["ss:MergeAcross"]=s[d].e.c-s[d].s.c),s[d].e.r>s[d].s.r&&(a["ss:MergeDown"]=s[d].e.r-s[d].s.r));var c="",p="";switch(l.t){case"z":if(!t.sheetStubs)return"";break;case"n":c="Number",p=String(l.v);break;case"b":c="Boolean",p=l.v?"1":"0";break;case"e":c="Error",p=Ye[l.v];break;case"d":c="DateTime",p=new Date(l.v).toISOString(),null==l.z&&(l.z=l.z||S._table[14]);break;case"s":c="String",p=((l.v||"")+"").replace(Ol,function(l){return Ml[l]}).replace(Fl,function(l){return"&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"})}var f=Na(t.cellXfs,l,t);a["ss:StyleID"]="s"+(21+f),a["ss:Index"]=i.c+1;var m=null!=l.v?p:"",h="z"==l.t?"":''+m+"";return(l.c||[]).length>0&&(h+=l.c.map(function(l){var n=nn("ss:Data",zl(l.t||""),{xmlns:"http://www.w3.org/TR/REC-html40"});return nn("Comment",n,{"ss:Author":l.a})}).join("")),nn("Cell",h,a)}function ps(l,n){var e='"}function fs(l,n,e){var t=[],o=e.SheetNames[l],u=e.Sheets[o],i=u?function(l,n,e,t){if(!l)return"";if(!((t||{}).Workbook||{}).Names)return"";for(var o=t.Workbook.Names,u=[],i=0;i0&&t.push(""+i+""),(i=u?function(l,n,e,t){if(!l["!ref"])return"";var o=te(l["!ref"]),u=l["!merges"]||[],i=0,a=[];l["!cols"]&&l["!cols"].forEach(function(l,n){Du(l);var e=!!l.width,t=Ia(n,l),o={"ss:Index":n+1};e&&(o["ss:Width"]=Su(t.width)),l.hidden&&(o["ss:Hidden"]="1"),a.push(nn("Column",null,o))});for(var r=Array.isArray(l),s=o.s.r;s<=o.e.r;++s){for(var d=[ps(s,(l["!rows"]||[])[s])],c=o.s.c;c<=o.e.c;++c){var p=!1;for(i=0;i!=u.length;++i)if(!(u[i].s.c>c||u[i].s.r>s||u[i].e.c"),d.length>2&&a.push(d.join(""))}return a.join("")}(u,n):"").length>0&&t.push(""+i+"
"),t.push(function(l,n,e,t){if(!l)return"";var o=[];if(l["!margins"]&&(o.push(""),l["!margins"].header&&o.push(nn("Header",null,{"x:Margin":l["!margins"].header})),l["!margins"].footer&&o.push(nn("Footer",null,{"x:Margin":l["!margins"].footer})),o.push(nn("PageMargins",null,{"x:Bottom":l["!margins"].bottom||"0.75","x:Left":l["!margins"].left||"0.7","x:Right":l["!margins"].right||"0.7","x:Top":l["!margins"].top||"0.75"})),o.push("")),t&&t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[e])if(t.Workbook.Sheets[e].Hidden)o.push(nn("Visible",1==t.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var u=0;u")}return((((t||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push(""),l["!protect"]&&(o.push(Jl("ProtectContents","True")),l["!protect"].objects&&o.push(Jl("ProtectObjects","True")),l["!protect"].scenarios&&o.push(Jl("ProtectScenarios","True")),null==l["!protect"].selectLockedCells||l["!protect"].selectLockedCells?null==l["!protect"].selectUnlockedCells||l["!protect"].selectUnlockedCells||o.push(Jl("EnableSelection","UnlockedCells")):o.push(Jl("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(n){l["!protect"][n[0]]&&o.push("<"+n[1]+"/>")})),0==o.length?"":nn("WorksheetOptions",o.join(""),{xmlns:an.x})}(u,0,l,e)),t.join("")}function ms(l,n){n||(n={}),l.SSF||(l.SSF=S.get_table()),l.SSF&&(k(S),S.load_table(l.SSF),n.revssf=W(l.SSF),n.revssf[l.SSF[65535]]=0,n.ssf=l.SSF,n.cellXfs=[],Na(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(ss(l,n)),e.push(""),e.push(""),e.push("");for(var t=0;t'];return n.cellXfs.forEach(function(l,n){var t=[];t.push(nn("NumberFormat",null,{"ss:Format":kl(S._table[l.numFmtId])}));var o={"ss:ID":"s"+(21+n)};e.push(nn("Style",t.join(""),o))}),nn("Styles",e.join(""))}(0,n),e[3]=function(l){if(!((l||{}).Workbook||{}).Names)return"";for(var n=l.Workbook.Names,e=[],t=0;t40?n:(e.l-=4,n.Reserved1=e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4?n:1907505652!==(t=e.read_shift(4))?n:(n.UnicodeClipboardFormat=function(l){return Ie(l,2)}(e),0==(t=e.read_shift(4))||t>40?n:(e.l-=4,void(n.Reserved2=e.read_shift(0,"lpwstr")))))}function gs(l,n,e,t){var o=e,u=[],i=n.slice(n.l,n.l+o);if(t&&t.enc&&t.enc.insitu)switch(l.n){case"BOF":case"FilePass":case"FileLock":case"InterfaceHdr":case"RRDInfo":case"RRDHead":case"UsrExcl":break;default:if(0===i.length)break;t.enc.insitu(i)}u.push(i),n.l+=o;for(var a=Rs[En(n,n.l)],r=0;null!=a&&"Continue"===a.n.slice(0,8);)o=En(n,n.l+2),r=n.l+4,"ContinueFrt"==a.n?r+=4:"ContinueFrt"==a.n.slice(0,11)&&(r+=12),u.push(n.slice(r,n.l+4+o)),n.l+=4+o,a=Rs[En(n,n.l)];var s=M(u);Pn(s,0);var d=0;s.lens=[];for(var c=0;c1)&&(e.sheetRows&&l.r>=e.sheetRows&&(w=!1),w)){if(e.cellStyles&&n.XF&&n.XF.data&&function(l,n,e){var t,o=n.XF.data;o&&o.patternType&&e&&e.cellStyles&&(n.s={},n.s.patternType=o.patternType,(t=wu(O(o.icvFore)))&&(n.s.fgColor={rgb:t}),(t=wu(O(o.icvBack)))&&(n.s.bgColor={rgb:t}))}(0,n,e),delete n.ixfe,delete n.XF,o=l,A=le(l),h&&h.s&&h.e||(h={s:{r:0,c:0},e:{r:0,c:0}}),l.rh.e.r&&(h.e.r=l.r+1),l.c+1>h.e.c&&(h.e.c=l.c+1),e.cellFormula&&n.f)for(var t=0;tl.c||C[t][0].s.r>l.r||C[t][0].e.c>8)!==Z)throw new Error("rt mismatch: "+K+"!="+Z);12==$.r&&(l.l+=10,X-=10)}var Q={};Q="EOF"===$.n?$.f(l,X,I):gs($,l,X,I);var J=$.n;if(0==U&&"BOF"!=J)continue;switch(J){case"Date1904":e.opts.Date1904=M.WBProps.date1904=Q;break;case"WriteProtect":e.opts.WriteProtect=!0;break;case"FilePass":if(I.enc||(l.l=0),I.enc=Q,!n.password)throw new Error("File is password-protected");if(null==Q.valid)throw new Error("Encryption scheme unsupported");if(!Q.valid)throw new Error("Password is incorrect");break;case"WriteAccess":I.lastuser=Q;break;case"FileSharing":break;case"CodePage":var ll=Number(Q);switch(ll){case 21010:ll=1200;break;case 32768:ll=1e4;break;case 32769:ll=1252}s(I.codepage=ll),H=!0;break;case"RRTabId":I.rrtabid=Q;break;case"WinProtect":I.winlocked=Q;break;case"Template":case"BookBool":case"UsesELFs":case"MTRSettings":break;case"RefreshAll":case"CalcCount":case"CalcDelta":case"CalcIter":case"CalcMode":case"CalcPrecision":case"CalcSaveRecalc":e.opts[J]=Q;break;case"CalcRefMode":I.CalcRefMode=Q;break;case"Uncalced":break;case"ForceFullCalculation":e.opts.FullCalc=Q;break;case"WsBool":Q.fDialog&&(f["!type"]="dialog");break;case"XF":R.push(Q);break;case"ExtSST":case"BookExt":case"RichTextStream":case"BkHim":break;case"SupBook":T.push([Q]),T[T.length-1].XTI=[];break;case"ExternName":T[T.length-1].push(Q);break;case"Index":break;case"Lbl":P={Name:Q.Name,Ref:pa(Q.rgce,0,null,T,I)},Q.itab>0&&(P.Sheet=Q.itab-1),T.names.push(P),T[0]||(T[0]=[],T[0].XTI=[]),T[T.length-1].push(Q),"_xlnm._FilterDatabase"==Q.Name&&Q.itab>0&&Q.rgce&&Q.rgce[0]&&Q.rgce[0][0]&&"PtgArea3d"==Q.rgce[0][0][0]&&(j[Q.itab-1]={ref:ee(Q.rgce[0][0][1][2])});break;case"ExternCount":I.ExternCount=Q;break;case"ExternSheet":0==T.length&&(T[0]=[],T[0].XTI=[]),T[T.length-1].XTI=T[T.length-1].XTI.concat(Q),T.XTI=T.XTI.concat(Q);break;case"NameCmt":if(I.biff<8)break;null!=P&&(P.Comment=Q[1]);break;case"Protect":f["!protect"]=Q;break;case"Password":0!==Q&&I.WTF&&console.error("Password verifier: "+Q);break;case"Prot4Rev":case"Prot4RevPass":break;case"BoundSheet8":m[Q.pos]=Q,I.snames.push(Q.name);break;case"EOF":if(--U)break;if(h.e){if(h.e.r>0&&h.e.c>0){if(h.e.r--,h.e.c--,f["!ref"]=ee(h),n.sheetRows&&n.sheetRows<=h.e.r){var nl=h.e.r;h.e.r=n.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=ee(h),h.e.r=nl}h.e.r++,h.e.c++}F.length>0&&(f["!merges"]=F),N.length>0&&(f["!objects"]=N),D.length>0&&(f["!cols"]=D),z.length>0&&(f["!rows"]=z),M.Sheets.push(E)}""===y?x=f:t[y]=f,f=n.dense?[]:{};break;case"BOF":if(8===I.biff&&(I.biff={9:2,521:3,1033:4}[Z]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Q.BIFFVer]||8),8==I.biff&&0==Q.BIFFVer&&16==Q.dt&&(I.biff=2),U++)break;if(w=!0,f=n.dense?[]:{},I.biff<8&&!H&&(H=!0,s(I.codepage=n.codepage||1252)),I.biff<5){""===y&&(y="Sheet1"),h={s:{r:0,c:0},e:{r:0,c:0}};var el={pos:l.l-X,name:y};m[el.pos]=el,I.snames.push(y)}else y=(m[Y]||{name:""}).name;32==Q.dt&&(f["!type"]="chart"),64==Q.dt&&(f["!type"]="macro"),F=[],N=[],I.arrayf=C=[],D=[],z=[],q=!1,E={Hidden:(m[Y]||{hs:0}).hs,name:y};break;case"Number":case"BIFF2NUM":case"BIFF2INT":"chart"==f["!type"]&&(n.dense?(f[Q.r]||[])[Q.c]:f[le({c:Q.c,r:Q.r})])&&++Q.c,d={ixfe:Q.ixfe,XF:R[Q.ixfe]||{},v:Q.val,t:"n"},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n);break;case"BoolErr":d={ixfe:Q.ixfe,XF:R[Q.ixfe],v:Q.val,t:Q.t},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n);break;case"RK":d={ixfe:Q.ixfe,XF:R[Q.ixfe],v:Q.rknum,t:"n"},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n);break;case"MulRk":for(var tl=Q.c;tl<=Q.C;++tl){var ol=Q.rkrec[tl-Q.c][0];d={ixfe:ol,XF:R[ol],v:Q.rkrec[tl-Q.c][1],t:"n"},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:tl,r:Q.r},d,n)}break;case"Formula":if("String"==Q.val){v=Q;break}if((d=bs(Q.val,Q.cell.ixfe,Q.tt)).XF=R[d.ixfe],n.cellFormula){var ul=Q.formula;if(ul&&ul[0]&&ul[0][0]&&"PtgExp"==ul[0][0][0]){var il=ul[0][0][1][0],al=ul[0][0][1][1],rl=le({r:il,c:al});_[rl]?d.f=""+pa(Q.formula,0,Q.cell,T,I):d.F=((n.dense?(f[il]||[])[al]:f[rl])||{}).F}else d.f=""+pa(Q.formula,0,Q.cell,T,I)}W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k(Q.cell,d,n),v=Q;break;case"String":if(!v)throw new Error("String record expects Formula");v.val=Q,(d=bs(Q,v.cell.ixfe,"s")).XF=R[d.ixfe],n.cellFormula&&(d.f=""+pa(v.formula,0,v.cell,T,I)),W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k(v.cell,d,n),v=null;break;case"Array":C.push(Q);var sl=le(Q[0].s);if(u=n.dense?(f[Q[0].s.r]||[])[Q[0].s.c]:f[sl],n.cellFormula&&u){if(!v)break;if(!sl||!u)break;u.f=""+pa(Q[1],0,Q[0],T,I),u.F=ee(Q[0])}break;case"ShrFmla":if(!w)break;if(!n.cellFormula)break;if(A){if(!v)break;_[le(v.cell)]=Q[0],((u=n.dense?(f[v.cell.r]||[])[v.cell.c]:f[le(v.cell)])||{}).f=""+pa(Q[0],0,o,T,I)}break;case"LabelSst":d=bs(b[Q.isst].t,Q.ixfe,"s"),b[Q.isst].h&&(d.h=b[Q.isst].h),d.XF=R[d.ixfe],W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n);break;case"Blank":n.sheetStubs&&(d={ixfe:Q.ixfe,XF:R[Q.ixfe],t:"z"},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n));break;case"MulBlank":if(n.sheetStubs)for(var dl=Q.c;dl<=Q.C;++dl){var cl=Q.ixfe[dl-Q.c];d={ixfe:cl,XF:R[cl],t:"z"},W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:dl,r:Q.r},d,n)}break;case"RString":case"Label":case"BIFF2STR":(d=bs(Q.val,Q.ixfe,"s")).XF=R[d.ixfe],W>0&&(d.z=G[d.ixfe>>8&31]),vs(d,n,e.opts.Date1904),k({c:Q.c,r:Q.r},d,n);break;case"Dimensions":1===U&&(h=Q);break;case"SST":b=Q;break;case"Format":if(4==I.biff){G[W++]=Q[1];for(var pl=0;pl=163&&S.load(Q[1],W+163)}else S.load(Q[1],Q[0]);break;case"BIFF2FORMAT":G[W++]=Q;for(var fl=0;fl=163&&S.load(Q,W+163);break;case"MergeCells":F=F.concat(Q);break;case"Obj":N[Q.cmo[0]]=I.lastobj=Q;break;case"TxO":I.lastobj.TxO=Q;break;case"ImData":I.lastobj.ImData=Q;break;case"HLink":for(r=Q[0].s.r;r<=Q[0].e.r;++r)for(a=Q[0].s.c;a<=Q[0].e.c;++a)(u=n.dense?(f[r]||[])[a]:f[le({c:a,r:r})])&&(u.l=Q[1]);break;case"HLinkTooltip":for(r=Q[0].s.r;r<=Q[0].e.r;++r)for(a=Q[0].s.c;a<=Q[0].e.c;++a)(u=n.dense?(f[r]||[])[a]:f[le({c:a,r:r})])&&u.l&&(u.l.Tooltip=Q[1]);break;case"Note":if(I.biff<=5&&I.biff>=2)break;u=n.dense?(f[Q[0].r]||[])[Q[0].c]:f[le(Q[0])];var ml=N[Q[2]];u||(n.dense?(f[Q[0].r]||(f[Q[0].r]=[]),u=f[Q[0].r][Q[0].c]={t:"z"}):u=f[le(Q[0])]={t:"z"},h.e.r=Math.max(h.e.r,Q[0].r),h.s.r=Math.min(h.s.r,Q[0].r),h.e.c=Math.max(h.e.c,Q[0].c),h.s.c=Math.min(h.s.c,Q[0].c)),u.c||(u.c=[]),i={a:Q[1],t:ml.TxO.t},u.c.push(i);break;default:switch($.n){case"ClrtClient":break;case"XFExt":R[Q.ixfe],Q.ext.forEach(function(l){l[0]});break;case"DefColWidth":break;case"DefaultRowHeight":Q[1];break;case"ColInfo":if(!I.cellStyles)break;for(;Q.e>=Q.s;)D[Q.e--]={width:Q.w/256},q||(q=!0,Nu(Q.w/256)),Du(D[Q.e+1]);break;case"Row":var hl={};null!=Q.level&&(z[Q.r]=hl,hl.level=Q.level),Q.hidden&&(z[Q.r]=hl,hl.hidden=!0),Q.hpt&&(z[Q.r]=hl,hl.hpt=Q.hpt,hl.hpx=Tu(Q.hpt));break;case"LeftMargin":case"RightMargin":case"TopMargin":case"BottomMargin":f["!margins"]||Fa(f["!margins"]={}),f["!margins"][J.slice(0,-6).toLowerCase()]=Q;break;case"Setup":f["!margins"]||Fa(f["!margins"]={}),f["!margins"].header=Q.header,f["!margins"].footer=Q.footer;break;case"Window2":Q.RTL&&(M.Views[0].RTL=!0);break;case"Header":case"Footer":case"HCenter":case"VCenter":case"Pls":case"GCW":case"LHRecord":case"DBCell":case"EntExU2":case"SxView":case"Sxvd":case"SXVI":case"SXVDEx":case"SxIvd":case"SXString":case"Sync":case"Addin":case"SXDI":case"SXLI":case"SXEx":case"QsiSXTag":case"Selection":case"Feat":break;case"FeatHdr":case"FeatHdr11":break;case"Feature11":case"Feature12":case"List12":break;case"Country":c=Q;break;case"RecalcId":case"DxGCol":break;case"Fbi":case"Fbi2":case"GelFrame":case"Font":case"XFCRC":case"Style":case"StyleExt":break;case"Palette":L=Q;break;case"Theme":p=Q;break;case"ScenarioProtect":case"ObjProtect":case"CondFmt12":case"Table":case"TableStyles":case"TableStyle":case"TableStyleElement":case"SXStreamID":case"SXVS":case"DConRef":case"SXAddl":case"DConBin":case"DConName":case"SXPI":case"SxFormat":case"SxSelect":case"SxRule":case"SxFilt":case"SxItm":case"SxDXF":case"ScenMan":case"DCon":case"CellWatch":case"PrintRowCol":case"PrintGrid":case"PrintSize":case"XCT":case"CRN":case"Scl":case"SheetExt":case"SheetExtOptional":case"ObNoMacros":case"ObProj":break;case"CodeName":y?E.CodeName=Q||E.name:M.WBProps.CodeName=Q||"ThisWorkbook";break;case"GUIDTypeLib":case"WOpt":case"PhoneticInfo":case"OleObjectSize":break;case"DXF":case"DXFN":case"DXFN12":case"DXFN12List":case"DXFN12NoCB":break;case"Dv":case"DVal":break;case"BRAI":case"Series":case"SeriesText":case"DConn":case"DbOrParamQry":case"DBQueryExt":case"OleDbConn":case"ExtString":case"IFmtRecord":break;case"CondFmt":case"CF":case"CF12":case"CFEx":case"Excel9File":case"Units":break;case"InterfaceHdr":case"Mms":case"InterfaceEnd":case"DSF":case"BuiltInFnGroupCount":break;case"Window1":case"HideObj":case"GridSet":case"Guts":case"UserBView":case"UserSViewBegin":case"UserSViewEnd":case"Pane":break;default:switch($.n){case"Dat":case"Begin":case"End":case"StartBlock":case"EndBlock":case"Frame":case"Area":case"Axis":case"AxisLine":case"Tick":break;case"AxesUsed":case"CrtLayout12":case"CrtLayout12A":case"CrtLink":case"CrtLine":case"CrtMlFrt":case"CrtMlFrtContinue":break;case"LineFormat":case"AreaFormat":case"Chart":case"Chart3d":case"Chart3DBarShape":case"ChartFormat":case"ChartFrtInfo":break;case"PlotArea":case"PlotGrowth":break;case"SeriesList":case"SerParent":case"SerAuxTrend":break;case"DataFormat":case"SerToCrt":case"FontX":break;case"CatSerRange":case"AxcExt":case"SerFmt":case"ShtProps":break;case"DefaultText":case"Text":case"CatLab":case"DataLabExtContents":break;case"Legend":case"LegendException":break;case"Pie":case"Scatter":break;case"PieFormat":case"MarkerFormat":break;case"StartObject":case"EndObject":break;case"AlRuns":case"ObjectLink":case"SIIndex":break;case"AttachedLabel":case"YMult":break;case"Line":case"Bar":case"Surf":case"AxisParent":case"Pos":case"ValueRange":case"SXViewEx9":case"SXViewLink":case"PivotChartBits":case"SBaseRef":case"TextPropsStream":case"LnExt":case"MkrExt":case"CrtCoopt":break;case"Qsi":case"Qsif":case"Qsir":case"QsiSXTag":case"TxtQry":case"FilterMode":break;case"AutoFilter":case"AutoFilterInfo":case"AutoFilter12":case"DropDownObjIds":case"Sort":case"SortData":case"ShapePropsStream":break;case"MsoDrawing":case"MsoDrawingGroup":case"MsoDrawingSelection":break;case"WebPub":case"AutoWebPub":break;case"HeaderFooter":case"HFPicture":case"PLV":case"HorizontalPageBreaks":case"VerticalPageBreaks":break;case"Backup":case"CompressPictures":case"Compat12":break;case"Continue":case"ContinueFrt12":break;case"FrtFontList":case"FrtWrapper":break;default:switch($.n){case"TabIdConf":case"Radar":case"RadarArea":case"DropBar":case"Intl":case"CoordList":case"SerAuxErrBar":break;case"BIFF2FONTCLR":case"BIFF2FMTCNT":case"BIFF2FONTXTRA":break;case"BIFF2XF":case"BIFF3XF":case"BIFF4XF":break;case"BIFF4FMTCNT":case"BIFF2ROW":case"BIFF2WINDOW2":break;case"SCENARIO":case"DConBin":case"PicF":case"DataLabExt":case"Lel":case"BopPop":case"BopPopCustom":case"RealTimeData":case"Name":break;case"LHNGraph":case"FnGroupName":case"AddMenu":case"LPr":break;case"ListObj":case"ListField":case"RRSort":case"BigName":break;case"ToolbarHdr":case"ToolbarEnd":case"DDEObjName":case"FRTArchId$":break;default:if(n.WTF)throw"Unrecognized Record "+$.n}}}}}else l.l+=X}return e.SheetNames=B(m).sort(function(l,n){return Number(l)-Number(n)}).map(function(l){return m[l].name}),n.bookSheets||(e.Sheets=t),e.Sheets&&j.forEach(function(l,n){e.Sheets[e.SheetNames[n]]["!autofilter"]=l}),e.Preamble=x,e.Strings=b,e.SSF=S.get_table(),I.enc&&(e.Encryption=I.enc),p&&(e.Themes=p),e.Metadata={},void 0!==c&&(e.Metadata.Country=c),T.names.length>0&&(M.Names=T.names),e.Workbook=M,e}var xs={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function As(l,n){var e,t,o,u;if(n||(n={}),od(n),d(),n.codepage&&r(n.codepage),l.FullPaths){if(q.find(l,"/encryption"))throw new Error("File is password-protected");e=q.find(l,"!CompObj"),t=q.find(l,"/Workbook")||q.find(l,"/Book")}else{switch(n.type){case"base64":l=C(v.decode(l));break;case"binary":l=C(l);break;case"buffer":break;case"array":Array.isArray(l)||(l=Array.prototype.slice.call(l))}Pn(l,0),t={content:l}}if(e&&hs(e),n.bookProps&&!n.bookSheets)o={};else{var i=b?"buffer":"array";if(t&&t.content)o=ys(t.content,n);else if((u=q.find(l,"PerfectOffice_MAIN"))&&u.content)o=Yo.to_workbook(u.content,(n.type=i,n));else{if(!(u=q.find(l,"NativeContent_MAIN"))||!u.content)throw new Error("Cannot find Workbook stream");o=Yo.to_workbook(u.content,(n.type=i,n))}n.bookVBA&&l.FullPaths&&q.find(l,"/_VBA_PROJECT_CUR/VBA/dir")&&(o.vbaraw=function(l){var n=q.utils.cfb_new({root:"R"});return l.FullPaths.forEach(function(e,t){if("/"!==e.slice(-1)&&e.match(/_VBA_PROJECT_CUR/)){var o=e.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");q.utils.cfb_add(n,o,l.FileIndex[t].content)}}),q.write(n)}(l))}var a={};return l.FullPaths&&function(l,n,e){var t=q.find(l,"!DocumentSummaryInformation");if(t&&t.size>0)try{var o=Vt(t,Te,xs.DSI);for(var u in o)n[u]=o[u]}catch(Fd){if(e.WTF)throw Fd}var i=q.find(l,"!SummaryInformation");if(i&&i.size>0)try{var a=Vt(i,Pe,xs.SI);for(var r in a)null==n[r]&&(n[r]=a[r])}catch(Fd){if(e.WTF)throw Fd}n.HeadingPairs&&n.TitlesOfParts&&(vt(n.HeadingPairs,n.TitlesOfParts,n,e),delete n.HeadingPairs,delete n.TitlesOfParts)}(l,a,n),o.Props=o.Custprops=a,n.bookFiles&&(o.cfb=l),o}function _s(l,n){var e=n||{},t=q.utils.cfb_new({root:"R"}),o="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":o="/Workbook",e.biff=8;break;case"biff5":o="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return q.utils.cfb_add(t,o,Ds(l,e)),8==e.biff&&(l.Props||l.Custprops)&&function(l,n){var e,t=[],o=[],u=[],i=0;if(l.Props)for(e=B(l.Props),i=0;i-1||null!=u[i][1]&&a.push(u[i]);o.length&&q.utils.cfb_add(n,"/\x05SummaryInformation",Ut(o,xs.SI,We,Pe)),(t.length||a.length)&&q.utils.cfb_add(n,"/\x05DocumentSummaryInformation",Ut(t,xs.DSI,Ue,Te,a.length?a:null,xs.UDI))}(l,t),8==e.biff&&l.vbaraw&&function(l,n){n.FullPaths.forEach(function(e,t){if(0!=t){var o=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&q.utils.cfb_add(l,o,n.FileIndex[t].content)}})}(t,q.read(l.vbaraw,{type:"string"==typeof l.vbaraw?"binary":"buffer"})),t}var Cs={0:{n:"BrtRowHdr",f:function(l,n){var e={},t=l.l+n;e.r=l.read_shift(4),l.l+=4;var o=l.read_shift(2);l.l+=1;var u=l.read_shift(1);return l.l=t,7&u&&(e.level=7&u),16&u&&(e.hidden=!0),32&u&&(e.hpt=o/20),e}},1:{n:"BrtCellBlank",f:function(l){return[ge(l)]}},2:{n:"BrtCellRk",f:function(l){return[ge(l),Re(l),"n"]}},3:{n:"BrtCellError",f:function(l){return[ge(l),l.read_shift(1),"e"]}},4:{n:"BrtCellBool",f:function(l){return[ge(l),l.read_shift(1),"b"]}},5:{n:"BrtCellReal",f:function(l){return[ge(l),Oe(l),"n"]}},6:{n:"BrtCellSt",f:function(l){return[ge(l),de(l),"str"]}},7:{n:"BrtCellIsst",f:function(l){return[ge(l),l.read_shift(4),"s"]}},8:{n:"BrtFmlaString",f:function(l,n,e){var t=l.l+n,o=ge(l);o.r=e["!row"];var u=[o,de(l),"str"];if(e.cellFormula){l.l+=2;var i=ya(l,t-l.l,e);u[3]=pa(i,0,o,e.supbooks,e)}else l.l=t;return u}},9:{n:"BrtFmlaNum",f:function(l,n,e){var t=l.l+n,o=ge(l);o.r=e["!row"];var u=[o,Oe(l),"n"];if(e.cellFormula){l.l+=2;var i=ya(l,t-l.l,e);u[3]=pa(i,0,o,e.supbooks,e)}else l.l=t;return u}},10:{n:"BrtFmlaBool",f:function(l,n,e){var t=l.l+n,o=ge(l);o.r=e["!row"];var u=[o,l.read_shift(1),"b"];if(e.cellFormula){l.l+=2;var i=ya(l,t-l.l,e);u[3]=pa(i,0,o,e.supbooks,e)}else l.l=t;return u}},11:{n:"BrtFmlaError",f:function(l,n,e){var t=l.l+n,o=ge(l);o.r=e["!row"];var u=[o,l.read_shift(1),"e"];if(e.cellFormula){l.l+=2;var i=ya(l,t-l.l,e);u[3]=pa(i,0,o,e.supbooks,e)}else l.l=t;return u}},16:{n:"BrtFRTArchID$",f:function(l,n){var e={};return l.read_shift(4),e.ArchID=l.read_shift(4),l.l+=n-8,e}},19:{n:"BrtSSTItem",f:fe},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:function(l,n,e){var t=l.l+n;l.l+=4,l.l+=1;var o=l.read_shift(4),u=_e(l),i=xa(l,0,e),a=xe(l);l.l=t;var r={Name:u,Ptg:i};return o<268435455&&(r.Sheet=o),a&&(r.Comment=a),r}},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:function(l,n,e){var t={};t.sz=l.read_shift(2)/20;var o=function(l){var n=l.read_shift(1);return l.l++,{fBold:1&n,fItalic:2&n,fUnderline:4&n,fStrikeout:8&n,fOutline:16&n,fShadow:32&n,fCondense:64&n,fExtend:128&n}}(l);switch(o.fItalic&&(t.italic=1),o.fCondense&&(t.condense=1),o.fExtend&&(t.extend=1),o.fShadow&&(t.shadow=1),o.fOutline&&(t.outline=1),o.fStrikeout&&(t.strike=1),700===l.read_shift(2)&&(t.bold=1),l.read_shift(2)){case 1:t.vertAlign="superscript";break;case 2:t.vertAlign="subscript"}var u=l.read_shift(1);0!=u&&(t.underline=u);var i=l.read_shift(1);i>0&&(t.family=i);var a=l.read_shift(1);switch(a>0&&(t.charset=a),l.l++,t.color=function(l){var n={},e=l.read_shift(1)>>>1,t=l.read_shift(1),o=l.read_shift(2,"i"),u=l.read_shift(1),i=l.read_shift(1),a=l.read_shift(1);switch(l.l++,e){case 0:n.auto=1;break;case 1:n.index=t;var r=He[t];r&&(n.rgb=wu(r));break;case 2:n.rgb=wu([u,i,a]);break;case 3:n.theme=t}return 0!=o&&(n.tint=o>0?o/32767:o/32768),n}(l),l.read_shift(1)){case 1:t.scheme="major";break;case 2:t.scheme="minor"}return t.name=de(l),t}},44:{n:"BrtFmt",f:function(l,n){return[l.read_shift(2),de(l)]}},45:{n:"BrtFill",f:Ju},46:{n:"BrtBorder",f:ti},47:{n:"BrtXF",f:function(l,n){var e=l.l+n,t=l.read_shift(2),o=l.read_shift(2);return l.l=e,{ixfe:t,numFmtId:o}}},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:To},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:function(l){var n={};n.i=l.read_shift(4);var e={};e.r=l.read_shift(4),e.c=l.read_shift(4),n.r=le(e);var t=l.read_shift(1);return 2&t&&(n.l="1"),8&t&&(n.a="1"),n}},64:{n:"BrtDVal",f:function(){}},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Bn,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView",f:function(l){var n=l.read_shift(2);return l.l+=28,{RTL:32&n}}},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:function(l,n){var e={};return l.l+=19,e.name=be(l,n-19),e}},148:{n:"BrtWsDim",f:sr,p:16},151:{n:"BrtPane",f:function(){}},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:function(l,n){var e={},t=l.read_shift(4);e.defaultThemeVersion=l.read_shift(4);var o=n>8?de(l):"";return o.length>0&&(e.CodeName=o),e.autoCompressPictures=!!(65536&t),e.backupFile=!!(64&t),e.checkCompatibility=!!(4096&t),e.date1904=!!(1&t),e.filterPrivacy=!!(8&t),e.hidePivotFieldList=!!(1024&t),e.promptedSolutions=!!(16&t),e.publishItems=!!(2048&t),e.refreshAllConnections=!!(262144&t),e.saveExternalLinkValues=!!(128&t),e.showBorderUnselectedTables=!!(4&t),e.showInkAnnotation=!!(32&t),e.showObjects=["all","placeholders","none"][t>>13&3],e.showPivotChartFilter=!!(32768&t),e.updateLinks=["userSet","never","always"][t>>8&3],e}},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:function(l,n){var e={};return e.Hidden=l.read_shift(4),e.iTabID=l.read_shift(4),e.strRelID=Ce(l,n-8),e.name=de(l),e}},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:function(l){return[l.read_shift(4),l.read_shift(4)]}},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Me},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:pr},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},253:{n:"BrtBeginPNames"},254:{n:"BrtEndPNames"},255:{n:"BrtBeginPName"},256:{n:"BrtEndPName"},257:{n:"BrtBeginPNPairs"},258:{n:"BrtEndPNPairs"},259:{n:"BrtBeginPNPair"},260:{n:"BrtEndPNPair"},261:{n:"BrtBeginECWebProps"},262:{n:"BrtEndECWebProps"},263:{n:"BrtBeginEcWpTables"},264:{n:"BrtEndECWPTables"},265:{n:"BrtBeginECParams"},266:{n:"BrtEndECParams"},267:{n:"BrtBeginECParam"},268:{n:"BrtEndECParam"},269:{n:"BrtBeginPCDKPIs"},270:{n:"BrtEndPCDKPIs"},271:{n:"BrtBeginPCDKPI"},272:{n:"BrtEndPCDKPI"},273:{n:"BrtBeginDims"},274:{n:"BrtEndDims"},275:{n:"BrtBeginDim"},276:{n:"BrtEndDim"},277:{n:"BrtIndexPartEnd"},278:{n:"BrtBeginStyleSheet"},279:{n:"BrtEndStyleSheet"},280:{n:"BrtBeginSXView"},281:{n:"BrtEndSXVI"},282:{n:"BrtBeginSXVI"},283:{n:"BrtBeginSXVIs"},284:{n:"BrtEndSXVIs"},285:{n:"BrtBeginSXVD"},286:{n:"BrtEndSXVD"},287:{n:"BrtBeginSXVDs"},288:{n:"BrtEndSXVDs"},289:{n:"BrtBeginSXPI"},290:{n:"BrtEndSXPI"},291:{n:"BrtBeginSXPIs"},292:{n:"BrtEndSXPIs"},293:{n:"BrtBeginSXDI"},294:{n:"BrtEndSXDI"},295:{n:"BrtBeginSXDIs"},296:{n:"BrtEndSXDIs"},297:{n:"BrtBeginSXLI"},298:{n:"BrtEndSXLI"},299:{n:"BrtBeginSXLIRws"},300:{n:"BrtEndSXLIRws"},301:{n:"BrtBeginSXLICols"},302:{n:"BrtEndSXLICols"},303:{n:"BrtBeginSXFormat"},304:{n:"BrtEndSXFormat"},305:{n:"BrtBeginSXFormats"},306:{n:"BrtEndSxFormats"},307:{n:"BrtBeginSxSelect"},308:{n:"BrtEndSxSelect"},309:{n:"BrtBeginISXVDRws"},310:{n:"BrtEndISXVDRws"},311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:Ce},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:Fo},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:function(l,n,e){var t=l.l+n,o=Le(l),u=l.read_shift(1),i=[o];if(i[2]=u,e.cellFormula){var a=ba(l,t-l.l,e);i[1]=a}else l.l=t;return i}},427:{n:"BrtShrFmla",f:function(l,n,e){var t=l.l+n,o=[Me(l,16)];if(e.cellFormula){var u=Aa(l,t-l.l,e);o[1]=u,l.l=t}else l.l=t;return o}},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBeginColorPalette"},474:{n:"BrtEndColorPalette"},475:{n:"BrtIndexedColor"},476:{n:"BrtMargins",f:function(l){var n={};return mr.forEach(function(e){n[e]=Oe(l)}),n}},477:{n:"BrtPrintOptions"},478:{n:"BrtPageSetup"},479:{n:"BrtBeginHeaderFooter"},480:{n:"BrtEndHeaderFooter"},481:{n:"BrtBeginSXCrtFormat"},482:{n:"BrtEndSXCrtFormat"},483:{n:"BrtBeginSXCrtFormats"},484:{n:"BrtEndSXCrtFormats"},485:{n:"BrtWsFmtInfo",f:function(){}},486:{n:"BrtBeginMgs"},487:{n:"BrtEndMGs"},488:{n:"BrtBeginMGMaps"},489:{n:"BrtEndMGMaps"},490:{n:"BrtBeginMG"},491:{n:"BrtEndMG"},492:{n:"BrtBeginMap"},493:{n:"BrtEndMap"},494:{n:"BrtHLink",f:function(l,n){var e=l.l+n,t=Me(l,16),o=xe(l),u=de(l),i=de(l),a=de(l);l.l=e;var r={rfx:t,relId:o,loc:u,display:a};return i&&(r.Tooltip=i),r}},495:{n:"BrtBeginDCon"},496:{n:"BrtEndDCon"},497:{n:"BrtBeginDRefs"},498:{n:"BrtEndDRefs"},499:{n:"BrtDRef"},500:{n:"BrtBeginScenMan"},501:{n:"BrtEndScenMan"},502:{n:"BrtBeginSct"},503:{n:"BrtEndSct"},504:{n:"BrtSlc"},505:{n:"BrtBeginDXFs"},506:{n:"BrtEndDXFs"},507:{n:"BrtDXF"},508:{n:"BrtBeginTableStyles"},509:{n:"BrtEndTableStyles"},510:{n:"BrtBeginTableStyle"},511:{n:"BrtEndTableStyle"},512:{n:"BrtTableStyleElement"},513:{n:"BrtTableStyleClient"},514:{n:"BrtBeginVolDeps"},515:{n:"BrtEndVolDeps"},516:{n:"BrtBeginVolType"},517:{n:"BrtEndVolType"},518:{n:"BrtBeginVolMain"},519:{n:"BrtEndVolMain"},520:{n:"BrtBeginVolTopic"},521:{n:"BrtEndVolTopic"},522:{n:"BrtVolSubtopic"},523:{n:"BrtVolRef"},524:{n:"BrtVolNum"},525:{n:"BrtVolErr"},526:{n:"BrtVolStr"},527:{n:"BrtVolBool"},528:{n:"BrtBeginCalcChain$"},529:{n:"BrtEndCalcChain$"},530:{n:"BrtBeginSortState"},531:{n:"BrtEndSortState"},532:{n:"BrtBeginSortCond"},533:{n:"BrtEndSortCond"},534:{n:"BrtBookProtection"},535:{n:"BrtSheetProtection"},536:{n:"BrtRangeProtection"},537:{n:"BrtPhoneticInfo"},538:{n:"BrtBeginECTxtWiz"},539:{n:"BrtEndECTxtWiz"},540:{n:"BrtBeginECTWFldInfoLst"},541:{n:"BrtEndECTWFldInfoLst"},542:{n:"BrtBeginECTwFldInfo"},548:{n:"BrtFileSharing"},549:{n:"BrtOleSize"},550:{n:"BrtDrawing",f:Ce},551:{n:"BrtLegacyDrawing"},552:{n:"BrtLegacyDrawingHF"},553:{n:"BrtWebOpt"},554:{n:"BrtBeginWebPubItems"},555:{n:"BrtEndWebPubItems"},556:{n:"BrtBeginWebPubItem"},557:{n:"BrtEndWebPubItem"},558:{n:"BrtBeginSXCondFmt"},559:{n:"BrtEndSXCondFmt"},560:{n:"BrtBeginSXCondFmts"},561:{n:"BrtEndSXCondFmts"},562:{n:"BrtBkHim"},564:{n:"BrtColor"},565:{n:"BrtBeginIndexedColors"},566:{n:"BrtEndIndexedColors"},569:{n:"BrtBeginMRUColors"},570:{n:"BrtEndMRUColors"},572:{n:"BrtMRUColor"},573:{n:"BrtBeginDVals"},574:{n:"BrtEndDVals"},577:{n:"BrtSupNameStart"},578:{n:"BrtSupNameValueStart"},579:{n:"BrtSupNameValueEnd"},580:{n:"BrtSupNameNum"},581:{n:"BrtSupNameErr"},582:{n:"BrtSupNameSt"},583:{n:"BrtSupNameNil"},584:{n:"BrtSupNameBool"},585:{n:"BrtSupNameFmla"},586:{n:"BrtSupNameBits"},587:{n:"BrtSupNameEnd"},588:{n:"BrtEndSupBook"},589:{n:"BrtCellSmartTagProperty"},590:{n:"BrtBeginCellSmartTag"},591:{n:"BrtEndCellSmartTag"},592:{n:"BrtBeginCellSmartTags"},593:{n:"BrtEndCellSmartTags"},594:{n:"BrtBeginSmartTags"},595:{n:"BrtEndSmartTags"},596:{n:"BrtSmartTagType"},597:{n:"BrtBeginSmartTagTypes"},598:{n:"BrtEndSmartTagTypes"},599:{n:"BrtBeginSXFilters"},600:{n:"BrtEndSXFilters"},601:{n:"BrtBeginSXFILTER"},602:{n:"BrtEndSXFilter"},603:{n:"BrtBeginFills"},604:{n:"BrtEndFills"},605:{n:"BrtBeginCellWatches"},606:{n:"BrtEndCellWatches"},607:{n:"BrtCellWatch"},608:{n:"BrtBeginCRErrs"},609:{n:"BrtEndCRErrs"},610:{n:"BrtCrashRecErr"},611:{n:"BrtBeginFonts"},612:{n:"BrtEndFonts"},613:{n:"BrtBeginBorders"},614:{n:"BrtEndBorders"},615:{n:"BrtBeginFmts"},616:{n:"BrtEndFmts"},617:{n:"BrtBeginCellXFs"},618:{n:"BrtEndCellXFs"},619:{n:"BrtBeginStyles"},620:{n:"BrtEndStyles"},625:{n:"BrtBigName"},626:{n:"BrtBeginCellStyleXFs"},627:{n:"BrtEndCellStyleXFs"},628:{n:"BrtBeginComments"},629:{n:"BrtEndComments"},630:{n:"BrtBeginCommentAuthors"},631:{n:"BrtEndCommentAuthors"},632:{n:"BrtCommentAuthor",f:Ci},633:{n:"BrtBeginCommentList"},634:{n:"BrtEndCommentList"},635:{n:"BrtBeginComment",f:function(l){var n={};n.iauthor=l.read_shift(4);var e=Me(l,16);return n.rfx=e.s,n.ref=le(e.s),l.l+=16,n}},636:{n:"BrtEndComment"},637:{n:"BrtCommentText",f:me},638:{n:"BrtBeginOleObjects"},639:{n:"BrtOleObject"},640:{n:"BrtEndOleObjects"},641:{n:"BrtBeginSxrules"},642:{n:"BrtEndSxRules"},643:{n:"BrtBeginActiveXControls"},644:{n:"BrtActiveX"},645:{n:"BrtEndActiveXControls"},646:{n:"BrtBeginPCDSDTCEMembersSortBy"},648:{n:"BrtBeginCellIgnoreECs"},649:{n:"BrtCellIgnoreEC"},650:{n:"BrtEndCellIgnoreECs"},651:{n:"BrtCsProp",f:function(l,n){return l.l+=10,{name:de(l)}}},652:{n:"BrtCsPageSetup"},653:{n:"BrtBeginUserCsViews"},654:{n:"BrtEndUserCsViews"},655:{n:"BrtBeginUserCsView"},656:{n:"BrtEndUserCsView"},657:{n:"BrtBeginPcdSFCIEntries"},658:{n:"BrtEndPCDSFCIEntries"},659:{n:"BrtPCDSFCIEntry"},660:{n:"BrtBeginListParts"},661:{n:"BrtListPart"},662:{n:"BrtEndListParts"},663:{n:"BrtSheetCalcProp"},664:{n:"BrtBeginFnGroup"},665:{n:"BrtFnGroup"},666:{n:"BrtEndFnGroup"},667:{n:"BrtSupAddin"},668:{n:"BrtSXTDMPOrder"},669:{n:"BrtCsProtection"},671:{n:"BrtBeginWsSortMap"},672:{n:"BrtEndWsSortMap"},673:{n:"BrtBeginRRSort"},674:{n:"BrtEndRRSort"},675:{n:"BrtRRSortItem"},676:{n:"BrtFileSharingIso"},677:{n:"BrtBookProtectionIso"},678:{n:"BrtSheetProtectionIso"},679:{n:"BrtCsProtectionIso"},680:{n:"BrtRangeProtectionIso"},681:{n:"BrtDValList"},1024:{n:"BrtRwDescent"},1025:{n:"BrtKnownFonts"},1026:{n:"BrtBeginSXTupleSet"},1027:{n:"BrtEndSXTupleSet"},1028:{n:"BrtBeginSXTupleSetHeader"},1029:{n:"BrtEndSXTupleSetHeader"},1030:{n:"BrtSXTupleSetHeaderItem"},1031:{n:"BrtBeginSXTupleSetData"},1032:{n:"BrtEndSXTupleSetData"},1033:{n:"BrtBeginSXTupleSetRow"},1034:{n:"BrtEndSXTupleSetRow"},1035:{n:"BrtSXTupleSetRowItem"},1036:{n:"BrtNameExt"},1037:{n:"BrtPCDH14"},1038:{n:"BrtBeginPCDCalcMem14"},1039:{n:"BrtEndPCDCalcMem14"},1040:{n:"BrtSXTH14"},1041:{n:"BrtBeginSparklineGroup"},1042:{n:"BrtEndSparklineGroup"},1043:{n:"BrtSparkline"},1044:{n:"BrtSXDI14"},1045:{n:"BrtWsFmtInfoEx14"},1046:{n:"BrtBeginConditionalFormatting14"},1047:{n:"BrtEndConditionalFormatting14"},1048:{n:"BrtBeginCFRule14"},1049:{n:"BrtEndCFRule14"},1050:{n:"BrtCFVO14"},1051:{n:"BrtBeginDatabar14"},1052:{n:"BrtBeginIconSet14"},1053:{n:"BrtDVal14",f:function(){}},1054:{n:"BrtBeginDVals14"},1055:{n:"BrtColor14"},1056:{n:"BrtBeginSparklines"},1057:{n:"BrtEndSparklines"},1058:{n:"BrtBeginSparklineGroups"},1059:{n:"BrtEndSparklineGroups"},1061:{n:"BrtSXVD14"},1062:{n:"BrtBeginSXView14"},1063:{n:"BrtEndSXView14"},1064:{n:"BrtBeginSXView16"},1065:{n:"BrtEndSXView16"},1066:{n:"BrtBeginPCD14"},1067:{n:"BrtEndPCD14"},1068:{n:"BrtBeginExtConn14"},1069:{n:"BrtEndExtConn14"},1070:{n:"BrtBeginSlicerCacheIDs"},1071:{n:"BrtEndSlicerCacheIDs"},1072:{n:"BrtBeginSlicerCacheID"},1073:{n:"BrtEndSlicerCacheID"},1075:{n:"BrtBeginSlicerCache"},1076:{n:"BrtEndSlicerCache"},1077:{n:"BrtBeginSlicerCacheDef"},1078:{n:"BrtEndSlicerCacheDef"},1079:{n:"BrtBeginSlicersEx"},1080:{n:"BrtEndSlicersEx"},1081:{n:"BrtBeginSlicerEx"},1082:{n:"BrtEndSlicerEx"},1083:{n:"BrtBeginSlicer"},1084:{n:"BrtEndSlicer"},1085:{n:"BrtSlicerCachePivotTables"},1086:{n:"BrtBeginSlicerCacheOlapImpl"},1087:{n:"BrtEndSlicerCacheOlapImpl"},1088:{n:"BrtBeginSlicerCacheLevelsData"},1089:{n:"BrtEndSlicerCacheLevelsData"},1090:{n:"BrtBeginSlicerCacheLevelData"},1091:{n:"BrtEndSlicerCacheLevelData"},1092:{n:"BrtBeginSlicerCacheSiRanges"},1093:{n:"BrtEndSlicerCacheSiRanges"},1094:{n:"BrtBeginSlicerCacheSiRange"},1095:{n:"BrtEndSlicerCacheSiRange"},1096:{n:"BrtSlicerCacheOlapItem"},1097:{n:"BrtBeginSlicerCacheSelections"},1098:{n:"BrtSlicerCacheSelection"},1099:{n:"BrtEndSlicerCacheSelections"},1100:{n:"BrtBeginSlicerCacheNative"},1101:{n:"BrtEndSlicerCacheNative"},1102:{n:"BrtSlicerCacheNativeItem"},1103:{n:"BrtRangeProtection14"},1104:{n:"BrtRangeProtectionIso14"},1105:{n:"BrtCellIgnoreEC14"},1111:{n:"BrtList14"},1112:{n:"BrtCFIcon"},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs"},1114:{n:"BrtEndSlicerCachesPivotCacheIDs"},1115:{n:"BrtBeginSlicers"},1116:{n:"BrtEndSlicers"},1117:{n:"BrtWbProp14"},1118:{n:"BrtBeginSXEdit"},1119:{n:"BrtEndSXEdit"},1120:{n:"BrtBeginSXEdits"},1121:{n:"BrtEndSXEdits"},1122:{n:"BrtBeginSXChange"},1123:{n:"BrtEndSXChange"},1124:{n:"BrtBeginSXChanges"},1125:{n:"BrtEndSXChanges"},1126:{n:"BrtSXTupleItems"},1128:{n:"BrtBeginSlicerStyle"},1129:{n:"BrtEndSlicerStyle"},1130:{n:"BrtSlicerStyleElement"},1131:{n:"BrtBeginStyleSheetExt14"},1132:{n:"BrtEndStyleSheetExt14"},1133:{n:"BrtBeginSlicerCachesPivotCacheID"},1134:{n:"BrtEndSlicerCachesPivotCacheID"},1135:{n:"BrtBeginConditionalFormattings"},1136:{n:"BrtEndConditionalFormattings"},1137:{n:"BrtBeginPCDCalcMemExt"},1138:{n:"BrtEndPCDCalcMemExt"},1139:{n:"BrtBeginPCDCalcMemsExt"},1140:{n:"BrtEndPCDCalcMemsExt"},1141:{n:"BrtPCDField14"},1142:{n:"BrtBeginSlicerStyles"},1143:{n:"BrtEndSlicerStyles"},1144:{n:"BrtBeginSlicerStyleElements"},1145:{n:"BrtEndSlicerStyleElements"},1146:{n:"BrtCFRuleExt"},1147:{n:"BrtBeginSXCondFmt14"},1148:{n:"BrtEndSXCondFmt14"},1149:{n:"BrtBeginSXCondFmts14"},1150:{n:"BrtEndSXCondFmts14"},1152:{n:"BrtBeginSortCond14"},1153:{n:"BrtEndSortCond14"},1154:{n:"BrtEndDVals14"},1155:{n:"BrtEndIconSet14"},1156:{n:"BrtEndDatabar14"},1157:{n:"BrtBeginColorScale14"},1158:{n:"BrtEndColorScale14"},1159:{n:"BrtBeginSxrules14"},1160:{n:"BrtEndSxrules14"},1161:{n:"BrtBeginPRule14"},1162:{n:"BrtEndPRule14"},1163:{n:"BrtBeginPRFilters14"},1164:{n:"BrtEndPRFilters14"},1165:{n:"BrtBeginPRFilter14"},1166:{n:"BrtEndPRFilter14"},1167:{n:"BrtBeginPRFItem14"},1168:{n:"BrtEndPRFItem14"},1169:{n:"BrtBeginCellIgnoreECs14"},1170:{n:"BrtEndCellIgnoreECs14"},1171:{n:"BrtDxf14"},1172:{n:"BrtBeginDxF14s"},1173:{n:"BrtEndDxf14s"},1177:{n:"BrtFilter14"},1178:{n:"BrtBeginCustomFilters14"},1180:{n:"BrtCustomFilter14"},1181:{n:"BrtIconFilter14"},1182:{n:"BrtPivotCacheConnectionName"},2048:{n:"BrtBeginDecoupledPivotCacheIDs"},2049:{n:"BrtEndDecoupledPivotCacheIDs"},2050:{n:"BrtDecoupledPivotCacheID"},2051:{n:"BrtBeginPivotTableRefs"},2052:{n:"BrtEndPivotTableRefs"},2053:{n:"BrtPivotTableRef"},2054:{n:"BrtSlicerCacheBookPivotTables"},2055:{n:"BrtBeginSxvcells"},2056:{n:"BrtEndSxvcells"},2057:{n:"BrtBeginSxRow"},2058:{n:"BrtEndSxRow"},2060:{n:"BrtPcdCalcMem15"},2067:{n:"BrtQsi15"},2068:{n:"BrtBeginWebExtensions"},2069:{n:"BrtEndWebExtensions"},2070:{n:"BrtWebExtension"},2071:{n:"BrtAbsPath15"},2072:{n:"BrtBeginPivotTableUISettings"},2073:{n:"BrtEndPivotTableUISettings"},2075:{n:"BrtTableSlicerCacheIDs"},2076:{n:"BrtTableSlicerCacheID"},2077:{n:"BrtBeginTableSlicerCache"},2078:{n:"BrtEndTableSlicerCache"},2079:{n:"BrtSxFilter15"},2080:{n:"BrtBeginTimelineCachePivotCacheIDs"},2081:{n:"BrtEndTimelineCachePivotCacheIDs"},2082:{n:"BrtTimelineCachePivotCacheID"},2083:{n:"BrtBeginTimelineCacheIDs"},2084:{n:"BrtEndTimelineCacheIDs"},2085:{n:"BrtBeginTimelineCacheID"},2086:{n:"BrtEndTimelineCacheID"},2087:{n:"BrtBeginTimelinesEx"},2088:{n:"BrtEndTimelinesEx"},2089:{n:"BrtBeginTimelineEx"},2090:{n:"BrtEndTimelineEx"},2091:{n:"BrtWorkBookPr15"},2092:{n:"BrtPCDH15"},2093:{n:"BrtBeginTimelineStyle"},2094:{n:"BrtEndTimelineStyle"},2095:{n:"BrtTimelineStyleElement"},2096:{n:"BrtBeginTimelineStylesheetExt15"},2097:{n:"BrtEndTimelineStylesheetExt15"},2098:{n:"BrtBeginTimelineStyles"},2099:{n:"BrtEndTimelineStyles"},2100:{n:"BrtBeginTimelineStyleElements"},2101:{n:"BrtEndTimelineStyleElements"},2102:{n:"BrtDxf15"},2103:{n:"BrtBeginDxfs15"},2104:{n:"brtEndDxfs15"},2105:{n:"BrtSlicerCacheHideItemsWithNoData"},2106:{n:"BrtBeginItemUniqueNames"},2107:{n:"BrtEndItemUniqueNames"},2108:{n:"BrtItemUniqueName"},2109:{n:"BrtBeginExtConn15"},2110:{n:"BrtEndExtConn15"},2111:{n:"BrtBeginOledbPr15"},2112:{n:"BrtEndOledbPr15"},2113:{n:"BrtBeginDataFeedPr15"},2114:{n:"BrtEndDataFeedPr15"},2115:{n:"BrtTextPr15"},2116:{n:"BrtRangePr15"},2117:{n:"BrtDbCommand15"},2118:{n:"BrtBeginDbTables15"},2119:{n:"BrtEndDbTables15"},2120:{n:"BrtDbTable15"},2121:{n:"BrtBeginDataModel"},2122:{n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},2137:{n:"BrtBeginModelTimeGroupings"},2138:{n:"BrtEndModelTimeGroupings"},2139:{n:"BrtBeginModelTimeGrouping"},2140:{n:"BrtEndModelTimeGrouping"},2141:{n:"BrtModelTimeGroupingCalcCol"},3072:{n:"BrtUid"},3073:{n:"BrtRevisionPtr"},5095:{n:"BrtBeginCalcFeatures"},5096:{n:"BrtEndCalcFeatures"},5097:{n:"BrtCalcFeature"},65535:{n:""}},ws=V(Cs,"n"),Rs={3:{n:"BIFF2NUM",f:function(l){var n=ao(l);++l.l;var e=Oe(l);return n.t="n",n.val=e,n}},4:{n:"BIFF2STR",f:function(l,n,e){var t=ao(l);++l.l;var o=lo(l,0,e);return t.t="str",t.val=o,t}},6:{n:"Formula",f:ha},9:{n:"BOF",f:yo},10:{n:"EOF",f:Wt},12:{n:"CalcCount",f:Ht},13:{n:"CalcMode",f:Ht},14:{n:"CalcPrecision",f:Gt},15:{n:"CalcRefMode",f:Gt},16:{n:"CalcDelta",f:Oe},17:{n:"CalcIter",f:Gt},18:{n:"Protect",f:Gt},19:{n:"Password",f:Ht},20:{n:"Header",f:Oo},21:{n:"Footer",f:Oo},23:{n:"ExternSheet",f:Fo},24:{n:"Lbl",f:Io},25:{n:"WinProtect",f:Gt},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:function(l,n,e){return function(l,n,e){if(!(e.biff<8)){var t=l.read_shift(2),o=l.read_shift(2),u=l.read_shift(2),i=l.read_shift(2),a=lo(l,0,e);return e.biff<8&&l.read_shift(1),[{r:t,c:o},a,i,u]}}(l,0,e)}},29:{n:"Selection"},34:{n:"Date1904",f:Gt},35:{n:"ExternName",f:So},36:{n:"COLWIDTH"},38:{n:"LeftMargin",f:Oe},39:{n:"RightMargin",f:Oe},40:{n:"TopMargin",f:Oe},41:{n:"BottomMargin",f:Oe},42:{n:"PrintRowCol",f:Gt},43:{n:"PrintGrid",f:Gt},47:{n:"FilePass",f:function(l,n,e){var t={Type:e.biff>=8?l.read_shift(2):0};return t.Type?_u(l,n-2,t):function(l,n,e,t){var o={key:Ht(l),verificationBytes:Ht(l)};e.password&&(o.verifier=hu(e.password)),t.valid=o.verificationBytes===o.verifier,t.valid&&(t.insitu=Au(e.password))}(l,e.biff,e,t),t}},49:{n:"Font",f:function(l,n,e){var t={dyHeight:l.read_shift(2),fl:l.read_shift(2)};switch(e&&e.biff||8){case 2:break;case 3:case 4:l.l+=2;break;default:l.l+=10}return t.name=Xt(l,0,e),t}},51:{n:"PrintSize",f:Ht},60:{n:"Continue"},61:{n:"Window1",f:function(l){return{Pos:[l.read_shift(2),l.read_shift(2)],Dim:[l.read_shift(2),l.read_shift(2)],Flags:l.read_shift(2),CurTab:l.read_shift(2),FirstTab:l.read_shift(2),Selected:l.read_shift(2),TabRatio:l.read_shift(2)}}},64:{n:"Backup",f:Gt},65:{n:"Pane",f:function(){}},66:{n:"CodePage",f:Ht},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:Ht},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:function(l,n,e){if(e.enc)return l.l+=n,"";var t=l.l,o=lo(l,0,e);return l.read_shift(n+t-l.l),o}},93:{n:"Obj",f:function(l,n,e){if(e&&e.biff<8)return function(l,n,e){l.l+=4;var t=l.read_shift(2),o=l.read_shift(2),u=l.read_shift(2);l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=2,l.l+=6,n-=36;var i=[];return i.push((Do[t]||Bn)(l,n,e)),{cmo:[o,t,u],ft:i}}(l,n,e);var t=go(l);return{cmo:t,ft:function(l,n){for(var e=l.l+n,t=[];l.l7||n[1]>7)throw new Error("Bad Gutters: "+n.join("|"));return n}},129:{n:"WsBool",f:function(l,n,e){return{fDialog:16&(e&&8==e.biff||2==n?l.read_shift(2):(l.l+=n,0))}}},130:{n:"GridSet",f:Ht},131:{n:"HCenter",f:Gt},132:{n:"VCenter",f:Gt},133:{n:"BoundSheet8",f:function(l,n,e){var t=l.read_shift(4),o=3&l.read_shift(1),u=l.read_shift(1);switch(u){case 0:u="Worksheet";break;case 1:u="Macrosheet";break;case 2:u="Chartsheet";break;case 6:u="VBAModule"}var i=Xt(l,0,e);return 0===i.length&&(i="Sheet1"),{pos:t,hs:o,dt:u,name:i}}},134:{n:"WriteProtect"},140:{n:"Country",f:function(l){var n,e=[0,0];return n=l.read_shift(2),e[0]=Ge[n]||n,n=l.read_shift(2),e[1]=Ge[n]||n,e}},141:{n:"HideObj",f:Ht},144:{n:"Sort"},146:{n:"Palette",f:function(l){for(var n=l.read_shift(2),e=[];n-- >0;)e.push(io(l));return e}},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:Ht},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:Bo},161:{n:"Setup",f:function(l,n){var e={};return n<32?e:(l.l+=16,e.header=Oe(l),e.footer=Oe(l),l.l+=2,e)}},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:function(l,n){for(var e=l.l+n-2,t=l.read_shift(2),o=l.read_shift(2),u=[];l.l>2&1,t.data=function(l,n,e,t){var o={},u=l.read_shift(4),i=l.read_shift(4),a=l.read_shift(4),r=l.read_shift(2);return o.patternType=je[a>>26],t.cellStyles?(o.alc=7&u,o.fWrap=u>>3&1,o.alcV=u>>4&7,o.fJustLast=u>>7&1,o.trot=u>>8&255,o.cIndent=u>>16&15,o.fShrinkToFit=u>>20&1,o.iReadOrder=u>>22&2,o.fAtrNum=u>>26&1,o.fAtrFnt=u>>27&1,o.fAtrAlc=u>>28&1,o.fAtrBdr=u>>29&1,o.fAtrPat=u>>30&1,o.fAtrProt=u>>31&1,o.dgLeft=15&i,o.dgRight=i>>4&15,o.dgTop=i>>8&15,o.dgBottom=i>>12&15,o.icvLeft=i>>16&127,o.icvRight=i>>23&127,o.grbitDiag=i>>30&3,o.icvTop=127&a,o.icvBottom=a>>7&127,o.icvDiag=a>>14&127,o.dgDiag=a>>21&15,o.icvFore=127&r,o.icvBack=r>>7&127,o.fsxButton=r>>14&1,o):o}(l,0,t.fStyle,e),t}},225:{n:"InterfaceHdr",f:function(l,n){return 0===n?1200:(l.read_shift(2),1200)}},226:{n:"InterfaceEnd",f:Wt},227:{n:"SXVS"},229:{n:"MergeCells",f:function(l,n){for(var e=[],t=l.read_shift(2);t--;)e.push(po(l));return e}},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:function(l,n){for(var e=l.l+n,t=l.read_shift(4),o=l.read_shift(4),u=[],i=0;i!=o&&l.l255)throw new Error("Unexpected SupBook type: "+u);for(var i=Qt(l,u),a=[];t>l.l;)a.push(Jt(l));return[u,o,i,a]}},431:{n:"Prot4Rev",f:Gt},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:function(l,n,e){var t=l.l,o="";try{l.l+=4;var u=(e.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(u)?l.l+=6:function(l){l.read_shift(1);l.l++;l.read_shift(2);l.l+=2}(l);var i=l.read_shift(2);l.read_shift(2),Ht(l);var a=l.read_shift(2);l.l+=a;for(var r=1;r=(s?i:2*i))break}if(o.length!==i&&o.length!==2*i)throw new Error("cchText: "+i+" != "+o.length);return l.l=t+n,{t:o}}catch(Fd){return l.l=t+n,{t:o}}}},439:{n:"RefreshAll",f:Gt},440:{n:"HLink",f:function(l,n){var e=po(l);return l.l+=16,[e,function(l,n){var e=l.l+n,t=l.read_shift(4);if(2!==t)throw new Error("Unrecognized streamVersion: "+t);var o=l.read_shift(2);l.l+=2;var u,i,a,r,s,d,c="";16&o&&(u=to(l,l.l)),128&o&&(i=to(l,l.l)),257==(257&o)&&(a=to(l,l.l)),1==(257&o)&&(r=eo(l,l.l)),8&o&&(c=to(l,l.l)),32&o&&(s=l.read_shift(16)),64&o&&(d=Rt(l)),l.l=e;var p=i||a||r||"";p&&c&&(p+="#"+c),p||(p="#"+c);var f={Target:p};return s&&(f.guid=s),d&&(f.time=d),u&&(f.Tooltip=u),f}(l,n-24)]}},441:{n:"Lel"},442:{n:"CodeName",f:Jt},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:Ht},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:Wt},449:{n:"RecalcId",f:function(l){return l.read_shift(2),l.read_shift(4)},r:2},450:{n:"EntExU2",f:Wt},512:{n:"Dimensions",f:Ro},513:{n:"Blank",f:Po},515:{n:"Number",f:function(l){var n=ao(l),e=Oe(l);return n.val=e,n}},516:{n:"Label",f:function(l,n,e){l.l;var t=ao(l);2==e.biff&&l.l++;var o=Jt(l,l.l,e);return t.val=o,t}},517:{n:"BoolErr",f:Mo},518:{n:"Formula",f:ha},519:{n:"String",f:Vo},520:{n:"Row",f:function(l){var n={};n.r=l.read_shift(2),n.c=l.read_shift(2),n.cnt=l.read_shift(2)-n.c;var e=l.read_shift(2);l.l+=4;var t=l.read_shift(1);return l.l+=3,7&t&&(n.level=7&t),32&t&&(n.hidden=!0),64&t&&(n.hpt=e/20),n}},523:{n:"Index"},545:{n:"Array",f:No},549:{n:"DefaultRowHeight",f:_o},566:{n:"Table"},574:{n:"Window2",f:function(l,n,e){return e&&e.biff>=2&&e.biff<5?{}:{RTL:64&l.read_shift(2)}}},638:{n:"RK",f:function(l){var n=l.read_shift(2),e=l.read_shift(2),t=co(l);return{r:n,c:e,ixfe:t[0],rknum:t[1]}}},659:{n:"Style"},1030:{n:"Formula",f:ha},1048:{n:"BigName"},1054:{n:"Format",f:function(l,n,e){return[l.read_shift(2),lo(l,0,e)]}},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:function(l,n,e){var t=mo(l);l.l++;var o=l.read_shift(1);return[ma(l,n-=8,e),o,t]}},2048:{n:"HLinkTooltip",f:function(l,n){l.read_shift(2);var e=po(l),t=l.read_shift((n-10)/2,"dbcs-cont");return[e,t=t.replace(E,"")]}},2049:{n:"WebPub"},2050:{n:"QsiSXTag"},2051:{n:"DBQueryExt"},2052:{n:"ExtString"},2053:{n:"TxtQry"},2054:{n:"Qsir"},2055:{n:"Qsif"},2056:{n:"RRDTQSIF"},2057:{n:"BOF",f:yo},2058:{n:"OleDbConn"},2059:{n:"WOpt"},2060:{n:"SXViewEx"},2061:{n:"SXTH"},2062:{n:"SXPIEx"},2063:{n:"SXVDTEx"},2064:{n:"SXViewEx9"},2066:{n:"ContinueFrt"},2067:{n:"RealTimeData"},2128:{n:"ChartFrtInfo"},2129:{n:"FrtWrapper"},2130:{n:"StartBlock"},2131:{n:"EndBlock"},2132:{n:"StartObject"},2133:{n:"EndObject"},2134:{n:"CatLab"},2135:{n:"YMult"},2136:{n:"SXViewLink"},2137:{n:"PivotChartBits"},2138:{n:"FrtFontList"},2146:{n:"SheetExt"},2147:{n:"BookExt",r:12},2148:{n:"SXAddl"},2149:{n:"CrErr"},2150:{n:"HFPicture"},2151:{n:"FeatHdr",f:Wt},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:function(l){l.l+=2;var n={cxfs:0,crc:0};return n.cxfs=l.read_shift(2),n.crc=l.read_shift(4),n},r:12},2173:{n:"XFExt",f:function(l,n){l.l,l.l+=2;var e=l.read_shift(2);l.l+=2;for(var t=l.read_shift(2),o=[];t-- >0;)o.push(yi(l,l.l));return{ixfe:e,ext:o}},r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:Gt,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:function(l,n,e){if(!(e.biff<8)){var t=l.read_shift(2),o=l.read_shift(2);return[Qt(l,t,e),Qt(l,o,e)]}l.l+=n},r:12},2197:{n:"SortData"},2198:{n:"Theme",f:function(l,n,e){var t=l.l+n;if(124226!==l.read_shift(4))if(e.cellStyles&&il){var o,u=l.slice(l.l);l.l=t;try{o=new il(u)}catch(Fd){return}var i=fl(o,"theme/theme/theme1.xml",!0);if(i)return gi(i,e)}else l.l=t},r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:function(l){return[0!==l.read_shift(4),0!==l.read_shift(4),l.read_shift(4)]},r:12},2203:{n:"CompressPictures",f:Wt},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:function(l){var n=function(l){var n=l.read_shift(2),e=l.read_shift(2);return l.l+=8,{type:n,flags:e}}(l);if(2211!=n.type)throw new Error("Invalid Future Record "+n.type);return 0!==l.read_shift(4)}},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:Ht},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:function(l,n,e){var t={area:!1};if(5!=e.biff)return l.l+=n,t;var o=l.read_shift(1);return l.l+=3,16&o&&(t.area=!0),t}},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:function(l){for(var n=l.read_shift(2),e=[];n-- >0;)e.push(io(l));return e}},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:Ro},2:{n:"BIFF2INT",f:function(l){var n=ao(l);++l.l;var e=l.read_shift(2);return n.t="n",n.val=e,n}},5:{n:"BoolErr",f:Mo},7:{n:"String",f:function(l){var n=l.read_shift(1);return 0===n?(l.l++,""):l.read_shift(n,"sbcs-cont")}},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:Ht},30:{n:"BIFF2FORMAT",f:wo},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:No},37:{n:"DefaultRowHeight",f:_o},50:{n:"BIFF2FONTXTRA",f:function(l,n){l.l+=6,l.l+=2,l.l+=1,l.l+=3,l.l+=1,l.l+=n-13}},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:function(l){var n=l.read_shift(2),e=l.read_shift(2),t=l.read_shift(4),o={fmt:n,env:e,len:t,data:l.slice(l.l,l.l+t)};return l.l+=t,o}},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:function(l,n,e){var t=l.l+n,o=ao(l),u=l.read_shift(2),i=Qt(l,u,e);return l.l=t,o.t="str",o.val=i,o}},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:yo},536:{n:"Lbl",f:Io},547:{n:"ExternName",f:So},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:yo},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}},Ls=V(Rs,"n");function Ms(l,n,e,t){var o=+n||+Ls[n];if(!isNaN(o)){var u=t||(e||[]).length||0,i=l.next(4);i.write_shift(2,o),i.write_shift(2,u),u>0&&Ln(e)&&l.push(e)}}function Es(l,n,e){return l||(l=Vn(7)),l.write_shift(2,n),l.write_shift(2,e),l.write_shift(2,0),l.write_shift(1,0),l}function Os(l,n,e,t){if(null!=n.v)switch(n.t){case"d":case"n":var o="d"==n.t?j(ll(n.v)):n.v;return void(o==(0|o)&&o>=0&&o<65536?Ms(l,2,(u=e,i=t,a=o,r=Vn(9),Es(r,u,i),r.write_shift(2,a),r)):Ms(l,3,function(l,n,e){var t=Vn(15);return Es(t,l,n),t.write_shift(8,e,"f"),t}(e,t,o)));case"b":case"e":return void Ms(l,5,function(l,n,e,t){var o=Vn(9);return Es(o,l,n),"e"==t?(o.write_shift(1,e),o.write_shift(1,1)):(o.write_shift(1,e?1:0),o.write_shift(1,0)),o}(e,t,n.v,n.t));case"s":case"str":return void Ms(l,4,function(l,n,e){var t=Vn(8+2*e.length);return Es(t,l,n),t.write_shift(1,e.length),t.write_shift(e.length,e,"sbcs"),t.l255||i.e.r>16383){if(t.WTF)throw new Error("Range "+(n["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=ee(i)}for(var s=i.s.r;s<=i.e.r;++s){a=$n(s);for(var d=i.s.c;d<=i.e.c;++d){s===i.s.r&&(r[d]=Qn(d)),o=r[d]+a;var c=u?(n[s]||[])[d]:n[o];c&&Os(l,c,s,d)}}}(t,l.Sheets[l.SheetNames[o]],0,e),Ms(t,10),t.end()}function ks(l,n,e){Ms(l,"Font",function(l,n){var e=l.name||"Arial",t=n&&5==n.biff,o=Vn(t?15+e.length:16+2*e.length);return o.write_shift(2,20*(l.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,e.length),t||o.write_shift(1,1),o.write_shift((t?1:2)*e.length,e,t?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function Is(l,n,e,t,o){var u=16+Na(o.cellXfs,n,o);if(null!=n.v||n.bf)if(n.bf)Ms(l,"Formula",ga(n,e,t,0,u));else switch(n.t){case"d":case"n":Ms(l,"Number",function(l,n,e,t){var o=Vn(14);return ro(l,n,t,o),Se(e,o),o}(e,t,"d"==n.t?j(ll(n.v)):n.v,u));break;case"b":case"e":Ms(l,517,Eo(e,t,n.v,u,0,n.t));break;case"s":case"str":o.bookSST?Ms(l,"LabelSst",function(l,n,e,t){var o=Vn(10);return ro(l,n,t,o),o.write_shift(4,e),o}(e,t,ka(o.Strings,n.v,o.revStrings),u)):Ms(l,"Label",function(l,n,e,t,o){var u=!o||8==o.biff,i=Vn(+u+8+(1+u)*e.length);return ro(l,n,t,i),i.write_shift(2,e.length),u&&i.write_shift(1,1),i.write_shift((1+u)*e.length,e,u?"utf16le":"sbcs"),i}(e,t,n.v,u,o));break;default:Ms(l,"Blank",ro(e,t,u))}else Ms(l,"Blank",ro(e,t,u))}function Fs(l,n,e){var t,o,u,i=Wn(),a=e.SheetNames[l],r=e.Sheets[a]||{},s=(e||{}).Workbook||{},d=(s.Sheets||[])[l]||{},c=Array.isArray(r),p=8==n.biff,f="",m=[],h=te(r["!ref"]||"A1"),g=p?65536:16384;if(h.e.c>255||h.e.r>=g){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,g-1)}Ms(i,2057,xo(0,16,n)),Ms(i,"CalcMode",Yt(1)),Ms(i,"CalcCount",Yt(100)),Ms(i,"CalcRefMode",jt(!0)),Ms(i,"CalcIter",jt(!1)),Ms(i,"CalcDelta",Se(.001)),Ms(i,"CalcSaveRecalc",jt(!0)),Ms(i,"PrintRowCol",jt(!1)),Ms(i,"PrintGrid",jt(!1)),Ms(i,"GridSet",Yt(1)),Ms(i,"Guts",(o=[0,0],(u=Vn(8)).write_shift(4,0),u.write_shift(2,o[0]?o[0]+1:0),u.write_shift(2,o[1]?o[1]+1:0),u)),Ms(i,"HCenter",jt(!1)),Ms(i,"VCenter",jt(!1)),Ms(i,512,function(l,n){var e=8!=n.biff&&n.biff?2:4,t=Vn(2*e+6);return t.write_shift(e,l.s.r),t.write_shift(e,l.e.r+1),t.write_shift(2,l.s.c),t.write_shift(2,l.e.c+1),t.write_shift(2,0),t}(h,n)),p&&(r["!links"]=[]);for(var v=h.s.r;v<=h.e.r;++v){f=$n(v);for(var b=h.s.c;b<=h.e.c;++b){v===h.s.r&&(m[b]=Qn(b)),t=m[b]+f;var y=c?(r[v]||[])[b]:r[t];y&&(Is(i,y,v,b,n),p&&y.l&&r["!links"].push([t,y.l]))}}var x=d.CodeName||d.name||a;return p&&Ms(i,"Window2",function(l){var n=Vn(18),e=1718;return l&&l.RTL&&(e|=64),n.write_shift(2,e),n.write_shift(4,0),n.write_shift(4,64),n.write_shift(4,0),n.write_shift(4,0),n}((s.Views||[])[0])),p&&(r["!merges"]||[]).length&&Ms(i,"MergeCells",function(l){var n=Vn(2+8*l.length);n.write_shift(2,l.length);for(var e=0;e/g,"")).match(/");var u=l.match(/<\/table/i),i=o.index,a=u&&u.index||l.length,r=function(l,n,e){if(al||"string"==typeof n)return l.split(n);for(var t=l.split(n),o=[t[0]],u=1;u]*>)/i,""),s=-1,d=0,c=0,p=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},m=[];for(i=0;i/i);for(a=0;a"))>-1;)x=x.slice(A+1);for(var _=0;_")));p=w.colspan?+w.colspan:1,((c=+w.rowspan)>1||p>1)&&m.push({s:{r:s,c:d},e:{r:s+(c||1)-1,c:d+p-1}});var R=w.t||"";if(x.length){if(x=Yl(x),f.s.r>s&&(f.s.r=s),f.e.rd&&(f.s.c=d),f.e.ce||o[s].s.c>i||o[s].e.r1&&(f.rowspan=a),r>1&&(f.colspan=r),f.t=c&&c.t||"z",t.editable&&(p=''+p+""),f.id=(t.id||"sjs")+"-"+d,"z"!=f.t&&(f.v=c.v,null!=c.z&&(f.z=c.z)),u.push(nn("td",p,f))}}return""+u.join("")+""}function e(l,n,e){return[].join("")+""}var t='SheetJS Table Export',o="";return{to_workbook:function(n,e){return ie(l(n,e),e)},to_sheet:l,_row:n,BEGIN:t,END:o,_preamble:e,from_sheet:function(l,u){var i=u||{},a=null!=i.header?i.header:t,r=null!=i.footer?i.footer:o,s=[a],d=ne(l["!ref"]);i.dense=Array.isArray(l),s.push(e(0,0,i));for(var c=d.s.r;c<=d.e.r;++c)s.push(n(l,d,c,i));return s.push("
"+r),s.join("")}}}();function qs(l,n,e){var t=e||{};null!=g&&(t.dense=g);var o=0,u=0;if(null!=t.origin)if("number"==typeof t.origin)o=t.origin;else{var i="string"==typeof t.origin?Jn(t.origin):t.origin;o=i.r,u=i.c}var a=n.getElementsByTagName("tr"),r=Math.min(t.sheetRows||1e7,a.length),s={s:{r:0,c:0},e:{r:o,c:u}};if(l["!ref"]){var d=ne(l["!ref"]);s.s.r=Math.min(s.s.r,d.s.r),s.s.c=Math.min(s.s.c,d.s.c),s.e.r=Math.max(s.e.r,d.e.r),s.e.c=Math.max(s.e.c,d.e.c),-1==o&&(s.e.r=o=d.e.r+1)}var c=[],p=0,f=l["!rows"]||(l["!rows"]=[]),m=0,h=0,v=0,b=0,y=0,x=0;for(l["!cols"]||(l["!cols"]=[]);m1||x>1)&&c.push({s:{r:h+o,c:b+u},e:{r:h+o+(y||1)-1,c:b+u+(x||1)-1}});var M={t:"s",v:w},E=C.getAttribute("t")||"";null!=w&&(0==w.length?M.t=E||"z":t.raw||0==w.trim().length||"s"==E||("TRUE"===w?M={t:"b",v:!0}:"FALSE"===w?M={t:"b",v:!1}:isNaN(ol(w))?isNaN(ul(w).getDate())||(M={t:"d",v:ll(w)},t.cellDates||(M={t:"n",v:j(M.v)}),M.z=t.dateNF||S._table[14]):M={t:"n",v:ol(w)})),void 0===M.z&&null!=R&&(M.z=R),t.dense?(l[h+o]||(l[h+o]=[]),l[h+o][b+u]=M):l[le({c:b+u,r:h+o})]=M,s.e.c=r&&(l["!fullref"]=ee((s.e.r=a.length-m+h-1+o,s))),l}function Ts(l,n){return qs((n||{}).dense?[]:{},l,n)}function Ps(l){var n="",e=function(l){return l.ownerDocument.defaultView&&"function"==typeof l.ownerDocument.defaultView.getComputedStyle?l.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(l);return e&&(n=e(l).getPropertyValue("display")),n||(n=l.style.display),"none"===n}var Bs,Vs=(Bs={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']},function(l,n){var e=n||{};null!=g&&null==e.dense&&(e.dense=g);var t,o,u,i,a,r,s,d,c=us(l),p=[],f={name:""},m="",h=0,v={},b=[],y=e.dense?[]:{},x={value:""},A="",_=0,C=[],w=-1,R=-1,L={s:{r:1e6,c:1e7},e:{r:0,c:0}},M=0,E={},O=[],S={},k=[],I=1,F=1,N=[],D={Names:[]},z={},q=["",""],T=[],P={},B="",V=0,U=!1,W=!1,G=0;for(is.lastIndex=0,c=c.replace(//gm,"").replace(//gm,"");a=is.exec(c);)switch(a[3]=a[3].replace(/_.*$/,"")){case"table":case"\u5de5\u4f5c\u8868":"/"===a[1]?(L.e.c>=L.s.c&&L.e.r>=L.s.r?y["!ref"]=ee(L):y["!ref"]="A1:A1",e.sheetRows>0&&e.sheetRows<=L.e.r&&(y["!fullref"]=y["!ref"],L.e.r=e.sheetRows-1,y["!ref"]=ee(L)),O.length&&(y["!merges"]=O),k.length&&(y["!rows"]=k),u.name=u["\u540d\u79f0"]||u.name,"undefined"!=typeof JSON&&JSON.stringify(u),b.push(u.name),v[u.name]=y,W=!1):"/"!==a[0].charAt(a[0].length-2)&&(u=_l(a[0],!1),w=R=-1,L.s.r=L.s.c=1e7,L.e.r=L.e.c=0,y=e.dense?[]:{},O=[],k=[],W=!0);break;case"table-row-group":"/"===a[1]?--M:++M;break;case"table-row":case"\u884c":if("/"===a[1]){w+=I,I=1;break}if((i=_l(a[0],!1))["\u884c\u53f7"]?w=i["\u884c\u53f7"]-1:-1==w&&(w=0),(I=+i["number-rows-repeated"]||1)<10)for(G=0;G0&&(k[w+G]={level:M});R=-1;break;case"covered-table-cell":"/"!==a[1]&&++R,e.sheetStubs&&(e.dense?(y[w]||(y[w]=[]),y[w][R]={t:"z"}):y[le({r:w,c:R})]={t:"z"}),A="",C=[];break;case"table-cell":case"\u6570\u636e":if("/"===a[0].charAt(a[0].length-2))++R,x=_l(a[0],!1),F=parseInt(x["number-columns-repeated"]||"1",10),r={t:"z",v:null},x.formula&&0!=e.cellFormula&&(r.f=La(El(x.formula))),"string"==(x["\u6570\u636e\u7c7b\u578b"]||x["value-type"])&&(r.t="s",r.v=El(x["string-value"]||""),e.dense?(y[w]||(y[w]=[]),y[w][R]=r):y[le({r:w,c:R})]=r),R+=F-1;else if("/"!==a[1]){F=1;var H=I?w+I-1:w;if(++R>L.e.c&&(L.e.c=R),RL.e.r&&(L.e.r=H),T=[],P={},r={t:(x=_l(a[0],!1))["\u6570\u636e\u7c7b\u578b"]||x["value-type"],v:null},e.cellFormula)if(x.formula&&(x.formula=El(x.formula)),x["number-matrix-columns-spanned"]&&x["number-matrix-rows-spanned"]&&(S={s:{r:w,c:R},e:{r:w+(parseInt(x["number-matrix-rows-spanned"],10)||0)-1,c:R+(parseInt(x["number-matrix-columns-spanned"],10)||0)-1}},r.F=ee(S),N.push([S,r.F])),x.formula)r.f=La(x.formula);else for(G=0;G=N[G][0].s.r&&w<=N[G][0].e.r&&R>=N[G][0].s.c&&R<=N[G][0].e.c&&(r.F=N[G][1]);switch((x["number-columns-spanned"]||x["number-rows-spanned"])&&(S={s:{r:w,c:R},e:{r:w+(parseInt(x["number-rows-spanned"],10)||0)-1,c:R+(parseInt(x["number-columns-spanned"],10)||0)-1}},O.push(S)),x["number-columns-repeated"]&&(F=parseInt(x["number-columns-repeated"],10)),r.t){case"boolean":r.t="b",r.v=ql(x["boolean-value"]);break;case"float":case"percentage":case"currency":r.t="n",r.v=parseFloat(x.value);break;case"date":r.t="d",r.v=ll(x["date-value"]),e.cellDates||(r.t="n",r.v=j(r.v)),r.z="m/d/yy";break;case"time":r.t="n",r.v=K(x["time-value"])/86400;break;case"number":r.t="n",r.v=parseFloat(x["\u6570\u636e\u6570\u503c"]);break;default:if("string"!==r.t&&"text"!==r.t&&r.t)throw new Error("Unsupported value type "+r.t);r.t="s",null!=x["string-value"]&&(A=El(x["string-value"]),C=[])}}else{if(U=!1,"s"===r.t&&(r.v=A||"",C.length&&(r.R=C),U=0==_),z.Target&&(r.l=z),T.length>0&&(r.c=T,T=[]),A&&!1!==e.cellText&&(r.w=A),U&&(r.t="z",delete r.v),(!U||e.sheetStubs)&&!(e.sheetRows&&e.sheetRows<=w))for(var Y=0;Y0;)y[w+Y][R+F]=el(r);else for(y[le({r:w+Y,c:R})]=r;--F>0;)y[le({r:w+Y,c:R+F})]=el(r);L.e.c<=R&&(L.e.c=R)}R+=(F=parseInt(x["number-columns-repeated"]||"1",10))-1,F=0,r={},A="",C=[]}z={};break;case"document":case"document-content":case"\u7535\u5b50\u8868\u683c\u6587\u6863":case"spreadsheet":case"\u4e3b\u4f53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===a[1]){if((t=p.pop())[0]!==a[3])throw"Bad state: "+t}else"/"!==a[0].charAt(a[0].length-2)&&p.push([a[3],!0]);break;case"annotation":if("/"===a[1]){if((t=p.pop())[0]!==a[3])throw"Bad state: "+t;P.t=A,C.length&&(P.R=C),P.a=B,T.push(P)}else"/"!==a[0].charAt(a[0].length-2)&&p.push([a[3],!1]);B="",V=0,A="",_=0,C=[];break;case"creator":"/"===a[1]?B=c.slice(V,a.index):V=a.index+a[0].length;break;case"meta":case"\u5143\u6570\u636e":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===a[1]){if((t=p.pop())[0]!==a[3])throw"Bad state: "+t}else"/"!==a[0].charAt(a[0].length-2)&&p.push([a[3],!1]);A="",_=0,C=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===a[1]){if(E[f.name]=m,(t=p.pop())[0]!==a[3])throw"Bad state: "+t}else"/"!==a[0].charAt(a[0].length-2)&&(m="",f=_l(a[0],!1),p.push([a[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":break;case"number":switch(p[p.length-1][0]){case"time-style":case"date-style":o=_l(a[0],!1),m+=Bs[a[3]]["long"===o.style?1:0]}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(p[p.length-1][0]){case"time-style":case"date-style":o=_l(a[0],!1),m+=Bs[a[3]]["long"===o.style?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if("/>"===a[0].slice(-2))break;if("/"===a[1])switch(p[p.length-1][0]){case"number-style":case"date-style":case"time-style":m+=c.slice(h,a.index)}else h=a.index+a[0].length;break;case"named-range":q=Ma((o=_l(a[0],!1))["cell-range-address"]);var Z={Name:o.name,Ref:q[0]+"!"+q[1]};W&&(Z.Sheet=b.length),D.Names.push(Z);break;case"text-content":case"text-properties":case"embedded-text":break;case"body":case"\u7535\u5b50\u8868\u683c":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":break;case"p":case"\u6587\u672c\u4e32":if(["master-styles"].indexOf(p[p.length-1][0])>-1)break;if("/"!==a[1]||x&&x["string-value"])_l(a[0],!1),_=a.index+a[0].length;else{var X=(s=c.slice(_,a.index),d=void 0,d=s.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(l,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n"),[El(d.replace(/<[^>]*>/g,""))]);A=(A.length>0?A+"\n":"")+X[0]}break;case"s":break;case"database-range":if("/"===a[1])break;try{v[(q=Ma(_l(a[0])["target-range-address"]))[0]]["!autofilter"]={ref:q[1]}}catch(Fd){}break;case"date":case"object":break;case"title":case"\u6807\u9898":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if("/"!==a[1]){if(!(z=_l(a[0],!1)).href)break;z.Target=z.href,delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1&&(q=Ma(z.Target.slice(1)),z.Target="#"+q[0]+"!"+q[1])}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(a[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5b57:":break;default:if(e.WTF)throw new Error(a)}}var $={Sheets:v,SheetNames:b,Workbook:D};return e.bookSheets&&delete $.Sheets,$});function Us(l,n){n=n||{};var e=!!dl(l,"objectdata");e&&function(l,n){for(var e,t,o=us(l);e=is.exec(o);)switch(e[3]){case"manifest":break;case"file-entry":if("/"==(t=_l(e[0],!1)).path&&t.type!==at)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(n&&n.WTF)throw e}}(pl(l,"META-INF/manifest.xml"),n);var t=fl(l,"content.xml");if(!t)throw new Error("Missing content.xml in "+(e?"ODS":"UOF")+" file");var o=Vs(e?t:Tl(t),n);return dl(l,"meta.xml")&&(o.Props=ft(pl(l,"meta.xml"))),o}function Ws(l,n){return Vs(l,n)}var Gs=function(){var l="";return function(){return vl+l}}(),js=function(){var l=" \n",n=function(n,e,t){var o=[];o.push(' \n');var u=0,i=0,a=ne(n["!ref"]),r=n["!merges"]||[],s=0,d=Array.isArray(n);for(u=0;u\n");for(;u<=a.e.r;++u){for(o.push(" \n"),i=0;ii||r[s].s.r>u||r[s].e.c\n");else{var m=le({r:u,c:i}),h=d?(n[u]||[])[i]:n[m];if(h&&h.f&&(p["table:formula"]=kl(("of:="+h.f.replace(Ei,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),h.F&&h.F.slice(0,m.length)==m)){var g=ne(h.F);p["table:number-matrix-columns-spanned"]=g.e.c-g.s.c+1,p["table:number-matrix-rows-spanned"]=g.e.r-g.s.r+1}if(h){switch(h.t){case"b":f=h.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=h.v?"true":"false";break;case"n":f=h.w||String(h.v||0),p["office:value-type"]="float",p["office:value"]=h.v||0;break;case"s":case"str":f=null==h.v?"":h.v,p["office:value-type"]="string";break;case"d":f=h.w||ll(h.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=ll(h.v).toISOString(),p["table:style-name"]="ce1";break;default:o.push(l);continue}var v=kl(f).replace(/ +/g,function(l){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");if(h.l&&h.l.Target){var b=h.l.Target;v=nn("text:a",v,{"xlink:href":b="#"==b.charAt(0)?"#"+b.slice(1).replace(/\./,"!"):b})}o.push(" "+nn("table:table-cell",nn("text:p",v,{}),p)+"\n")}else o.push(l)}}o.push(" \n")}return o.push(" \n"),o.join("")};return function(l,e){var t=[vl],o=ln({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=ln({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==e.bookType?t.push("\n"):t.push("\n"),function(l){l.push(" \n"),l.push(' \n'),l.push(' \n'),l.push(" /\n"),l.push(' \n'),l.push(" /\n"),l.push(" \n"),l.push(" \n"),l.push(' \n'),l.push(' \n'),l.push(" \n"),l.push(' \n'),l.push(" \n")}(t),t.push(" \n"),t.push(" \n");for(var i=0;i!=l.SheetNames.length;++i)t.push(n(l.Sheets[l.SheetNames[i]],l,i));return t.push(" \n"),t.push(" \n"),"fods"==e.bookType?t.push(""):t.push(""),t.join("")}}();function Hs(l,n){if("fods"==n.bookType)return js(l,n);var e=hl(),t="",o=[],u=[];return ml(e,t="mimetype","application/vnd.oasis.opendocument.spreadsheet"),ml(e,t="content.xml",js(l,n)),o.push([t,"text/xml"]),u.push([t,"ContentFile"]),ml(e,t="styles.xml",Gs(l,n)),o.push([t,"text/xml"]),u.push([t,"StylesFile"]),ml(e,t="meta.xml",dt()),o.push([t,"text/xml"]),u.push([t,"MetadataFile"]),ml(e,t="manifest.rdf",function(l){var n,e,t=[vl];t.push('\n');for(var o=0;o!=l.length;++o)t.push(rt(l[o][0],l[o][1])),t.push((n="",e=l[o][0],[' \n',' \n'," \n"].join("")));return t.push(rt("","Document","pkg")),t.push(""),t.join("")}(u)),o.push([t,"application/rdf+xml"]),ml(e,t="META-INF/manifest.xml",function(l){var n=[vl];n.push('\n'),n.push(' \n');for(var e=0;e\n');return n.push(""),n.join("")}(o)),e}function Ys(l){return function(n,e){var t=function(l,n){if(!n)return 0;var e=l.SheetNames.indexOf(n);if(-1==e)throw new Error("Sheet not found: "+n);return e}(n,e.sheet);return l.from_sheet(n.Sheets[n.SheetNames[t]],e,n)}}var Zs=Ys(zs),Xs=Ys({from_sheet:Md}),$s=Ys(void 0!==Wo?Wo:{}),Ks=Ys(void 0!==Go?Go:{}),Qs=Ys(void 0!==Ho?Ho:{}),Js=Ys(void 0!==Cu?Cu:{}),ld=Ys({from_sheet:Ed}),nd=Ys(void 0!==Uo?Uo:{}),ed=Ys(void 0!==jo?jo:{});function td(l){return function(n){for(var e=0;e!=l.length;++e){var t=l[e];void 0===n[t[0]]&&(n[t[0]]=t[1]),"n"===t[2]&&(n[t[0]]=Number(n[t[0]]))}}}var od=function(l){td([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(l)},ud=td([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]]);function id(l,n,e,t,o,u,i,a,r,s,d,c){try{u[t]=et(fl(l,e,!0),n);var p,f=pl(l,n);switch(a){case"sheet":p=Pr(f,n,o,r,u[t],s,d,c);break;case"chart":if(!(p=Br(f,n,o,r,u[t],s))||!p["!drawel"])break;var m=gl(p["!drawel"].Target,n),h=nt(m),g=gl(function(l,n){if(!l)return"??";var e=(l.match(/]*r:id="([^"]*)"/)||["",""])[1];return n["!id"][e].Target}(fl(l,m,!0),et(fl(l,h,!0),m)),m),v=nt(g);p=Cr(fl(l,g,!0),0,0,et(fl(l,v,!0),g),0,p);break;case"macro":y=n,u[t],y.slice(-4),p={"!type":"macro"};break;case"dialog":p=function(l,n,e,t,o,u,i,a){return n.slice(-4),{"!type":"dialog"}}(0,n,0,0,u[t]);break;default:throw new Error("Unrecognized sheet type "+a)}i[t]=p;var b=[];u&&u[t]&&B(u[t]).forEach(function(e){if(u[t][e].Type==lt.CMNT){var o=gl(u[t][e].Target,n);if(!(b=Wr(pl(l,o,!0),o,r))||!b.length)return;!function(l,n){var e,t=Array.isArray(l);n.forEach(function(n){var o=Jn(n.ref);if(t?(l[o.r]||(l[o.r]=[]),e=l[o.r][o.c]):e=l[n.ref],!e){e={t:"z"},t?l[o.r][o.c]=e:l[n.ref]=e;var u=te(l["!ref"]||"BDWGO1000001:A1");u.s.r>o.r&&(u.s.r=o.r),u.e.ro.c&&(u.s.c=o.c),u.e.c0?n.calcchains[0]:"",n.sst=n.strs.length>0?n.strs[0]:"",n.style=n.styles.length>0?n.styles[0]:"",n.defaults=e,delete n.calcchains,n}(fl(l,"[Content_Types].xml")),i=!1;if(0===u.workbooks.length&&pl(l,t="xl/workbook.xml",!0)&&u.workbooks.push(t),0===u.workbooks.length){if(!pl(l,t="xl/workbook.bin",!0))throw new Error("Could not find workbook");u.workbooks.push(t),i=!0}"bin"==u.workbooks[0].slice(-3)&&(i=!0);var a={},r={};if(!n.bookSheets&&!n.bookProps){if(Ea=[],u.sst)try{Ea=Ur(pl(l,ad(u.sst)),u.sst,n)}catch(Fd){if(n.WTF)throw Fd}n.cellStyles&&u.themes.length&&(a=function(l,n,e){return gi(l,e)}(fl(l,u.themes[0].replace(/^\//,""),!0)||"",u.themes[0],n)),u.style&&(r=Vr(pl(l,ad(u.style)),u.style,a,n))}u.links.map(function(e){try{return et(fl(l,nt(ad(e))),e),jr(pl(l,ad(e)),0,e,n)}catch(Fd){}});var s=Tr(pl(l,ad(u.workbooks[0])),u.workbooks[0],n),d={},c="";u.coreprops.length&&((c=pl(l,ad(u.coreprops[0]),!0))&&(d=ft(c)),0!==u.extprops.length&&(c=pl(l,ad(u.extprops[0]),!0))&&function(l,n,e){var t={};n||(n={}),l=Tl(l),gt.forEach(function(e){var o=(l.match(Hl(e[0]))||[])[1];switch(e[2]){case"string":o&&(n[e[1]]=El(o));break;case"bool":n[e[1]]="true"===o;break;case"raw":var u=l.match(new RegExp("<"+e[0]+"[^>]*>([\\s\\S]*?)"));u&&u.length>0&&(t[e[1]]=u[1])}}),t.HeadingPairs&&t.TitlesOfParts&&vt(t.HeadingPairs,t.TitlesOfParts,n,e)}(c,d,n));var p={};n.bookSheets&&!n.bookProps||0!==u.custprops.length&&(c=fl(l,ad(u.custprops[0]),!0))&&(p=function(l,n){var e={},t="",o=l.match(yt);if(o)for(var u=0;u!=o.length;++u){var i=o[u],a=_l(i);switch(a[0]){case"":t=null;break;default:if(0===i.indexOf(""),s=r[0].slice(4),d=r[1];switch(s){case"lpstr":case"bstr":case"lpwstr":e[t]=El(d);break;case"bool":e[t]=ql(d);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":e[t]=parseInt(d,10);break;case"r4":case"r8":case"decimal":e[t]=parseFloat(d);break;case"filetime":case"date":e[t]=ll(d);break;case"cy":case"error":e[t]=El(d);break;default:if("/"==s.slice(-1))break;n.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",i,s,r)}}else if("0&&(e=d.SheetNames),n.bookProps&&(f.Props=d,f.Custprops=p),n.bookSheets&&void 0!==e&&(f.SheetNames=e),n.bookSheets?f.SheetNames:n.bookProps))return f;e={};var m={};n.bookDeps&&u.calcchain&&(m=Gr(pl(l,ad(u.calcchain)),u.calcchain));var h,g,v=0,b={},y=s.Sheets;d.Worksheets=y.length,d.SheetNames=[];for(var x=0;x!=y.length;++x)d.SheetNames[x]=y[x].name;var A=i?"bin":"xml",_=u.workbooks[0].lastIndexOf("/"),C=(u.workbooks[0].slice(0,_+1)+"_rels/"+u.workbooks[0].slice(_+1)+".rels").replace(/^\//,"");dl(l,C)||(C="xl/_rels/workbook."+A+".rels");var w=et(fl(l,C,!0),C);w&&(w=function(l,n){if(!l)return 0;try{l=n.map(function(n){return n.id||(n.id=n.strRelID),[n.name,l["!id"][n.id].Target,(e=l["!id"][n.id].Type,lt.WS.indexOf(e)>-1?"sheet":lt.CS&&e==lt.CS?"chart":lt.DS&&e==lt.DS?"dialog":lt.MS&&e==lt.MS?"macro":e&&e.length?e:"sheet")];var e})}catch(Fd){return null}return l&&0!==l.length?l:null}(w,s.Sheets));var R=pl(l,"xl/worksheets/sheet.xml",!0)?1:0;l:for(v=0;v!=d.Worksheets;++v){var L="sheet";if(w&&w[v]?(h="xl/"+w[v][1].replace(/[\/]?xl\//,""),dl(l,h)||(h=w[v][1]),dl(l,h)||(h=C.replace(/_rels\/.*$/,"")+w[v][1]),L=w[v][2]):h=(h="xl/worksheets/sheet"+(v+1-R)+"."+A).replace(/sheet0\./,"sheet."),g=h.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),n&&null!=n.sheets)switch(typeof n.sheets){case"number":if(v!=n.sheets)continue l;break;case"string":if(d.SheetNames[v].toLowerCase()!=n.sheets.toLowerCase())continue l;break;default:if(Array.isArray&&Array.isArray(n.sheets)){for(var M=!1,E=0;E!=n.sheets.length;++E)"number"==typeof n.sheets[E]&&n.sheets[E]==v&&(M=1),"string"==typeof n.sheets[E]&&n.sheets[E].toLowerCase()==d.SheetNames[v].toLowerCase()&&(M=1);if(!M)continue l}}id(l,h,g,d.SheetNames[v],v,b,e,L,n,s,a,r)}return f={Directory:u,Workbook:s,Props:d,Custprops:p,Deps:m,Sheets:e,SheetNames:d.SheetNames,Strings:Ea,Styles:r,Themes:a,SSF:S.get_table()},n&&n.bookFiles&&(f.keys=o,f.files=l.files),n&&n.bookVBA&&(u.vba.length>0?f.vbaraw=pl(l,ad(u.vba[0]),!0):u.defaults&&u.defaults.bin===Ri&&(f.vbaraw=pl(l,"xl/vbaProject.bin",!0))),f}function sd(l,n){var e,t,o=n||{},u="Workbook",i=q.find(l,u);try{if(u="/!DataSpaces/Version",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);if(e=i.content,(t={}).id=e.read_shift(0,"lpp4"),t.R=au(e,4),t.U=au(e,4),t.W=au(e,4),u="/!DataSpaces/DataSpaceMap",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);var a=function(l){var n=[];l.l+=4;for(var e=l.read_shift(4);e-- >0;)n.push(ru(l));return n}(i.content);if(1!==a.length||1!==a[0].comps.length||0!==a[0].comps[0].t||"StrongEncryptionDataSpace"!==a[0].name||"EncryptedPackage"!==a[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+u);if(u="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);var r=function(l){var n=[];l.l+=4;for(var e=l.read_shift(4);e-- >0;)n.push(l.read_shift(0,"lpp4"));return n}(i.content);if(1!=r.length||"StrongEncryptionTransform"!=r[0])throw new Error("ECMA-376 Encrypted file bad "+u);if(u="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);su(i.content)}catch(Fd){}if(u="/EncryptionInfo",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);var s=function(l){var n=au(l);switch(n.Minor){case 2:return[n.Minor,pu(l)];case 3:return[n.Minor,fu()];case 4:return[n.Minor,mu(l)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+n.Minor)}(i.content);if(u="/EncryptedPackage",!(i=q.find(l,u))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+u);if(4==s[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(s[1],i.content,o.password||"",o);if(2==s[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(s[1],i.content,o.password||"",o);throw new Error("File is password-protected")}function dd(l,n){if(xi=1024,"ods"==n.bookType)return Hs(l,n);l&&!l.SSF&&(l.SSF=S.get_table()),l&&l.SSF&&(k(S),S.load_table(l.SSF),n.revssf=W(l.SSF),n.revssf[l.SSF[65535]]=0,n.ssf=l.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Sa?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var e="xlsb"==n.bookType?"bin":"xml",t=Li.indexOf(n.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""};ud(n=n||{});var u,i,a,r=hl(),s="",d=0;if(n.cellXfs=[],Na(n.cellXfs,{},{revssf:{General:0}}),l.Props||(l.Props={}),ml(r,s="docProps/core.xml",function(l,n){var e=n||{},t=[vl,mt],o={};if(!l&&!e.Props)return t.join("");l&&(null!=l.CreatedDate&&ht("dcterms:created","string"==typeof l.CreatedDate?l.CreatedDate:en(l.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},t,o),null!=l.ModifiedDate&&ht("dcterms:modified","string"==typeof l.ModifiedDate?l.ModifiedDate:en(l.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},t,o));for(var u=0;u!=ct.length;++u){var i=ct[u],a=e.Props&&null!=e.Props[i[1]]?e.Props[i[1]]:l?l[i[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&ht(i[0],a,null,t,o)}return t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}(l.Props,n)),o.coreprops.push(s),it(n.rels,2,s,lt.CORE_PROPS),s="docProps/app.xml",l.Props&&l.Props.SheetNames);else if(l.Workbook&&l.Workbook.Sheets){for(var c=[],p=0;pWorksheets")+a("vt:variant",a("vt:i4",String(u.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=a("TitlesOfParts",a("vt:vector",u.SheetNames.map(function(l){return""+kl(l)+""}).join(""),{size:u.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join(""))),o.extprops.push(s),it(n.rels,3,s,lt.EXT_PROPS),l.Custprops!==l.Props&&B(l.Custprops||{}).length>0&&(ml(r,s="docProps/custom.xml",At(l.Custprops)),o.custprops.push(s),it(n.rels,4,s,lt.CUST_PROPS)),d=1;d<=l.SheetNames.length;++d){var f={"!id":{}},m=l.Sheets[l.SheetNames[d-1]];switch((m||{})["!type"]||"sheet"){case"chart":default:ml(r,s="xl/worksheets/sheet"+d+"."+e,Yr(d-1,s,n,l,f)),o.sheets.push(s),it(n.wbrels,-1,"worksheets/sheet"+d+"."+e,lt.WS[0])}if(m){var h=m["!comments"],g=!1;if(h&&h.length>0){var v="xl/comments"+d+"."+e;ml(r,v,Xr(h,v,n)),o.comments.push(v),it(f,-1,"../comments"+d+"."+e,lt.CMNT),g=!0}m["!legacy"]&&g&&ml(r,"xl/drawings/vmlDrawing"+d+".vml",Ai(d,m["!comments"])),delete m["!comments"],delete m["!legacy"]}f["!id"].rId1&&ml(r,nt(s),ot(f))}return null!=n.Strings&&n.Strings.length>0&&(ml(r,s="xl/sharedStrings."+e,Zr(n.Strings,s,n)),o.strs.push(s),it(n.wbrels,-1,"sharedStrings."+e,lt.SST)),ml(r,s="xl/workbook."+e,Hr(l,s,n)),o.workbooks.push(s),it(n.rels,1,s,lt.WB),ml(r,s="xl/theme/theme1.xml",vi(l.Themes,n)),o.themes.push(s),it(n.wbrels,-1,"theme/theme1.xml",lt.THEME),ml(r,s="xl/styles."+e,function(l,n,e){return(".bin"===n.slice(-4)?ai:Xu)(l,e)}(l,s,n)),o.styles.push(s),it(n.wbrels,-1,"styles."+e,lt.STY),l.vbaraw&&t&&(ml(r,s="xl/vbaProject.bin",l.vbaraw),o.vba.push(s),it(n.wbrels,-1,"vbaProject.bin",lt.VBA)),ml(r,"[Content_Types].xml",function(l,n){var e,t=[];t[t.length]=vl,t[t.length]=Qe,t=t.concat(Je);var o=function(o){l[o]&&l[o].length>0&&(e=l[o][0],t[t.length]=nn("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:$e[o][n.bookType||"xlsx"]}))},u=function(e){(l[e]||[]).forEach(function(l){t[t.length]=nn("Override",null,{PartName:("/"==l[0]?"":"/")+l,ContentType:$e[e][n.bookType||"xlsx"]})})},i=function(n){(l[n]||[]).forEach(function(l){t[t.length]=nn("Override",null,{PartName:("/"==l[0]?"":"/")+l,ContentType:Ke[n][0]})})};return o("workbooks"),u("sheets"),u("charts"),i("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(i),i("vba"),i("comments"),i("drawings"),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}(o,n)),ml(r,"_rels/.rels",ot(n.rels)),ml(r,"xl/_rels/workbook."+e+".rels",ot(n.wbrels)),delete n.revssf,delete n.ssf,r}function cd(l,n){var e="";switch((n||{}).type||"base64"){case"buffer":return[l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7]];case"base64":e=v.decode(l.slice(0,12));break;case"binary":e=l;break;case"array":return[l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7]];default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}function pd(l,n){var e=l,t=n||{};return t.type||(t.type=b&&Buffer.isBuffer(l)?"buffer":"base64"),rd(function(l,n){var e;if(il)switch(n.type){case"base64":e=new il(l,{base64:!0});break;case"binary":case"array":e=new il(l,{base64:!1});break;case"buffer":e=new il(l);break;default:throw new Error("Unrecognized type "+n.type)}else switch(n.type){case"base64":e=q.read(l,{type:"base64"});break;case"binary":e=q.read(l,{type:"binary"});break;case"buffer":case"array":e=q.read(l,{type:"buffer"});break;default:throw new Error("Unrecognized type "+n.type)}return e}(e,t),t)}function fd(l,n){var e=0;l:for(;e=2&&0===e[3])return Yo.to_workbook(t,u);break;case 3:case 131:case 139:case 140:return Uo.to_workbook(t,u);case 123:if(92===e[1]&&114===e[2]&&116===e[3])return Cu.to_workbook(t,u);break;case 10:case 13:case 32:return function(l,n){var e="",t=cd(l,n);switch(n.type){case"base64":e=v.decode(l);break;case"binary":e=l;break;case"buffer":e=l.toString("binary");break;case"array":e=nl(l);break;default:throw new Error("Unrecognized type "+n.type)}return 239==t[0]&&187==t[1]&&191==t[2]&&(e=Tl(e)),fd(e,n)}(t,u)}return Uo.versions.indexOf(e[0])>-1&&e[2]<=12&&e[3]<=31?Uo.to_workbook(t,u):md(l,t,u,o)}function gd(l,n){var e=n||{};return e.type="file",hd(l,e)}function vd(l,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return P(n.file,q.write(l,{type:b?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return q.write(l,n)}function bd(l,n,e){e||(e="");var t=e+l;switch(n.type){case"base64":return v.encode(Pl(t));case"binary":return Pl(t);case"string":return l;case"file":return P(n.file,t,"utf8");case"buffer":return b?y(t,"utf8"):bd(t,{type:"binary"}).split("").map(function(l){return l.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}function yd(l,n){switch(n.type){case"string":case"base64":case"binary":for(var e="",t=0;t0&&(o=0);var c=$n(r.s.r),p=[],f=[],m=0,h=0,g=Array.isArray(l),v=r.s.r,b=0,y=0;for(g&&!l[v]&&(l[v]=[]),b=r.s.c;b<=r.e.c;++b)switch(p[b]=Qn(b),e=g?l[v][b]:l[p[b]+c],t){case 1:u[b]=b-r.s.c;break;case 2:u[b]=p[b];break;case 3:u[b]=s.header[b-r.s.c];break;default:for(null==e&&(e={w:"__EMPTY",t:"s"}),a=i=ue(e,null,s),h=0,y=0;y=0&&(d='"'+d.replace(Rd,'""')+'"'));s.push(d)}return!1===a.blankrows&&r?null:s.join(i)}function Md(l,n){var e=[],t=null==n?{}:n;if(null==l||null==l["!ref"])return"";var o=te(l["!ref"]),u=void 0!==t.FS?t.FS:",",i=u.charCodeAt(0),a=void 0!==t.RS?t.RS:"\n",r=a.charCodeAt(0),s=new RegExp(("|"==u?"\\|":u)+"+$"),d="",c=[];t.dense=Array.isArray(l);for(var p=t.skipHidden&&l["!cols"]||[],f=t.skipHidden&&l["!rows"]||[],m=o.s.c;m<=o.e.c;++m)(p[m]||{}).hidden||(c[m]=Qn(m));for(var h=o.s.r;h<=o.e.r;++h)(f[h]||{}).hidden||null!=(d=Ld(l,o,h,c,i,r,u,t))&&(t.strip&&(d=d.replace(s,"")),e.push(d+a));return delete t.dense,e.join("")}function Ed(l,n){n||(n={}),n.FS="\t",n.RS="\n";var e=Md(l,n);if("undefined"==typeof cptable||"string"==n.type)return e;var t=cptable.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+t}function Od(l){var n,e="",t="";if(null==l||null==l["!ref"])return[];var o,u=te(l["!ref"]),i="",a=[],r=[],s=Array.isArray(l);for(o=u.s.c;o<=u.e.c;++o)a[o]=Qn(o);for(var d=u.s.r;d<=u.e.r;++d)for(i=$n(d),o=u.s.c;o<=u.e.c;++o)if(e=a[o]+i,t="",void 0!==(n=s?(l[d]||[])[o]:l[e])){if(null!=n.F){if(e=n.F,!n.f)continue;t=n.f,-1==e.indexOf(":")&&(e=e+":"+e)}if(null!=n.f)t=n.f;else{if("z"==n.t)continue;if("n"==n.t&&null!=n.v)t=""+n.v;else if("b"==n.t)t=n.v?"TRUE":"FALSE";else if(void 0!==n.w)t="'"+n.w;else{if(void 0===n.v)continue;t="s"==n.t?"'"+n.v:""+n.v}}r[r.length]=e+"="+t}return r}function Sd(l,n,e){var t,o=e||{},u=+!o.skipHeader,i=l||{},a=0,r=0;if(i&&null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var s="string"==typeof o.origin?Jn(o.origin):o.origin;a=s.r,r=s.c}var d={s:{c:0,r:0},e:{c:r,r:a+n.length-1+u}};if(i["!ref"]){var c=te(i["!ref"]);d.e.c=Math.max(d.e.c,c.e.c),d.e.r=Math.max(d.e.r,c.e.r),-1==a&&(a=c.e.r+1,d.e.r=a+n.length-1+u)}else-1==a&&(a=0,d.e.r=n.length-1+u);var p=o.header||[],f=0;n.forEach(function(l,n){B(l).forEach(function(e){-1==(f=p.indexOf(e))&&(p[f=p.length]=e);var s=l[e],d="z",c="",m=le({c:r+f,r:a+n+u});t=Id.sheet_get_cell(i,m),!s||"object"!=typeof s||s instanceof Date?("number"==typeof s?d="n":"boolean"==typeof s?d="b":"string"==typeof s?d="s":s instanceof Date&&(d="d",o.cellDates||(d="n",s=j(s)),c=o.dateNF||S._table[14]),t?(t.t=d,t.v=s,delete t.w,delete t.R,c&&(t.z=c)):i[m]=t={t:d,v:s},c&&(t.z=c)):i[m]=s})}),d.e.c=Math.max(d.e.c,r+p.length-1);var m=$n(a);if(u)for(f=0;f=65535)throw new Error("Too many worksheets");if(Ir(e),l.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");l.SheetNames.push(e),l.Sheets[e]=n},l.book_set_sheet_visibility=function(l,e,t){n(l,"Workbook",{}),n(l.Workbook,"Sheets",[]);var o=function(l,n){if("number"==typeof n){if(n>=0&&l.SheetNames.length>n)return n;throw new Error("Cannot find sheet # "+n)}if("string"==typeof n){var e=l.SheetNames.indexOf(n);if(e>-1)return e;throw new Error("Cannot find sheet name |"+n+"|")}throw new Error("Cannot find sheet |"+n+"|")}(l,e);switch(n(l.Workbook.Sheets,o,{}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}l.Workbook.Sheets[o].Hidden=t},[["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]].forEach(function(n){l.consts[n[0]]=n[1]}),l.cell_set_number_format=function(l,n){return l.z=n,l},l.cell_set_hyperlink=function(l,n,e){return n?(l.l={Target:n},e&&(l.l.Tooltip=e)):delete l.l,l},l.cell_set_internal_link=function(n,e,t){return l.cell_set_hyperlink(n,"#"+e,t)},l.cell_add_comment=function(l,n,e){l.c||(l.c=[]),l.c.push({t:n,a:e||"SheetJS"})},l.sheet_set_array_formula=function(l,n,t){for(var o="string"!=typeof n?n:te(n),u="string"==typeof n?n:ee(n),i=o.s.r;i<=o.e.r;++i)for(var a=o.s.c;a<=o.e.c;++a){var r=e(l,i,a);r.t="n",r.F=u,delete r.v,i==o.s.r&&a==o.s.c&&(r.f=t)}return l}}(Id),b&&(kd=e(13).Readable,n.stream={to_json:function(l,n){var e=kd({objectMode:!0});if(null==l||null==l["!ref"])return e.push(null),e;var t={t:"n",v:0},o=0,u=1,i=[],a=0,r="",s={s:{r:0,c:0},e:{r:0,c:0}},d=n||{},c=null!=d.range?d.range:l["!ref"];switch(1===d.header?o=1:"A"===d.header?o=2:Array.isArray(d.header)&&(o=3),typeof c){case"string":s=te(c);break;case"number":(s=te(l["!ref"])).s.r=c;break;default:s=c}o>0&&(u=0);var p=$n(s.s.r),f=[],m=0,h=Array.isArray(l),g=s.s.r,v=0,b=0;for(h&&!l[g]&&(l[g]=[]),v=s.s.c;v<=s.e.c;++v)switch(f[v]=Qn(v),t=h?l[g][v]:l[f[v]+p],o){case 1:i[v]=v-s.s.c;break;case 2:i[v]=f[v];break;case 3:i[v]=d.header[v-s.s.c];break;default:for(null==t&&(t={w:"__EMPTY",t:"s"}),r=a=ue(t,null,d),m=0,b=0;bs.e.r)return e.push(null);for(;g<=s.e.r;){var n=Cd(l,s,g,f,o,i,h,d);if(++g,!1===n.isempty||(1===o?!1!==d.blankrows:d.blankrows)){e.push(n.row);break}}},e},to_html:function(l,n){var e=kd(),t=n||{},o=null!=t.header?t.header:zs.BEGIN,u=null!=t.footer?t.footer:zs.END;e.push(o);var i=ne(l["!ref"]);t.dense=Array.isArray(l),e.push(zs._preamble(l,i,t));var a=i.s.r,r=!1;return e._read=function(){if(a>i.e.r)return r||(r=!0,e.push(""+u)),e.push(null);for(;a<=i.e.r;){e.push(zs._row(l,i,a,t)),++a;break}},e},to_csv:function(l,n){var e=kd(),t=null==n?{}:n;if(null==l||null==l["!ref"])return e.push(null),e;var o=te(l["!ref"]),u=void 0!==t.FS?t.FS:",",i=u.charCodeAt(0),a=void 0!==t.RS?t.RS:"\n",r=a.charCodeAt(0),s=new RegExp(("|"==u?"\\|":u)+"+$"),d="",c=[];t.dense=Array.isArray(l);for(var p=t.skipHidden&&l["!cols"]||[],f=t.skipHidden&&l["!rows"]||[],m=o.s.c;m<=o.e.c;++m)(p[m]||{}).hidden||(c[m]=Qn(m));var h=o.s.r,g=!1;return e._read=function(){if(!g)return g=!0,e.push("\ufeff");for(;h<=o.e.r;)if(!(f[++h-1]||{}).hidden&&null!=(d=Ld(l,o,h-1,c,i,r,u,t))){t.strip&&(d=d.replace(s,"")),e.push(d+a);break}return h>o.e.r?e.push(null):void 0},e}}),n.parse_xlscfb=As,n.parse_zip=rd,n.read=hd,n.readFile=gd,n.readFileSync=gd,n.write=xd,n.writeFile=_d,n.writeFileSync=_d,n.writeFileAsync=function(l,n,e,t){var o=e||{};o.type="file",o.file=l,Ad(o),o.type="buffer";var u=t;return u instanceof Function||(u=e),z.writeFile(l,xd(n,o),u)},n.utils=Id,n.SSF=S,void 0!==q&&(n.CFB=q)})(n)},EVdn:function(l,n,e){var t,o;!function(n,e){"use strict";"object"==typeof l&&"object"==typeof l.exports?l.exports=n.document?e(n,!0):function(l){if(!l.document)throw new Error("jQuery requires a window with a document");return e(l)}:e(n)}("undefined"!=typeof window?window:this,function(e,u){"use strict";var i=[],a=e.document,r=Object.getPrototypeOf,s=i.slice,d=i.concat,c=i.push,p=i.indexOf,f={},m=f.toString,h=f.hasOwnProperty,g=h.toString,v=g.call(Object),b={},y=function(l){return"function"==typeof l&&"number"!=typeof l.nodeType},x=function(l){return null!=l&&l===l.window},A={type:!0,src:!0,noModule:!0};function _(l,n,e){var t,o=(n=n||a).createElement("script");if(o.text=l,e)for(t in A)e[t]&&(o[t]=e[t]);n.head.appendChild(o).parentNode.removeChild(o)}function C(l){return null==l?l+"":"object"==typeof l||"function"==typeof l?f[m.call(l)]||"object":typeof l}var w=function(l,n){return new w.fn.init(l,n)},R=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function L(l){var n=!!l&&"length"in l&&l.length,e=C(l);return!y(l)&&!x(l)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in l)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return s.call(this)},get:function(l){return null==l?s.call(this):l<0?this[l+this.length]:this[l]},pushStack:function(l){var n=w.merge(this.constructor(),l);return n.prevObject=this,n},each:function(l){return w.each(this,l)},map:function(l){return this.pushStack(w.map(this,function(n,e){return l.call(n,e,n)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(l){var n=this.length,e=+l+(l<0?n:0);return this.pushStack(e>=0&&e+~]|"+z+")"+z+"*"),G=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),j=new RegExp(P),H=new RegExp("^"+q+"$"),Y={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+T),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),ll=function(l,n,e){var t="0x"+n-65536;return t!=t||e?n:t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320)},nl=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,el=function(l,n){return n?"\0"===l?"\ufffd":l.slice(0,-1)+"\\"+l.charCodeAt(l.length-1).toString(16)+" ":"\\"+l},tl=function(){p()},ol=bl(function(l){return!0===l.disabled&&("form"in l||"label"in l)},{dir:"parentNode",next:"legend"});try{I.apply(O=F.call(A.childNodes),A.childNodes),O[A.childNodes.length].nodeType}catch(Cl){I={apply:O.length?function(l,n){k.apply(l,F.call(n))}:function(l,n){for(var e=l.length,t=0;l[e++]=n[t++];);l.length=e-1}}}function ul(l,n,t,o){var u,a,s,d,c,m,v,b=n&&n.ownerDocument,_=n?n.nodeType:9;if(t=t||[],"string"!=typeof l||!l||1!==_&&9!==_&&11!==_)return t;if(!o&&((n?n.ownerDocument||n:A)!==f&&p(n),n=n||f,h)){if(11!==_&&(c=K.exec(l)))if(u=c[1]){if(9===_){if(!(s=n.getElementById(u)))return t;if(s.id===u)return t.push(s),t}else if(b&&(s=b.getElementById(u))&&y(n,s)&&s.id===u)return t.push(s),t}else{if(c[2])return I.apply(t,n.getElementsByTagName(l)),t;if((u=c[3])&&e.getElementsByClassName&&n.getElementsByClassName)return I.apply(t,n.getElementsByClassName(u)),t}if(e.qsa&&!L[l+" "]&&(!g||!g.test(l))){if(1!==_)b=n,v=l;else if("object"!==n.nodeName.toLowerCase()){for((d=n.getAttribute("id"))?d=d.replace(nl,el):n.setAttribute("id",d=x),a=(m=i(l)).length;a--;)m[a]="#"+d+" "+vl(m[a]);v=m.join(","),b=Q.test(l)&&hl(n.parentNode)||n}if(v)try{return I.apply(t,b.querySelectorAll(v)),t}catch(C){}finally{d===x&&n.removeAttribute("id")}}}return r(l.replace(V,"$1"),n,t,o)}function il(){var l=[];return function n(e,o){return l.push(e+" ")>t.cacheLength&&delete n[l.shift()],n[e+" "]=o}}function al(l){return l[x]=!0,l}function rl(l){var n=f.createElement("fieldset");try{return!!l(n)}catch(Cl){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function sl(l,n){for(var e=l.split("|"),o=e.length;o--;)t.attrHandle[e[o]]=n}function dl(l,n){var e=n&&l,t=e&&1===l.nodeType&&1===n.nodeType&&l.sourceIndex-n.sourceIndex;if(t)return t;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return l?1:-1}function cl(l){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===l}}function pl(l){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===l}}function fl(l){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===l:n.disabled===l:n.isDisabled===l||n.isDisabled!==!l&&ol(n)===l:n.disabled===l:"label"in n&&n.disabled===l}}function ml(l){return al(function(n){return n=+n,al(function(e,t){for(var o,u=l([],e.length,n),i=u.length;i--;)e[o=u[i]]&&(e[o]=!(t[o]=e[o]))})})}function hl(l){return l&&void 0!==l.getElementsByTagName&&l}for(n in e=ul.support={},u=ul.isXML=function(l){var n=l&&(l.ownerDocument||l).documentElement;return!!n&&"HTML"!==n.nodeName},p=ul.setDocument=function(l){var n,o,i=l?l.ownerDocument||l:A;return i!==f&&9===i.nodeType&&i.documentElement?(m=(f=i).documentElement,h=!u(f),A!==f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",tl,!1):o.attachEvent&&o.attachEvent("onunload",tl)),e.attributes=rl(function(l){return l.className="i",!l.getAttribute("className")}),e.getElementsByTagName=rl(function(l){return l.appendChild(f.createComment("")),!l.getElementsByTagName("*").length}),e.getElementsByClassName=$.test(f.getElementsByClassName),e.getById=rl(function(l){return m.appendChild(l).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),e.getById?(t.filter.ID=function(l){var n=l.replace(J,ll);return function(l){return l.getAttribute("id")===n}},t.find.ID=function(l,n){if(void 0!==n.getElementById&&h){var e=n.getElementById(l);return e?[e]:[]}}):(t.filter.ID=function(l){var n=l.replace(J,ll);return function(l){var e=void 0!==l.getAttributeNode&&l.getAttributeNode("id");return e&&e.value===n}},t.find.ID=function(l,n){if(void 0!==n.getElementById&&h){var e,t,o,u=n.getElementById(l);if(u){if((e=u.getAttributeNode("id"))&&e.value===l)return[u];for(o=n.getElementsByName(l),t=0;u=o[t++];)if((e=u.getAttributeNode("id"))&&e.value===l)return[u]}return[]}}),t.find.TAG=e.getElementsByTagName?function(l,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(l):e.qsa?n.querySelectorAll(l):void 0}:function(l,n){var e,t=[],o=0,u=n.getElementsByTagName(l);if("*"===l){for(;e=u[o++];)1===e.nodeType&&t.push(e);return t}return u},t.find.CLASS=e.getElementsByClassName&&function(l,n){if(void 0!==n.getElementsByClassName&&h)return n.getElementsByClassName(l)},v=[],g=[],(e.qsa=$.test(f.querySelectorAll))&&(rl(function(l){m.appendChild(l).innerHTML="",l.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+z+"*(?:''|\"\")"),l.querySelectorAll("[selected]").length||g.push("\\["+z+"*(?:value|"+D+")"),l.querySelectorAll("[id~="+x+"-]").length||g.push("~="),l.querySelectorAll(":checked").length||g.push(":checked"),l.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),rl(function(l){l.innerHTML="";var n=f.createElement("input");n.setAttribute("type","hidden"),l.appendChild(n).setAttribute("name","D"),l.querySelectorAll("[name=d]").length&&g.push("name"+z+"*[*^$|!~]?="),2!==l.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(l).disabled=!0,2!==l.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),l.querySelectorAll("*,:x"),g.push(",.*:")})),(e.matchesSelector=$.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&rl(function(l){e.disconnectedMatch=b.call(l,"*"),b.call(l,"[s!='']:x"),v.push("!=",P)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),n=$.test(m.compareDocumentPosition),y=n||$.test(m.contains)?function(l,n){var e=9===l.nodeType?l.documentElement:l,t=n&&n.parentNode;return l===t||!(!t||1!==t.nodeType||!(e.contains?e.contains(t):l.compareDocumentPosition&&16&l.compareDocumentPosition(t)))}:function(l,n){if(n)for(;n=n.parentNode;)if(n===l)return!0;return!1},M=n?function(l,n){if(l===n)return c=!0,0;var t=!l.compareDocumentPosition-!n.compareDocumentPosition;return t||(1&(t=(l.ownerDocument||l)===(n.ownerDocument||n)?l.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(l)===t?l===f||l.ownerDocument===A&&y(A,l)?-1:n===f||n.ownerDocument===A&&y(A,n)?1:d?N(d,l)-N(d,n):0:4&t?-1:1)}:function(l,n){if(l===n)return c=!0,0;var e,t=0,o=l.parentNode,u=n.parentNode,i=[l],a=[n];if(!o||!u)return l===f?-1:n===f?1:o?-1:u?1:d?N(d,l)-N(d,n):0;if(o===u)return dl(l,n);for(e=l;e=e.parentNode;)i.unshift(e);for(e=n;e=e.parentNode;)a.unshift(e);for(;i[t]===a[t];)t++;return t?dl(i[t],a[t]):i[t]===A?-1:a[t]===A?1:0},f):f},ul.matches=function(l,n){return ul(l,null,null,n)},ul.matchesSelector=function(l,n){if((l.ownerDocument||l)!==f&&p(l),n=n.replace(G,"='$1']"),e.matchesSelector&&h&&!L[n+" "]&&(!v||!v.test(n))&&(!g||!g.test(n)))try{var t=b.call(l,n);if(t||e.disconnectedMatch||l.document&&11!==l.document.nodeType)return t}catch(Cl){}return ul(n,f,null,[l]).length>0},ul.contains=function(l,n){return(l.ownerDocument||l)!==f&&p(l),y(l,n)},ul.attr=function(l,n){(l.ownerDocument||l)!==f&&p(l);var o=t.attrHandle[n.toLowerCase()],u=o&&E.call(t.attrHandle,n.toLowerCase())?o(l,n,!h):void 0;return void 0!==u?u:e.attributes||!h?l.getAttribute(n):(u=l.getAttributeNode(n))&&u.specified?u.value:null},ul.escape=function(l){return(l+"").replace(nl,el)},ul.error=function(l){throw new Error("Syntax error, unrecognized expression: "+l)},ul.uniqueSort=function(l){var n,t=[],o=0,u=0;if(c=!e.detectDuplicates,d=!e.sortStable&&l.slice(0),l.sort(M),c){for(;n=l[u++];)n===l[u]&&(o=t.push(u));for(;o--;)l.splice(t[o],1)}return d=null,l},o=ul.getText=function(l){var n,e="",t=0,u=l.nodeType;if(u){if(1===u||9===u||11===u){if("string"==typeof l.textContent)return l.textContent;for(l=l.firstChild;l;l=l.nextSibling)e+=o(l)}else if(3===u||4===u)return l.nodeValue}else for(;n=l[t++];)e+=o(n);return e},(t=ul.selectors={cacheLength:50,createPseudo:al,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(l){return l[1]=l[1].replace(J,ll),l[3]=(l[3]||l[4]||l[5]||"").replace(J,ll),"~="===l[2]&&(l[3]=" "+l[3]+" "),l.slice(0,4)},CHILD:function(l){return l[1]=l[1].toLowerCase(),"nth"===l[1].slice(0,3)?(l[3]||ul.error(l[0]),l[4]=+(l[4]?l[5]+(l[6]||1):2*("even"===l[3]||"odd"===l[3])),l[5]=+(l[7]+l[8]||"odd"===l[3])):l[3]&&ul.error(l[0]),l},PSEUDO:function(l){var n,e=!l[6]&&l[2];return Y.CHILD.test(l[0])?null:(l[3]?l[2]=l[4]||l[5]||"":e&&j.test(e)&&(n=i(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(l[0]=l[0].slice(0,n),l[2]=e.slice(0,n)),l.slice(0,3))}},filter:{TAG:function(l){var n=l.replace(J,ll).toLowerCase();return"*"===l?function(){return!0}:function(l){return l.nodeName&&l.nodeName.toLowerCase()===n}},CLASS:function(l){var n=w[l+" "];return n||(n=new RegExp("(^|"+z+")"+l+"("+z+"|$)"))&&w(l,function(l){return n.test("string"==typeof l.className&&l.className||void 0!==l.getAttribute&&l.getAttribute("class")||"")})},ATTR:function(l,n,e){return function(t){var o=ul.attr(t,l);return null==o?"!="===n:!n||(o+="","="===n?o===e:"!="===n?o!==e:"^="===n?e&&0===o.indexOf(e):"*="===n?e&&o.indexOf(e)>-1:"$="===n?e&&o.slice(-e.length)===e:"~="===n?(" "+o.replace(B," ")+" ").indexOf(e)>-1:"|="===n&&(o===e||o.slice(0,e.length+1)===e+"-"))}},CHILD:function(l,n,e,t,o){var u="nth"!==l.slice(0,3),i="last"!==l.slice(-4),a="of-type"===n;return 1===t&&0===o?function(l){return!!l.parentNode}:function(n,e,r){var s,d,c,p,f,m,h=u!==i?"nextSibling":"previousSibling",g=n.parentNode,v=a&&n.nodeName.toLowerCase(),b=!r&&!a,y=!1;if(g){if(u){for(;h;){for(p=n;p=p[h];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;m=h="only"===l&&!m&&"nextSibling"}return!0}if(m=[i?g.firstChild:g.lastChild],i&&b){for(y=(f=(s=(d=(c=(p=g)[x]||(p[x]={}))[p.uniqueID]||(c[p.uniqueID]={}))[l]||[])[0]===_&&s[1])&&s[2],p=f&&g.childNodes[f];p=++f&&p&&p[h]||(y=f=0)||m.pop();)if(1===p.nodeType&&++y&&p===n){d[l]=[_,f,y];break}}else if(b&&(y=f=(s=(d=(c=(p=n)[x]||(p[x]={}))[p.uniqueID]||(c[p.uniqueID]={}))[l]||[])[0]===_&&s[1]),!1===y)for(;(p=++f&&p&&p[h]||(y=f=0)||m.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(b&&((d=(c=p[x]||(p[x]={}))[p.uniqueID]||(c[p.uniqueID]={}))[l]=[_,y]),p!==n)););return(y-=o)===t||y%t==0&&y/t>=0}}},PSEUDO:function(l,n){var e,o=t.pseudos[l]||t.setFilters[l.toLowerCase()]||ul.error("unsupported pseudo: "+l);return o[x]?o(n):o.length>1?(e=[l,l,"",n],t.setFilters.hasOwnProperty(l.toLowerCase())?al(function(l,e){for(var t,u=o(l,n),i=u.length;i--;)l[t=N(l,u[i])]=!(e[t]=u[i])}):function(l){return o(l,0,e)}):o}},pseudos:{not:al(function(l){var n=[],e=[],t=a(l.replace(V,"$1"));return t[x]?al(function(l,n,e,o){for(var u,i=t(l,null,o,[]),a=l.length;a--;)(u=i[a])&&(l[a]=!(n[a]=u))}):function(l,o,u){return n[0]=l,t(n,null,u,e),n[0]=null,!e.pop()}}),has:al(function(l){return function(n){return ul(l,n).length>0}}),contains:al(function(l){return l=l.replace(J,ll),function(n){return(n.textContent||n.innerText||o(n)).indexOf(l)>-1}}),lang:al(function(l){return H.test(l||"")||ul.error("unsupported lang: "+l),l=l.replace(J,ll).toLowerCase(),function(n){var e;do{if(e=h?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(e=e.toLowerCase())===l||0===e.indexOf(l+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var e=l.location&&l.location.hash;return e&&e.slice(1)===n.id},root:function(l){return l===m},focus:function(l){return l===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(l.type||l.href||~l.tabIndex)},enabled:fl(!1),disabled:fl(!0),checked:function(l){var n=l.nodeName.toLowerCase();return"input"===n&&!!l.checked||"option"===n&&!!l.selected},selected:function(l){return l.parentNode&&l.parentNode.selectedIndex,!0===l.selected},empty:function(l){for(l=l.firstChild;l;l=l.nextSibling)if(l.nodeType<6)return!1;return!0},parent:function(l){return!t.pseudos.empty(l)},header:function(l){return X.test(l.nodeName)},input:function(l){return Z.test(l.nodeName)},button:function(l){var n=l.nodeName.toLowerCase();return"input"===n&&"button"===l.type||"button"===n},text:function(l){var n;return"input"===l.nodeName.toLowerCase()&&"text"===l.type&&(null==(n=l.getAttribute("type"))||"text"===n.toLowerCase())},first:ml(function(){return[0]}),last:ml(function(l,n){return[n-1]}),eq:ml(function(l,n,e){return[e<0?e+n:e]}),even:ml(function(l,n){for(var e=0;e=0;)l.push(t);return l}),gt:ml(function(l,n,e){for(var t=e<0?e+n:e;++t1?function(n,e,t){for(var o=l.length;o--;)if(!l[o](n,e,t))return!1;return!0}:l[0]}function xl(l,n,e,t,o){for(var u,i=[],a=0,r=l.length,s=null!=n;a-1&&(u[s]=!(i[s]=c))}}else v=xl(v===i?v.splice(m,v.length):v),o?o(null,i,v,r):I.apply(i,v)})}function _l(l){for(var n,e,o,u=l.length,i=t.relative[l[0].type],a=i||t.relative[" "],r=i?1:0,d=bl(function(l){return l===n},a,!0),c=bl(function(l){return N(n,l)>-1},a,!0),p=[function(l,e,t){var o=!i&&(t||e!==s)||((n=e).nodeType?d(l,e,t):c(l,e,t));return n=null,o}];r1&&yl(p),r>1&&vl(l.slice(0,r-1).concat({value:" "===l[r-2].type?"*":""})).replace(V,"$1"),e,r0,o=l.length>0,u=function(u,i,a,r,d){var c,m,g,v=0,b="0",y=u&&[],x=[],A=s,C=u||o&&t.find.TAG("*",d),w=_+=null==A?1:Math.random()||.1,R=C.length;for(d&&(s=i===f||i||d);b!==R&&null!=(c=C[b]);b++){if(o&&c){for(m=0,i||c.ownerDocument===f||(p(c),a=!h);g=l[m++];)if(g(c,i||f,a)){r.push(c);break}d&&(_=w)}e&&((c=!g&&c)&&v--,u&&y.push(c))}if(v+=b,e&&b!==v){for(m=0;g=n[m++];)g(y,x,i,a);if(u){if(v>0)for(;b--;)y[b]||x[b]||(x[b]=S.call(r));x=xl(x)}I.apply(r,x),d&&!u&&x.length>0&&v+n.length>1&&ul.uniqueSort(r)}return d&&(_=w,s=A),y};return e?al(u):u}(u,o))).selector=l}return a},r=ul.select=function(l,n,e,o){var u,r,s,d,c,p="function"==typeof l&&l,f=!o&&i(l=p.selector||l);if(e=e||[],1===f.length){if((r=f[0]=f[0].slice(0)).length>2&&"ID"===(s=r[0]).type&&9===n.nodeType&&h&&t.relative[r[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(J,ll),n)||[])[0]))return e;p&&(n=n.parentNode),l=l.slice(r.shift().value.length)}for(u=Y.needsContext.test(l)?0:r.length;u--&&(s=r[u],!t.relative[d=s.type]);)if((c=t.find[d])&&(o=c(s.matches[0].replace(J,ll),Q.test(r[0].type)&&hl(n.parentNode)||n))){if(r.splice(u,1),!(l=o.length&&vl(r)))return I.apply(e,o),e;break}}return(p||a(l,f))(o,n,!h,e,!n||Q.test(l)&&hl(n.parentNode)||n),e},e.sortStable=x.split("").sort(M).join("")===x,e.detectDuplicates=!!c,p(),e.sortDetached=rl(function(l){return 1&l.compareDocumentPosition(f.createElement("fieldset"))}),rl(function(l){return l.innerHTML="","#"===l.firstChild.getAttribute("href")})||sl("type|href|height|width",function(l,n,e){if(!e)return l.getAttribute(n,"type"===n.toLowerCase()?1:2)}),e.attributes&&rl(function(l){return l.innerHTML="",l.firstChild.setAttribute("value",""),""===l.firstChild.getAttribute("value")})||sl("value",function(l,n,e){if(!e&&"input"===l.nodeName.toLowerCase())return l.defaultValue}),rl(function(l){return null==l.getAttribute("disabled")})||sl(D,function(l,n,e){var t;if(!e)return!0===l[n]?n.toLowerCase():(t=l.getAttributeNode(n))&&t.specified?t.value:null}),ul}(e);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var E=function(l,n,e){for(var t=[],o=void 0!==e;(l=l[n])&&9!==l.nodeType;)if(1===l.nodeType){if(o&&w(l).is(e))break;t.push(l)}return t},O=function(l,n){for(var e=[];l;l=l.nextSibling)1===l.nodeType&&l!==n&&e.push(l);return e},S=w.expr.match.needsContext;function k(l,n){return l.nodeName&&l.nodeName.toLowerCase()===n.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(l,n,e){return y(n)?w.grep(l,function(l,t){return!!n.call(l,t,l)!==e}):n.nodeType?w.grep(l,function(l){return l===n!==e}):"string"!=typeof n?w.grep(l,function(l){return p.call(n,l)>-1!==e}):w.filter(n,l,e)}w.filter=function(l,n,e){var t=n[0];return e&&(l=":not("+l+")"),1===n.length&&1===t.nodeType?w.find.matchesSelector(t,l)?[t]:[]:w.find.matches(l,w.grep(n,function(l){return 1===l.nodeType}))},w.fn.extend({find:function(l){var n,e,t=this.length,o=this;if("string"!=typeof l)return this.pushStack(w(l).filter(function(){for(n=0;n1?w.uniqueSort(e):e},filter:function(l){return this.pushStack(F(this,l||[],!1))},not:function(l){return this.pushStack(F(this,l||[],!0))},is:function(l){return!!F(this,"string"==typeof l&&S.test(l)?w(l):l||[],!1).length}});var N,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(l,n,e){var t,o;if(!l)return this;if(e=e||N,"string"==typeof l){if(!(t="<"===l[0]&&">"===l[l.length-1]&&l.length>=3?[null,l,null]:D.exec(l))||!t[1]&&n)return!n||n.jquery?(n||e).find(l):this.constructor(n).find(l);if(t[1]){if(n=n instanceof w?n[0]:n,w.merge(this,w.parseHTML(t[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),I.test(t[1])&&w.isPlainObject(n))for(t in n)y(this[t])?this[t](n[t]):this.attr(t,n[t]);return this}return(o=a.getElementById(t[2]))&&(this[0]=o,this.length=1),this}return l.nodeType?(this[0]=l,this.length=1,this):y(l)?void 0!==e.ready?e.ready(l):l(w):w.makeArray(l,this)}).prototype=w.fn,N=w(a);var z=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function T(l,n){for(;(l=l[n])&&1!==l.nodeType;);return l}w.fn.extend({has:function(l){var n=w(l,this),e=n.length;return this.filter(function(){for(var l=0;l-1:1===e.nodeType&&w.find.matchesSelector(e,l))){u.push(e);break}return this.pushStack(u.length>1?w.uniqueSort(u):u)},index:function(l){return l?"string"==typeof l?p.call(w(l),this[0]):p.call(this,l.jquery?l[0]:l):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(l,n){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(l,n))))},addBack:function(l){return this.add(null==l?this.prevObject:this.prevObject.filter(l))}}),w.each({parent:function(l){var n=l.parentNode;return n&&11!==n.nodeType?n:null},parents:function(l){return E(l,"parentNode")},parentsUntil:function(l,n,e){return E(l,"parentNode",e)},next:function(l){return T(l,"nextSibling")},prev:function(l){return T(l,"previousSibling")},nextAll:function(l){return E(l,"nextSibling")},prevAll:function(l){return E(l,"previousSibling")},nextUntil:function(l,n,e){return E(l,"nextSibling",e)},prevUntil:function(l,n,e){return E(l,"previousSibling",e)},siblings:function(l){return O((l.parentNode||{}).firstChild,l)},children:function(l){return O(l.firstChild)},contents:function(l){return k(l,"iframe")?l.contentDocument:(k(l,"template")&&(l=l.content||l),w.merge([],l.childNodes))}},function(l,n){w.fn[l]=function(e,t){var o=w.map(this,n,e);return"Until"!==l.slice(-5)&&(t=e),t&&"string"==typeof t&&(o=w.filter(t,o)),this.length>1&&(q[l]||w.uniqueSort(o),z.test(l)&&o.reverse()),this.pushStack(o)}});var P=/[^\x20\t\r\n\f]+/g;function B(l){return l}function V(l){throw l}function U(l,n,e,t){var o;try{l&&y(o=l.promise)?o.call(l).done(n).fail(e):l&&y(o=l.then)?o.call(l,n,e):n.apply(void 0,[l].slice(t))}catch(l){e.apply(void 0,[l])}}w.Callbacks=function(l){l="string"==typeof l?function(l){var n={};return w.each(l.match(P)||[],function(l,e){n[e]=!0}),n}(l):w.extend({},l);var n,e,t,o,u=[],i=[],a=-1,r=function(){for(o=o||l.once,t=n=!0;i.length;a=-1)for(e=i.shift();++a-1;)u.splice(e,1),e<=a&&a--}),this},has:function(l){return l?w.inArray(l,u)>-1:u.length>0},empty:function(){return u&&(u=[]),this},disable:function(){return o=i=[],u=e="",this},disabled:function(){return!u},lock:function(){return o=i=[],e||n||(u=e=""),this},locked:function(){return!!o},fireWith:function(l,e){return o||(e=[l,(e=e||[]).slice?e.slice():e],i.push(e),n||r()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!t}};return s},w.extend({Deferred:function(l){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],t="pending",o={state:function(){return t},always:function(){return u.done(arguments).fail(arguments),this},catch:function(l){return o.then(null,l)},pipe:function(){var l=arguments;return w.Deferred(function(e){w.each(n,function(n,t){var o=y(l[t[4]])&&l[t[4]];u[t[1]](function(){var l=o&&o.apply(this,arguments);l&&y(l.promise)?l.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[t[0]+"With"](this,o?[l]:arguments)})}),l=null}).promise()},then:function(l,t,o){var u=0;function i(l,n,t,o){return function(){var a=this,r=arguments,s=function(){var e,s;if(!(l=u&&(t!==V&&(a=void 0,r=[e]),n.rejectWith(a,r))}};l?d():(w.Deferred.getStackHook&&(d.stackTrace=w.Deferred.getStackHook()),e.setTimeout(d))}}return w.Deferred(function(e){n[0][3].add(i(0,e,y(o)?o:B,e.notifyWith)),n[1][3].add(i(0,e,y(l)?l:B)),n[2][3].add(i(0,e,y(t)?t:V))}).promise()},promise:function(l){return null!=l?w.extend(l,o):o}},u={};return w.each(n,function(l,e){var i=e[2],a=e[5];o[e[1]]=i.add,a&&i.add(function(){t=a},n[3-l][2].disable,n[3-l][3].disable,n[0][2].lock,n[0][3].lock),i.add(e[3].fire),u[e[0]]=function(){return u[e[0]+"With"](this===u?void 0:this,arguments),this},u[e[0]+"With"]=i.fireWith}),o.promise(u),l&&l.call(u,u),u},when:function(l){var n=arguments.length,e=n,t=Array(e),o=s.call(arguments),u=w.Deferred(),i=function(l){return function(e){t[l]=this,o[l]=arguments.length>1?s.call(arguments):e,--n||u.resolveWith(t,o)}};if(n<=1&&(U(l,u.done(i(e)).resolve,u.reject,!n),"pending"===u.state()||y(o[e]&&o[e].then)))return u.then();for(;e--;)U(o[e],i(e),u.reject);return u.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(l,n){e.console&&e.console.warn&&l&&W.test(l.name)&&e.console.warn("jQuery.Deferred exception: "+l.message,l.stack,n)},w.readyException=function(l){e.setTimeout(function(){throw l})};var G=w.Deferred();function j(){a.removeEventListener("DOMContentLoaded",j),e.removeEventListener("load",j),w.ready()}w.fn.ready=function(l){return G.then(l).catch(function(l){w.readyException(l)}),this},w.extend({isReady:!1,readyWait:1,ready:function(l){(!0===l?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==l&&--w.readyWait>0||G.resolveWith(a,[w]))}}),w.ready.then=G.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?e.setTimeout(w.ready):(a.addEventListener("DOMContentLoaded",j),e.addEventListener("load",j));var H=function(l,n,e,t,o,u,i){var a=0,r=l.length,s=null==e;if("object"===C(e))for(a in o=!0,e)H(l,n,a,e[a],!0,u,i);else if(void 0!==t&&(o=!0,y(t)||(i=!0),s&&(i?(n.call(l,t),n=null):(s=n,n=function(l,n,e){return s.call(w(l),e)})),n))for(;a1,null,!0)},removeData:function(l){return this.each(function(){ll.remove(this,l)})}}),w.extend({queue:function(l,n,e){var t;if(l)return n=(n||"fx")+"queue",t=J.get(l,n),e&&(!t||Array.isArray(e)?t=J.access(l,n,w.makeArray(e)):t.push(e)),t||[]},dequeue:function(l,n){n=n||"fx";var e=w.queue(l,n),t=e.length,o=e.shift(),u=w._queueHooks(l,n);"inprogress"===o&&(o=e.shift(),t--),o&&("fx"===n&&e.unshift("inprogress"),delete u.stop,o.call(l,function(){w.dequeue(l,n)},u)),!t&&u&&u.empty.fire()},_queueHooks:function(l,n){var e=n+"queueHooks";return J.get(l,e)||J.access(l,e,{empty:w.Callbacks("once memory").add(function(){J.remove(l,[n+"queue",e])})})}}),w.fn.extend({queue:function(l,n){var e=2;return"string"!=typeof l&&(n=l,l="fx",e--),arguments.length\x20\t\r\n\f]+)/i,hl=/^$|^module$|\/(?:java|ecma)script/i,gl={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function vl(l,n){var e;return e=void 0!==l.getElementsByTagName?l.getElementsByTagName(n||"*"):void 0!==l.querySelectorAll?l.querySelectorAll(n||"*"):[],void 0===n||n&&k(l,n)?w.merge([l],e):e}function bl(l,n){for(var e=0,t=l.length;e-1)o&&o.push(u);else if(s=w.contains(u.ownerDocument,u),i=vl(c.appendChild(u),"script"),s&&bl(i),e)for(d=0;u=i[d++];)hl.test(u.type||"")&&e.push(u);return c}yl=a.createDocumentFragment().appendChild(a.createElement("div")),(xl=a.createElement("input")).setAttribute("type","radio"),xl.setAttribute("checked","checked"),xl.setAttribute("name","t"),yl.appendChild(xl),b.checkClone=yl.cloneNode(!0).cloneNode(!0).lastChild.checked,yl.innerHTML="",b.noCloneChecked=!!yl.cloneNode(!0).lastChild.defaultValue;var Cl=a.documentElement,wl=/^key/,Rl=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ll=/^([^.]*)(?:\.(.+)|)/;function Ml(){return!0}function El(){return!1}function Ol(){try{return a.activeElement}catch(l){}}function Sl(l,n,e,t,o,u){var i,a;if("object"==typeof n){for(a in"string"!=typeof e&&(t=t||e,e=void 0),n)Sl(l,a,e,t,n[a],u);return l}if(null==t&&null==o?(o=e,t=e=void 0):null==o&&("string"==typeof e?(o=t,t=void 0):(o=t,t=e,e=void 0)),!1===o)o=El;else if(!o)return l;return 1===u&&(i=o,(o=function(l){return w().off(l),i.apply(this,arguments)}).guid=i.guid||(i.guid=w.guid++)),l.each(function(){w.event.add(this,n,o,t,e)})}w.event={global:{},add:function(l,n,e,t,o){var u,i,a,r,s,d,c,p,f,m,h,g=J.get(l);if(g)for(e.handler&&(e=(u=e).handler,o=u.selector),o&&w.find.matchesSelector(Cl,o),e.guid||(e.guid=w.guid++),(r=g.events)||(r=g.events={}),(i=g.handle)||(i=g.handle=function(n){return void 0!==w&&w.event.triggered!==n.type?w.event.dispatch.apply(l,arguments):void 0}),s=(n=(n||"").match(P)||[""]).length;s--;)f=h=(a=Ll.exec(n[s])||[])[1],m=(a[2]||"").split(".").sort(),f&&(c=w.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=w.event.special[f]||{},d=w.extend({type:f,origType:h,data:t,handler:e,guid:e.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:m.join(".")},u),(p=r[f])||((p=r[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(l,t,m,i)||l.addEventListener&&l.addEventListener(f,i)),c.add&&(c.add.call(l,d),d.handler.guid||(d.handler.guid=e.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),w.event.global[f]=!0)},remove:function(l,n,e,t,o){var u,i,a,r,s,d,c,p,f,m,h,g=J.hasData(l)&&J.get(l);if(g&&(r=g.events)){for(s=(n=(n||"").match(P)||[""]).length;s--;)if(f=h=(a=Ll.exec(n[s])||[])[1],m=(a[2]||"").split(".").sort(),f){for(c=w.event.special[f]||{},p=r[f=(t?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=u=p.length;u--;)d=p[u],!o&&h!==d.origType||e&&e.guid!==d.guid||a&&!a.test(d.namespace)||t&&t!==d.selector&&("**"!==t||!d.selector)||(p.splice(u,1),d.selector&&p.delegateCount--,c.remove&&c.remove.call(l,d));i&&!p.length&&(c.teardown&&!1!==c.teardown.call(l,m,g.handle)||w.removeEvent(l,f,g.handle),delete r[f])}else for(f in r)w.event.remove(l,f+n[s],e,t,!0);w.isEmptyObject(r)&&J.remove(l,"handle events")}},dispatch:function(l){var n,e,t,o,u,i,a=w.event.fix(l),r=new Array(arguments.length),s=(J.get(this,"events")||{})[a.type]||[],d=w.event.special[a.type]||{};for(r[0]=a,n=1;n=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==l.type||!0!==s.disabled)){for(u=[],i={},e=0;e-1:w.find(o,this,null,[s]).length),i[o]&&u.push(t);u.length&&a.push({elem:s,handlers:u})}return s=this,r\x20\t\r\n\f]*)[^>]*)\/>/gi,Il=/\s*$/g;function Dl(l,n){return k(l,"table")&&k(11!==n.nodeType?n:n.firstChild,"tr")&&w(l).children("tbody")[0]||l}function zl(l){return l.type=(null!==l.getAttribute("type"))+"/"+l.type,l}function ql(l){return"true/"===(l.type||"").slice(0,5)?l.type=l.type.slice(5):l.removeAttribute("type"),l}function Tl(l,n){var e,t,o,u,i,a,r,s;if(1===n.nodeType){if(J.hasData(l)&&(u=J.access(l),i=J.set(n,u),s=u.events))for(o in delete i.handle,i.events={},s)for(e=0,t=s[o].length;e1&&"string"==typeof m&&!b.checkClone&&Fl.test(m))return l.each(function(o){var u=l.eq(o);h&&(n[0]=m.call(this,o,u.html())),Pl(u,n,e,t)});if(p&&(u=(o=_l(n,l[0].ownerDocument,!1,l,t)).firstChild,1===o.childNodes.length&&(o=u),u||t)){for(a=(i=w.map(vl(o,"script"),zl)).length;c")},clone:function(l,n,e){var t,o,u,i,a,r,s,d=l.cloneNode(!0),c=w.contains(l.ownerDocument,l);if(!(b.noCloneChecked||1!==l.nodeType&&11!==l.nodeType||w.isXMLDoc(l)))for(i=vl(d),t=0,o=(u=vl(l)).length;t0&&bl(i,!c&&vl(l,"script")),d},cleanData:function(l){for(var n,e,t,o=w.event.special,u=0;void 0!==(e=l[u]);u++)if(K(e)){if(n=e[J.expando]){if(n.events)for(t in n.events)o[t]?w.event.remove(e,t):w.removeEvent(e,t,n.handle);e[J.expando]=void 0}e[ll.expando]&&(e[ll.expando]=void 0)}}}),w.fn.extend({detach:function(l){return Bl(this,l,!0)},remove:function(l){return Bl(this,l)},text:function(l){return H(this,function(l){return void 0===l?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=l)})},null,l,arguments.length)},append:function(){return Pl(this,arguments,function(l){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dl(this,l).appendChild(l)})},prepend:function(){return Pl(this,arguments,function(l){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=Dl(this,l);n.insertBefore(l,n.firstChild)}})},before:function(){return Pl(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this)})},after:function(){return Pl(this,arguments,function(l){this.parentNode&&this.parentNode.insertBefore(l,this.nextSibling)})},empty:function(){for(var l,n=0;null!=(l=this[n]);n++)1===l.nodeType&&(w.cleanData(vl(l,!1)),l.textContent="");return this},clone:function(l,n){return l=null!=l&&l,n=null==n?l:n,this.map(function(){return w.clone(this,l,n)})},html:function(l){return H(this,function(l){var n=this[0]||{},e=0,t=this.length;if(void 0===l&&1===n.nodeType)return n.innerHTML;if("string"==typeof l&&!Il.test(l)&&!gl[(ml.exec(l)||["",""])[1].toLowerCase()]){l=w.htmlPrefilter(l);try{for(;e=0&&(r+=Math.max(0,Math.ceil(l["offset"+n[0].toUpperCase()+n.slice(1)]-u-r-a-.5))),r}function nn(l,n,e){var t=Ul(l),o=Gl(l,n,t),u="border-box"===w.css(l,"boxSizing",!1,t),i=u;if(Vl.test(o)){if(!e)return o;o="auto"}return i=i&&(b.boxSizingReliable()||o===l.style[n]),("auto"===o||!parseFloat(o)&&"inline"===w.css(l,"display",!1,t))&&(o=l["offset"+n[0].toUpperCase()+n.slice(1)],i=!0),(o=parseFloat(o)||0)+ln(l,n,e||(u?"border":"content"),i,t,o)+"px"}function en(l,n,e,t,o){return new en.prototype.init(l,n,e,t,o)}w.extend({cssHooks:{opacity:{get:function(l,n){if(n){var e=Gl(l,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(l,n,e,t){if(l&&3!==l.nodeType&&8!==l.nodeType&&l.style){var o,u,i,a=$(n),r=Yl.test(n),s=l.style;if(r||(n=Ql(a)),i=w.cssHooks[n]||w.cssHooks[a],void 0===e)return i&&"get"in i&&void 0!==(o=i.get(l,!1,t))?o:s[n];"string"===(u=typeof e)&&(o=ul.exec(e))&&o[1]&&(e=sl(l,n,o),u="number"),null!=e&&e==e&&("number"===u&&(e+=o&&o[3]||(w.cssNumber[a]?"":"px")),b.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),i&&"set"in i&&void 0===(e=i.set(l,e,t))||(r?s.setProperty(n,e):s[n]=e))}},css:function(l,n,e,t){var o,u,i,a=$(n);return Yl.test(n)||(n=Ql(a)),(i=w.cssHooks[n]||w.cssHooks[a])&&"get"in i&&(o=i.get(l,!0,e)),void 0===o&&(o=Gl(l,n,t)),"normal"===o&&n in Xl&&(o=Xl[n]),""===e||e?(u=parseFloat(o),!0===e||isFinite(u)?u||0:o):o}}),w.each(["height","width"],function(l,n){w.cssHooks[n]={get:function(l,e,t){if(e)return!Hl.test(w.css(l,"display"))||l.getClientRects().length&&l.getBoundingClientRect().width?nn(l,n,t):rl(l,Zl,function(){return nn(l,n,t)})},set:function(l,e,t){var o,u=Ul(l),i="border-box"===w.css(l,"boxSizing",!1,u),a=t&&ln(l,n,t,i,u);return i&&b.scrollboxSize()===u.position&&(a-=Math.ceil(l["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(u[n])-ln(l,n,"border",!1,u)-.5)),a&&(o=ul.exec(e))&&"px"!==(o[3]||"px")&&(l.style[n]=e,e=w.css(l,n)),Jl(0,e,a)}}}),w.cssHooks.marginLeft=jl(b.reliableMarginLeft,function(l,n){if(n)return(parseFloat(Gl(l,"marginLeft"))||l.getBoundingClientRect().left-rl(l,{marginLeft:0},function(){return l.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(l,n){w.cssHooks[l+n]={expand:function(e){for(var t=0,o={},u="string"==typeof e?e.split(" "):[e];t<4;t++)o[l+il[t]+n]=u[t]||u[t-2]||u[0];return o}},"margin"!==l&&(w.cssHooks[l+n].set=Jl)}),w.fn.extend({css:function(l,n){return H(this,function(l,n,e){var t,o,u={},i=0;if(Array.isArray(n)){for(t=Ul(l),o=n.length;i1)}}),w.Tween=en,en.prototype={constructor:en,init:function(l,n,e,t,o,u){this.elem=l,this.prop=e,this.easing=o||w.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=t,this.unit=u||(w.cssNumber[e]?"":"px")},cur:function(){var l=en.propHooks[this.prop];return l&&l.get?l.get(this):en.propHooks._default.get(this)},run:function(l){var n,e=en.propHooks[this.prop];return this.options.duration?this.pos=n=w.easing[this.easing](l,this.options.duration*l,0,1,this.options.duration):this.pos=n=l,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):en.propHooks._default.set(this),this}},en.prototype.init.prototype=en.prototype,en.propHooks={_default:{get:function(l){var n;return 1!==l.elem.nodeType||null!=l.elem[l.prop]&&null==l.elem.style[l.prop]?l.elem[l.prop]:(n=w.css(l.elem,l.prop,""))&&"auto"!==n?n:0},set:function(l){w.fx.step[l.prop]?w.fx.step[l.prop](l):1!==l.elem.nodeType||null==l.elem.style[w.cssProps[l.prop]]&&!w.cssHooks[l.prop]?l.elem[l.prop]=l.now:w.style(l.elem,l.prop,l.now+l.unit)}}},en.propHooks.scrollTop=en.propHooks.scrollLeft={set:function(l){l.elem.nodeType&&l.elem.parentNode&&(l.elem[l.prop]=l.now)}},w.easing={linear:function(l){return l},swing:function(l){return.5-Math.cos(l*Math.PI)/2},_default:"swing"},w.fx=en.prototype.init,w.fx.step={};var tn,on,un=/^(?:toggle|show|hide)$/,an=/queueHooks$/;function rn(){on&&(!1===a.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rn):e.setTimeout(rn,w.fx.interval),w.fx.tick())}function sn(){return e.setTimeout(function(){tn=void 0}),tn=Date.now()}function dn(l,n){var e,t=0,o={height:l};for(n=n?1:0;t<4;t+=2-n)o["margin"+(e=il[t])]=o["padding"+e]=l;return n&&(o.opacity=o.width=l),o}function cn(l,n,e){for(var t,o=(pn.tweeners[n]||[]).concat(pn.tweeners["*"]),u=0,i=o.length;u1)},removeAttr:function(l){return this.each(function(){w.removeAttr(this,l)})}}),w.extend({attr:function(l,n,e){var t,o,u=l.nodeType;if(3!==u&&8!==u&&2!==u)return void 0===l.getAttribute?w.prop(l,n,e):(1===u&&w.isXMLDoc(l)||(o=w.attrHooks[n.toLowerCase()]||(w.expr.match.bool.test(n)?fn:void 0)),void 0!==e?null===e?void w.removeAttr(l,n):o&&"set"in o&&void 0!==(t=o.set(l,e,n))?t:(l.setAttribute(n,e+""),e):o&&"get"in o&&null!==(t=o.get(l,n))?t:null==(t=w.find.attr(l,n))?void 0:t)},attrHooks:{type:{set:function(l,n){if(!b.radioValue&&"radio"===n&&k(l,"input")){var e=l.value;return l.setAttribute("type",n),e&&(l.value=e),n}}}},removeAttr:function(l,n){var e,t=0,o=n&&n.match(P);if(o&&1===l.nodeType)for(;e=o[t++];)l.removeAttribute(e)}}),fn={set:function(l,n,e){return!1===n?w.removeAttr(l,e):l.setAttribute(e,e),e}},w.each(w.expr.match.bool.source.match(/\w+/g),function(l,n){var e=mn[n]||w.find.attr;mn[n]=function(l,n,t){var o,u,i=n.toLowerCase();return t||(u=mn[i],mn[i]=o,o=null!=e(l,n,t)?i:null,mn[i]=u),o}});var hn=/^(?:input|select|textarea|button)$/i,gn=/^(?:a|area)$/i;function vn(l){return(l.match(P)||[]).join(" ")}function bn(l){return l.getAttribute&&l.getAttribute("class")||""}function yn(l){return Array.isArray(l)?l:"string"==typeof l&&l.match(P)||[]}w.fn.extend({prop:function(l,n){return H(this,w.prop,l,n,arguments.length>1)},removeProp:function(l){return this.each(function(){delete this[w.propFix[l]||l]})}}),w.extend({prop:function(l,n,e){var t,o,u=l.nodeType;if(3!==u&&8!==u&&2!==u)return 1===u&&w.isXMLDoc(l)||(n=w.propFix[n]||n,o=w.propHooks[n]),void 0!==e?o&&"set"in o&&void 0!==(t=o.set(l,e,n))?t:l[n]=e:o&&"get"in o&&null!==(t=o.get(l,n))?t:l[n]},propHooks:{tabIndex:{get:function(l){var n=w.find.attr(l,"tabindex");return n?parseInt(n,10):hn.test(l.nodeName)||gn.test(l.nodeName)&&l.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(w.propHooks.selected={get:function(l){var n=l.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(l){var n=l.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(l){var n,e,t,o,u,i,a,r=0;if(y(l))return this.each(function(n){w(this).addClass(l.call(this,n,bn(this)))});if((n=yn(l)).length)for(;e=this[r++];)if(o=bn(e),t=1===e.nodeType&&" "+vn(o)+" "){for(i=0;u=n[i++];)t.indexOf(" "+u+" ")<0&&(t+=u+" ");o!==(a=vn(t))&&e.setAttribute("class",a)}return this},removeClass:function(l){var n,e,t,o,u,i,a,r=0;if(y(l))return this.each(function(n){w(this).removeClass(l.call(this,n,bn(this)))});if(!arguments.length)return this.attr("class","");if((n=yn(l)).length)for(;e=this[r++];)if(o=bn(e),t=1===e.nodeType&&" "+vn(o)+" "){for(i=0;u=n[i++];)for(;t.indexOf(" "+u+" ")>-1;)t=t.replace(" "+u+" "," ");o!==(a=vn(t))&&e.setAttribute("class",a)}return this},toggleClass:function(l,n){var e=typeof l,t="string"===e||Array.isArray(l);return"boolean"==typeof n&&t?n?this.addClass(l):this.removeClass(l):y(l)?this.each(function(e){w(this).toggleClass(l.call(this,e,bn(this),n),n)}):this.each(function(){var n,o,u,i;if(t)for(o=0,u=w(this),i=yn(l);n=i[o++];)u.hasClass(n)?u.removeClass(n):u.addClass(n);else void 0!==l&&"boolean"!==e||((n=bn(this))&&J.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===l?"":J.get(this,"__className__")||""))})},hasClass:function(l){var n,e,t=0;for(n=" "+l+" ";e=this[t++];)if(1===e.nodeType&&(" "+vn(bn(e))+" ").indexOf(n)>-1)return!0;return!1}});var xn=/\r/g;w.fn.extend({val:function(l){var n,e,t,o=this[0];return arguments.length?(t=y(l),this.each(function(e){var o;1===this.nodeType&&(null==(o=t?l.call(this,e,w(this).val()):l)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,function(l){return null==l?"":l+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,o,"value")||(this.value=o))})):o?(n=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(xn,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(l){var n=w.find.attr(l,"value");return null!=n?n:vn(w.text(l))}},select:{get:function(l){var n,e,t,o=l.options,u=l.selectedIndex,i="select-one"===l.type,a=i?null:[],r=i?u+1:o.length;for(t=u<0?r:i?u:0;t-1)&&(e=!0);return e||(l.selectedIndex=-1),u}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(l,n){if(Array.isArray(n))return l.checked=w.inArray(w(l).val(),n)>-1}},b.checkOn||(w.valHooks[this].get=function(l){return null===l.getAttribute("value")?"on":l.value})}),b.focusin="onfocusin"in e;var An=/^(?:focusinfocus|focusoutblur)$/,_n=function(l){l.stopPropagation()};w.extend(w.event,{trigger:function(l,n,t,o){var u,i,r,s,d,c,p,f,m=[t||a],g=h.call(l,"type")?l.type:l,v=h.call(l,"namespace")?l.namespace.split("."):[];if(i=f=r=t=t||a,3!==t.nodeType&&8!==t.nodeType&&!An.test(g+w.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),d=g.indexOf(":")<0&&"on"+g,(l=l[w.expando]?l:new w.Event(g,"object"==typeof l&&l)).isTrigger=o?2:3,l.namespace=v.join("."),l.rnamespace=l.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l.result=void 0,l.target||(l.target=t),n=null==n?[l]:w.makeArray(n,[l]),p=w.event.special[g]||{},o||!p.trigger||!1!==p.trigger.apply(t,n))){if(!o&&!p.noBubble&&!x(t)){for(s=p.delegateType||g,An.test(s+g)||(i=i.parentNode);i;i=i.parentNode)m.push(i),r=i;r===(t.ownerDocument||a)&&m.push(r.defaultView||r.parentWindow||e)}for(u=0;(i=m[u++])&&!l.isPropagationStopped();)f=i,l.type=u>1?s:p.bindType||g,(c=(J.get(i,"events")||{})[l.type]&&J.get(i,"handle"))&&c.apply(i,n),(c=d&&i[d])&&c.apply&&K(i)&&(l.result=c.apply(i,n),!1===l.result&&l.preventDefault());return l.type=g,o||l.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),n)||!K(t)||d&&y(t[g])&&!x(t)&&((r=t[d])&&(t[d]=null),w.event.triggered=g,l.isPropagationStopped()&&f.addEventListener(g,_n),t[g](),l.isPropagationStopped()&&f.removeEventListener(g,_n),w.event.triggered=void 0,r&&(t[d]=r)),l.result}},simulate:function(l,n,e){var t=w.extend(new w.Event,e,{type:l,isSimulated:!0});w.event.trigger(t,null,n)}}),w.fn.extend({trigger:function(l,n){return this.each(function(){w.event.trigger(l,n,this)})},triggerHandler:function(l,n){var e=this[0];if(e)return w.event.trigger(l,n,e,!0)}}),b.focusin||w.each({focus:"focusin",blur:"focusout"},function(l,n){var e=function(l){w.event.simulate(n,l.target,w.event.fix(l))};w.event.special[n]={setup:function(){var t=this.ownerDocument||this,o=J.access(t,n);o||t.addEventListener(l,e,!0),J.access(t,n,(o||0)+1)},teardown:function(){var t=this.ownerDocument||this,o=J.access(t,n)-1;o?J.access(t,n,o):(t.removeEventListener(l,e,!0),J.remove(t,n))}}});var Cn=e.location,wn=Date.now(),Rn=/\?/;w.parseXML=function(l){var n;if(!l||"string"!=typeof l)return null;try{n=(new e.DOMParser).parseFromString(l,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+l),n};var Ln=/\[\]$/,Mn=/\r?\n/g,En=/^(?:submit|button|image|reset|file)$/i,On=/^(?:input|select|textarea|keygen)/i;function Sn(l,n,e,t){var o;if(Array.isArray(n))w.each(n,function(n,o){e||Ln.test(l)?t(l,o):Sn(l+"["+("object"==typeof o&&null!=o?n:"")+"]",o,e,t)});else if(e||"object"!==C(n))t(l,n);else for(o in n)Sn(l+"["+o+"]",n[o],e,t)}w.param=function(l,n){var e,t=[],o=function(l,n){var e=y(n)?n():n;t[t.length]=encodeURIComponent(l)+"="+encodeURIComponent(null==e?"":e)};if(Array.isArray(l)||l.jquery&&!w.isPlainObject(l))w.each(l,function(){o(this.name,this.value)});else for(e in l)Sn(e,l[e],n,o);return t.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var l=w.prop(this,"elements");return l?w.makeArray(l):this}).filter(function(){var l=this.type;return this.name&&!w(this).is(":disabled")&&On.test(this.nodeName)&&!En.test(l)&&(this.checked||!fl.test(l))}).map(function(l,n){var e=w(this).val();return null==e?null:Array.isArray(e)?w.map(e,function(l){return{name:n.name,value:l.replace(Mn,"\r\n")}}):{name:n.name,value:e.replace(Mn,"\r\n")}}).get()}});var kn=/%20/g,In=/#.*$/,Fn=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dn=/^(?:GET|HEAD)$/,zn=/^\/\//,qn={},Tn={},Pn="*/".concat("*"),Bn=a.createElement("a");function Vn(l){return function(n,e){"string"!=typeof n&&(e=n,n="*");var t,o=0,u=n.toLowerCase().match(P)||[];if(y(e))for(;t=u[o++];)"+"===t[0]?(t=t.slice(1)||"*",(l[t]=l[t]||[]).unshift(e)):(l[t]=l[t]||[]).push(e)}}function Un(l,n,e,t){var o={},u=l===Tn;function i(a){var r;return o[a]=!0,w.each(l[a]||[],function(l,a){var s=a(n,e,t);return"string"!=typeof s||u||o[s]?u?!(r=s):void 0:(n.dataTypes.unshift(s),i(s),!1)}),r}return i(n.dataTypes[0])||!o["*"]&&i("*")}function Wn(l,n){var e,t,o=w.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((o[e]?l:t||(t={}))[e]=n[e]);return t&&w.extend(!0,l,t),l}Bn.href=Cn.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Cn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(l,n){return n?Wn(Wn(l,w.ajaxSettings),n):Wn(w.ajaxSettings,l)},ajaxPrefilter:Vn(qn),ajaxTransport:Vn(Tn),ajax:function(l,n){"object"==typeof l&&(n=l,l=void 0),n=n||{};var t,o,u,i,r,s,d,c,p,f,m=w.ajaxSetup({},n),h=m.context||m,g=m.context&&(h.nodeType||h.jquery)?w(h):w.event,v=w.Deferred(),b=w.Callbacks("once memory"),y=m.statusCode||{},x={},A={},_="canceled",C={readyState:0,getResponseHeader:function(l){var n;if(d){if(!i)for(i={};n=Nn.exec(u);)i[n[1].toLowerCase()]=n[2];n=i[l.toLowerCase()]}return null==n?null:n},getAllResponseHeaders:function(){return d?u:null},setRequestHeader:function(l,n){return null==d&&(l=A[l.toLowerCase()]=A[l.toLowerCase()]||l,x[l]=n),this},overrideMimeType:function(l){return null==d&&(m.mimeType=l),this},statusCode:function(l){var n;if(l)if(d)C.always(l[C.status]);else for(n in l)y[n]=[y[n],l[n]];return this},abort:function(l){var n=l||_;return t&&t.abort(n),R(0,n),this}};if(v.promise(C),m.url=((l||m.url||Cn.href)+"").replace(zn,Cn.protocol+"//"),m.type=n.method||n.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(P)||[""],null==m.crossDomain){s=a.createElement("a");try{s.href=m.url,s.href=s.href,m.crossDomain=Bn.protocol+"//"+Bn.host!=s.protocol+"//"+s.host}catch(L){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=w.param(m.data,m.traditional)),Un(qn,m,n,C),d)return C;for(p in(c=w.event&&m.global)&&0==w.active++&&w.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Dn.test(m.type),o=m.url.replace(In,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(kn,"+")):(f=m.url.slice(o.length),m.data&&(m.processData||"string"==typeof m.data)&&(o+=(Rn.test(o)?"&":"?")+m.data,delete m.data),!1===m.cache&&(o=o.replace(Fn,"$1"),f=(Rn.test(o)?"&":"?")+"_="+wn+++f),m.url=o+f),m.ifModified&&(w.lastModified[o]&&C.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&C.setRequestHeader("If-None-Match",w.etag[o])),(m.data&&m.hasContent&&!1!==m.contentType||n.contentType)&&C.setRequestHeader("Content-Type",m.contentType),C.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Pn+"; q=0.01":""):m.accepts["*"]),m.headers)C.setRequestHeader(p,m.headers[p]);if(m.beforeSend&&(!1===m.beforeSend.call(h,C,m)||d))return C.abort();if(_="abort",b.add(m.complete),C.done(m.success),C.fail(m.error),t=Un(Tn,m,n,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,m]),d)return C;m.async&&m.timeout>0&&(r=e.setTimeout(function(){C.abort("timeout")},m.timeout));try{d=!1,t.send(x,R)}catch(L){if(d)throw L;R(-1,L)}}else R(-1,"No Transport");function R(l,n,i,a){var s,p,f,x,A,_=n;d||(d=!0,r&&e.clearTimeout(r),t=void 0,u=a||"",C.readyState=l>0?4:0,s=l>=200&&l<300||304===l,i&&(x=function(l,n,e){for(var t,o,u,i,a=l.contents,r=l.dataTypes;"*"===r[0];)r.shift(),void 0===t&&(t=l.mimeType||n.getResponseHeader("Content-Type"));if(t)for(o in a)if(a[o]&&a[o].test(t)){r.unshift(o);break}if(r[0]in e)u=r[0];else{for(o in e){if(!r[0]||l.converters[o+" "+r[0]]){u=o;break}i||(i=o)}u=u||i}if(u)return u!==r[0]&&r.unshift(u),e[u]}(m,C,i)),x=function(l,n,e,t){var o,u,i,a,r,s={},d=l.dataTypes.slice();if(d[1])for(i in l.converters)s[i.toLowerCase()]=l.converters[i];for(u=d.shift();u;)if(l.responseFields[u]&&(e[l.responseFields[u]]=n),!r&&t&&l.dataFilter&&(n=l.dataFilter(n,l.dataType)),r=u,u=d.shift())if("*"===u)u=r;else if("*"!==r&&r!==u){if(!(i=s[r+" "+u]||s["* "+u]))for(o in s)if((a=o.split(" "))[1]===u&&(i=s[r+" "+a[0]]||s["* "+a[0]])){!0===i?i=s[o]:!0!==s[o]&&(u=a[0],d.unshift(a[1]));break}if(!0!==i)if(i&&l.throws)n=i(n);else try{n=i(n)}catch(L){return{state:"parsererror",error:i?L:"No conversion from "+r+" to "+u}}}return{state:"success",data:n}}(m,x,C,s),s?(m.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=A),(A=C.getResponseHeader("etag"))&&(w.etag[o]=A)),204===l||"HEAD"===m.type?_="nocontent":304===l?_="notmodified":(_=x.state,p=x.data,s=!(f=x.error))):(f=_,!l&&_||(_="error",l<0&&(l=0))),C.status=l,C.statusText=(n||_)+"",s?v.resolveWith(h,[p,_,C]):v.rejectWith(h,[C,_,f]),C.statusCode(y),y=void 0,c&&g.trigger(s?"ajaxSuccess":"ajaxError",[C,m,s?p:f]),b.fireWith(h,[C,_]),c&&(g.trigger("ajaxComplete",[C,m]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(l,n,e){return w.get(l,n,e,"json")},getScript:function(l,n){return w.get(l,void 0,n,"script")}}),w.each(["get","post"],function(l,n){w[n]=function(l,e,t,o){return y(e)&&(o=o||t,t=e,e=void 0),w.ajax(w.extend({url:l,type:n,dataType:o,data:e,success:t},w.isPlainObject(l)&&l))}}),w._evalUrl=function(l){return w.ajax({url:l,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(l){var n;return this[0]&&(y(l)&&(l=l.call(this[0])),n=w(l,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var l=this;l.firstElementChild;)l=l.firstElementChild;return l}).append(this)),this},wrapInner:function(l){return y(l)?this.each(function(n){w(this).wrapInner(l.call(this,n))}):this.each(function(){var n=w(this),e=n.contents();e.length?e.wrapAll(l):n.append(l)})},wrap:function(l){var n=y(l);return this.each(function(e){w(this).wrapAll(n?l.call(this,e):l)})},unwrap:function(l){return this.parent(l).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(l){return!w.expr.pseudos.visible(l)},w.expr.pseudos.visible=function(l){return!!(l.offsetWidth||l.offsetHeight||l.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(l){}};var Gn={0:200,1223:204},jn=w.ajaxSettings.xhr();b.cors=!!jn&&"withCredentials"in jn,b.ajax=jn=!!jn,w.ajaxTransport(function(l){var n,t;if(b.cors||jn&&!l.crossDomain)return{send:function(o,u){var i,a=l.xhr();if(a.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(i in l.xhrFields)a[i]=l.xhrFields[i];for(i in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(i,o[i]);n=function(l){return function(){n&&(n=t=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===l?a.abort():"error"===l?"number"!=typeof a.status?u(0,"error"):u(a.status,a.statusText):u(Gn[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),t=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=t:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&t()})},n=n("abort");try{a.send(l.hasContent&&l.data||null)}catch(r){if(n)throw r}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(l){l.crossDomain&&(l.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(l){return w.globalEval(l),l}}}),w.ajaxPrefilter("script",function(l){void 0===l.cache&&(l.cache=!1),l.crossDomain&&(l.type="GET")}),w.ajaxTransport("script",function(l){var n,e;if(l.crossDomain)return{send:function(t,o){n=w("