@progress/kendo-vue-editor 3.3.5-dev.202206141337 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-vue-intl","@progress/kendo-drawing","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):e.KendoVueEditor=t(e.Vue,e.KendoVueIntl,e.KendoDrawing,e.KendoLicensing)}(window,(function(e,t,n,i){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=155)}([function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return r})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return s})),n.d(t,"noop",(function(){return V})),n.d(t,"isObject",(function(){return i})),n.d(t,"getListeners",(function(){return A})),n.d(t,"hasListener",(function(){return E})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"focusFirstFocusableChild",(function(){return l})),n.d(t,"clone",(function(){return O})),n.d(t,"Draggable",(function(){return x})),n.d(t,"cloneArray",(function(){return D})),n.d(t,"cloneValue",(function(){return T})),n.d(t,"cloneObject",(function(){return I})),n.d(t,"cloneDate",(function(){return $})),n.d(t,"getTemplate",(function(){return K})),n.d(t,"templateRendering",(function(){return z})),n.d(t,"templateDefinition",(function(){return F})),n.d(t,"getTabIndex",(function(){return H})),n.d(t,"getDefaultSlots",(function(){return w})),n.d(t,"isRtl",(function(){return W})),n.d(t,"getDir",(function(){return U})),n.d(t,"getter",(function(){return R})),n.d(t,"setter",(function(){return P})),n.d(t,"validatePackage",(function(){return G})),n.d(t,"kendoThemeMaps",(function(){return J}));var i=function(e){return"object"==typeof e},r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):i(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},s={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},u=n(1),d=function(e,t){return function(n){return t(e(n))}},c=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},p=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},h=function(){},f=function(e){return e.preventDefault()},v=/touch/;function m(e){return e.type.match(v)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var g=function(e){var t=this,n=e.press;void 0===n&&(n=h);var i=e.drag;void 0===i&&(i=h);var r=e.release;void 0===r&&(r=h);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=d(m,n),this._dragHandler=d(m,i),this._releaseHandler=d(m,r),this._ignoreMouse=!1,this._mouseOnly=o,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(c(t.document,"mousemove",t._mousemove),c(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){p(t.document,"mousemove",t._mousemove),p(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(c(t.document,"pointermove",t._pointermove),c(t.document,"pointerup",t._pointerup),c(t.document,"pointercancel",t._pointerup),c(t.document,"contextmenu",f),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(p(t.document,"pointermove",t._pointermove),p(t.document,"pointerup",t._pointerup),p(t.document,"pointercancel",t._pointerup),p(t.document,"contextmenu",f),t._releaseHandler(e))}},b={document:{configurable:!0}};g.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},b.document.get=function(){return this._element?this._element.ownerDocument:document},g.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},g.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?c(e,"pointerdown",this._pointerdown):(c(e,"mousedown",this._mousedown),this._mouseOnly||(c(e,"touchstart",this._touchstart),c(e,"touchmove",this._touchmove),c(e,"touchend",this._touchend)))},g.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return p(e,"pointerdown",this._pointerdown),p(this.document,"pointermove",this._pointermove),p(this.document,"pointerup",this._pointerup),p(this.document,"contextmenu",f),void p(this.document,"pointercancel",this._pointerup);p(e,"mousedown",this._mousedown),this._mouseOnly||(p(e,"touchstart",this._touchstart),p(e,"touchmove",this._touchmove),p(e,"touchend",this._touchend))},g.prototype._usePointers=function(){return!this._mouseOnly&&g.supportPointerEvent()},g.prototype.update=function(e){var t=e.press;void 0===t&&(t=h);var n=e.drag;void 0===n&&(n=h);var i=e.release;void 0===i&&(i=h);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=d(m,t),this._dragHandler=d(m,n),this._releaseHandler=d(m,i),this._mouseOnly=r},g.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(g.prototype,b),g.default=g;var y,k=g;function w(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=u.h,x=(S(y={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new k({press:this.press,drag:this.drag,release:this.release})},setup:C?function(){return{v3:!!C}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:C?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",C?function(){return{v3:!!C}}:void 0),S(y,"render",(function(e){return w(this)})),y),$=function(e){return e?new Date(e.getTime()):null};function O(e){var t={};return I(e,t),t}function I(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=T(i,t[n])}}function T(e,t){if(Array.isArray(e))return D(e);if(e instanceof Date)return $(e);if(e&&i(e)){var n=t||{};return I(e,n),n}return e}function D(e){return e.map((function(e){return T(e,void 0)}))}var V=function(){},M=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,N={};function R(e){if(N[e])return N[e];var t=[];return e.replace(M,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),N[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},N[e]}N.undefined=function(){};var B={};function P(e){if(B[e])return B[e];var t=[];return e.replace(M,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),B[e]=function(e,n){for(var i=e,r=t.length-1,o=0;o<r&&i;o++)i=i[t[o]]=i[t[o]]||{};i[t[r]]=n},B[e]}function E(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function A(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}B.undefined=function(e){return e};var j=function(){return(j=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},L=u.h,F={type:[String,Function,Object,Boolean],default:function(){}};function z(e,t){if(e||!1===e){var n=L?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||i(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function K(e){var t,n,i,r=e.h,o=e.template,s=e.defaultRendering,a=e.defaultSlots,l=e.additionalProps,u=e.additionalListeners,d=e.swapDefaultSlots;if(!o||o&&!0===o.render)return s;if(L){var c=s?s.props:{};t=j(j({},_(u)),o.listeners),n=j(j(j({},c),l),t),i=j(j({},n),t)}else{var p=s&&s.componentOptions,h=p?s.componentOptions.listeners:{},f=p?s.componentOptions.propsData:{};t=j(j(j(j({},h),u),_(u)),o.listeners),i={props:n=j(j(j({},f),l),t),on:t}}if("slot"===o.type){var v=o.render({props:n,listeners:t,methods:t,defaultSlots:a});return v?v[0]:void 0}return"renderFunction"===o.type?d?o.render?o.render(r,s,a,n,t):void 0:o.render?o.render(r,s,n,t,a):void 0:r(o.render,i,L?function(){return[a]}:[a])}function _(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];t["on"+r.charAt(0).toUpperCase()+r.slice(1)]=e[r]}return t}var H=function(e,t,n){var i="string"==typeof e?parseInt(e,void 0):e;if(NaN!==i)return void 0!==i?i:t?n?void 0:-1:0};function W(e){return Boolean(a&&e&&"rtl"===getComputedStyle(e).direction)}function U(e,t){if(!t&&a&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var q=n(29);function G(e){if(void 0!==q)q.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var J={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,n){t.exports=e},function(e,t,n){"use strict";var i;n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return c})),n.d(t,"c",(function(){return p}));var r="numerictextbox.increment",o="numerictextbox.decrement",s="slider.increment",a="slider.decrement",l="slider.dragTitle",u="checkbox.validation",d="checkbox.optionalText",c="switch.validation",p=((i={})[r]="Increase value",i[o]="Decrease value",i[s]="Increase",i[a]="Decrease",i[l]="Drag",i["colorGradient.r"]="r",i["colorGradient.g"]="g",i["colorGradient.b"]="b",i["colorGradient.a"]="a",i["colorGradient.hex"]="hex",i["colorGradient.contrastRatio"]="Contrast ratio",i["colorGradient.colorGradientAALevel"]="AA",i["colorGradient.colorGradientAAALevel"]="AAA",i["colorGradient.colorGradientPass"]="Pass",i["colorGradient.colorGradientFail"]="Fail",i[u]="Please check this box if you want to proceed!",i[d]="(Optional)",i["radioButton.validation"]="Please select option if you want to proceed!",i[c]="Please turn on if you want to proceed!",i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"n",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"k",(function(){return c})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return v})),n.d(t,"e",(function(){return m}));var i="",r="0";function o(e,t){if(p(e))return t[Number(e)];var n=t[Number(s(e))];return n.items?o(function(e){if(c(e))return e;var t=e.indexOf("_");return e.substring(t+1)}(e),n.items):void 0}function s(e){return c(e)?e:e.split("_")[0]}function a(e){return u("0",e)}function l(e,t){return 0===t.indexOf(e)&&(t.length===e.length||"_"===t.charAt(e.length))}function u(e,t){return t?t+"_"+e:e}function d(e){var t=e.lastIndexOf("_");return t<0?i:e.substring(0,t)}function c(e){return e===i||e.indexOf("_")<0}function p(e){return e!==i&&e.indexOf("_")<0}function h(e){return 1===function(e){return e.split("_").length-1}(e)}function f(e){return v(e)===r}function v(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}function m(e,t,n){return p(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var i=n(19);n.d(t,"Button",(function(){return i.a})),n.d(t,"ButtonVue2",(function(){return i.b}));var r=n(55);n.d(t,"ButtonGroup",(function(){return r.a})),n.d(t,"ButtonGroupVue2",(function(){return r.b}));var o=n(25);n.d(t,"Chip",(function(){return o.a})),n.d(t,"ChipVue2",(function(){return o.b}));var s=n(46);n.d(t,"ChipList",(function(){return s.a})),n.d(t,"ChipListVue2",(function(){return s.b}));var a=n(56);n.d(t,"FloatingActionButton",(function(){return a.a})),n.d(t,"FloatingActionButtonVue2",(function(){return a.b}));var l=n(26);n.d(t,"FloatingActionButtonItem",(function(){return l.a})),n.d(t,"FloatingActionButtonItemVue2",(function(){return l.b}));var u=n(57);for(var d in u)["default","Toolbar","ToolbarVue2","ToolbarItem","ToolbarItemVue2","ToolbarSeparator","ToolbarSeparatorVue2","ToolbarSpacer","ToolbarSpacerVue2","Button","ButtonVue2","ButtonGroup","ButtonGroupVue2","SplitButton","SplitButtonVue2","DropDownButton","DropDownButtonVue2","Chip","ChipVue2","ChipList","ChipListVue2","FloatingActionButton","FloatingActionButtonVue2","FloatingActionButtonItem","FloatingActionButtonItemVue2"].indexOf(d)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(d);var c=n(47);n.d(t,"SplitButton",(function(){return c.a})),n.d(t,"SplitButtonVue2",(function(){return c.b}));var p=n(48);n.d(t,"DropDownButton",(function(){return p.a})),n.d(t,"DropDownButtonVue2",(function(){return p.b}));var h=n(49);n.d(t,"Toolbar",(function(){return h.a})),n.d(t,"ToolbarVue2",(function(){return h.b}));var f=n(27);n.d(t,"ToolbarItem",(function(){return f.a})),n.d(t,"ToolbarItemVue2",(function(){return f.b}));var v=n(50);n.d(t,"ToolbarSeparator",(function(){return v.a})),n.d(t,"ToolbarSeparatorVue2",(function(){return v.b}));var m=n(51);n.d(t,"ToolbarSpacer",(function(){return m.a})),n.d(t,"ToolbarSpacerVue2",(function(){return m.b}))},function(e,t,n){"use strict";function i(e){this.content=e}n.r(t),n.d(t,"getHtml",(function(){return Nt})),n.d(t,"setHtml",(function(){return Rt})),n.d(t,"parseContent",(function(){return Mt})),n.d(t,"trimWhitespace",(function(){return It})),n.d(t,"htmlToFragment",(function(){return Tt})),n.d(t,"domToPmDoc",(function(){return Vt})),n.d(t,"pmDocToFragment",(function(){return Dt})),n.d(t,"applyInlineStyle",(function(){return cn})),n.d(t,"getInlineStyles",(function(){return ln})),n.d(t,"toggleInlineFormat",(function(){return dn})),n.d(t,"applyLink",(function(){return hn})),n.d(t,"removeLink",(function(){return pn})),n.d(t,"insertText",(function(){return fn})),n.d(t,"insertImage",(function(){return vn})),n.d(t,"alignBlocks",(function(){return $n})),n.d(t,"isAligned",(function(){return On})),n.d(t,"cleanFormatting",(function(){return In})),n.d(t,"hasNode",(function(){return Sn})),n.d(t,"activeNode",(function(){return xn})),n.d(t,"formatBlockElements",(function(){return bn})),n.d(t,"getBlockFormats",(function(){return kn})),n.d(t,"parentBlockFormat",(function(){return Cn})),n.d(t,"changeTextBlock",(function(){return mn})),n.d(t,"blockNodes",(function(){return gn})),n.d(t,"cleanTextBlockFormatting",(function(){return yn})),n.d(t,"hasMark",(function(){return en})),n.d(t,"getMark",(function(){return rn})),n.d(t,"getActiveMarks",(function(){return on})),n.d(t,"removeAllMarks",(function(){return Zt})),n.d(t,"cleanMarks",(function(){return Qt})),n.d(t,"selectionMarks",(function(){return nn})),n.d(t,"indent",(function(){return Ri})),n.d(t,"canIndentAsListItem",(function(){return Vi})),n.d(t,"outdent",(function(){return Bi})),n.d(t,"canOutdentAsListItem",(function(){return Mi})),n.d(t,"isIndented",(function(){return Di})),n.d(t,"canBeIndented",(function(){return Ni})),n.d(t,"indentBlocks",(function(){return Ti})),n.d(t,"toggleOrderedList",(function(){return _i})),n.d(t,"toggleUnorderedList",(function(){return Ki})),n.d(t,"toggleList",(function(){return zi})),n.d(t,"listStyle",(function(){return Fi})),n.d(t,"blockquote",(function(){return Oi})),n.d(t,"liftBlockquote",(function(){return Ii})),n.d(t,"hasSameMarkup",(function(){return zt})),n.d(t,"getSelectionText",(function(){return Kt})),n.d(t,"getNodeFromSelection",(function(){return _t})),n.d(t,"selectedLineTextOnly",(function(){return Ht})),n.d(t,"expandSelection",(function(){return qt})),n.d(t,"expandToWordWrap",(function(){return Gt})),n.d(t,"canInsert",(function(){return At})),n.d(t,"insertNode",(function(){return Ft})),n.d(t,"indentHtml",(function(){return Wt})),n.d(t,"alignLeftRules",(function(){return Wi})),n.d(t,"alignCenterRules",(function(){return qi})),n.d(t,"alignRightRules",(function(){return Ui})),n.d(t,"alignJustifyRules",(function(){return Gi})),n.d(t,"alignRemoveRules",(function(){return Ji})),n.d(t,"indentRules",(function(){return _n})),n.d(t,"outdentRules",(function(){return Hn})),n.d(t,"nodes",(function(){return Jl})),n.d(t,"marks",(function(){return _l})),n.d(t,"buildKeymap",(function(){return Lu})),n.d(t,"buildListKeymap",(function(){return Fu})),n.d(t,"bold",(function(){return Mu})),n.d(t,"italic",(function(){return Nu})),n.d(t,"underline",(function(){return Ru})),n.d(t,"strikethrough",(function(){return Bu})),n.d(t,"subscript",(function(){return Pu})),n.d(t,"superscript",(function(){return Eu})),n.d(t,"link",(function(){return Au})),n.d(t,"sanitize",(function(){return Xu})),n.d(t,"removeComments",(function(){return Yu})),n.d(t,"removeTag",(function(){return Zu})),n.d(t,"pasteCleanup",(function(){return rd})),n.d(t,"sanitizeClassAttr",(function(){return ed})),n.d(t,"sanitizeStyleAttr",(function(){return id})),n.d(t,"removeAttribute",(function(){return Qu})),n.d(t,"replaceImageSourcesFromRtf",(function(){return pd})),n.d(t,"convertMsLists",(function(){return Ju})),n.d(t,"find",(function(){return fd})),n.d(t,"findAt",(function(){return hd})),n.d(t,"findAll",(function(){return vd})),n.d(t,"replace",(function(){return md})),n.d(t,"replaceAll",(function(){return gd})),n.d(t,"placeholder",(function(){return wd})),n.d(t,"spacesFix",(function(){return xd})),n.d(t,"textHighlight",(function(){return Od})),n.d(t,"textHighlightKey",(function(){return $d})),n.d(t,"imageResizing",(function(){return Pd})),n.d(t,"imageResizeKey",(function(){return Id})),n.d(t,"caretColor",(function(){return Ad})),n.d(t,"caretColorKey",(function(){return Ed})),n.d(t,"autoJoin",(function(){return bi})),n.d(t,"baseKeymap",(function(){return $i})),n.d(t,"chainCommands",(function(){return yi})),n.d(t,"createParagraphNear",(function(){return oi})),n.d(t,"deleteSelection",(function(){return Wn})),n.d(t,"exitCode",(function(){return ri})),n.d(t,"joinBackward",(function(){return Un})),n.d(t,"joinDown",(function(){return ei})),n.d(t,"joinForward",(function(){return Xn})),n.d(t,"joinUp",(function(){return Qn})),n.d(t,"lift",(function(){return ti})),n.d(t,"liftEmptyBlock",(function(){return si})),n.d(t,"macBaseKeymap",(function(){return Ci})),n.d(t,"newlineInCode",(function(){return ni})),n.d(t,"pcBaseKeymap",(function(){return Si})),n.d(t,"selectAll",(function(){return di})),n.d(t,"selectNodeBackward",(function(){return Gn})),n.d(t,"selectNodeForward",(function(){return Yn})),n.d(t,"selectParentNode",(function(){return ui})),n.d(t,"selectTextblockEnd",(function(){return fi})),n.d(t,"selectTextblockStart",(function(){return hi})),n.d(t,"setBlockType",(function(){return mi})),n.d(t,"splitBlock",(function(){return ai})),n.d(t,"splitBlockKeepMarks",(function(){return li})),n.d(t,"toggleMark",(function(){return gi})),n.d(t,"wrapIn",(function(){return vi})),n.d(t,"dropCursor",(function(){return jd})),n.d(t,"GapCursor",(function(){return Fd})),n.d(t,"gapCursor",(function(){return Kd})),n.d(t,"HistoryState",(function(){return nu})),n.d(t,"closeHistory",(function(){return du})),n.d(t,"history",(function(){return hu})),n.d(t,"redo",(function(){return vu})),n.d(t,"redoDepth",(function(){return gu})),n.d(t,"undo",(function(){return fu})),n.d(t,"undoDepth",(function(){return mu})),n.d(t,"InputRule",(function(){return bu})),n.d(t,"closeDoubleQuote",(function(){return $u})),n.d(t,"closeSingleQuote",(function(){return Iu})),n.d(t,"ellipsis",(function(){return Cu})),n.d(t,"emDash",(function(){return Su})),n.d(t,"inputRules",(function(){return yu})),n.d(t,"openDoubleQuote",(function(){return xu})),n.d(t,"openSingleQuote",(function(){return Ou})),n.d(t,"smartQuotes",(function(){return Tu})),n.d(t,"textblockTypeInputRule",(function(){return Vu})),n.d(t,"undoInputRule",(function(){return wu})),n.d(t,"wrappingInputRule",(function(){return Du})),n.d(t,"keydownHandler",(function(){return dr})),n.d(t,"keymap",(function(){return ur})),n.d(t,"ContentMatch",(function(){return R})),n.d(t,"DOMParser",(function(){return ee})),n.d(t,"DOMSerializer",(function(){return ce})),n.d(t,"Fragment",(function(){return o})),n.d(t,"Mark",(function(){return d})),n.d(t,"MarkType",(function(){return Y})),n.d(t,"Node",(function(){return D})),n.d(t,"NodeRange",(function(){return O})),n.d(t,"NodeType",(function(){return q})),n.d(t,"ReplaceError",(function(){return c})),n.d(t,"ResolvedPos",(function(){return w})),n.d(t,"Schema",(function(){return Z})),n.d(t,"Slice",(function(){return p})),n.d(t,"addListNodes",(function(){return Pn})),n.d(t,"bulletList",(function(){return Nn})),n.d(t,"liftListItem",(function(){return jn})),n.d(t,"listItem",(function(){return Rn})),n.d(t,"orderedList",(function(){return Mn})),n.d(t,"sinkListItem",(function(){return Ln})),n.d(t,"splitListItem",(function(){return An})),n.d(t,"wrapInList",(function(){return En})),n.d(t,"AllSelection",(function(){return at})),n.d(t,"EditorState",(function(){return mt})),n.d(t,"NodeSelection",(function(){return ot})),n.d(t,"Plugin",(function(){return yt})),n.d(t,"PluginKey",(function(){return St})),n.d(t,"Selection",(function(){return et})),n.d(t,"SelectionRange",(function(){return nt})),n.d(t,"TextSelection",(function(){return it})),n.d(t,"Transaction",(function(){return ct})),n.d(t,"CellSelection",(function(){return Da})),n.d(t,"TableMap",(function(){return ua})),n.d(t,"TableView",(function(){return wl})),n.d(t,"__clipCells",(function(){return Ba})),n.d(t,"__insertCells",(function(){return Aa})),n.d(t,"__pastedCells",(function(){return Na})),n.d(t,"addColSpan",(function(){return Ia})),n.d(t,"addColumn",(function(){return Za})),n.d(t,"addColumnAfter",(function(){return el})),n.d(t,"addColumnBefore",(function(){return Qa})),n.d(t,"addRow",(function(){return rl})),n.d(t,"cellAround",(function(){return ma})),n.d(t,"colCount",(function(){return Ca})),n.d(t,"columnIsHeader",(function(){return Ta})),n.d(t,"columnResizing",(function(){return xl})),n.d(t,"columnResizingPluginKey",(function(){return Cl})),n.d(t,"deleteColumn",(function(){return nl})),n.d(t,"deleteRow",(function(){return ll})),n.d(t,"deleteTable",(function(){return kl})),n.d(t,"findCell",(function(){return Sa})),n.d(t,"fixTables",(function(){return Xa})),n.d(t,"fixTablesKey",(function(){return Ja})),n.d(t,"goToNextCell",(function(){return yl})),n.d(t,"handlePaste",(function(){return Ha})),n.d(t,"inSameTable",(function(){return wa})),n.d(t,"isInTable",(function(){return ga})),n.d(t,"mergeCells",(function(){return dl})),n.d(t,"moveCellForward",(function(){return ka})),n.d(t,"nextCell",(function(){return xa})),n.d(t,"pointsAtCell",(function(){return ya})),n.d(t,"removeColSpan",(function(){return Oa})),n.d(t,"removeColumn",(function(){return tl})),n.d(t,"removeRow",(function(){return al})),n.d(t,"rowIsHeader",(function(){return il})),n.d(t,"selectedRect",(function(){return Ya})),n.d(t,"selectionCell",(function(){return ba})),n.d(t,"setAttr",(function(){return $a})),n.d(t,"setCellAttr",(function(){return hl})),n.d(t,"splitCell",(function(){return cl})),n.d(t,"splitCellWithType",(function(){return pl})),n.d(t,"tableEditing",(function(){return Vl})),n.d(t,"tableEditingKey",(function(){return va})),n.d(t,"tableNodeTypes",(function(){return fa})),n.d(t,"tableNodes",(function(){return ha})),n.d(t,"toggleHeader",(function(){return vl})),n.d(t,"toggleHeaderCell",(function(){return bl})),n.d(t,"toggleHeaderColumn",(function(){return gl})),n.d(t,"toggleHeaderRow",(function(){return ml})),n.d(t,"updateColumnsOnResize",(function(){return Sl})),n.d(t,"AddMarkStep",(function(){return Fe})),n.d(t,"MapResult",(function(){return me})),n.d(t,"Mapping",(function(){return be})),n.d(t,"RemoveMarkStep",(function(){return ze})),n.d(t,"ReplaceAroundStep",(function(){return Ie})),n.d(t,"ReplaceStep",(function(){return Oe})),n.d(t,"Step",(function(){return xe})),n.d(t,"StepMap",(function(){return ge})),n.d(t,"StepResult",(function(){return $e})),n.d(t,"Transform",(function(){return ke})),n.d(t,"TransformError",(function(){return ye})),n.d(t,"canJoin",(function(){return Be})),n.d(t,"canSplit",(function(){return Re})),n.d(t,"dropPoint",(function(){return je})),n.d(t,"findWrapping",(function(){return Me})),n.d(t,"insertPoint",(function(){return Ae})),n.d(t,"joinPoint",(function(){return Ee})),n.d(t,"liftTarget",(function(){return Ve})),n.d(t,"replaceStep",(function(){return Ke})),n.d(t,"Decoration",(function(){return Ps})),n.d(t,"DecorationSet",(function(){return Ls})),n.d(t,"EditorView",(function(){return Zs})),n.d(t,"__endComposition",(function(){return $s})),n.d(t,"__parseFromClipboard",(function(){return qo})),n.d(t,"__serializeForClipboard",(function(){return Uo})),n.d(t,"createTable",(function(){return qd})),n.d(t,"addRowAfter",(function(){return Xd})),n.d(t,"addRowBefore",(function(){return Jd})),n.d(t,"pmAddRowAfter",(function(){return sl})),n.d(t,"pmAddRowBefore",(function(){return ol})),i.prototype={constructor:i,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),s=r.content.slice();return-1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new i(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new i(n)},addToStart:function(e,t){return new i([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new i(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),s=r.find(e);return o.splice(-1==s?o.length:s,0,t,n),new i(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=i.from(e)).size?new i(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=i.from(e)).size?new i(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=i.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},i.from=function(e){if(e instanceof i)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new i(t)};var r=i;var o=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},s={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};o.prototype.nodesBetween=function(e,t,n,i,r){void 0===i&&(i=0);for(var o=0,s=0;s<t;o++){var a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,r,o)&&a.content.size){var u=s+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),n,i+u)}s=l}},o.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},o.prototype.textBetween=function(e,t,n,i){var r="",o=!0;return this.nodesBetween(e,t,(function(s,a){s.isText?(r+=s.text.slice(Math.max(e,a)-a,t-a),o=!n):s.isLeaf&&i?(r+="function"==typeof i?i(s):i,o=!n):!o&&s.isBlock&&(r+=n,o=!0)}),0),r},o.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,i=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)i.push(e.content[r]);return new o(i,this.size+e.size)},o.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],i=0;if(t>e)for(var r=0,s=0;s<t;r++){var a=this.content[r],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a=a.isText?a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),n.push(a),i+=a.nodeSize),s=l}return new o(n,i)},o.prototype.cutByIndex=function(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))},o.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var i=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new o(i,r)},o.prototype.addToStart=function(e){return new o([e].concat(this.content),this.size+e.nodeSize)},o.prototype.addToEnd=function(e){return new o(this.content.concat(e),this.size+e.nodeSize)},o.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},s.firstChild.get=function(){return this.content.length?this.content[0]:null},s.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},s.childCount.get=function(){return this.content.length},o.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},o.prototype.maybeChild=function(e){return this.content[e]},o.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var i=this.content[t];e(i,n,t),n+=i.nodeSize}},o.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),function e(t,n,i){for(var r=0;;r++){if(r==t.childCount||r==n.childCount)return t.childCount==n.childCount?null:i;var o=t.child(r),s=n.child(r);if(o!=s){if(!o.sameMarkup(s))return i;if(o.isText&&o.text!=s.text){for(var a=0;o.text[a]==s.text[a];a++)i++;return i}if(o.content.size||s.content.size){var l=e(o.content,s.content,i+1);if(null!=l)return l}i+=o.nodeSize}else i+=o.nodeSize}}(this,e,t)},o.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),function e(t,n,i,r){for(var o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:i,b:r};var a=t.child(--o),l=n.child(--s),u=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:i,b:r};if(a.isText&&a.text!=l.text){for(var d=0,c=Math.min(a.text.length,l.text.length);d<c&&a.text[a.text.length-d-1]==l.text[l.text.length-d-1];)d++,i--,r--;return{a:i,b:r}}if(a.content.size||l.content.size){var p=e(a.content,l.content,i-1,r-1);if(p)return p}i-=u,r-=u}else i-=u,r-=u}}(this,e,t,n)},o.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,i=0;;n++){var r=i+this.child(n).nodeSize;if(r>=e)return r==e||t>0?l(n+1,r):l(n,i);i=r}},o.prototype.toString=function(){return"<"+this.toStringInner()+">"},o.prototype.toStringInner=function(){return this.content.join(", ")},o.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},o.fromJSON=function(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new o(t.map(e.nodeFromJSON))},o.fromArray=function(e){if(!e.length)return o.empty;for(var t,n=0,i=0;i<e.length;i++){var r=e[i];n+=r.nodeSize,i&&r.isText&&e[i-1].sameMarkup(r)?(t||(t=e.slice(0,i)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}return new o(t||e,n)},o.from=function(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(o.prototype,s);var a={index:0,offset:0};function l(e,t){return a.index=e,a.offset=t,a}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!u(e[i],t[i]))return!1}else{for(var r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(var o in t)if(!(o in e))return!1}return!0}o.empty=new o([],0);var d=function(e,t){this.type=e,this.attrs=t};function c(e){var t=Error.call(this,e);return t.__proto__=c.prototype,t}d.prototype.addToSet=function(e){for(var t,n=!1,i=0;i<e.length;i++){var r=e[i];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,i));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t},d.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},d.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},d.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},d.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},d.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},d.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},d.setFrom=function(e){if(!e||0==e.length)return d.none;if(e instanceof d)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},d.none=[],c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.name="ReplaceError";var p=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},h={size:{configurable:!0}};function f(e,t,n){if(n.openStart>e.depth)throw new c("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new c("Inconsistent open depths");return function e(t,n,i,r){var s=t.index(r),a=t.node(r);if(s==n.index(r)&&r<t.depth-i.openStart){var l=e(t,n,i,r+1);return a.copy(a.content.replaceChild(s,l))}if(i.content.size){if(i.openStart||i.openEnd||t.depth!=r||n.depth!=r){var u=function(e,t){for(var n=t.depth-e.openStart,i=t.node(n).copy(e.content),r=n-1;r>=0;r--)i=t.node(r).copy(o.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(i,t),d=u.start,c=u.end;return y(a,function e(t,n,i,r,s){var a=t.depth>s&&m(t,n,s+1),l=r.depth>s&&m(i,r,s+1),u=[];b(null,t,s,u),a&&l&&n.index(s)==i.index(s)?(v(a,l),g(y(a,e(t,n,i,r,s+1)),u)):(a&&g(y(a,k(t,n,s+1)),u),b(n,i,s,u),l&&g(y(l,k(i,r,s+1)),u));return b(r,null,s,u),new o(u)}(t,d,c,n,r))}var p=t.parent,h=p.content;return y(p,h.cut(0,t.parentOffset).append(i.content).append(h.cut(n.parentOffset)))}return y(a,k(t,n,r))}(e,t,n,0)}function v(e,t){if(!t.type.compatibleContent(e.type))throw new c("Cannot join "+t.type.name+" onto "+e.type.name)}function m(e,t,n){var i=e.node(n);return v(i,t.node(n)),i}function g(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function b(e,t,n,i){var r=(t||e).node(n),o=0,s=t?t.index(n):r.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(g(e.nodeAfter,i),o++));for(var a=o;a<s;a++)g(r.child(a),i);t&&t.depth==n&&t.textOffset&&g(t.nodeBefore,i)}function y(e,t){if(!e.type.validContent(t))throw new c("Invalid content for node "+e.type.name);return e.copy(t)}function k(e,t,n){var i=[];(b(null,e,n,i),e.depth>n)&&g(y(m(e,t,n+1),k(e,t,n+1)),i);return b(t,null,n,i),new o(i)}h.size.get=function(){return this.content.size-this.openStart-this.openEnd},p.prototype.insertAt=function(e,t){var n=function e(t,n,i,r){var o=t.findIndex(n),s=o.index,a=o.offset,l=t.maybeChild(s);if(a==n||l.isText)return r&&!r.canReplace(s,s,i)?null:t.cut(0,n).append(i).append(t.cut(n));var u=e(l.content,n-a-1,i);return u&&t.replaceChild(s,l.copy(u))}(this.content,e+this.openStart,t,null);return n&&new p(n,this.openStart,this.openEnd)},p.prototype.removeBetween=function(e,t){return new p(function e(t,n,i){var r=t.findIndex(n),o=r.index,s=r.offset,a=t.maybeChild(o),l=t.findIndex(i),u=l.index,d=l.offset;if(s==n||a.isText){if(d!=i&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(i))}if(o!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-s-1,i-s-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},p.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},p.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},p.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},p.fromJSON=function(e,t){if(!t)return p.empty;var n=t.openStart||0,i=t.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(e,t.content),n,i)},p.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,i=0,r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new p(e,n,i)},Object.defineProperties(p.prototype,h),p.empty=new p(o.empty,0,0);var w=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},S={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};w.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},S.parent.get=function(){return this.node(this.depth)},S.doc.get=function(){return this.node(0)},w.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},w.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},w.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},w.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},w.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},w.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},w.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},S.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},S.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i},S.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},w.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],i=0==t?0:this.path[3*t-1]+1,r=0;r<e;r++)i+=n.child(r).nodeSize;return i},w.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){var r=n;n=i,i=r}for(var o=n.marks,s=0;s<o.length;s++)!1!==o[s].type.spec.inclusive||i&&o[s].isInSet(i.marks)||(o=o[s--].removeFromSet(o));return o},w.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,i=e.parent.maybeChild(e.index()),r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||i&&n[r].isInSet(i.marks)||(n=n[r--].removeFromSet(n));return n},w.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},w.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new O(this,e,n)},w.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},w.prototype.max=function(e){return e.pos>this.pos?e:this},w.prototype.min=function(e){return e.pos<this.pos?e:this},w.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},w.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],i=0,r=t,o=e;;){var s=o.content.findIndex(r),a=s.index,l=s.offset,u=r-l;if(n.push(o,a,i+l),!u)break;if((o=o.child(a)).isText)break;r=u-1,i+=l+1}return new w(t,n,r)},w.resolveCached=function(e,t){for(var n=0;n<C.length;n++){var i=C[n];if(i.pos==t&&i.doc==e)return i}var r=C[x]=w.resolve(e,t);return x=(x+1)%$,r},Object.defineProperties(w.prototype,S);var C=[],x=0,$=12,O=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},I={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};I.start.get=function(){return this.$from.before(this.depth+1)},I.end.get=function(){return this.$to.after(this.depth+1)},I.parent.get=function(){return this.$from.node(this.depth)},I.startIndex.get=function(){return this.$from.index(this.depth)},I.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(O.prototype,I);var T=Object.create(null),D=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||o.empty,this.marks=i||d.none},V={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};V.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},V.childCount.get=function(){return this.content.childCount},D.prototype.child=function(e){return this.content.child(e)},D.prototype.maybeChild=function(e){return this.content.maybeChild(e)},D.prototype.forEach=function(e){this.content.forEach(e)},D.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},D.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},V.textContent.get=function(){return this.textBetween(0,this.content.size,"")},D.prototype.textBetween=function(e,t,n,i){return this.content.textBetween(e,t,n,i)},V.firstChild.get=function(){return this.content.firstChild},V.lastChild.get=function(){return this.content.lastChild},D.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},D.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},D.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||T)&&d.sameSet(this.marks,n||d.none)},D.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},D.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},D.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},D.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return p.empty;var i=this.resolve(e),r=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),a=i.node(o).content.cut(i.pos-s,r.pos-s);return new p(a,i.depth-o,r.depth-o)},D.prototype.replace=function(e,t,n){return f(this.resolve(e),this.resolve(t),n)},D.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),i=n.index,r=n.offset;if(!(t=t.maybeChild(i)))return null;if(r==e||t.isText)return t;e-=r+1}},D.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,i=t.offset;return{node:this.content.maybeChild(n),index:n,offset:i}},D.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,i=t.offset;if(i<e)return{node:this.content.child(n),index:n,offset:i};var r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}},D.prototype.resolve=function(e){return w.resolveCached(this,e)},D.prototype.resolveNoCache=function(e){return w.resolve(this,e)},D.prototype.rangeHasMark=function(e,t,n){var i=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(i=!0),!i})),i},V.isBlock.get=function(){return this.type.isBlock},V.isTextblock.get=function(){return this.type.isTextblock},V.inlineContent.get=function(){return this.type.inlineContent},V.isInline.get=function(){return this.type.isInline},V.isText.get=function(){return this.type.isText},V.isLeaf.get=function(){return this.type.isLeaf},V.isAtom.get=function(){return this.type.isAtom},D.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)},D.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},D.prototype.canReplace=function(e,t,n,i,r){void 0===n&&(n=o.empty),void 0===i&&(i=0),void 0===r&&(r=n.childCount);var s=this.contentMatchAt(e).matchFragment(n,i,r),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var l=i;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},D.prototype.canReplaceWith=function(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;var r=this.contentMatchAt(e).matchType(n),o=r&&r.matchFragment(this.content,t);return!!o&&o.validEnd},D.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},D.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=d.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!d.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},D.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},D.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var i=o.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(D.prototype,V);var M=function(e){function t(t,n,i,r){if(e.call(this,t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(D);function N(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var R=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},B={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};R.parse=function(e,t){var n=new P(e,t);if(null==n.next)return R.empty;var i=A(n);n.next&&n.err("Unexpected trailing text");var r=function(e){var t=Object.create(null);return function n(i){var r=[];i.forEach((function(t){e[t].forEach((function(t){var n=t.term,i=t.to;if(n){var o=r.indexOf(n),s=o>-1&&r[o+1];_(e,i).forEach((function(e){s||r.push(n,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var o=t[i.join(",")]=new R(i.indexOf(e.length-1)>-1),s=0;s<r.length;s+=2){var a=r[s+1].sort(K);o.next.push(r[s],t[a.join(",")]||n(a))}return o}(_(e,0))}(function(e){var t=[[]];return r(function e(t,o){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,o))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=e(t.exprs[s],o);if(s==t.exprs.length-1)return a;r(a,o=n())}else{if("star"==t.type){var l=n();return i(o,l),r(e(t.expr,l),l),[i(l)]}if("plus"==t.type){var u=n();return r(e(t.expr,o),u),r(e(t.expr,u),u),[i(u)]}if("opt"==t.type)return[i(o)].concat(e(t.expr,o));if("range"==t.type){for(var d=o,c=0;c<t.min;c++){var p=n();r(e(t.expr,d),p),d=p}if(-1==t.max)r(e(t.expr,d),d);else for(var h=t.min;h<t.max;h++){var f=n();i(d,f),r(e(t.expr,d),f),d=f}return[i(d)]}if("name"==t.type)return[i(o,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){var r={term:i,to:n};return t[e].push(r),r}function r(e,t){e.forEach((function(e){return e.to=t}))}}(i));return function(e,t){for(var n=0,i=[e];n<i.length;n++){for(var r=i[n],o=!r.validEnd,s=[],a=0;a<r.next.length;a+=2){var l=r.next[a],u=r.next[a+1];s.push(l.name),!o||l.isText||l.hasRequiredAttrs()||(o=!1),-1==i.indexOf(u)&&i.push(u)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(r,n),r},R.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},R.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var i=this,r=t;i&&r<n;r++)i=i.matchType(e.child(r).type);return i},B.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},B.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},R.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},R.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function r(s,a){var l=s.matchFragment(e,n);if(l&&(!t||l.validEnd))return o.from(a.map((function(e){return e.createAndFill()})));for(var u=0;u<s.next.length;u+=2){var d=s.next[u],c=s.next[u+1];if(!d.isText&&!d.hasRequiredAttrs()&&-1==i.indexOf(c)){i.push(c);var p=r(c,a.concat(d));if(p)return p}}}(this,[])},R.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},R.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),r=i.match;if(r.matchType(e)){for(var o=[],s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(var a=0;a<r.next.length;a+=2){var l=r.next[a];l.isLeaf||l.hasRequiredAttrs()||l.name in t||i.type&&!r.next[a+1].validEnd||(n.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}},B.edgeCount.get=function(){return this.next.length>>1},R.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},R.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var i=1;i<n.next.length;i+=2)-1==e.indexOf(n.next[i])&&t(n.next[i])}(this),e.map((function(t,n){for(var i=n+(t.validEnd?"*":" ")+" ",r=0;r<t.next.length;r+=2)i+=(r?", ":"")+t.next[r].name+"->"+e.indexOf(t.next[r+1]);return i})).join("\n")},Object.defineProperties(R.prototype,B),R.empty=new R(!0);var P=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},E={next:{configurable:!0}};function A(e){var t=[];do{t.push(j(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function j(e){var t=[];do{t.push(L(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function L(e){for(var t=function(e){if(e.eat("(")){var t=A(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,i=n[t];if(i)return[i];var r=[];for(var o in n){var s=n[o];s.groups.indexOf(t)>-1&&r.push(s)}0==r.length&&e.err("No node type or group '"+t+"' found");return r}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=z(e,t)}return t}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function z(e,t){var n=F(e),i=n;return e.eat(",")&&(i="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function K(e,t){return t-e}function _(e,t){var n=[];return function t(i){var r=e[i];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(i);for(var o=0;o<r.length;o++){var s=r[o],a=s.term,l=s.to;a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(K)}function H(e){var t=Object.create(null);for(var n in e){var i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function W(e,t){var n=Object.create(null);for(var i in e){var r=t&&t[i];if(void 0===r){var o=e[i];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+i);r=o.default}n[i]=r}return n}function U(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new J(e[n]);return t}E.next.get=function(){return this.tokens[this.pos]},P.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},P.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(P.prototype,E);var q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=U(n.attrs),this.defaultAttrs=H(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},G={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};G.isInline.get=function(){return!this.isBlock},G.isTextblock.get=function(){return this.isBlock&&this.inlineContent},G.isLeaf.get=function(){return this.contentMatch==R.empty},G.isAtom.get=function(){return this.isLeaf||this.spec.atom},G.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},q.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},q.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},q.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)},q.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new D(this,this.computeAttrs(e),o.from(t),d.setFrom(n))},q.prototype.createChecked=function(e,t,n){if(t=o.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new D(this,this.computeAttrs(e),t,d.setFrom(n))},q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=o.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var r=this.contentMatch.matchFragment(t).fillBefore(o.empty,!0);return r?new D(this,e,t.append(r),d.setFrom(n)):null},q.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},q.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},q.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},q.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.empty:e},q.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,i){return n[e]=new q(e,t,i)}));var i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var r in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(q.prototype,G);var J=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},X={isRequired:{configurable:!0}};X.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(J.prototype,X);var Y=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=U(i.attrs),this.rank=t,this.excluded=null;var r=H(this.attrs);this.instance=r&&new d(this,r)};Y.prototype.create=function(e){return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))},Y.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,r){return n[e]=new Y(e,i++,t,r)})),n},Y.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},Y.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},Y.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var Z=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=r.from(e.nodes),this.spec.marks=r.from(e.marks),this.nodes=q.compile(this.spec.nodes,this),this.marks=Y.compile(this.spec.marks,this);var n=Object.create(null);for(var i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");var o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=n[s]||(n[s]=R.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?Q(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(var l in this.marks){var u=this.marks[l],d=u.spec.excludes;u.excluded=null==d?[u]:""==d?[]:Q(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function Q(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i],o=e.marks[r],s=o;if(o)n.push(o);else for(var a in e.marks){var l=e.marks[a];("_"==r||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}Z.prototype.node=function(e,t,n,i){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,i)},Z.prototype.text=function(e,t){var n=this.nodes.text;return new M(n,n.defaultAttrs,e,d.setFrom(t))},Z.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},Z.prototype.nodeFromJSON=function(e){return D.fromJSON(this,e)},Z.prototype.markFromJSON=function(e){return d.fromJSON(this,e)},Z.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var ee=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};ee.prototype.parse=function(e,t){void 0===t&&(t={});var n=new se(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},ee.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new se(this,t,!0);return n.addAll(e,null,t.from,t.to),p.maxOpen(n.finish())},ee.prototype.matchTag=function(e,t,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var r=this.tags[i];if(le(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){var o=r.getAttrs(e);if(!1===o)continue;r.attrs=o}return r}}},ee.prototype.matchStyle=function(e,t,n,i){for(var r=i?this.styles.indexOf(i)+1:0;r<this.styles.length;r++){var o=this.styles[r];if(!(0!=o.style.indexOf(e)||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s}return o}}},ee.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,i=0;i<t.length;i++){var r=t[i];if((null==r.priority?50:r.priority)<n)break}t.splice(i,0,e)}var i=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ue(e)),e.mark=t}))};for(var r in e.marks)i(r);var o;for(var s in e.nodes)o=void 0,(o=e.nodes[s].spec.parseDOM)&&o.forEach((function(e){n(e=ue(e)),e.node=s}));return t},ee.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new ee(e,ee.schemaRules(e)))};var te={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ne={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ie={ol:!0,ul:!0};function re(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var oe=function(e,t,n,i,r,o,s){this.type=e,this.attrs=t,this.solid=r,this.match=o||(4&s?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=d.none,this.pendingMarks=i,this.stashMarks=[]};oe.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(o.from(e));if(!t){var n,i=this.type.contentMatch;return(n=i.findWrapping(e.type))?(this.match=i,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},oe.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var i=o.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},oe.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},oe.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var i=n[t];(this.type?this.type.allowsMarkType(i.type):de(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},oe.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!te.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var se=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,r=t.topNode,o=re(null,t.preserveWhitespace,0)|(n?4:0);i=r?new oe(r.type,r.attrs,d.none,d.none,!0,t.topMatch||r.type.contentMatch,o):new oe(n?null:e.schema.topNodeType,null,d.none,d.none,!0,null,o),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},ae={top:{configurable:!0},currentPos:{configurable:!0}};function le(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ue(e){var t={};for(var n in e)t[n]=e[n];return t}function de(e,t){var n=t.schema.nodes,i=function(i){var r=n[i];if(r.allowsMarkType(e)){var o=[],s=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var i=e.edge(n),r=i.type,a=i.next;if(r==t)return!0;if(o.indexOf(a)<0&&s(a))return!0}};return s(r.contentMatch)?{v:!0}:void 0}};for(var r in n){var o=i(r);if(o)return o.v}}ae.top.get=function(){return this.nodes[this.open]},se.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];for(;t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(var r=0;r<n.length;r++)this.addPendingMark(n[r]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],i)}},se.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var i=n.content[n.content.length-1],r=e.previousSibling;(!i||r&&"BR"==r.nodeName||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},se.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();ie.hasOwnProperty(i)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var i=1==t.nodeType?t.nodeName.toLowerCase():null;i&&ie.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):"li"==i?n=t:i&&(n=null)}}(e);var r=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(r?r.ignore:ne.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!r||r.skip||r.closeParent){r&&r.closeParent?this.open=Math.max(0,this.open-1):r&&r.skip.nodeType&&(e=r.skip);var o,s=this.top,a=this.needsBlock;if(te.hasOwnProperty(i))o=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(s),this.needsBlock=a}else this.addElementByRule(e,r,!1===r.consuming?n:null)},se.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},se.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},se.prototype.readStyles=function(e){var t=d.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var r=this.parser.matchStyle(e[n],e[n+1],this,i);if(!r)continue e;if(r.ignore)return null;if(t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t),!1!==r.consuming)break;i=r}return t},se.prototype.addElementByRule=function(e,t,n){var i,r,o,s=this;t.node?(r=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):i=this.enter(r,t.attrs,t.preserveWhitespace):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));var a=this.top;if(r&&r.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,i)}i&&(this.sync(a),this.open--),o&&this.removePendingMark(o,a)},se.prototype.addAll=function(e,t,n,i){for(var r=n||0,o=n?e.childNodes[n]:e.firstChild,s=null==i?null:e.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o),t&&te.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,r)},se.prototype.findPlace=function(e){for(var t,n,i=this.open;i>=0;i--){var r=this.nodes[i],o=r.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=r,!o.length))break;if(r.solid)break}if(!t)return!1;this.sync(n);for(var s=0;s<t.length;s++)this.enterInner(t[s],null,!1);return!0},se.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var i=n.activeMarks,r=0;r<e.marks.length;r++)n.type&&!n.type.allowsMarkType(e.marks[r].type)||(i=e.marks[r].addToSet(i));return n.content.push(e.mark(i)),!0}return!1},se.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},se.prototype.enterInner=function(e,t,n,i){this.closeExtra();var r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e,t);var o=re(e,i,r.options);4&r.options&&0==r.content.length&&(o|=4),this.nodes.push(new oe(e,t,r.activeMarks,r.pendingMarks,n,null,o)),this.open++},se.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},se.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},se.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},ae.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,i=n.length-1;i>=0;i--)e+=n[i].nodeSize;t&&e++}return e},se.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},se.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},se.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++){if(null==this.find[i].pos&&1==e.nodeType&&e.contains(this.find[i].node))t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}},se.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},se.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=-(i?i.depth+1:0)+(r?0:1),s=function(e,a){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;a>=o;a--)if(s(e-1,a))return!0;return!1}var u=a>0||0==a&&r?t.nodes[a].type:i&&a>=o?i.node(a-o).type:null;if(!u||u.name!=l&&-1==u.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},se.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var i in this.parser.schema.nodes){var r=this.parser.schema.nodes[i];if(r.isTextblock&&r.defaultAttrs)return r}},se.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},se.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var i=this.nodes[n];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);var r=i.popFromStashMark(e);r&&i.type&&i.type.allowsMarkType(r.type)&&(i.activeMarks=r.addToSet(i.activeMarks))}if(i==t)break}},Object.defineProperties(se.prototype,ae);var ce=function(e,t){this.nodes=e||{},this.marks=t||{}};function pe(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function he(e){return e.document||window.document}ce.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=he(t).createDocumentFragment());var r=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);for(var n=0,s=0;n<o.length&&s<e.marks.length;){var a=e.marks[s];if(i.marks[a.type.name]){if(!a.eq(o[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}for(;n<o.length;)r=o.pop(),o.pop();for(;s<e.marks.length;){var l=e.marks[s++],u=i.serializeMark(l,e.isInline,t);u&&(o.push(l,r),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(i.serializeNodeInner(e,t))})),n},ce.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ce.renderSpec(he(t),this.nodes[e.type.name](e)),i=n.dom,r=n.contentDOM;if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,r,t):this.serializeFragment(e.content,t,r)}return i},ce.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),i=e.marks.length-1;i>=0;i--){var r=this.serializeMark(e.marks[i],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n},ce.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ce.renderSpec(he(n),i(e,t))},ce.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i=t[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));var o=null,s=n?e.createElementNS(n,i):e.createElement(i),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a))for(var u in l=2,a)if(null!=a[u]){var d=u.indexOf(" ");d>0?s.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):s.setAttribute(u,a[u])}for(var c=l;c<t.length;c++){var p=t[c];if(0===p){if(c<t.length-1||c>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ce.renderSpec(e,p,n),f=h.dom,v=h.contentDOM;if(s.appendChild(f),v){if(o)throw new RangeError("Multiple content holes");o=v}}return{dom:s,contentDOM:o}},ce.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ce(this.nodesFromSchema(e),this.marksFromSchema(e)))},ce.nodesFromSchema=function(e){var t=pe(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ce.marksFromSchema=function(e){return pe(e.marks)};var fe=Math.pow(2,16);function ve(e){return 65535&e}var me=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},ge=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};ge.prototype.recover=function(e){var t=0,n=ve(e);if(!this.inverted)for(var i=0;i<n;i++)t+=this.ranges[3*i+2]-this.ranges[3*i+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/fe}(e)},ge.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},ge.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},ge.prototype._map=function(e,t,n){for(var i=0,r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?i:0);if(a>e)break;var l=this.ranges[s+r],u=this.ranges[s+o],d=a+l;if(e<=d){var c=a+i+((l?e==a?-1:e==d?1:t:t)<0?0:u);if(n)return c;var p=e==(t<0?a:d)?null:s/3+(e-a)*fe;return new me(c,t<0?e!=a:e!=d,p)}i+=u-l}return n?e+i:new me(e+i)},ge.prototype.touches=function(e,t){for(var n=0,i=ve(t),r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?n:0);if(a>e)break;var l=this.ranges[s+r];if(e<=a+l&&s==3*i)return!0;n+=this.ranges[s+o]-l}return!1},ge.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,i=0,r=0;i<this.ranges.length;i+=3){var o=this.ranges[i],s=o-(this.inverted?r:0),a=o+(this.inverted?0:r),l=this.ranges[i+t],u=this.ranges[i+n];e(s,s+l,a,a+u),r+=u-l}},ge.prototype.invert=function(){return new ge(this.ranges,!this.inverted)},ge.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},ge.offset=function(e){return 0==e?ge.empty:new ge(e<0?[0,-e,0]:[0,0,e])},ge.empty=new ge([]);var be=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function ye(e){var t=Error.call(this,e);return t.__proto__=ye.prototype,t}be.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new be(this.maps,this.mirror,e,t)},be.prototype.copy=function(){return new be(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},be.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},be.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var i=e.getMirror(t);this.appendMap(e.maps[t],null!=i&&i<t?n+i:null)}},be.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},be.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},be.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var i=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=i&&i>t?n-i-1:null)}},be.prototype.invert=function(){var e=new be;return e.appendMappingInverted(this),e},be.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},be.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},be.prototype._map=function(e,t,n){for(var i=!1,r=this.from;r<this.to;r++){var o=this.maps[r].mapResult(e,t);if(null!=o.recover){var s=this.getMirror(r);if(null!=s&&s>r&&s<this.to){r=s,e=this.maps[s].recover(o.recover);continue}}o.deleted&&(i=!0),e=o.pos}return n?e:new me(e,i)},ye.prototype=Object.create(Error.prototype),ye.prototype.constructor=ye,ye.prototype.name="TransformError";var ke=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new be},we={before:{configurable:!0},docChanged:{configurable:!0}};function Se(){throw new Error("Override me")}we.before.get=function(){return this.docs.length?this.docs[0]:this.doc},ke.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new ye(t.failed);return this},ke.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},we.docChanged.get=function(){return this.steps.length>0},ke.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(ke.prototype,we);var Ce=Object.create(null),xe=function(){};xe.prototype.apply=function(e){return Se()},xe.prototype.getMap=function(){return ge.empty},xe.prototype.invert=function(e){return Se()},xe.prototype.map=function(e){return Se()},xe.prototype.merge=function(e){return null},xe.prototype.toJSON=function(){return Se()},xe.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Ce[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},xe.jsonID=function(e,t){if(e in Ce)throw new RangeError("Duplicate use of step JSON ID "+e);return Ce[e]=t,t.prototype.jsonID=e,t};var $e=function(e,t){this.doc=e,this.failed=t};$e.ok=function(e){return new $e(e,null)},$e.fail=function(e){return new $e(null,e)},$e.fromReplace=function(e,t,n,i){try{return $e.ok(e.replace(t,n,i))}catch(e){if(e instanceof c)return $e.fail(e.message);throw e}};var Oe=function(e){function t(t,n,i,r){e.call(this),this.from=t,this.to=n,this.slice=i,this.structure=!!r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Te(e,this.from,this.to)?$e.fail("Structure replace would overwrite content"):$e.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new ge([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted?null:new t(n.pos,Math.max(n.pos,i.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?p.empty:new p(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var i=this.slice.size+e.slice.size==0?p.empty:new p(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),i,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,p.fromJSON(e,n.slice),!!n.structure)},t}(xe);xe.jsonID("replace",Oe);var Ie=function(e){function t(t,n,i,r,o,s,a){e.call(this),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=o,this.insert=s,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(Te(e,this.from,this.gapFrom)||Te(e,this.gapTo,this.to)))return $e.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return $e.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?$e.fromReplace(e,this.from,this.to,n):$e.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new ge([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deleted&&i.deleted||r<n.pos||o>i.pos?null:new t(n.pos,i.pos,r,o,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,p.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(xe);function Te(e,t,n){for(var i=e.resolve(t),r=n-t,o=i.depth;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0)for(var s=i.node(o).maybeChild(i.indexAfter(o));r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}return!1}function De(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ve(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var i=e.$from.node(n),r=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(r,o,t))return n;if(0==n||i.type.spec.isolating||!De(i,r,o))break}}function Me(e,t,n,i){void 0===i&&(i=e);var r=function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.contentMatchAt(i).findWrapping(t);if(!o)return null;var s=o.length?o[0]:t;return n.canReplaceWith(i,r,s)?o:null}(e,t),o=r&&function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.child(i),s=t.contentMatch.findWrapping(o.type);if(!s)return null;for(var a=(s.length?s[s.length-1]:t).contentMatch,l=i;a&&l<r;l++)a=a.matchType(n.child(l).type);if(!a||!a.validEnd)return null;return s}(i,t);return o?r.map(Ne).concat({type:t,attrs:n}).concat(o.map(Ne)):null}function Ne(e){return{type:e,attrs:null}}function Re(e,t,n,i){void 0===n&&(n=1);var r=e.resolve(t),o=r.depth-n,s=i&&i[i.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(var a=r.depth-1,l=n-2;a>o;a--,l--){var u=r.node(a),d=r.index(a);if(u.type.spec.isolating)return!1;var c=u.content.cutByIndex(d,u.childCount),p=i&&i[l]||u;if(p!=u&&(c=c.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(d+1,u.childCount)||!p.type.validContent(c))return!1}var h=r.indexAfter(o),f=i&&i[0];return r.node(o).canReplaceWith(h,h,f?f.type:r.node(o+1).type)}function Be(e,t){var n=e.resolve(t),i=n.index();return Pe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function Pe(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function Ee(e,t,n){void 0===n&&(n=-1);for(var i=e.resolve(t),r=i.depth;;r--){var o=void 0,s=void 0,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):n>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Pe(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=n<0?i.before(r):i.after(r)}}function Ae(e,t,n){var i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(0==i.parentOffset)for(var r=i.depth-1;r>=0;r--){var o=i.index(r);if(i.node(r).canReplaceWith(o,o,n))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(var s=i.depth-1;s>=0;s--){var a=i.indexAfter(s);if(i.node(s).canReplaceWith(a,a,n))return i.after(s+1);if(a<i.node(s).childCount)return null}}function je(e,t,n){var i=e.resolve(t);if(!n.content.size)return t;for(var r=n.content,o=0;o<n.openStart;o++)r=r.firstChild.content;for(var s=1;s<=(0==n.openStart&&n.size?2:1);s++)for(var a=i.depth;a>=0;a--){var l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,u=i.index(a)+(l>0?1:0),d=i.node(a),c=!1;if(1==s)c=d.canReplace(u,u,r);else{var p=d.contentMatchAt(u).findWrapping(r.firstChild.type);c=p&&d.canReplaceWith(u,u,p[0])}if(c)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function Le(e,t,n){for(var i=[],r=0;r<e.childCount;r++){var s=e.child(r);s.content.size&&(s=s.copy(Le(s.content,t,s))),s.isInline&&(s=t(s,n,r)),i.push(s)}return o.fromArray(i)}xe.jsonID("replaceAround",Ie),ke.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,r=e.depth,s=n.before(r+1),a=i.after(r+1),l=s,u=a,d=o.empty,c=0,h=r,f=!1;h>t;h--)f||n.index(h)>0?(f=!0,d=o.from(n.node(h).copy(d)),c++):l--;for(var v=o.empty,m=0,g=r,b=!1;g>t;g--)b||i.after(g+1)<i.end(g)?(b=!0,v=o.from(i.node(g).copy(v)),m++):u++;return this.step(new Ie(l,u,s,a,new p(d.append(v),c,m),d.size-c,!0))},ke.prototype.wrap=function(e,t){for(var n=o.empty,i=t.length-1;i>=0;i--){if(n.size){var r=t[i].type.contentMatch.matchFragment(n);if(!r||!r.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=o.from(t[i].type.create(t[i].attrs,n))}var s=e.start,a=e.end;return this.step(new Ie(s,a,s,a,new p(n,0,0),t.length,!0))},ke.prototype.setBlockType=function(e,t,n,i){var r=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var s=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(r.doc,r.mapping.slice(s).map(t),n)){r.clearIncompatible(r.mapping.slice(s).map(t,1),n);var a=r.mapping.slice(s),l=a.map(t,1),u=a.map(t+e.nodeSize,1);return r.step(new Ie(l,u,l+1,u-1,new p(o.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},ke.prototype.setNodeMarkup=function(e,t,n,i){var r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");t||(t=r.type);var s=t.create(n,null,i||r.marks);if(r.isLeaf)return this.replaceWith(e,e+r.nodeSize,s);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ie(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new p(o.from(s),0,0),1,!0))},ke.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),r=o.empty,s=o.empty,a=i.depth,l=i.depth-t,u=t-1;a>l;a--,u--){r=o.from(i.node(a).copy(r));var d=n&&n[u];s=o.from(d?d.type.create(d.attrs,s):i.node(a).copy(s))}return this.step(new Oe(e,e,new p(r.append(s),t,t),!0))},ke.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Oe(e-t,e+t,p.empty,!0);return this.step(n)};var Fe=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=e.resolve(this.from),r=i.node(i.sharedDepth(this.to)),o=new p(Le(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),r),n.openStart,n.openEnd);return $e.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new ze(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);xe.jsonID("addMark",Fe);var ze=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=new p(Le(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return $e.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Fe(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);function Ke(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=p.empty),t==n&&!i.size)return null;var r=e.resolve(t),o=e.resolve(n);return _e(r,o,i)?new Oe(t,n,i):new He(r,o,i).fit()}function _e(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}xe.jsonID("removeMark",ze),ke.prototype.addMark=function(e,t,n){var i=this,r=[],o=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,u){if(i.isInline){var d=i.marks;if(!n.isInSet(d)&&u.type.allowsMarkType(n.type)){for(var c=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(d),f=0;f<d.length;f++)d[f].isInSet(h)||(s&&s.to==c&&s.mark.eq(d[f])?s.to=p:r.push(s=new ze(c,p,d[f])));a&&a.to==c?a.to=p:o.push(a=new Fe(c,p,n))}}})),r.forEach((function(e){return i.step(e)})),o.forEach((function(e){return i.step(e)})),this},ke.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var r=[],o=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){o++;var a=null;if(n instanceof Y)for(var l,u=i.marks;l=n.isInSet(u);)(a||(a=[])).push(l),u=l.removeFromSet(u);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var d=Math.min(s+i.nodeSize,t),c=0;c<a.length;c++){for(var p=a[c],h=void 0,f=0;f<r.length;f++){var v=r[f];v.step==o-1&&p.eq(r[f].style)&&(h=v)}h?(h.to=d,h.step=o):r.push({style:p,from:Math.max(s,e),to:d,step:o})}}})),r.forEach((function(e){return i.step(new ze(e.from,e.to,e.style))})),this},ke.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),r=[],s=e+1,a=0;a<i.childCount;a++){var l=i.child(a),u=s+l.nodeSize,d=n.matchType(l.type,l.attrs);if(d){n=d;for(var c=0;c<l.marks.length;c++)t.allowsMarkType(l.marks[c].type)||this.step(new ze(s,u,l.marks[c]))}else r.push(new Oe(s,u,p.empty));s=u}if(!n.validEnd){var h=n.fillBefore(o.empty,!0);this.replace(s,s,new p(h,0,0))}for(var f=r.length-1;f>=0;f--)this.step(r[f]);return this},ke.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=p.empty);var i=Ke(this.doc,e,t,n);return i&&this.step(i),this},ke.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new p(o.from(n),0,0))},ke.prototype.delete=function(e,t){return this.replace(e,t,p.empty)},ke.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var He=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var r=e.node(i);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(i))})}this.placed=o.empty;for(var s=e.depth;s>0;s--)this.placed=o.from(e.node(s).copy(this.placed))},We={depth:{configurable:!0}};function Ue(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ue(e.firstChild.content,t-1,n)))}function qe(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(qe(e.lastChild.content,t-1,n)))}function Ge(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function Je(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,Je(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(o.empty,!0)))),e.copy(i)}function Xe(e,t,n,i,r){var o=e.node(t),s=r?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;var a=i.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(var i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}(n,o.content,s)?a:null}function Ye(e,t,n,i,r){if(t<n){var s=e.firstChild;e=e.replaceChild(0,s.copy(Ye(s.content,t+1,n,i,s)))}if(t>i){var a=r.contentMatchAt(0),l=a.fillBefore(e).append(e);e=l.append(a.matchFragment(l).fillBefore(o.empty,!0))}return e}function Ze(e,t){for(var n=[],i=Math.min(e.depth,t.depth);i>=0;i--){var r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}We.depth.get=function(){return this.frontier.length-1},He.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;for(var o=this.placed,s=i.depth,a=r.depth;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;var l=new p(o,s,a);return t>-1?new Ie(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new Oe(i.pos,r.pos,l):void 0},He.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,i=(t?(n=Ge(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,r=this.depth;r>=0;r--){var s=this.frontier[r],a=s.type,l=s.match,u=void 0,d=void 0;if(1==e&&(i?l.matchType(i.type)||(d=l.fillBefore(o.from(i),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:r,parent:n,inject:d};if(2==e&&i&&(u=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:r,parent:n,wrap:u};if(n&&l.matchType(n.type))break}},He.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new p(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)},He.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);if(r.childCount<=1&&n>0){var o=t.size-n<=n+r.size;this.unplaced=new p(Ue(t,n-1,1),n-1,o?n-1:i)}else this.unplaced=new p(Ue(t,n,1),n,i)},He.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,r=e.inject,s=e.wrap;this.depth>n;)this.closeFrontierNode();if(s)for(var a=0;a<s.length;a++)this.openFrontierNode(s[a]);var l=this.unplaced,u=i?i.content:l.content,d=l.openStart-t,c=0,h=[],f=this.frontier[n],v=f.match,m=f.type;if(r){for(var g=0;g<r.childCount;g++)h.push(r.child(g));v=v.matchFragment(r)}for(var b=u.size+t-(l.content.size-l.openEnd);c<u.childCount;){var y=u.child(c),k=v.matchType(y.type);if(!k)break;(++c>1||0==d||y.content.size)&&(v=k,h.push(Je(y.mark(m.allowedMarks(y.marks)),1==c?d:0,c==u.childCount?b:-1)))}var w=c==u.childCount;w||(b=-1),this.placed=qe(this.placed,n,o.from(h)),this.frontier[n].match=v,w&&b<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,C=u;S<b;S++){var x=C.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),C=x.content}this.unplaced=w?0==t?p.empty:new p(Ue(l.content,t-1,1),t-1,b<0?l.openEnd:t-1):new p(Ue(l.content,t,c),l.openStart,l.openEnd)},He.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Xe(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,i=this.$to.after(n);n>1&&i==this.$to.end(--n);)++i;return i},He.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],i=n.match,r=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=Xe(e,t,r,i,o);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],u=l.match,d=Xe(e,a,l.type,u,!0);if(!d||d.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}},He.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=qe(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var i=e.node(n),r=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,r)}return e},He.prototype.openFrontierNode=function(e,t,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=qe(this.placed,this.depth,o.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},He.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(o.empty,!0);e.childCount&&(this.placed=qe(this.placed,this.frontier.length,e))},Object.defineProperties(He.prototype,We),ke.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),r=this.doc.resolve(t);if(_e(i,r,n))return this.step(new Oe(e,t,n));var o=Ze(i,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(i.depth+1);o.unshift(s);for(var a=i.depth,l=i.pos-1;a>0;a--,l--){var u=i.node(a).type.spec;if(u.defining||u.isolating)break;o.indexOf(a)>-1?s=a:i.before(a)==l&&o.splice(1,0,-a)}for(var d=o.indexOf(s),c=[],h=n.openStart,f=n.content,v=0;;v++){var m=f.firstChild;if(c.push(m),v==n.openStart)break;f=m.content}h>0&&c[h-1].type.spec.defining&&i.node(d).type!=c[h-1].type?h-=1:h>=2&&c[h-1].isTextblock&&c[h-2].type.spec.defining&&i.node(d).type!=c[h-2].type&&(h-=2);for(var g=n.openStart;g>=0;g--){var b=(g+h+1)%(n.openStart+1),y=c[b];if(y)for(var k=0;k<o.length;k++){var w=o[(k+d)%o.length],S=!0;w<0&&(S=!1,w=-w);var C=i.node(w-1),x=i.index(w-1);if(C.canReplaceWith(x,x,y.type,y.marks))return this.replace(i.before(w),S?r.after(w):t,new p(Ye(n.content,0,n.openStart,b),b,n.openEnd))}}for(var $=this.steps.length,O=o.length-1;O>=0&&(this.replace(e,t,n),!(this.steps.length>$));O--){var I=o[O];I<0||(e=i.before(I),t=r.after(I))}return this},ke.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=Ae(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new p(o.from(n),0,0))},ke.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),r=Ze(n,i),o=0;o<r.length;o++){var s=r[o],a=o==r.length-1;if(a&&0==s||n.node(s).type.contentMatch.validEnd)return this.delete(n.start(s),i.end(s));if(s>0&&(a||n.node(s-1).canReplace(n.index(s-1),i.indexAfter(s-1))))return this.delete(n.before(s),i.after(s))}for(var l=1;l<=n.depth&&l<=i.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&i.end(l)-t!=i.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var Qe=Object.create(null),et=function(e,t,n){this.ranges=n||[new nt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},tt={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};tt.anchor.get=function(){return this.$anchor.pos},tt.head.get=function(){return this.$head.pos},tt.from.get=function(){return this.$from.pos},tt.to.get=function(){return this.$to.pos},tt.$from.get=function(){return this.ranges[0].$from},tt.$to.get=function(){return this.ranges[0].$to},tt.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},et.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},et.prototype.replace=function(e,t){void 0===t&&(t=p.empty);for(var n=t.content.lastChild,i=null,r=0;r<t.openEnd;r++)i=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var l=s[a],u=l.$from,d=l.$to,c=e.mapping.slice(o);e.replaceRange(c.map(u.pos),c.map(d.pos),a?p.empty:t),0==a&&dt(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}},et.prototype.replaceWith=function(e,t){for(var n=e.steps.length,i=this.ranges,r=0;r<i.length;r++){var o=i[r],s=o.$from,a=o.$to,l=e.mapping.slice(n),u=l.map(s.pos),d=l.map(a.pos);r?e.deleteRange(u,d):(e.replaceRangeWith(u,d,t),dt(e,n,t.isInline?-1:1))}},et.findFrom=function(e,t,n){var i=e.parent.inlineContent?new it(e):ut(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(var r=e.depth-1;r>=0;r--){var o=t<0?ut(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):ut(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}},et.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new at(e.node(0))},et.atStart=function(e){return ut(e,e,0,0,1)||new at(e)},et.atEnd=function(e){return ut(e,e,e.content.size,e.childCount,-1)||new at(e)},et.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Qe[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},et.jsonID=function(e,t){if(e in Qe)throw new RangeError("Duplicate use of selection JSON ID "+e);return Qe[e]=t,t.prototype.jsonID=e,t},et.prototype.getBookmark=function(){return it.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(et.prototype,tt),et.prototype.visible=!0;var nt=function(e,t){this.$from=e,this.$to=t},it=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));if(!r.parent.inlineContent)return e.near(r);var o=n.resolve(i.map(this.anchor));return new t(o.parent.inlineContent?o:r,r)},t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),e.prototype.replace.call(this,t,n),n==p.empty){var i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new rt(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var i=e.resolve(t);return new this(i,n==t?i:e.resolve(n))},t.between=function(n,i,r){var o=n.pos-i.pos;if(r&&!o||(r=o>=0?1:-1),!i.parent.inlineContent){var s=e.findFrom(i,r,!0)||e.findFrom(i,-r,!0);if(!s)return e.near(i,r);i=s.$head}return n.parent.inlineContent||(0==o||(n=(e.findFrom(n,-r,!0)||e.findFrom(n,r,!0)).$anchor).pos<i.pos!=o<0)&&(n=i),new t(n,i)},Object.defineProperties(t.prototype,n),t}(et);et.jsonID("text",it);var rt=function(e,t){this.anchor=e,this.head=t};rt.prototype.map=function(e){return new rt(e.map(this.anchor),e.map(this.head))},rt.prototype.resolve=function(e){return it.between(e.resolve(this.anchor),e.resolve(this.head))};var ot=function(e){function t(t){var n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,i),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=i.mapResult(this.anchor),o=r.deleted,s=r.pos,a=n.resolve(s);return o?e.near(a):new t(a)},t.prototype.content=function(){return new p(o.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new st(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(et);ot.prototype.visible=!1,et.jsonID("node",ot);var st=function(e){this.anchor=e};st.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new rt(i,i):new st(i)},st.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ot.isSelectable(n)?new ot(t):et.near(t)};var at=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),n==p.empty){t.delete(0,t.doc.content.size);var i=e.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return lt},t}(et);et.jsonID("all",at);var lt={map:function(){return this},resolve:function(e){return new at(e)}};function ut(e,t,n,i,r,o){if(t.inlineContent)return it.create(e,n);for(var s=i-(r>0?0:1);r>0?s<t.childCount:s>=0;s+=r){var a=t.child(s);if(a.isAtom){if(!o&&ot.isSelectable(a))return ot.create(e,n-(r<0?a.nodeSize:0))}else{var l=ut(e,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}}function dt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var r,o=e.steps[i];if(o instanceof Oe||o instanceof Ie)e.mapping.maps[i].forEach((function(e,t,n,i){null==r&&(r=i)})),e.setSelection(et.near(e.doc.resolve(r),n))}}var ct=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return d.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||d.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var i=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var r=this.storedMarks;if(!r){var o=this.doc.resolve(t);r=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,r)),this.selection.empty||this.setSelection(et.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(ke);function pt(e,t){return t&&e?e.bind(t):e}var ht=function(e,t,n){this.name=e,this.init=pt(t.init,n),this.apply=pt(t.apply,n)},ft=[new ht("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new ht("selection",{init:function(e,t){return e.selection||et.atStart(t.doc)},apply:function(e){return e.selection}}),new ht("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new ht("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],vt=function(e,t){var n=this;this.schema=e,this.fields=ft.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new ht(e.key,e.spec.state,e))}))},mt=function(e){this.config=e},gt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};gt.schema.get=function(){return this.config.schema},gt.plugins.get=function(){return this.config.plugins},mt.prototype.apply=function(e){return this.applyTransaction(e).state},mt.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var i=this.config.plugins[n];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0},mt.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),i=null;;){for(var r=!1,o=0;o<this.config.plugins.length;o++){var s=this.config.plugins[o];if(s.spec.appendTransaction){var a=i?i[o].n:0,l=i?i[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(var d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),r=!0}i&&(i[o]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}},mt.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new mt(this.config),n=this.config.fields,i=0;i<n.length;i++){var r=n[i];t[r.name]=r.apply(e,this[r.name],this,t)}for(var o=0;o<bt.length;o++)bt[o](this,e,t);return t},gt.tr.get=function(){return new ct(this)},mt.create=function(e){for(var t=new vt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new mt(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},mt.prototype.reconfigure=function(e){for(var t=new vt(this.schema,e.plugins),n=t.fields,i=new mt(t),r=0;r<n.length;r++){var o=n[r].name;i[o]=this.hasOwnProperty(o)?this[o]:n[r].init(e,i)}return i},mt.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var i=e[n],r=i.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(i,this[i.key]))}return t},mt.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new vt(e.schema,e.plugins),r=new mt(i);return i.fields.forEach((function(i){if("doc"==i.name)r.doc=D.fromJSON(e.schema,t.doc);else if("selection"==i.name)r.selection=et.fromJSON(r.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var o in n){var s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,o))return void(r[i.name]=a.fromJSON.call(s,e,t[o],r))}r[i.name]=i.init(e,r)}})),r},mt.addApplyListener=function(e){bt.push(e)},mt.removeApplyListener=function(e){var t=bt.indexOf(e);t>-1&&bt.splice(t,1)},Object.defineProperties(mt.prototype,gt);var bt=[];var yt=function(e){this.props={},e.props&&function e(t,n,i){for(var r in t){var o=t[r];o instanceof Function?o=o.bind(n):"handleDOMEvents"==r&&(o=e(o,n,{})),i[r]=o}return i}(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:wt("plugin")};yt.prototype.getState=function(e){return e[this.key]};var kt=Object.create(null);function wt(e){return e in kt?e+"$"+ ++kt[e]:(kt[e]=0,e+"$")}var St=function(e){void 0===e&&(e="key"),this.key=wt(e)};St.prototype.get=function(e){return e.config.pluginsByKey[this.key]},St.prototype.getState=function(e){return e[this.key]};var Ct="k-parent-node",xt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],$t=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Ct)===t})).forEach((function(e){e.removeAttribute(Ct),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Ot=function(e,t){var n=t.toUpperCase();e.filter((function(e){return e.nodeName===n})).forEach((function(e){Array.from(e.children).forEach((function(n){n.setAttribute(Ct,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},It=function(e,t){void 0===t&&(t=xt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Tt=function(e){var t,n=document.createElement("template");if("content"in n)n.innerHTML=e,t=n.content;else{var i=(new DOMParser).parseFromString(e,"text/html");t=document.createDocumentFragment();for(var r=i.body;r&&r.firstChild;)t.appendChild(r.firstChild)}return t},Dt=function(e){var t=ce.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){$t(e,"thead"),$t(e,"tbody"),$t(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},Vt=function(e,t,n){return ee.fromSchema(t).parse(e,n)},Mt=function(e,t,n){var i,r=Tt(e);return i=r,Array.from(i.querySelectorAll("table")).forEach((function(e){var t=Array.from(e.children);t.some((function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName}))&&(Ot(t,"thead"),Ot(t,"tbody"),Ot(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute("k-colgroup-data",n.outerHTML),n.remove())})),Vt(r,t,n)},Nt=function(e){var t=Dt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},Rt=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(i,r){return r(i.tr.setSelection(new at(i.doc)).replaceSelectionWith(Mt(e,i.schema,n)).setMeta("commandName",t))}};var Bt=function(){return(Bt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Pt(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}var Et=function(e,t){var n=t.style,i=t.value,r=t.newValue;if(!e)return{changed:!1,style:null};var o=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),s=o.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&i.test(t[1]))}));return r&&s.push(n+": "+r),{style:s.join("; ")+(s.length?";":""),changed:Boolean(r)||s.length!==o.length}},At=function(e,t){for(var n=e.selection.$from,i=n.depth;i>=0;i--){var r=n.index(i);if(n.node(i).canReplaceWith(r,r,t))return!0}return!1},jt=function(e){return e instanceof D?e.type.name:e.name},Lt=function(e,t){return void 0===t&&(t=1),function(n){return function(e,t){return void 0===t&&(t=1),function(n){for(var i=n.$from,r=i.depth;r>0;r--){var o=i.node(r);if(e(o)&&0===(t-=1))return{depth:r,node:o}}}}((function(t){return jt(t)===jt(e)}),t)(n)}},Ft=function(e,t){return function(n,i){var r=n.tr.replaceSelectionWith(e);t&&r.scrollIntoView(),i(r)}},zt=function(e,t,n,i){var r=o.from(Mt(e,n,i)),s=o.from(Mt(t,n,i));return r.eq(s)},Kt=function(e){var t=e.selection;if(t instanceof it||t instanceof at){var n=t.content().content;return n.textBetween(0,n.size)}return""},_t=function(e){if(e.selection instanceof ot)return e.selection.node},Ht=function(e){var t="",n=!1,i=e.selection,r=e.doc,o=i.$from,s=i.$to,a=i.from,l=i.to;return o.sameParent(s)&&(r.nodesBetween(a,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Kt(e))),t},Wt=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},Ut={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},qt=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?Ut:n.applyToWord,r=null,o=e.tr,s=e.selection,a=s.$head.nodeBefore,l=s.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&l&&"text"===l.type.name&&l.text){var u=[];s.$head.parent.descendants((function(e,t){return u.push({node:e,pos:t}),!1}));for(var d=s.$head.parentOffset,c=u.findIndex((function(e){var t=e.node,n=e.pos;return n<=d&&n+t.nodeSize>=d})),p=u[c].node.text,h=!1,f=c-1;f>=0;f--){var v=u[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,d-=v.node.nodeSize)}for(f=c+1;f<u.length;f++){if(!(v=u[f])||"text"!==v.node.type.name)break;p+=v.node.text}var m=p.substring(0,d),g=p.substring(d),b=i.before.exec(m),y=i.after.exec(g);if(b&&y){var k=b[0].length,w=y[0].length,S=r=s.from;o.setSelection(it.create(e.doc,S-k,S+w));return{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(it.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},Gt=function(e,t){return function(n,i,r){var o=qt(n,i,t),s=o.state,a=o.dispatch;return e(t)(s,a)}},Jt=function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0===o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1},Xt=function(e,t,n){return function(i,r){var o=i.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(i.doc,l,e))return!1;if(r)if(a)e.isInSet(i.storedMarks||a.marks())?r(n.removeStoredMark(e)):r(n.addStoredMark(e.create(t)));else{for(var u=!1,d=0;!u&&d<l.length;d++){var c=l[d],p=c.$from,h=c.$to;u=i.doc.rangeHasMark(p.pos,h.pos,e)}for(d=0;d<l.length;d++){var f=l[d];p=f.$from,h=f.$to;u?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}r(n.scrollIntoView())}return!0}},Yt=function(e,t,n,i){void 0===i&&(i=null);var r=[],o=0;return e.doc.nodesBetween(t,n,(function(e,s){if(e.isInline){o++;var a=null;if(i instanceof Y){var l=i.isInSet(e.marks);l&&(a=[l])}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length)for(var u=Math.min(s+e.nodeSize,n),d=0;d<a.length;d++){for(var c=a[d],p=void 0,h=0;h<r.length;h++){var f=r[h];f.step===o-1&&c.eq(f.style)&&(p=f)}p?(p.to=u,p.step=o):r.push({style:c,from:Math.max(s,t),to:u,step:o})}}})),r.forEach((function(t){return e.step(new ze(t.from,t.to,t.style))})),e},Zt=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,r=e.tr;Qt(r,{except:(i=n,i instanceof Array?i:[i])}),r.docChanged&&t(r)}},Qt=function(e,t){var n=t.except,i=e.doc,r=e.selection,o=i.type.schema,s=r.empty,a=r.ranges,l=(n||[]).map((function(e){return e.name}));if(!s){var u=Object.keys(o.marks).map((function(e){return o.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));a.forEach((function(t){var n=t.$from,i=t.$to;u.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},en=function(e,t){var n,i=e.schema.marks,r=(t.altMarks||[]).filter((function(e){return i[e]})),o=t.altStyle,s=e.selection,a=s.from,l=s.$from,u=s.to,d=s.empty,c=i[t.mark],p=e.doc,h=!1;return d?(n=e.storedMarks||l.marks(),h=c&&c.isInSet(n)||r.some((function(e){return i[e].isInSet(n)}))):h=c&&p.rangeHasMark(a,u,c)||r.some((function(e){return p.rangeHasMark(a,u,i[e])})),!h&&o&&i.style?nn(e,i.style).some((function(e){return null!==tn(e,o)})):Boolean(h)},tn=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter((function(e){return Boolean(e)})),i=0;i<n.length;i++){var r=n[i].split(/\s*:\s*/);if(r[0].toLowerCase()===t.name&&t.value.test(r[1]))return r[1]}return null},nn=function(e,t){var n=e.selection,i=n.from,r=n.$from,o=n.to,s=n.empty,a=[];return s?a.push(t.isInSet(e.storedMarks||r.marks())):e.doc.nodesBetween(i,o,(function(e){e.isInline&&a.push(t.isInSet(e.marks))})),a},rn=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},on=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},sn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return Et(i,t)},an=function(e,t,n,i,r){var o=r.create({style:i.style}),s=[],a=[],l=null,u=null;return e.doc.nodesBetween(t,n,(function(e,d,c){if(e.isInline){var p=e.marks;if(!o.isInSet(p)&&c.type.allowsMarkType(o.type)){var h=Math.max(d,t),f=Math.min(d+e.nodeSize,n),v=sn(p,i);if(v.changed||i.newValue){for(var m=v.changed?{style:v.style||null}:{style:[i.style]+": "+i.newValue+";"},g=r.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,b=g?Bt({},g.attrs,m):m,y=r.create(b),k=y.addToSet(p),w=0;w<p.length;w++)p[w].isInSet(k)||(l&&l.to===h&&l.mark.eq(p[w])?l.to=f:(l=new ze(h,f,p[w]),s.push(l)));var S=u&&u.to===h,C=S&&y.attrs.style===u.mark.attrs.style;S&&C?u.to=f:Object.keys(b).some((function(e){return null!==b[e]}))&&(u=new Fe(h,f,y),a.push(u))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},ln=function(e,t){var n=e.schema.marks.style;return(n?nn(e,n):[]).map((function(e){return tn(e,t)})).filter((function(e){return null!==e}))},un=function(e,t){return function(n,i,r){var o=n.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(n.doc,l,e))return!1;var u,d,c,p,h=!1;if(i){var f=r||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=sn(v,t),g=v.find((function(e){return"style"===e.type.name})),b=Bt({},g?g.attrs:{},{style:m.style||null});if(u=g.attrs,d=b,c=Object.keys(u),p=Object.keys(d),c.length===p.length&&c.every((function(e){return u[e]===d[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(b).some((function(e){return null!==b[e]}))&&i(f.addStoredMark(e.create(b))),h=!0}}else{for(var y=0;y<l.length;y++){var k=l[y],w=k.$from,S=k.$to;h=an(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},dn=function(e,t,n){return function(i,r){var o=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,u=e.mark,d=t||i.tr,c=!1,p=!1,h=function(){return p=!0};s&&o.style&&(c=un(o.style,{style:s.name,value:s.value})(i,h,d));var f=[u].concat(l).filter((function(e){return o[e]})).map((function(e){return en(i,{mark:e})&&o[e]})).filter((function(e){return e}));return f.length?function(e,t,n,i){var r=t.selection,o=r.$cursor,s=r.ranges;if(i=i||t.tr,o)e.forEach((function(e){e.isInSet(t.storedMarks||o.marks())&&n(i.removeStoredMark(e))}));else{for(var a=function(t){var n=s[t],r=n.$from,o=n.$to;e.forEach((function(e){Yt(i,r.pos,o.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,d):c||Xt(o[u],n,d)(i,h),p&&r(d),p}},cn=function(e,t){return function(n,i){var r=n.schema.marks.style,o={style:e.style,value:/^.+$/,newValue:e.value},s=n.tr;t&&s.setMeta("commandName",t),s.setMeta("args",e);var a=n.selection,l=a.empty,u=a.$cursor,d=a.ranges;if(l&&!u||!r||!Jt(n.doc,d,r))return!1;if(u){var c=n.storedMarks||u.marks(),p=r.isInSet(c)?c.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Et(p.attrs.style,o);f.changed&&f.style&&(h.style=f.style)}else o.newValue&&(h.style=[o.style]+": "+o.newValue+";");var v=p?Bt({},p.attrs,h):h;return Object.keys(v).some((function(e){return null!==v[e]}))?i(s.addStoredMark(r.create(v))):i(s.removeStoredMark(r)),!0}return un(r,o)(n,i,s)}},pn=function(e,t){return function(n,i){var r=n.selection.$cursor;if(r){var o=r.parent,s=r.index(),a=n.schema.marks[e.mark],l=o.child(s).marks.find((function(e){return e.type===a})),u=o.childCount,d=r.pos-r.textOffset,c=o.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(o.child(p).marks);)c+=h=o.child(p).nodeSize,d-=h,p-=1;for(p=s+1;p<u&&l.isInSet(o.child(p).marks);)c+=o.child(p).nodeSize,p+=1;i(Yt(t||n.tr,d,d+c,l))}else dn(e,t)(n,i)}},hn=function(e,t){var n=e.mark,i=e.attrs;return void 0===t&&(t="link"),function(e,r){var o=e.schema.marks,s=e.tr;t&&(s.setMeta("commandName",t),s.setMeta("args",i));var a=!1,l=function(){return a=!0};if(function(e,t){var n=nn(e,t);return 1===n.length&&n[0]?n[0]:null}(e,o[n]))!function(e,t){return function(n,i){var r=n.selection,o=r.$cursor,s=r.from,a=r.to,l=n.schema.marks[e.mark];if(o){var u=o.parent,d=o.index(),c=u.child(d).marks.find((function(e){return e.type===l})),p=u.childCount,h=o.pos-o.textOffset,f=u.child(d).nodeSize,v=void 0,m=void 0;for(v=d-1;v>=0&&c.isInSet(u.child(v).marks);)f+=m=u.child(v).nodeSize,h-=m,v-=1;for(v=d+1;v<p&&c.isInSet(u.child(v).marks);)f+=u.child(v).nodeSize,v+=1;t.removeMark(h,h+f,l),t.addMark(h,h+f,l.create(e.attrs)),i(t)}else t.doc.nodesBetween(s,a,(function(n,r){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(r,r+n.nodeSize,l),t.addMark(r,r+n.nodeSize,l.create(e.attrs)),i(t))}))}}({mark:n,attrs:i},s)(e,l);else{var u=e;en(e,{mark:n})&&(pn({mark:n,attrs:i},s)(e,l),u=mt.create({doc:s.doc,selection:s.selection})),a?Xt(o[n],i,s)(u,l):dn({mark:n},s,i)(u,l)}return a&&r(s),a}},fn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},vn=function(e){return function(t,n){var i=t.schema.nodes.image,r=i.createAndFill(e);Ft(r)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},mn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(r){var s=e.steps.length,a=r.$from.pos,l=r.$to.pos;e.doc.nodesBetween(a,l,(function(r,a){if(r.eq(t)&&r.isTextblock&&!r.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(s).map(a),n)){e.clearIncompatible(e.mapping.slice(s).map(a,1),n);var l=e.mapping.slice(s),u=l.map(a,1),d=l.map(a+r.nodeSize,1),c=new p(o.from(n.create(i,null,r.marks)),0,0);return e.step(new Ie(u,d,u+1,d-1,c,1,!0)),!1}}))}))},gn=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,i=e.selection,r=i.$from,o=i.ranges,s=t.blocksInSelection,a=[],l=i instanceof ot?i.node:void 0;return l?l.isBlock?(a.push(l),l.nodesBetween(0,l.content.size,(function(e){e.isBlock&&a.push(e)}))):!s&&r.parent&&r.parent.isBlock&&a.push(r.parent):o.forEach((function(e){var t=e.$from.pos,i=e.$to.pos;n.nodesBetween(t,i,(function(e,n,r,o){e.isBlock&&(!s||n>=t&&n+e.content.size+2<=i)&&a.push(e)}))})),a},bn=function(e,t){return function(n,i){var r=gn(n),o=n.schema.nodes,s=n.tr;s.setMeta("commandName",t),s.setMeta("args",{value:e}),r.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,i=n.level,r=Pt(n,["level"]);mn(s,t,o.paragraph,r)}else if(/^h[1-6]$/i.test(e)){i=parseInt(e.substr(1),10);mn(s,t,o.heading,Bt({},t.attrs,{level:i}))}else if("blockquote"===e){var a=t.attrs;i=a.level,r=Pt(a,["level"]);mn(s,t,o.blockquote,r)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},yn=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,r=t.blocksInSelection,o=t.blockNodeType;gn({doc:n,selection:i},{blocksInSelection:r}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},i=n.style,r=void 0===i?"":i,s=n.class,a=void 0===s?"":s,l=Pt(n,["style","class"]),u=o||t.type;(r||a||u!==t.type)&&mn(e,t,u,l)}))},kn=function(e){var t=gn(e),n=e.schema.nodes,i=[];return t.forEach((function(e){e.type===n.paragraph?i.push("p"):e.type===n.heading?i.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&i.push("blockquote")})),i},wn=function(e,t){var n,i,r=e.attrs.style;r&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=Et(r,i),r=n.changed?n.style:r}));return r=r||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:r||null})},Sn=function(e,t){var n=e.selection,i=n.from,r=n.to,o=!1;return e.doc.nodesBetween(i,r,(function(e){return!(o=o||e.type===t)})),o},Cn=function(e){var t=kn(e);return 1===new Set(t).size?t[0]:null},xn=function(e){return{tag:Cn(e)||""}},$n=function(e,t){return function(n,i){var r=gn(n),o=n.tr;o.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var n={},i=e.find((function(e){return e.node===t.type.name}));i&&(n=wn(t,i.style)),mn(o,t,t.type,n)}}));var s=o.docChanged;return s&&i(o.scrollIntoView()),s}},On=function(e,t){var n=gn(e),i=!1;return n.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));n&&(i=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i},In=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var i=t.tr,r=e.blocksInSelection,o=e.blockNodeType,s=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);Qt(i,{except:s}),yn(i,{blocksInSelection:r,blockNodeType:o});var a=i.docChanged;return a&&n&&n(i),a}},Tn=["ol",0],Dn=["ul",0],Vn=["li",0],Mn={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?Tn:["ol",{start:e.attrs.order},0]}},Nn={parseDOM:[{tag:"ul"}],toDOM:function(){return Dn}},Rn={parseDOM:[{tag:"li"}],toDOM:function(){return Vn},defining:!0};function Bn(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)n[r]=t[r];return n}function Pn(e,t,n){return e.append({ordered_list:Bn(Mn,{content:"list_item+",group:n}),bullet_list:Bn(Nn,{content:"list_item+",group:n}),list_item:Bn(Rn,{content:t})})}function En(e,t){return function(n,i){var r=n.selection,s=r.$from,a=r.$to,l=s.blockRange(a),u=!1,d=l;if(!l)return!1;if(l.depth>=2&&s.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==s.index(l.depth-1))return!1;var c=n.doc.resolve(l.start-2);d=new O(c,c,l.depth),l.endIndex<l.parent.childCount&&(l=new O(s,n.doc.resolve(a.end(l.depth)),l.depth)),u=!0}var h=Me(d,e,t,l);return!!h&&(i&&i(function(e,t,n,i,r){for(var s=o.empty,a=n.length-1;a>=0;a--)s=o.from(n[a].type.create(n[a].attrs,s));e.step(new Ie(t.start-(i?2:0),t.end,t.start,t.end,new p(s,0,0),n.length,!0));for(var l=0,u=0;u<n.length;u++)n[u].type==r&&(l=u+1);for(var d=n.length-l,c=t.start+n.length-(i?2:0),h=t.parent,f=t.startIndex,v=t.endIndex,m=!0;f<v;f++,m=!1)!m&&Re(e.doc,c,d)&&(e.split(c,d),c+=2*d),c+=h.child(f).nodeSize;return e}(n.tr,l,h,u,e).scrollIntoView()),!0)}}function An(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=i.node;if(a&&a.isBlock||r.depth<2||!r.sameParent(s))return!1;var l=r.node(-1);if(l.type!=e)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(2==r.depth||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){for(var u=o.empty,d=r.index(-1)?1:r.index(-2)?2:3,c=r.depth-d;c>=r.depth-3;c--)u=o.from(r.node(c).copy(u));var h=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;u=u.append(o.from(e.createAndFill()));var f=r.before(r.depth-(d-1)),v=t.tr.replace(f,r.after(-h),new p(u,4-d,0)),m=-1;v.doc.nodesBetween(f,v.doc.content.size,(function(e,t){if(m>-1)return!1;e.isTextblock&&0==e.content.size&&(m=t+1)})),m>-1&&v.setSelection(t.selection.constructor.near(v.doc.resolve(m))),n(v.scrollIntoView())}return!0}var g=s.pos==r.end()?l.contentMatchAt(0).defaultType:null,b=t.tr.delete(r.pos,s.pos),y=g&&[null,{type:g}];return!!Re(b.doc,r.pos,2,y)&&(n&&n(b.split(r.pos,2,y).scrollIntoView()),!0)}}function jn(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));return!!a&&(!n||(r.node(a.depth-1).type==e?function(e,t,n,i){var r=e.tr,s=i.end,a=i.$to.end(i.depth);s<a&&(r.step(new Ie(s-1,a,s,a,new p(o.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new O(r.doc.resolve(i.$from.pos),r.doc.resolve(a),i.depth));return t(r.lift(i,Ve(i)).scrollIntoView()),!0}(t,n,e,a):function(e,t,n){for(var i=e.tr,r=n.parent,s=n.end,a=n.endIndex-1,l=n.startIndex;a>l;a--)s-=r.child(a).nodeSize,i.delete(s-1,s+1);var u=i.doc.resolve(n.start),d=u.nodeAfter;if(i.mapping.map(n.end)!=n.start+u.nodeAfter.nodeSize)return!1;var c=0==n.startIndex,h=n.endIndex==r.childCount,f=u.node(-1),v=u.index(-1);if(!f.canReplace(v+(c?0:1),v+1,d.content.append(h?o.empty:o.from(r))))return!1;var m=u.pos,g=m+d.nodeSize;return i.step(new Ie(m-(c?1:0),g+(h?1:0),m+1,g-1,new p((c?o.empty:o.from(r.copy(o.empty))).append(h?o.empty:o.from(r.copy(o.empty))),c?0:1,h?0:1),c?0:1)),t(i.scrollIntoView()),!0}(t,n,a)))}}function Ln(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));if(!a)return!1;var l=a.startIndex;if(0==l)return!1;var u=a.parent,d=u.child(l-1);if(d.type!=e)return!1;if(n){var c=d.lastChild&&d.lastChild.type==u.type,h=o.from(c?e.create():null),f=new p(o.from(e.create(null,o.from(u.type.create(null,h)))),c?3:1,0),v=a.start,m=a.end;n(t.tr.step(new Ie(v-(c?3:1),m,v,m,f,1,!0)).scrollIntoView())}return!0}}var Fn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},zn={listType:Fn.orderedList,types:Bt({},Fn)},Kn={listType:Fn.bulletList,types:Bt({},Fn)},_n={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:Bt({},Fn)},Hn={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:Bt({},Fn)};function Wn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function Un(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var r=Jn(i);if(!r){var o=i.blockRange(),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}var a=r.nodeBefore;if(!a.type.spec.isolating&&ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(a,"end")||ot.isSelectable(a))){var l=Ke(e.doc,i.before(),i.after(),p.empty);if(l.slice.size<l.to-l.from){if(t){var u=e.tr.step(l);u.setSelection(qn(a,"end")?et.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):ot.create(u.doc,r.pos-a.nodeSize)),t(u.scrollIntoView())}return!0}}return!(!a.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0)}function qn(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function Gn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=Jn(r)}var s=o&&o.nodeBefore;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}function Jn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Xn(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;var r=Zn(i);if(!r)return!1;var o=r.nodeAfter;if(ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(o,"start")||ot.isSelectable(o))){var s=Ke(e.doc,i.before(),i.after(),p.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(qn(o,"start")?et.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):ot.create(a.doc,a.mapping.map(r.pos))),t(a.scrollIntoView())}return!0}}return!(!o.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),!0)}function Yn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=Zn(r)}var s=o&&o.nodeAfter;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos)).scrollIntoView()),!0)}function Zn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function Qn(e,t){var n,i=e.selection,r=i instanceof ot;if(r){if(i.node.isTextblock||!Be(e.doc,i.from))return!1;n=i.from}else if(null==(n=Ee(e.doc,i.from,-1)))return!1;if(t){var o=e.tr.join(n);r&&o.setSelection(ot.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0}function ei(e,t){var n,i=e.selection;if(i instanceof ot){if(i.node.isTextblock||!Be(e.doc,i.to))return!1;n=i.to}else if(null==(n=Ee(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function ti(e,t){var n=e.selection,i=n.$from,r=n.$to,o=i.blockRange(r),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}function ni(e,t){var n=e.selection,i=n.$head,r=n.$anchor;return!(!i.parent.type.spec.code||!i.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function ii(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ri(e,t){var n=e.selection,i=n.$head,r=n.$anchor;if(!i.parent.type.spec.code||!i.sameParent(r))return!1;var o=i.node(-1),s=i.indexAfter(-1),a=ii(o.contentMatchAt(s));if(!o.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),u=e.tr.replaceWith(l,l,a.createAndFill());u.setSelection(et.near(u.doc.resolve(l),1)),t(u.scrollIntoView())}return!0}function oi(e,t){var n=e.selection,i=n.$from,r=n.$to;if(n instanceof at||i.parent.inlineContent||r.parent.inlineContent)return!1;var o=ii(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){var s=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,a=e.tr.insert(s,o.createAndFill());a.setSelection(it.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function si(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var i=n.before();if(Re(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var r=n.blockRange(),o=r&&Ve(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}function ai(e,t){var n=e.selection,i=n.$from,r=n.$to;if(e.selection instanceof ot&&e.selection.node.isBlock)return!(!i.parentOffset||!Re(e.doc,i.pos))&&(t&&t(e.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(t){var o=r.parentOffset==r.parent.content.size,s=e.tr;(e.selection instanceof it||e.selection instanceof at)&&s.deleteSelection();var a=0==i.depth?null:ii(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=o&&a?[{type:a}]:null,u=Re(s.doc,s.mapping.map(i.pos),1,l);if(l||u||!Re(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],u=!0),u&&(s.split(s.mapping.map(i.pos),1,l),!o&&!i.parentOffset&&i.parent.type!=a)){var d=s.mapping.map(i.before()),c=s.doc.resolve(d);i.node(-1).canReplaceWith(c.index(),c.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function li(e,t){return ai(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function ui(e,t){var n,i=e.selection,r=i.$from,o=i.to,s=r.sharedDepth(o);return 0!=s&&(n=r.before(s),t&&t(e.tr.setSelection(ot.create(e.doc,n))),!0)}function di(e,t){return t&&t(e.tr.setSelection(new at(e.doc))),!0}function ci(e,t,n){var i,r,s=t.nodeBefore,a=t.nodeAfter;if(s.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,n){var i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!!(i&&r&&i.type.compatibleContent(r.type))&&(!i.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Be(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;var l=t.parent.canReplace(t.index(),t.index()+1);if(l&&(i=(r=s.contentMatchAt(s.childCount)).findWrapping(a.type))&&r.matchType(i[0]||a.type).validEnd){if(n){for(var u=t.pos+a.nodeSize,d=o.empty,c=i.length-1;c>=0;c--)d=o.from(i[c].create(null,d));d=o.from(s.copy(d));var h=e.tr.step(new Ie(t.pos-1,u,t.pos,u,new p(d,1,0),i.length,!0)),f=u+2*i.length;Be(h.doc,f)&&h.join(f),n(h.scrollIntoView())}return!0}var v=et.findFrom(t,1),m=v&&v.$from.blockRange(v.$to),g=m&&Ve(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(l&&qn(a,"start",!0)&&qn(s,"end")){for(var b=s,y=[];y.push(b),!b.isTextblock;)b=b.lastChild;for(var k=a,w=1;!k.isTextblock;k=k.firstChild)w++;if(b.canReplace(b.childCount,b.childCount,k.content)){if(n){for(var S=o.empty,C=y.length-1;C>=0;C--)S=o.from(y[C].copy(S));n(e.tr.step(new Ie(t.pos-y.length,t.pos+a.nodeSize,t.pos+w,t.pos+a.nodeSize-w,new p(S,y.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function pi(e){return function(t,n){for(var i=t.selection,r=e<0?i.$from:i.$to,o=r.depth;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(n&&n(t.tr.setSelection(it.create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}var hi=pi(-1),fi=pi(1);function vi(e,t){return function(n,i){var r=n.selection,o=r.$from,s=r.$to,a=o.blockRange(s),l=a&&Me(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function mi(e,t){return function(n,i){var r=n.selection,o=r.from,s=r.to,a=!1;return n.doc.nodesBetween(o,s,(function(i,r){if(a)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)a=!0;else{var o=n.doc.resolve(r),s=o.index();a=o.parent.canReplaceWith(s,s+1,e)}})),!!a&&(i&&i(n.tr.setBlockType(o,s,e,t).scrollIntoView()),!0)}}function gi(e,t){return function(n,i){var r=n.selection,o=r.empty,s=r.$cursor,a=r.ranges;if(o&&!s||!function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1}(n.doc,a,e))return!1;if(i)if(s)e.isInSet(n.storedMarks||s.marks())?i(n.tr.removeStoredMark(e)):i(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,u=n.tr,d=0;!l&&d<a.length;d++){var c=a[d],p=c.$from,h=c.$to;l=n.doc.rangeHasMark(p.pos,h.pos,e)}for(var f=0;f<a.length;f++){var v=a[f],m=v.$from,g=v.$to;if(l)u.removeMark(m.pos,g.pos,e);else{var b=m.pos,y=g.pos,k=m.nodeAfter,w=g.nodeBefore,S=k&&k.isText?/^\s*/.exec(k.text)[0].length:0,C=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;b+S<y&&(b+=S,y-=C),u.addMark(b,y,e.create(t))}}i(u.scrollIntoView())}return!0}}function bi(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,i,r){return e(n,i&&function(e,t){return function(n){if(!n.isGeneric)return e(n);for(var i=[],r=0;r<n.mapping.maps.length;r++){for(var o=n.mapping.maps[r],s=0;s<i.length;s++)i[s]=o.map(i[s]);o.forEach((function(e,t,n,r){return i.push(n,r)}))}for(var a=[],l=0;l<i.length;l+=2)for(var u=i[l],d=i[l+1],c=n.doc.resolve(u),p=c.sharedDepth(d),h=c.node(p),f=c.indexAfter(p),v=c.after(p+1);v<=d;++f){var m=h.maybeChild(f);if(!m)break;if(f&&-1==a.indexOf(v)){var g=h.child(f-1);g.type==m.type&&t(g,m)&&a.push(v)}v+=m.nodeSize}a.sort((function(e,t){return e-t}));for(var b=a.length-1;b>=0;b--)Be(n.doc,a[b])&&n.join(a[b]);e(n)}}(i,t),r)}}function yi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,i){for(var r=0;r<e.length;r++)if(e[r](t,n,i))return!0;return!1}}var ki=yi(Wn,Un,Gn),wi=yi(Wn,Xn,Yn),Si={Enter:yi(ni,oi,si,ai),"Mod-Enter":ri,Backspace:ki,"Mod-Backspace":ki,"Shift-Backspace":ki,Delete:wi,"Mod-Delete":wi,"Mod-a":di},Ci={"Ctrl-h":Si.Backspace,"Alt-Backspace":Si["Mod-Backspace"],"Ctrl-d":Si.Delete,"Ctrl-Alt-Backspace":Si["Mod-Delete"],"Alt-Delete":Si["Mod-Delete"],"Alt-d":Si["Mod-Delete"],"Ctrl-a":hi,"Ctrl-e":fi};for(var xi in Si)Ci[xi]=Si[xi];Si.Home=hi,Si.End=fi;var $i=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Ci:Si,Oi=function(e,t){return vi(e.schema.nodes.blockquote)(e,t)},Ii=function(e,t){var n=e.selection,i=n.$from,r=n.$to,o=e.schema.nodes.blockquote,s=e.doc,a=-1,l=i.blockRange(r);l&&s.nodesBetween(l.start,l.end,(function(e,t,n,i){e.type===o&&(a=t)}));var u=-1!==a;return t&&u&&t(e.tr.lift(l,s.resolve(a).depth)),u},Ti=function(e,t,n){return function(i,r){var o=gn(i),s=i.tr;s.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var i=void 0,r=e.find((function(e){return e.node===t.type.name}));if(r){var o="rtl"===n?r.rtlStyle:r.style,a={name:o,value:r.step>0?""+r.step+r.unit:""};if(t.attrs.style){var l=new RegExp(o+":\\s?(\\d+)"+r.unit,"i"),u=t.attrs.style.match(l);if(u){var d=parseFloat(u[1])+r.step;d=d<=0?"":d,a.value=""+d+(d?r.unit:"")}}i=wn(t,[a])}i&&mn(s,t,t.type,i)}}));var a=s.docChanged;return a&&r(s.scrollIntoView()),a}},Di=function(e,t,n){var i=gn(e),r=!1;return i.forEach((function(e){if(!r&&e.type.isTextblock&&e.attrs.style){var i=t.find((function(t){return t.node===e.type.name}));if(i){var o="rtl"===n?i.rtlStyle:i.style,s=new RegExp(o+":\\s?\\d+"+i.unit,"i");r=s.test(e.attrs.style)}}})),r},Vi=function(e,t){return Ln(t)(e)},Mi=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],r=e.schema.nodes[t.listsTypes.bulletList],o=!!Lt(i,2)(e.selection),s=!!Lt(r,2)(e.selection);return(o||s)&&jn(n)(e)},Ni=function(e,t){var n=e.schema.nodes,i=n[_n.listsTypes.listItem];return(Di(e,t.nodes)||_n.nodes.some((function(t){return n[t.node]&&Sn(e,n[t.node])})))&&!Sn(e,i)},Ri=function(e,t){var n=e.schema.nodes[_n.listsTypes.listItem],i=Ni(e,_n);Vi(e,n)?Ln(n)(e,t):i&&Ti(_n.nodes)(e,t)},Bi=function(e,t){var n=e.schema.nodes,i=n[Hn.listsTypes.listItem],r=Ni(e,Hn);Sn(e,n.blockquote)?Ii(e,t):Mi(e,Hn)?jn(i)(e,t):r&&Ti(Hn.nodes)(e,t)},Pi=function(e,t,n){for(var i=t.depth,r=e.nodes[n.bulletList],o=e.nodes[n.orderedList],s=e.nodes[n.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==r&&l.type!==o||(i=a),l.type!==r&&l.type!==o&&l.type!==s)break}return i-1};function Ei(e){return function(t,n,i){if(!i)return!1;var r=(t=i.state).schema.nodes[e.listType],o=t.selection,s=o.$from,a=o.$to,l=s.node(-2),u=s.node(-3),d=function(e,t,n,i){return 0===function(e,t,n){var i=Array(),r=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;var i=t.node(t.depth),r=t;for(;t.depth>=1;)t=e.resolve(t.before(t.depth)),(i=t.node(t.depth))&&-1!==n.indexOf(i.type.name)&&(r=t);return r}(e,t).depth,o=e.resolve(t.start(r));for(;o.pos<=n.start(n.depth);){var s=Math.min(o.depth,r),a=o.node(s);if(a&&i.push(a),0===s)break;var l=e.resolve(o.after(s));if(l.start(s)>=e.nodeSize-2)break;l.depth!==o.depth&&(l=e.resolve(l.pos+2)),o=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return i}(e,t,n).filter((function(e){return e.type!==i})).length}(t.doc,s,a,r);return(l&&l.type===r||u&&u.type===r)&&d?ji(e)(t,n):(d||(ji(e)(t,n),t=i.state),function(e,t){void 0===t&&(t={});return bi(En(e,t),(function(t,n){return t.type===n.type&&t.type===e}))}(r,e.listAttrs)(t,n))}}function Ai(e,t,n,i){var r=i||e.schema.nodes.listItem,s=t.$from,a=t.$to,l=s.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||s.node(l.depth-1).type!==r)return n;var u=l.end,d=a.end(l.depth);return u<d&&(n.step(new Ie(u-1,d,u,d,new p(o.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new O(n.doc.resolve(s.pos),n.doc.resolve(d),l.depth)),n.lift(l,Ve(l)).scrollIntoView()}function ji(e){return function(t,n){var i=t.tr,r=t.selection,o=r.$from,s=r.$to;return i.doc.nodesBetween(o.pos,s.pos,(function(n,r){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var o=new ot(i.doc.resolve(i.mapping.map(r))),s=o.$from.blockRange(o.$to);if(!s||o.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var a=s&&Ve(s);if(null==a)return!1;i.lift(s,a)}})),n&&n(i),!0}}var Li=/list\-style\-type:\s?([\w-]+)/,Fi=function(e){var t=e.style||"",n=Li.exec(t);return n&&n[1]||""},zi=function(e,t,n,i,r){var o=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,u=l.$from.node(l.$from.depth-2),d=l.$to.node(l.$to.depth-2);if(u&&u.type.name===o&&Fi(u.attrs)===Fi(a)&&d&&d.type.name===o&&Fi(d.attrs)===Fi(a)){var c=n.state.schema.nodes,p={bulletList:c[i.bulletList],orderedList:c[i.orderedList],listItem:c[i.listItem]},h=function(e,t){for(var n,i=t.bulletList,r=t.orderedList,o=t.listItem,s=e.depth-1;s>0;s--){var a=e.node(s);if(a.type!==i&&a.type!==r||(n=s),a.type!==i&&a.type!==r&&a.type!==o)break}return n}(l.$to,p),f=function(e,t,n,i,r,o){o||(o=e.schema.nodes.listItem);var s=!1;return r.doc.nodesBetween(t,n,(function(n,a){if(!s&&n.type===o&&a>t){s=!0;for(var l=i+3;l>i+2;){var u=r.doc.resolve(r.mapping.map(a));l=u.depth;var d=r.doc.resolve(r.mapping.map(a+n.textContent.length)),c=new it(u,d);r=Ai(e,c,r,o)}}})),r}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return(f=function(e,t,n){var i=e.selection,r=i.from,o=i.to,s=e.schema.nodes,a=s.paragraph,l=s.heading,u=[];t.doc.nodesBetween(r,o,(function(e,t){e.type!==a&&e.type!==l||u.push({node:e,pos:t})}));for(var d=u.length-1;d>=0;d--){var c=u[d],p=t.doc.resolve(t.mapping.map(c.pos));if(p.depth>0){var h=void 0;h=c.node.textContent&&c.node.textContent.length>0?t.doc.resolve(t.mapping.map(c.pos+c.node.textContent.length)):t.doc.resolve(t.mapping.map(c.pos+1));var f=p.blockRange(h);f&&t.lift(f,Pi(e.schema,p,n))}}return t}(e,f,i)).setMeta("commandName",r),t(f),!0}return Ei(i)(e,t,n)};function Ki(e,t,n){return zi(e,t,n,Bt({listType:Kn.listType},Kn.types))}function _i(e,t,n){return zi(e,t,n,Bt({listType:zn.listType},zn.types))}for(var Hi=function(e,t){return{name:e,value:t}},Wi=[{node:"paragraph",style:[Hi("text-align","left")]},{node:"heading",style:[Hi("text-align","left")]}],Ui=[{node:"paragraph",style:[Hi("text-align","right")]},{node:"heading",style:[Hi("text-align","right")]}],qi=[{node:"paragraph",style:[Hi("text-align","center")]},{node:"heading",style:[Hi("text-align","center")]}],Gi=[{node:"paragraph",style:[Hi("text-align","justify")]},{node:"heading",style:[Hi("text-align","justify")]}],Ji=[{node:"paragraph",style:[Hi("text-align","")]},{node:"heading",style:[Hi("text-align","")]}],Xi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},Yi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},Zi="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),Qi="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),er="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),tr="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),nr="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ir=Zi&&(tr||+Zi[1]<57)||er&&tr,rr=0;rr<10;rr++)Xi[48+rr]=Xi[96+rr]=String(rr);for(rr=1;rr<=24;rr++)Xi[rr+111]="F"+rr;for(rr=65;rr<=90;rr++)Xi[rr]=String.fromCharCode(rr+32),Yi[rr]=String.fromCharCode(rr);for(var or in Xi)Yi.hasOwnProperty(or)||(Yi[or]=Xi[or]);var sr="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function ar(e){var t,n,i,r,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))r=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);sr?r=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),r&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function lr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function ur(e){return new yt({props:{handleKeyDown:dr(e)}})}function dr(e){var t=function(e){var t=Object.create(null);for(var n in e)t[ar(n)]=e[n];return t}(e);return function(e,n){var i,r=function(e){var t=!(ir&&(e.ctrlKey||e.altKey||e.metaKey)||(Qi||nr)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?Yi:Xi)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),o=1==r.length&&" "!=r,s=t[lr(r,n,!o)];if(s&&s(e.state,e.dispatch,e))return!0;if(o&&(n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=Xi[n.keyCode])&&i!=r){var a=t[lr(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(o&&n.shiftKey){var l=t[lr(r,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var cr={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var pr=/Edge\/(\d+)/.exec(navigator.userAgent),hr=/MSIE \d/.test(navigator.userAgent),fr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),vr=cr.ie=!!(hr||fr||pr);cr.ie_version=hr?document.documentMode||6:fr?+fr[1]:pr?+pr[1]:null,cr.gecko=!vr&&/gecko\/(\d+)/i.test(navigator.userAgent),cr.gecko_version=cr.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var mr=!vr&&/Chrome\/(\d+)/.exec(navigator.userAgent);cr.chrome=!!mr,cr.chrome_version=mr&&+mr[1],cr.safari=!vr&&/Apple Computer/.test(navigator.vendor),cr.ios=cr.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),cr.mac=cr.ios||/Mac/.test(navigator.platform),cr.android=/Android \d/.test(navigator.userAgent),cr.webkit="webkitFontSmoothing"in document.documentElement.style,cr.webkit_version=cr.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var gr=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},br=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},yr=null,kr=function(e,t,n){var i=yr||(yr=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},wr=function(e,t,n,i){return n&&(Cr(e,t,n,i,-1)||Cr(e,t,n,i,1))},Sr=/^(img|br|input|textarea|hr)$/i;function Cr(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:xr(e))){var o=e.parentNode;if(1!=o.nodeType||$r(e)||Sr.test(e.nodeName)||"false"==e.contentEditable)return!1;t=gr(e)+(r<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?xr(e):0}}}function xr(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function $r(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Or=function(e){var t=e.isCollapsed;return t&&cr.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Ir(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Tr(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Dr(e,t){return"number"==typeof e?e:e[t]}function Vr(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Mr(e,t,n){for(var i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,s=n||e.dom;s;s=br(s))if(1==s.nodeType){var a=s==o.body||1!=s.nodeType,l=a?Tr(o):Vr(s),u=0,d=0;if(t.top<l.top+Dr(i,"top")?d=-(l.top-t.top+Dr(r,"top")):t.bottom>l.bottom-Dr(i,"bottom")&&(d=t.bottom-l.bottom+Dr(r,"bottom")),t.left<l.left+Dr(i,"left")?u=-(l.left-t.left+Dr(r,"left")):t.right>l.right-Dr(i,"right")&&(u=t.right-l.right+Dr(r,"right")),u||d)if(a)o.defaultView.scrollBy(u,d);else{var c=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);var h=s.scrollLeft-c,f=s.scrollTop-p;t={left:t.left-h,top:t.top-f,right:t.right-h,bottom:t.bottom-f}}if(a)break}}function Nr(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=br(e));return t}function Rr(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.dom,o=i.top,s=i.left;r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=s&&(r.scrollLeft=s)}}var Br=null;function Pr(e,t){for(var n,i,r=2e8,o=0,s=t.top,a=t.top,l=e.firstChild,u=0;l;l=l.nextSibling,u++){var d=void 0;if(1==l.nodeType)d=l.getClientRects();else{if(3!=l.nodeType)continue;d=kr(l).getClientRects()}for(var c=0;c<d.length;c++){var p=d[c];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var h=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(h<r){n=l,r=h,i=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&h&&(o=u+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=u+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,i=document.createRange(),r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);var o=jr(i,1);if(o.top!=o.bottom&&Er(t,o))return{node:e,offset:r+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||r&&1==n.nodeType?{node:e,offset:o}:Pr(n,i)}function Er(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Ar(e,t){var n,i,r,o,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(t.left,t.top);a&&(r=(n=a).offsetNode,o=n.offset)}catch(e){}if(!r&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(r=(i=l).startContainer,o=i.startOffset)}var u,d=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var c=e.dom.getBoundingClientRect();if(!Er(t,c))return null;if(!(d=function e(t,n,i){var r=t.childNodes.length;if(r&&i.top<i.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(n.top-i.top)/(i.bottom-i.top))-2)),s=o;;){var a=t.childNodes[s];if(1==a.nodeType)for(var l=a.getClientRects(),u=0;u<l.length;u++){var d=l[u];if(Er(n,d))return e(a,n,d)}if((s=(s+1)%r)==o)break}return t}(e.dom,t,c)))return null}if(cr.safari)for(var p=d;r&&p;p=br(p))p.draggable&&(r=o=null);if(d=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(d,t),r){if(cr.gecko&&1==r.nodeType&&(o=Math.min(o,r.childNodes.length))<r.childNodes.length){var h,f=r.childNodes[o];"IMG"==f.nodeName&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&o++}r==e.dom&&o==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=o&&1==r.nodeType&&"BR"==r.childNodes[o-1].nodeName||(u=function(e,t,n,i){for(var r=-1,o=t;o!=e.dom;){var s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right<i.left||a.bottom<i.top))break;r=s.posAfter}}o=s.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n)}(e,r,o,t))}null==u&&(u=function(e,t,n){var i=Pr(t,n),r=i.node,o=i.offset,s=-1;if(1==r.nodeType&&!r.firstChild){var a=r.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,o,s)}(e,d,t));var v=e.docView.nearestDesc(d,!0);return{pos:u,inside:v?v.posAtStart-v.border:-1}}function jr(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Lr=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fr(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),r=i.node,o=i.offset,s=cr.webkit||cr.gecko;if(3==r.nodeType){if(!s||!Lr.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){var a=o,l=o,u=n<0?1:-1;return n<0&&!o?(l++,u=-1):n>=0&&o==r.nodeValue.length?(a--,u=1):n<0?a--:l++,zr(jr(kr(r,a,l),u),u<0)}var d=jr(kr(r,o,o),n);if(cr.gecko&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){var c=jr(kr(r,o-1,o-1),-1);if(c.top==d.top){var p=jr(kr(r,o,o+1),-1);if(p.top!=d.top)return zr(p,p.left<c.left)}}return d}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==xr(r))){var h=r.childNodes[o-1];if(1==h.nodeType)return Kr(h.getBoundingClientRect(),!1)}if(o<xr(r)){var f=r.childNodes[o];if(1==f.nodeType)return Kr(f.getBoundingClientRect(),!0)}return Kr(r.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==xr(r))){var v=r.childNodes[o-1],m=3==v.nodeType?kr(v,xr(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return zr(jr(m,1),!1)}if(o<xr(r)){for(var g=r.childNodes[o];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var b=g?3==g.nodeType?kr(g,0,s?0:1):1==g.nodeType?g:null:null;if(b)return zr(jr(b,-1),!0)}return zr(jr(3==r.nodeType?kr(r):r,-n),n>=0)}function zr(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Kr(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function _r(e,t,n){var i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}var Hr=/[\u0590-\u08ac]/;var Wr=null,Ur=null,qr=!1;function Gr(e,t,n){return Wr==t&&Ur==n?qr:(Wr=t,Ur=n,qr="up"==n||"down"==n?function(e,t,n){var i=t.selection,r="up"==n?i.$from:i.$to;return _r(e,t,(function(){for(var t=e.docView.domFromPos(r.pos,"up"==n?-1:1).node;;){var i=e.docView.nearestDesc(t,!0);if(!i)break;if(i.node.isBlock){t=i.dom;break}t=i.dom.parentNode}for(var o=Fr(e,r.pos,1),s=t.firstChild;s;s=s.nextSibling){var a=void 0;if(1==s.nodeType)a=s.getClientRects();else{if(3!=s.nodeType)continue;a=kr(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var u=a[l];if(u.bottom>u.top+1&&("up"==n?o.top-u.top>2*(u.bottom-o.top):u.bottom-o.bottom>2*(o.bottom-u.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var i=t.selection.$head;if(!i.parent.isTextblock)return!1;var r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=e.root.getSelection();return Hr.test(i.parent.textContent)&&a.modify?_r(e,t,(function(){var t=a.getRangeAt(0),r=a.focusNode,o=a.focusOffset,s=a.caretBidiLevel;a.modify("move",n,"character");var l=!(i.depth?e.docView.domAfterPos(i.before()):e.dom).contains(1==a.focusNode.nodeType?a.focusNode:a.focusNode.parentNode)||r==a.focusNode&&o==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?o:s}(e,t,n))}var Jr=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},Xr={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};Jr.prototype.matchesWidget=function(){return!1},Jr.prototype.matchesMark=function(){return!1},Jr.prototype.matchesNode=function(){return!1},Jr.prototype.matchesHack=function(e){return!1},Jr.prototype.parseRule=function(){return null},Jr.prototype.stopEvent=function(){return!1},Xr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},Xr.border.get=function(){return 0},Jr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},Jr.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var i=this.children[t];if(i==e)return n;n+=i.size}},Xr.posBefore.get=function(){return this.parent.posBeforeChild(this)},Xr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},Xr.posAfter.get=function(){return this.posBefore+this.size},Xr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},Jr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var i,r;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&(!(r=i.pmViewDesc)||r.parent!=this);)i=i.previousSibling;return i?this.posBeforeChild(r)+r.size:this.posAtStart}var o,s;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&(!(s=o.pmViewDesc)||s.parent!=this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}var a;if(e==this.dom&&this.contentDOM)a=t>gr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){a=!1;break}if(l.parentNode.firstChild!=l)break}if(null==a&&t==e.childNodes.length)for(var u=e;;u=u.parentNode){if(u==this.dom){a=!0;break}if(u.parentNode.lastChild!=u)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},Jr.prototype.nearestDesc=function(e,t){for(var n=!0,i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r&&(!t||r.node)){if(!n||!r.nodeDOM||(1==r.nodeDOM.nodeType?r.nodeDOM.contains(1==e.nodeType?e:e.parentNode):r.nodeDOM==e))return r;n=!1}}},Jr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},Jr.prototype.posFromDOM=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r)return r.localPosFromDOM(e,t,n)}return-1},Jr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var i=this.children[t],r=n+i.size;if(n==e&&r!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<r)return i.descAt(e-n-i.border);n=r}},Jr.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,r=0;n<this.children.length;n++){var o=this.children[n],s=r+o.size;if(s>e||o instanceof ro){i=e-r;break}r=s}if(i)return this.children[n].domFromPos(i-this.children[n].border,t);for(var a=void 0;n&&!(a=this.children[n-1]).size&&a instanceof Zr&&a.widget.type.side>=0;n--);if(t<=0){for(var l,u=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,u=!1);return l&&t&&u&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?gr(l.dom)+1:0}}for(var d,c=!0;(d=n<this.children.length?this.children[n]:null)&&d.dom.parentNode!=this.contentDOM;n++,c=!1);return d&&c&&!d.border&&!d.domAtom?d.domFromPos(0,t):{node:this.contentDOM,offset:d?gr(d.dom):this.contentDOM.childNodes.length}},Jr.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var i=-1,r=-1,o=n,s=0;;s++){var a=this.children[s],l=o+a.size;if(-1==i&&e<=l){var u=o+a.border;if(e>=u&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=o;for(var d=s;d>0;d--){var c=this.children[d-1];if(c.size&&c.dom.parentNode==this.contentDOM&&!c.emptyChildAt(1)){i=gr(c.dom)+1;break}e-=c.size}-1==i&&(i=0)}if(i>-1&&(l>t||s==this.children.length-1)){t=l;for(var p=s+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){r=gr(h.dom);break}t+=h.size}-1==r&&(r=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:r}},Jr.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},Jr.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,i=t.offset;if(1!=n.nodeType||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]},Jr.prototype.setSelection=function(e,t,n,i){for(var r=Math.min(e,t),o=Math.max(e,t),s=0,a=0;s<this.children.length;s++){var l=this.children[s],u=a+l.size;if(r>a&&o<u)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=u}var d=this.domFromPos(e,e?-1:1),c=t==e?d:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((cr.gecko||cr.safari)&&e==t){var f=d.node,v=d.offset;if(3==f.nodeType){if((h=v&&"\n"==f.nodeValue[v-1])&&v==f.nodeValue.length)for(var m=f,g=void 0;m;m=m.parentNode){if(g=m.nextSibling){"BR"==g.nodeName&&(d=c={node:g.parentNode,offset:gr(g)+1});break}var b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{var y=f.childNodes[v-1];h=y&&("BR"==y.nodeName||"false"==y.contentEditable)}}if(cr.gecko&&p.focusNode&&p.focusNode!=c.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&cr.safari||!wr(d.node,d.offset,p.anchorNode,p.anchorOffset)||!wr(c.node,c.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(d.node,d.offset);try{e!=t&&p.extend(c.node,c.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=d;d=c,c=S}var C=document.createRange();C.setEnd(c.node,c.offset),C.setStart(d.node,d.offset),p.removeAllRanges(),p.addRange(C)}}},Jr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},Xr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},Jr.prototype.markDirty=function(e,t){for(var n=0,i=0;i<this.children.length;i++){var r=this.children[i],o=n+r.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var s=n+r.border,a=o-r.border;if(e>=s&&t<=a)return this.dirty=e==n||t==o?2:1,void(e!=s||t!=a||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-s,t-s):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=o}this.dirty=2},Jr.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},Xr.domAtom.get=function(){return!1},Xr.ignoreForCoords.get=function(){return!1},Object.defineProperties(Jr.prototype,Xr);var Yr=[],Zr=function(e){function t(t,n,i,r){var o,s=n.type.toDOM;if("function"==typeof s&&(s=s(i,(function(){return o?o.parent?o.parent.posBeforeChild(o):void 0:r}))),!n.type.spec.raw){if(1!=s.nodeType){var a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable=!1,s.classList.add("ProseMirror-widget")}e.call(this,t,Yr,s,null),this.widget=n,o=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(Jr),Qr=function(e){function t(t,n,i,r){e.call(this,t,Yr,n,null),this.textDOM=i,this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(Jr),eo=function(e){function t(t,n,i,r){e.call(this,t,[],i,r),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,i,r){var o=r.nodeViews[n.type.name],s=o&&o(n,r,i);return s&&s.dom||(s=ce.renderSpec(document,n.type.spec.toDOM(n,i))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var i=this.parent;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,i){var r=t.create(this.parent,this.mark,!0,i),o=this.children,s=this.size;n<s&&(o=go(o,n,s,i)),e>0&&(o=go(o,0,e,i));for(var a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r},t}(Jr),to=function(e){function t(t,n,i,r,o,s,a,l,u){e.call(this,t,n.isLeaf?Yr:[],o,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=r,s&&this.updateChildren(l,u)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,i,r,o,s){var a,l,u=o.nodeViews[n.type.name],d=u&&u(n,o,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,r),c=d&&d.dom,p=d&&d.contentDOM;if(n.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(n.text);else c||(c=(a=ce.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable=!1),n.type.spec.draggable&&(c.draggable=!0));var h=c;return c=po(c,i,n),d?l=new oo(e,n,i,r,c,p,h,d,o,s+1):n.isText?new io(e,n,i,r,c,h,o):new t(e,n,i,r,c,p,h,o,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?o.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&ho(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,i=this.node.inlineContent,r=t,o=e.composing&&this.localCompositionInfo(e,t),s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new vo(this,s&&s.node);!function(e,t,n,i){var r=t.locals(e),o=0;if(0==r.length){for(var s=0;s<e.childCount;s++){var a=e.child(s);i(a,r,t.forChild(o,a),s),o+=a.nodeSize}return}for(var l=0,u=[],d=null,c=0;;){if(l<r.length&&r[l].to==o){for(var p=r[l++],h=void 0;l<r.length&&r[l].to==o;)(h||(h=[p])).push(r[l++]);if(h){h.sort(mo);for(var f=0;f<h.length;f++)n(h[f],c,!!d)}else n(p,c,!!d)}var v=void 0,m=void 0;if(d)m=-1,v=d,d=null;else{if(!(c<e.childCount))break;m=c,v=e.child(c++)}for(var g=0;g<u.length;g++)u[g].to<=o&&u.splice(g--,1);for(;l<r.length&&r[l].from<=o&&r[l].to>o;)u.push(r[l++]);var b=o+v.nodeSize;if(v.isText){var y=b;l<r.length&&r[l].from<y&&(y=r[l].from);for(var k=0;k<u.length;k++)u[k].to<y&&(y=u[k].to);y<b&&(d=v.cut(y-o),v=v.cut(0,y-o),b=y,m=-1)}var w=u.length?v.isInline&&!v.isLeaf?u.filter((function(e){return!e.inline})):u.slice():Yr;i(v,w,t.forChild(o,v),m),o=b}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,i,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?d.none:n.node.child(o).marks,i,e),l.placeWidget(t,e,r)}),(function(t,n,s,u){var d;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,u)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(d=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,n,s,d,e)||l.updateNextNode(t,n,s,e,u)||l.addNode(t,n,s,e,r),r+=t.nodeSize})),l.syncToMarks(Yr,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),function e(t,n,i){for(var r=t.firstChild,o=!1,s=0;s<n.length;s++){var a=n[s],l=a.dom;if(l.parentNode==t){for(;l!=r;)r=fo(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(a instanceof eo){var u=r?r.previousSibling:t.lastChild;e(a.contentDOM,a.children,i),r=u?u.nextSibling:t.firstChild}}for(;r;)r=fo(r),o=!0;o&&i.trackWrites==t&&(i.trackWrites=null)}(this.contentDOM,this.children,e),cr.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,i=n.from,r=n.to;if(!(!(e.state.selection instanceof it)||i<t||r>t+this.node.content.size)){var o=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=xr(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,l=function(e,t,n,i){for(var r=0,o=0;r<e.childCount&&o<=i;){var s=e.child(r++),a=o;if(o+=s.nodeSize,s.isText){for(var l=s.text;r<e.childCount;){var u=e.child(r++);if(o+=u.nodeSize,!u.isText)break;l+=u.text}if(o>=n&&a<i){var d=l.lastIndexOf(t,i-a-1);if(d>=0&&d+t.length+a>=n)return a+d}}}return-1}(this.node.content,a,i-t,r-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,i=t.pos,r=t.text;if(!this.getDesc(n)){for(var o=n;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=null)}var s=new Qr(this,o,n,r);e.compositionNodes.push(s),this.children=go(this.children,i,i+r.length,e,s)}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,i),!0)},t.prototype.updateInner=function(e,t,n,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!ho(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=uo(this.dom,this.nodeDOM,lo(this.outerDeco,this.node,t),lo(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(Jr);function no(e,t,n,i,r){return po(i,t,e),new to(null,e,t,n,i,i,i,r,0)}var io=function(e){function t(t,n,i,r,o,s,a){e.call(this,t,n,i,r,o,null,s,a)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=0,!0)},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,i)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,i){var r=this.node.cut(e,n),o=document.createTextNode(r.text);return new t(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=3)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(to),ro=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return 0==this.dirty&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(Jr),oo=function(e){function t(t,n,i,r,o,s,a,l,u,d){e.call(this,t,n,i,r,o,s,a,u,d),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,i,r){if(3==this.dirty)return!1;if(this.spec.update){var o=this.spec.update(t,n,i);return o&&this.updateInner(t,n,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,i,r)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i):e.prototype.setSelection.call(this,t,n,i,r)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(to);function so(e){e&&(this.nodeName=e)}so.prototype=Object.create(null);var ao=[new so];function lo(e,t,n){if(0==e.length)return ao;for(var i=n?ao[0]:new so,r=[i],o=0;o<e.length;o++){var s=e[o].type.attrs;if(s)for(var a in s.nodeName&&r.push(i=new so(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==r.length&&r.push(i=new so(t.isInline?"span":"div")),"class"==a?i.class=(i.class?i.class+" ":"")+l:"style"==a?i.style=(i.style?i.style+";":"")+l:"nodeName"!=a&&(i[a]=l))}}return r}function uo(e,t,n,i){if(n==ao&&i==ao)return t;for(var r=t,o=0;o<i.length;o++){var s=i[o],a=n[o];if(o){var l=void 0;a&&a.nodeName==s.nodeName&&r!=e&&(l=r.parentNode)&&l.tagName.toLowerCase()==s.nodeName||((l=document.createElement(s.nodeName)).pmIsDeco=!0,l.appendChild(r),a=ao[0]),r=l}co(r,a||ao[0],s)}return r}function co(e,t,n){for(var i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(var r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):Yr,s=n.class?n.class.split(" ").filter(Boolean):Yr,a=0;a<o.length;a++)-1==s.indexOf(o[a])&&e.classList.remove(o[a]);for(var l=0;l<s.length;l++)-1==o.indexOf(s[l])&&e.classList.add(s[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var u,d=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;u=d.exec(t.style);)e.style.removeProperty(u[1]);n.style&&(e.style.cssText+=n.style)}}function po(e,t,n){return uo(e,e,ao,lo(t,n,1!=e.nodeType))}function ho(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function fo(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var vo=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=function(e,t){var n=t,i=n.children.length,r=e.childCount,o=new Map,s=[];e:for(;r>0;){for(var a=void 0;;)if(i){var l=n.children[i-1];if(!(l instanceof eo)){a=l,i--;break}n=l,i=l.children.length}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}var u=a.node;if(u){if(u!=e.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(e.node.content,e)};function mo(e,t){return e.type.side-t.type.side}function go(e,t,n,i,r){for(var o=[],s=0,a=0;s<e.length;s++){var l=e[s],u=a,d=a+=l.size;u>=n||d<=t?o.push(l):(u<t&&o.push(l.slice(0,t-u,i)),r&&(o.push(r),r=null),d>n&&o.push(l.slice(n-u,l.size,i)))}return o}function bo(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var r=e.docView.nearestDesc(n.focusNode),o=r&&0==r.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,l,u=i.resolve(s);if(Or(n)){for(a=u;r&&!r.node;)r=r.parent;if(r&&r.node.isAtom&&ot.isSelectable(r.node)&&r.parent&&(!r.node.isInline||!function(e,t,n){for(var i=0==t,r=t==xr(e);i||r;){if(e==n)return!0;var o=gr(e);if(!(e=e.parentNode))return!1;i=i&&0==o,r=r&&o==xr(e)}}(n.focusNode,n.focusOffset,r.dom))){var d=r.posBefore;l=new ot(s==d?u:i.resolve(d))}}else{var c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(c<0)return null;a=i.resolve(c)}l||(l=Io(e,a,u,"pointer"==t||e.state.selection.head<u.pos&&!o?1:-1));return l}function yo(e){return e.editable?e.hasFocus():To(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ko(e,t){var n=e.state.selection;if($o(e,n),yo(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&cr.chrome){var i=e.root.getSelection(),r=e.domObserver.currentSelection;if(i.anchorNode&&wr(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),i=e.cursorWrapper.dom,r="IMG"==i.nodeName;r?n.setEnd(i.parentNode,gr(i)+1):n.setEnd(i,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&cr.ie&&cr.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var o,s,a=n.anchor,l=n.head;!wo||n instanceof it||(n.$from.parent.inlineContent||(o=So(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=So(e,n.to))),e.docView.setSelection(a,l,e.root,t),wo&&(o&&xo(o),s&&xo(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==i&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){yo(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}vo.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},vo.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},vo.prototype.syncToMarks=function(e,t,n){for(var i=0,r=this.stack.length>>1,o=Math.min(r,e.length);i<o&&(i==r-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<r;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<e.length;){this.stack.push(this.top,this.index+1);for(var s=-1,a=this.index;a<Math.min(this.index+3,this.top.children.length);a++)if(this.top.children[a].matchesMark(e[r])){s=a;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var l=eo.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}},vo.prototype.findNodeMatch=function(e,t,n,i){var r,o=-1;if(i>=this.preMatch.index&&(r=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&r.matchesNode(e,t,n))o=this.top.children.indexOf(r,this.index);else for(var s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){var l=this.top.children[s];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){o=s;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)},vo.prototype.updateNodeAt=function(e,t,n,i,r){return!!this.top.children[i].update(e,t,n,r)&&(this.destroyBetween(this.index,i),this.index=i+1,!0)},vo.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==n)return i;return-1}e=t}},vo.prototype.updateNextNode=function(e,t,n,i,r){for(var o=this.index;o<this.top.children.length;o++){var s=this.top.children[o];if(s instanceof to){var a=this.preMatch.matched.get(s);if(null!=a&&a!=r)return!1;var l=s.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&ho(t,s.outerDeco)))&&s.update(e,t,n,i))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},vo.prototype.addNode=function(e,t,n,i,r){this.top.children.splice(this.index++,0,to.create(this.top,e,t,n,i,r)),this.changed=!0},vo.prototype.placeWidget=function(e,t,n){var i=this.index<this.top.children.length?this.top.children[this.index]:null;if(!i||!i.matchesWidget(e)||e!=i.widget&&i.widget.type.toDOM.parentNode){var r=new Zr(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++},vo.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof eo;)e=e.children[e.children.length-1];e&&e instanceof io&&!/\n$/.test(e.node.text)||((cr.safari||cr.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},vo.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator"),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new ro(this.top,Yr,t,null)),this.changed=!0}};var wo=cr.safari||cr.chrome&&cr.chrome_version<63;function So(e,t){var n=e.docView.domFromPos(t,0),i=n.node,r=n.offset,o=r<i.childNodes.length?i.childNodes[r]:null,s=r?i.childNodes[r-1]:null;if(cr.safari&&o&&"false"==o.contentEditable)return Co(o);if(!(o&&"false"!=o.contentEditable||s&&"false"!=s.contentEditable)){if(o)return Co(o);if(s)return Co(s)}}function Co(e){return e.contentEditable="true",cr.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xo(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function $o(e,t){if(t instanceof ot){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Oo(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Oo(e)}function Oo(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Io(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||it.between(t,n,i)}function To(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Do(e,t){var n=e.selection,i=n.$anchor,r=n.$head,o=t>0?i.max(r):i.min(r),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&et.findFrom(s,t)}function Vo(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Mo(e,t,n){var i=e.state.selection;if(!(i instanceof it)){if(i instanceof ot&&i.node.isInline)return Vo(e,new it(t>0?i.$to:i.$from));var r=Do(e.state,t);return!!r&&Vo(e,r)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var o=Do(e.state,t);return!!(o&&o instanceof ot)&&Vo(e,o)}if(!(cr.mac&&n.indexOf("m")>-1)){var s,a=i.$head,l=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!l||l.isText)return!1;var u=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(u))&&!s.contentDOM)&&(ot.isSelectable(l)?Vo(e,new ot(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!cr.webkit&&Vo(e,new it(e.state.doc.resolve(t<0?u:u+l.nodeSize))))}}function No(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ro(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Bo(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var r,o,s=!1;for(cr.gecko&&1==n.nodeType&&i<No(n)&&Ro(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(Ro(a))r=n,o=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(Eo(n))break;for(var l=n.previousSibling;l&&Ro(l);)r=n.parentNode,o=gr(l),l=l.previousSibling;if(l)i=No(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?Ao(e,t,n,i):r&&Ao(e,t,r,o)}}function Po(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var r,o,s=No(n);;)if(i<s){if(1!=n.nodeType)break;if(!Ro(n.childNodes[i]))break;r=n,o=++i}else{if(Eo(n))break;for(var a=n.nextSibling;a&&Ro(a);)r=a.parentNode,o=gr(a)+1,a=a.nextSibling;if(a)i=0,s=No(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}r&&Ao(e,t,r,o)}}function Eo(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ao(e,t,n,i){if(Or(t)){var r=document.createRange();r.setEnd(n,i),r.setStart(n,i),t.removeAllRanges(),t.addRange(r)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();var o=e.state;setTimeout((function(){e.state==o&&ko(e)}),50)}function jo(e,t,n){var i=e.state.selection;if(i instanceof it&&!i.empty||n.indexOf("s")>-1)return!1;if(cr.mac&&n.indexOf("m")>-1)return!1;var r=i.$from,o=i.$to;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var s=Do(e.state,t);if(s&&s instanceof ot)return Vo(e,s)}if(!r.parent.inlineContent){var a=t<0?r:o,l=i instanceof at?et.near(a,t):et.findFrom(a,t);return!!l&&Vo(e,l)}return!1}function Lo(e,t){if(!(e.state.selection instanceof it))return!0;var n=e.state.selection,i=n.$head,r=n.$anchor,o=n.empty;if(!i.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(s&&!s.isText){var a=e.state.tr;return t<0?a.delete(i.pos-s.nodeSize,i.pos):a.delete(i.pos,i.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Fo(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zo(e,t){var n=t.keyCode,i=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||cr.mac&&72==n&&"c"==i?Lo(e,-1)||Bo(e):46==n||cr.mac&&68==n&&"c"==i?Lo(e,1)||Po(e):13==n||27==n||(37==n?Mo(e,-1,i)||Bo(e):39==n?Mo(e,1,i)||Po(e):38==n?jo(e,-1,i)||Bo(e):40==n?function(e){if(cr.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n&&1==n.nodeType&&0==i&&n.firstChild&&"false"==n.firstChild.contentEditable){var r=n.firstChild;Fo(e,r,!0),setTimeout((function(){return Fo(e,r,!1)}),20)}}}(e)||jo(e,1,i)||Po(e):i==(cr.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Ko(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(cr.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||cr.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function _o(e,t,n,i,r){if(t<0){var s=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,a=bo(e,s);if(a&&!e.state.selection.eq(a)){var l=e.state.tr.setSelection(a);"pointer"==s?l.setMeta("pointer",!0):"key"==s&&l.scrollIntoView(),e.dispatch(l)}}else{var u=e.state.doc.resolve(t),d=u.sharedDepth(n);t=u.before(d+1),n=e.state.doc.resolve(n).after(d+1);var c=e.state.selection,p=function(e,t,n){var i=e.docView.parseRange(t,n),r=i.node,o=i.fromOffset,s=i.toOffset,a=i.from,l=i.to,u=e.root.getSelection(),d=null,c=u.anchorNode;if(c&&e.dom.contains(1==c.nodeType?c:c.parentNode)&&(d=[{node:c,offset:u.anchorOffset}],Or(u)||d.push({node:u.focusNode,offset:u.focusOffset})),cr.chrome&&8===e.lastKeyCode)for(var p=s;p>o;p--){var h=r.childNodes[p-1],f=h.pmViewDesc;if("BR"==h.nodeName&&!f){s=p;break}if(!f||f.size)break}var v=e.state.doc,m=e.someProp("domParser")||ee.fromSchema(e.state.schema),g=v.resolve(a),b=null,y=m.parse(r,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:o,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:d,ruleFromNode:Ko,context:g});if(d&&null!=d[0].pos){var k=d[0].pos,w=d[1]&&d[1].pos;null==w&&(w=k),b={anchor:k+a,head:w+a}}return{doc:y,sel:b,from:a,to:l}}(e,t,n);if(cr.chrome&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from){var h=e.cursorWrapper.deco.type.toDOM.nextSibling,f=h&&h.nodeValue?h.nodeValue.length:1;p.sel={anchor:p.sel.anchor+f,head:p.sel.anchor+f}}var v,m,g=e.state.doc,b=g.slice(p.from,p.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,m="end"):(v=e.state.selection.from,m="start"),e.lastKeyCode=null;var y=function(e,t,n,i,r){var o=e.findDiffStart(t,n);if(null==o)return null;var s=e.findDiffEnd(t,n+e.size,n+t.size),a=s.a,l=s.b;if("end"==r){var u=Math.max(0,o-Math.min(a,l));i-=a+u-o}if(a<o&&e.size<t.size){l=(o-=i<=o&&i>=a?o-i:0)+(l-a),a=o}else if(l<o){a=(o-=i<=o&&i>=l?o-i:0)+(a-l),l=o}return{start:o,endA:a,endB:l}}(b.content,p.doc.content,p.from,v,m);if(!y){if(!(i&&c instanceof it&&!c.empty&&c.$head.sameParent(c.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((cr.ios&&e.lastIOSEnter>Date.now()-225||cr.android)&&r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=Ho(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}y={start:c.from,endA:c.to,endB:c.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof it&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),cr.ie&&cr.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>p.from&&" "==p.doc.textBetween(y.start-p.from-1,y.start-p.from+1)&&(y.start--,y.endA--,y.endB--);var w,S=p.doc.resolveNoCache(y.start-p.from),C=p.doc.resolveNoCache(y.endB-p.from),x=S.sameParent(C)&&S.parent.inlineContent;if((cr.ios&&e.lastIOSEnter>Date.now()-225&&(!x||r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!x&&S.pos<p.doc.content.size&&(w=et.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==C.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,i,r){if(!i.parent.isTextblock||n-t<=r.pos-i.pos||Wo(i,!0,!1)<r.pos)return!1;var o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var s=e.resolve(Wo(o,!0,!0));if(!s.parent.isTextblock||s.pos>n||Wo(s,!0,!1)<n)return!1;return i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,y.start,y.endA,S,C)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))cr.android&&cr.chrome&&e.domObserver.suppressSelectionUpdates();else{cr.chrome&&cr.android&&y.toB==y.from&&(e.lastAndroidDelete=Date.now()),cr.android&&!x&&S.start()!=C.start()&&0==C.parentOffset&&S.depth==C.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==y.endA&&(y.endB-=2,C=p.doc.resolveNoCache(y.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))}))}),20));var $,O,I,T,D=y.start,V=y.endA;if(x)if(S.pos==C.pos)cr.ie&&cr.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return ko(e)}),20)),$=e.state.tr.delete(D,V),O=g.resolve(y.start).marksAcross(g.resolve(y.endA));else if(y.endA==y.endB&&(T=g.resolve(y.start))&&(I=function(e,t){for(var n,i,r,s=e.firstChild.marks,a=t.firstChild.marks,l=s,u=a,d=0;d<a.length;d++)l=a[d].removeFromSet(l);for(var c=0;c<s.length;c++)u=s[c].removeFromSet(u);if(1==l.length&&0==u.length)i=l[0],n="add",r=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=u.length)return null;i=u[0],n="remove",r=function(e){return e.mark(i.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(r(t.child(h)));if(o.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,C.parentOffset),T.parent.content.cut(T.parentOffset,y.endA-T.start()))))$=e.state.tr,"add"==I.type?$.addMark(D,V,I.mark):$.removeMark(D,V,I.mark);else if(S.parent.child(S.index()).isText&&S.index()==C.index()-(C.textOffset?0:1)){var M=S.parent.textBetween(S.parentOffset,C.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,D,V,M)})))return;$=e.state.tr.insertText(M,D,V)}if($||($=e.state.tr.replace(D,V,p.doc.slice(y.start-p.from,y.endB-p.from))),p.sel){var N=Ho(e,$.doc,p.sel);N&&!(cr.chrome&&cr.android&&e.composing&&N.empty&&(y.start!=y.endB||e.lastAndroidDelete<Date.now()-100)&&(N.head==D||N.head==$.mapping.map(V)-1)||cr.ie&&N.empty&&N.head==D)&&$.setSelection(N)}O&&$.ensureMarks(O),e.dispatch($.scrollIntoView())}}}function Ho(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Io(e,t.resolve(n.anchor),t.resolve(n.head))}function Wo(e,t,n){for(var i=e.depth,r=t?e.end():e.pos;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n)for(var o=e.node(i).maybeChild(e.indexAfter(i));o&&!o.isLeaf;)o=o.firstChild,r++;return r}function Uo(e,t){for(var n=[],i=t.content,r=t.openStart,o=t.openEnd;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;var s=i.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),i=s.content}var a=e.someProp("clipboardSerializer")||ce.fromSchema(e.state.schema),l=es(),u=l.createElement("div");u.appendChild(a.serializeFragment(i,{document:l}));for(var d,c=u.firstChild;c&&1==c.nodeType&&(d=Zo[c.nodeName.toLowerCase()]);){for(var p=d.length-1;p>=0;p--){for(var h=l.createElement(d[p]);u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h),"tbody"!=d[p]&&(r++,o++)}c=u.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",r+" "+o+" "+JSON.stringify(n)),{dom:u,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function qo(e,t,n,i,r){var s,a,l=r.parent.type.spec.code;if(!n&&!t)return null;var u=t&&(i||l||!n);if(u){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new p(o.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):p.empty;var d=e.someProp("clipboardTextParser",(function(e){return e(t,r,i)}));if(d)a=d;else{var c=r.marks(),h=e.state.schema,f=ce.fromSchema(h);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=s.appendChild(document.createElement("p"));e&&t.appendChild(f.serializeNode(h.text(e,c)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),s=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=es().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);(n=r&&Zo[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""));if(i.innerHTML=e,n)for(var o=0;o<n.length;o++)i=i.querySelector(n[o])||i;return i}(n),cr.webkit&&function(e){for(var t=e.querySelectorAll(cr.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var i=t[n];1==i.childNodes.length&&" "==i.textContent&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}(s);var v=s&&s.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!a){var g=e.someProp("clipboardParser")||e.someProp("domParser")||ee.fromSchema(e.state.schema);a=g.parseSlice(s,{preserveWhitespace:!(!u&&!m),context:r,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Go.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)a=function(e,t){if(!e.size)return e;var n,i=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var r=e.content,s=e.openStart,a=e.openEnd,l=n.length-2;l>=0;l-=2){var u=i.nodes[n[l]];if(!u||u.hasRequiredAttrs())break;r=o.from(u.create(n[l+1],r)),s++,a++}return new p(r,s,a)}(Yo(a,+m[1],+m[2]),m[3]);else if((a=p.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var i=t.node(n).contentMatchAt(t.index(n)),r=void 0,s=[];if(e.forEach((function(e){if(s){var t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&function e(t,n,i,r,s){if(s<t.length&&s<n.length&&t[s]==n[s]){var a=e(t,n,i,r.lastChild,s+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(s==t.length-1?i.type:t[s+1]))return r.copy(r.content.append(o.from(Jo(i,t,s+1))))}}(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=function e(t,n){if(0==n)return t;var i=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),r=t.contentMatchAt(t.childCount).fillBefore(o.empty,!0);return t.copy(i.append(r))}(s[s.length-1],r.length));var a=Jo(e,n);s.push(a),i=i.matchType(a.type,a.attrs),r=n}}})),s)return{v:o.from(s)}},i=t.depth;i>=0;i--){var r=n(i);if(r)return r.v}return e}(a.content,r),!0)).openStart||a.openEnd){for(var b=0,y=0,k=a.content.firstChild;b<a.openStart&&!k.type.spec.isolating;b++,k=k.firstChild);for(var w=a.content.lastChild;y<a.openEnd&&!w.type.spec.isolating;y++,w=w.lastChild);a=Yo(a,b,y)}return e.someProp("transformPasted",(function(e){a=e(a)})),a}var Go=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Jo(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,o.from(e));return e}function Xo(e,t,n,i,r,s){var a=t<0?e.firstChild:e.lastChild,l=a.content;return r<i-1&&(l=Xo(l,t,n,i,r+1,s)),r>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,e.childCount>1||s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(o.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function Yo(e,t,n){return t<e.openStart&&(e=new p(Xo(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new p(Xo(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Zo={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Qo=null;function es(){return Qo||(Qo=document.implementation.createHTMLDocument("title"))}var ts={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ns=cr.ie&&cr.ie_version<=11,is=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};is.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},is.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var rs=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);cr.ie&&cr.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new is,ns&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};rs.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},rs.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},rs.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ts),ns&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},rs.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}ns&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},rs.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},rs.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},rs.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},rs.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&To(e)){var e;if(this.suppressingSelectionUpdates)return ko(this.view);if(cr.ie&&cr.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&wr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},rs.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},rs.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},rs.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&To(this.view)&&!this.ignoreSelectionChange(t),i=-1,r=-1,o=!1,s=[];if(this.view.editable)for(var a=0;a<e.length;a++){var l=this.registerMutation(e[a],s);l&&(i=i<0?l.from:Math.min(l.from,i),r=r<0?l.to:Math.max(l.to,r),l.typeOver&&(o=!0))}if(cr.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],c=u[1];d.parentNode&&d.parentNode.parentNode==c.parentNode?c.remove():d.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,r),function(e){if(ss)return;ss=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.")}(this.view)),this.handleDOMChange(i,r,o,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||ko(this.view),this.currentSelection.set(t))}},rs.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var i=0;i<e.addedNodes.length;i++)t.push(e.addedNodes[i]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var r=e.previousSibling,o=e.nextSibling;if(cr.ie&&cr.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,u=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(o=u)}var d=r&&r.parentNode==e.target?gr(r)+1:0,c=n.localPosFromDOM(e.target,d,-1),p=o&&o.parentNode==e.target?gr(o):e.target.childNodes.length;return{from:c,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var ss=!1;var as={},ls={};function us(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ds(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return cs(e,t)})}))}function cs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ps(e){return{left:e.clientX,top:e.clientY}}function hs(e,t,n,i,r){if(-1==i)return!1;for(var o=e.state.doc.resolve(i),s=function(i){if(e.someProp(t,(function(t){return i>o.depth?t(e,n,o.nodeAfter,o.before(i),r,!0):t(e,n,o.node(i),o.before(i),r,!1)})))return{v:!0}},a=o.depth+1;a>0;a--){var l=s(a);if(l)return l.v}return!1}function fs(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function vs(e,t,n,i,r){return hs(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(function(n){return n(e,t,i)}))||(r?function(e,t){if(-1==t)return!1;var n,i,r=e.state.selection;r instanceof ot&&(n=r.node);for(var o=e.state.doc.resolve(t),s=o.depth+1;s>0;s--){var a=s>o.depth?o.nodeAfter:o.node(s);if(ot.isSelectable(a)){i=n&&r.$from.depth>0&&s>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(s);break}}return null!=i&&(fs(e,ot.create(e.state.doc,i),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&ot.isSelectable(i))&&(fs(e,new ot(n),"pointer"),!0)}(e,n))}function ms(e,t,n,i){return hs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function gs(e,t,n,i){return hs(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",(function(n){return n(e,t,i)}))||function(e,t,n){if(0!=n.button)return!1;var i=e.state.doc;if(-1==t)return!!i.inlineContent&&(fs(e,it.create(i,0,i.content.size),"pointer"),!0);for(var r=i.resolve(t),o=r.depth+1;o>0;o--){var s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)fs(e,it.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ot.isSelectable(s))continue;fs(e,ot.create(i,a),"pointer")}return!0}}(e,n,i)}function bs(e){return $s(e)}ls.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!ws(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!cr.android||!cr.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!cr.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||zo(e,t)?t.preventDefault():us(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},ls.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},ls.keypress=function(e,t){if(!(ws(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||cr.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof it&&n.$from.sameParent(n.$to))){var i=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,i)}))||e.dispatch(e.state.tr.insertText(i).scrollIntoView()),t.preventDefault()}}};var ys=cr.mac?"metaKey":"ctrlKey";as.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=bs(e),i=Date.now(),r="singleClick";i-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}(t,e.lastClick)&&!t[ys]&&("singleClick"==e.lastClick.type?r="doubleClick":"doubleClick"==e.lastClick.type&&(r="tripleClick")),e.lastClick={time:i,x:t.clientX,y:t.clientY,type:r};var o=e.posAtCoords(ps(t));o&&("singleClick"==r?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new ks(e,o,t,n)):("doubleClick"==r?ms:gs)(e,o.pos,o.inside,t)?t.preventDefault():us(e,"pointer"))};var ks=function(e,t,n,i){var r,o,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[ys],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)r=e.state.doc.nodeAt(t.inside),o=t.inside;else{var a=e.state.doc.resolve(t.pos);r=a.parent,o=a.depth?a.before():0}this.mightDrag=null;var l=i?null:n.target,u=l?e.docView.nearestDesc(l,!0):null;this.target=u?u.dom:null;var d=e.state.selection;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||d instanceof ot&&d.from<=o&&d.to>o)&&(this.mightDrag={node:r,pos:o,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&cr.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),us(e,"pointer")};function ws(e,t){return!!e.composing||!!(cr.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ks.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return ko(e.view)})),this.view.mouseDown=null},ks.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ps(e))),this.allowDefault||!t?us(this.view,"pointer"):vs(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||cr.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||cr.chrome&&!(this.view.state.selection instanceof it)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(fs(this.view,et.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):us(this.view,"pointer")}},ks.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),us(this.view,"pointer"),0==e.buttons&&this.done()},as.touchdown=function(e){bs(e),us(e,"pointer")},as.contextmenu=function(e){return bs(e)};var Ss=cr.android?5e3:-1;function Cs(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return $s(e)}),t))}function xs(e){var t;for(e.composing&&(e.composing=!1,e.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function $s(e,t){if(!(cr.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),xs(e),t||e.docView.dirty){var n=bo(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}ls.compositionstart=ls.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),$s(e,!0),e.markCursor=null;else if($s(e),cr.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var i=e.root.getSelection(),r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){var s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){i.collapse(s,s.nodeValue.length);break}r=s,o=-1}e.composing=!0}Cs(e,Ss)},ls.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Cs(e,20))};var Os=cr.ie&&cr.ie_version<15||cr.ios&&cr.webkit_version<604;function Is(e,t,n,i){var r=qo(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,r||p.empty)})))return!0;if(!r)return!1;var o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(r),s=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(r);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}as.copy=ls.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var r=Os?null:t.clipboardData,o=Uo(e,n.content()),s=o.dom,a=o.text;r?(t.preventDefault(),r.clearData(),r.setData("text/html",s.innerHTML),r.setData("text/plain",a)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},ls.paste=function(e,t){if(!e.composing||cr.android){var n=Os?null:t.clipboardData;n&&Is(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((function(){e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Is(e,i.value,null,t):Is(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Ts=function(e,t){this.slice=e,this.move=t},Ds=cr.mac?"altKey":"ctrlKey";for(var Vs in as.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,r=i.empty?null:e.posAtCoords(ps(t));if(r&&r.pos>=i.from&&r.pos<=(i instanceof ot?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var o=e.docView.nearestDesc(t.target,!0);o&&o.node.type.spec.draggable&&o!=e.docView&&e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),a=Uo(e,s),l=a.dom,u=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Os?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Os||t.dataTransfer.setData("text/plain",u),e.dragging=new Ts(s,!t[Ds])}},as.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},ls.dragover=ls.dragenter=function(e,t){return t.preventDefault()},ls.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ps(t));if(i){var r=e.state.doc.resolve(i.pos);if(r){var o=n&&n.slice;o?e.someProp("transformPasted",(function(e){o=e(o)})):o=qo(e,t.dataTransfer.getData(Os?"Text":"text/plain"),Os?null:t.dataTransfer.getData("text/html"),!1,r);var s=n&&!t[Ds];if(e.someProp("handleDrop",(function(n){return n(e,t,o||p.empty,s)})))t.preventDefault();else if(o){t.preventDefault();var a=o?je(e.state.doc,r.pos,o):r.pos;null==a&&(a=r.pos);var l=e.state.tr;s&&l.deleteSelection();var u=l.mapping.map(a),d=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,c=l.doc;if(d?l.replaceRangeWith(u,u,o.content.firstChild):l.replaceRange(u,u,o),!l.doc.eq(c)){var h=l.doc.resolve(u);if(d&&ot.isSelectable(o.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new ot(h));else{var f=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return f=i})),l.setSelection(Io(e,h,l.doc.resolve(f)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},as.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&ko(e)}),20))},as.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},as.beforeinput=function(e,t){if(cr.chrome&&cr.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},ls)as[Vs]=ls[Vs];function Ms(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var i in t)if(!(i in e))return!1;return!0}var Ns=function(e,t){this.spec=t||js,this.side=this.spec.side||0,this.toDOM=e};Ns.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,this.side<0?-1:1),o=r.pos;return r.deleted?null:new Ps(o-n,o-n,this)},Ns.prototype.valid=function(){return!0},Ns.prototype.eq=function(e){return this==e||e instanceof Ns&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))},Ns.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var Rs=function(e,t){this.spec=t||js,this.attrs=e};Rs.prototype.map=function(e,t,n,i){var r=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return r>=o?null:new Ps(r,o,this)},Rs.prototype.valid=function(e,t){return t.from<t.to},Rs.prototype.eq=function(e){return this==e||e instanceof Rs&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)},Rs.is=function(e){return e.type instanceof Rs};var Bs=function(e,t){this.spec=t||js,this.attrs=e};Bs.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,1);if(r.deleted)return null;var o=e.mapResult(t.to+i,-1);return o.deleted||o.pos<=r.pos?null:new Ps(r.pos-n,o.pos-n,this)},Bs.prototype.valid=function(e,t){var n,i=e.content.findIndex(t.from),r=i.index,o=i.offset;return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to},Bs.prototype.eq=function(e){return this==e||e instanceof Bs&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)};var Ps=function(e,t,n){this.from=e,this.to=t,this.type=n},Es={spec:{configurable:!0},inline:{configurable:!0}};Ps.prototype.copy=function(e,t){return new Ps(e,t,this.type)},Ps.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},Ps.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Ps.widget=function(e,t,n){return new Ps(e,e,new Ns(t,n))},Ps.inline=function(e,t,n,i){return new Ps(e,t,new Rs(n,i))},Ps.node=function(e,t,n,i){return new Ps(e,t,new Bs(n,i))},Es.spec.get=function(){return this.type.spec},Es.inline.get=function(){return this.type instanceof Rs},Object.defineProperties(Ps.prototype,Es);var As=[],js={},Ls=function(e,t){this.local=e&&e.length?e:As,this.children=t&&t.length?t:As};Ls.create=function(e,t){return t.length?Ws(t,e,0,js):Fs},Ls.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Ls.prototype.findInner=function(e,t,n,i,r){for(var o=0;o<this.local.length;o++){var s=this.local[o];s.from<=t&&s.to>=e&&(!r||r(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(var a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){var l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,n,i+l,r)}},Ls.prototype.map=function(e,t,n){return this==Fs||0==e.maps.length?this:this.mapInner(e,t,0,0,n||js)},Ls.prototype.mapInner=function(e,t,n,i,r){for(var o,s=0;s<this.local.length;s++){var a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(o||(o=[])).push(a):r.onRemove&&r.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,r,o,s){for(var a=e.slice(),l=function(e,t,n,i){for(var s=0;s<a.length;s+=3){var l=a[s+1],u=void 0;-1==l||e>l+o||(t>=a[s]+o?a[s+1]=-1:n>=r&&(u=i-n-(t-e))&&(a[s]+=u,a[s+1]+=u))}},u=0;u<n.maps.length;u++)n.maps[u].forEach(l);for(var d=!1,c=0;c<a.length;c+=3)if(-1==a[c+1]){var p=n.map(e[c]+o),h=p-r;if(h<0||h>=i.content.size){d=!0;continue}var f=n.map(e[c+1]+o,-1)-r,v=i.content.findIndex(h),m=v.index,g=v.offset,b=i.maybeChild(m);if(b&&g==h&&g+b.nodeSize==f){var y=a[c+2].mapInner(n,b,p+1,e[c]+o+1,s);y!=Fs?(a[c]=h,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,d=!0)}else d=!0}if(d){var k=Ws(function(e,t,n,i,r,o,s){function a(e,t){for(var o=0;o<e.local.length;o++){var l=e.local[o].map(i,r,t);l?n.push(l):s.onRemove&&s.onRemove(e.local[o].spec)}for(var u=0;u<e.children.length;u+=3)a(e.children[u+2],e.children[u]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+o+1);return n}(a,e,t||[],n,r,o,s),i,0,s);t=k.local;for(var w=0;w<a.length;w+=3)a[w+1]<0&&(a.splice(w,3),w-=3);for(var S=0,C=0;S<k.children.length;S+=3){for(var x=k.children[S];C<a.length&&a[C]<x;)C+=3;a.splice(C,0,k.children[S],k.children[S+1],k.children[S+2])}}return new Ls(t&&t.sort(Us),a)}(this.children,o,e,t,n,i,r):o?new Ls(o.sort(Us)):Fs},Ls.prototype.add=function(e,t){return t.length?this==Fs?Ls.create(e,t):this.addInner(e,t,0):this},Ls.prototype.addInner=function(e,t,n){var i,r=this,o=0;e.forEach((function(e,s){var a,l=s+n;if(a=_s(t,e,l)){for(i||(i=r.children.slice());o<i.length&&i[o]<s;)o+=3;i[o]==s?i[o+2]=i[o+2].addInner(e,a,l+1):i.splice(o,0,s,s+e.nodeSize,Ws(a,e,l+1,js)),o+=3}}));for(var s=Ks(o?Hs(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Ls(s.length?this.local.concat(s).sort(Us):this.local,i||this.children)},Ls.prototype.remove=function(e){return 0==e.length||this==Fs?this:this.removeInner(e,0)},Ls.prototype.removeInner=function(e,t){for(var n=this.children,i=this.local,r=0;r<n.length;r+=3){for(var o=void 0,s=n[r]+t,a=n[r+1]+t,l=0,u=void 0;l<e.length;l++)(u=e[l])&&u.from>s&&u.to<a&&(e[l]=null,(o||(o=[])).push(u));if(o){n==this.children&&(n=this.children.slice());var d=n[r+2].removeInner(o,s+1);d!=Fs?n[r+2]=d:(n.splice(r,3),r-=3)}}if(i.length)for(var c=0,p=void 0;c<e.length;c++)if(p=e[c])for(var h=0;h<i.length;h++)i[h].eq(p,t)&&(i==this.local&&(i=this.local.slice()),i.splice(h--,1));return n==this.children&&i==this.local?this:i.length||n.length?new Ls(i,n):Fs},Ls.prototype.forChild=function(e,t){if(this==Fs)return this;if(t.isLeaf)return Ls.empty;for(var n,i,r=0;r<this.children.length;r+=3)if(this.children[r]>=e){this.children[r]==e&&(n=this.children[r+2]);break}for(var o=e+1,s=o+t.content.size,a=0;a<this.local.length;a++){var l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof Rs){var u=Math.max(o,l.from)-o,d=Math.min(s,l.to)-o;u<d&&(i||(i=[])).push(l.copy(u,d))}}if(i){var c=new Ls(i.sort(Us));return n?new zs([c,n]):c}return n||Fs},Ls.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Ls)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},Ls.prototype.locals=function(e){return qs(this.localsInner(e))},Ls.prototype.localsInner=function(e){if(this==Fs)return As;if(e.inlineContent||!this.local.some(Rs.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Rs||t.push(this.local[n]);return t};var Fs=new Ls;Ls.empty=Fs,Ls.removeOverlap=qs;var zs=function(e){this.members=e};function Ks(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(new Ps(r.from+t,r.to+t,r.type))}return n}function _s(e,t,n){if(t.isLeaf)return null;for(var i=n+t.nodeSize,r=null,o=0,s=void 0;o<e.length;o++)(s=e[o])&&s.from>n&&s.to<i&&((r||(r=[])).push(s),e[o]=null);return r}function Hs(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Ws(e,t,n,i){var r=[],o=!1;t.forEach((function(t,s){var a=_s(e,t,s+n);if(a){o=!0;var l=Ws(a,t,n+s+1,i);l!=Fs&&r.push(s,s+t.nodeSize,l)}}));for(var s=Ks(o?Hs(e):e,-n).sort(Us),a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(i.onRemove&&i.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new Ls(s,r):Fs}function Us(e,t){return e.from-t.from||e.to-t.to}function qs(e){for(var t=e,n=0;n<t.length-1;n++){var i=t[n];if(i.from!=i.to)for(var r=n+1;r<t.length;r++){var o=t[r];if(o.from!=i.from){o.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,o.from),Gs(t,r,i.copy(o.from,i.to)));break}o.to!=i.to&&(t==e&&(t=e.slice()),t[r]=o.copy(o.from,i.to),Gs(t,r+1,o.copy(i.to,o.to)))}}return t}function Gs(e,t,n){for(;t<e.length&&Us(n,e[t])>0;)t++;e.splice(t,0,n)}function Js(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Fs&&t.push(i)})),e.cursorWrapper&&t.push(Ls.create(e.state.doc,[e.cursorWrapper.deco])),zs.from(t)}zs.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,js)}));return zs.from(n)},zs.prototype.forChild=function(e,t){if(t.isLeaf)return Ls.empty;for(var n=[],i=0;i<this.members.length;i++){var r=this.members[i].forChild(e,t);r!=Fs&&(r instanceof zs?n=n.concat(r.members):n.push(r))}return zs.from(n)},zs.prototype.eq=function(e){if(!(e instanceof zs)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},zs.prototype.locals=function(e){for(var t,n=!0,i=0;i<this.members.length;i++){var r=this.members[i].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<r.length;o++)t.push(r[o])}else t=r}return t?qs(n?t:t.sort(Us)):As},zs.from=function(e){switch(e.length){case 0:return Fs;case 1:return e[0];default:return new zs(e)}};var Xs,Ys,Zs=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ra),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=na(this),this.markCursor=null,this.cursorWrapper=null,ta(this),this.nodeViews=ia(this),this.docView=no(this.state.doc,ea(this),Js(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new rs(e,(function(t,n,i,r){return _o(e,t,n,i,r)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=as[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||cs(e,t)||!e.editable&&t.type in ls||n(e,t)})};for(var n in as)t(n);cr.safari&&e.dom.addEventListener("input",(function(){return null})),ds(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},Qs={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function ea(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var i in n)"class"==i&&(t.class+=" "+n[i]),"style"==i?t.style=(t.style?t.style+";":"")+n[i]:t[i]||"contenteditable"==i||"nodeName"==i||(t[i]=String(n[i]))})),[Ps.node(0,e.state.doc.content.size,t)]}function ta(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Ps.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function na(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function ia(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function ra(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}if(Qs.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},Zs.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ds(this),this._props=e,e.plugins&&(e.plugins.forEach(ra),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},Zs.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var i in t.state=this.state,e)t[i]=e[i];this.update(t)},Zs.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Zs.prototype.updateStateInner=function(e,t){var n=this,i=this.state,r=!1,o=!1;if(e.storedMarks&&this.composing&&(xs(this),o=!0),this.state=e,t){var s=ia(this);(function(e,t){var n=0,i=0;for(var r in e){if(e[r]!=t[r])return!0;n++}for(var o in t)i++;return n!=i})(s,this.nodeViews)&&(this.nodeViews=s,r=!0),ds(this)}this.editable=na(this),ta(this);var a=Js(this),l=ea(this),u=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(e.doc,l,a);!d&&e.selection.eq(i.selection)||(o=!0);var c,p,h,f,v,m,g,b,y,k,w,S="preserve"==u&&o&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,i=e.dom.getBoundingClientRect(),r=Math.max(0,i.top),o=(i.left+i.right)/2,s=r+1;s<Math.min(innerHeight,i.bottom);s+=5){var a=e.root.elementFromPoint(o,s);if(a!=e.dom&&e.dom.contains(a)){var l=a.getBoundingClientRect();if(l.top>=r-20){t=a,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Nr(e.dom)}}(this);if(o){this.domObserver.stop();var C=d&&(cr.ie||cr.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&(f=i.selection,v=e.selection,m=Math.min(f.$anchor.sharedDepth(f.head),v.$anchor.sharedDepth(v.head)),f.$anchor.start(m)!=v.$anchor.start(m));if(d){var x=cr.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!r&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=no(e.doc,l,a,this.dom,this)),x&&!this.trackWrites&&(C=!0)}C||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(c=this,p=c.docView.domFromPos(c.state.selection.anchor,0),h=c.root.getSelection(),wr(p.node,p.offset,h.anchorNode,h.anchorOffset)))?ko(this,C):($o(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){var $=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ot?Mr(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),$):Mr(this,this.coordsAtPos(e.selection.head,1),$))}else S&&(b=(g=S).refDOM,y=g.refTop,k=g.stack,w=b?b.getBoundingClientRect().top:0,Rr(k,0==w?0:w-y))},Zs.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},Zs.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var i=0;i<this.directPlugins.length;i++){var r=this.directPlugins[i];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(var o=0;o<this.state.plugins.length;o++){var s=this.state.plugins[o];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},Zs.prototype.someProp=function(e,t){var n,i=this._props&&this._props[e];if(null!=i&&(n=t?t(i):i))return n;for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}var s=this.state.plugins;if(s)for(var a=0;a<s.length;a++){var l=s[a].props[e];if(null!=l&&(n=t?t(l):l))return n}},Zs.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Zs.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Br)return e.focus(Br);var t=Nr(e);e.focus(null==Br?{get preventScroll(){return Br={preventScroll:!0},!0}}:void 0),Br||(Br=!1,Rr(t,0))}(this.dom),ko(this),this.domObserver.start()},Qs.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},Zs.prototype.posAtCoords=function(e){return Ar(this,e)},Zs.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Fr(this,e,t)},Zs.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},Zs.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Zs.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var i=this.docView.posFromDOM(e,t,n);if(null==i)throw new RangeError("DOM position not inside the editor");return i},Zs.prototype.endOfTextblock=function(e,t){return Gr(this,t||this.state,e)},Zs.prototype.destroy=function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Js(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Qs.isDestroyed.get=function(){return null==this.docView},Zs.prototype.dispatchEvent=function(e){return function(e,t){cs(e,t)||!as[t.type]||!e.editable&&t.type in ls||as[t.type](e,t)}(this,e)},Zs.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Zs.prototype,Qs),"undefined"!=typeof WeakMap){var oa=new WeakMap;Xs=function(e){return oa.get(e)},Ys=function(e,t){return oa.set(e,t),t}}else{var sa=[],aa=0;Xs=function(e){for(var t=0;t<sa.length;t+=2)if(sa[t]==e)return sa[t+1]},Ys=function(e,t){return 10==aa&&(aa=0),sa[aa++]=e,sa[aa++]=t}}var la=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},ua=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function da(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ca(e,t){var n=e.getAttribute("data-colwidth"),i=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,r=Number(e.getAttribute("colspan")||1),o={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:i&&i.length==r?i:null};for(var s in t){var a=t[s].getFromDOM,l=a&&a(e);null!=l&&(o[s]=l)}return o}function pa(e,t){var n={};for(var i in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var r=t[i].setDOMAttr;r&&r(e.attrs[i],n)}return n}function ha(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var i in t)n[i]={default:t[i].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["td",pa(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["th",pa(e,t),0]}}}}function fa(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var i=e.nodes[n],r=i.spec.tableRole;r&&(t[r]=i)}return t}ua.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var i=t%this.width,r=t/this.width|0,o=i+1,s=r+1,a=1;o<this.width&&this.map[t+a]==n;a++)o++;for(var l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return new la(i,r,o,s)}}throw new RangeError("No cell with offset "+e+" found")},ua.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},ua.prototype.nextCell=function(e,t,n){var i=this.findCell(e),r=i.left,o=i.right,s=i.top,a=i.bottom;return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[s*this.width+(n<0?r-1:o)]:(n<0?0==s:a==this.height)?null:this.map[r+this.width*(n<0?s-1:a)]},ua.prototype.rectBetween=function(e,t){var n=this.findCell(e),i=n.left,r=n.right,o=n.top,s=n.bottom,a=this.findCell(t),l=a.left,u=a.right,d=a.top,c=a.bottom;return new la(Math.min(i,l),Math.min(o,d),Math.max(r,u),Math.max(s,c))},ua.prototype.cellsInRect=function(e){for(var t=[],n={},i=e.top;i<e.bottom;i++)for(var r=e.left;r<e.right;r++){var o=i*this.width+r,s=this.map[o];n[s]||(n[s]=!0,r==e.left&&r&&this.map[o-1]==s||i==e.top&&i&&this.map[o-this.width]==s||t.push(s))}return t},ua.prototype.positionAt=function(e,t,n){for(var i=0,r=0;;i++){var o=r+n.child(i).nodeSize;if(i==e){for(var s=t+e*this.width,a=(e+1)*this.width;s<a&&this.map[s]<r;)s++;return s==a?o-1:this.map[s]}r=o}},ua.get=function(e){return Xs(e)||Ys(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,i=0;i<e.childCount;i++){var r=e.child(i),o=0;if(n)for(var s=0;s<i;s++)for(var a=e.child(s),l=0;l<a.childCount;l++){var u=a.child(l);s+u.attrs.rowspan>i&&(o+=u.attrs.colspan)}for(var d=0;d<r.childCount;d++){var c=r.child(d);o+=c.attrs.colspan,c.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,i=[],r=0,o=null,s=[],a=0,l=t*n;a<l;a++)i[a]=0;for(var u=0,d=0;u<n;u++){var c=e.child(u);d++;for(var p=0;;p++){for(;r<i.length&&0!=i[r];)r++;if(p==c.childCount)break;for(var h=c.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,b=0;b<m;b++){if(b+u>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:d,n:m-b});break}for(var y=r+b*t,k=0;k<v;k++){0==i[y+k]?i[y+k]=d:(o||(o=[])).push({type:"collision",row:u,pos:d,n:v-k});var w=g&&g[k];if(w){var S=(y+k)%t*2,C=s[S];null==C||C!=w&&1==s[S+1]?(s[S]=w,s[S+1]=1):C==w&&s[S+1]++}}}r+=v,d+=h.nodeSize}for(var x=(u+1)*t,$=0;r<x;)0==i[r++]&&$++;$&&(o||(o=[])).push({type:"missing",row:u,n:$}),d++}for(var O=new ua(t,n,i,o),I=!1,T=0;!I&&T<s.length;T+=2)null!=s[T]&&s[T+1]<n&&(I=!0);I&&function(e,t,n){e.problems||(e.problems=[]);for(var i=0,r={};i<e.map.length;i++){var o=e.map[i];if(!r[o]){r[o]=!0;for(var s=n.nodeAt(o),a=null,l=0;l<s.attrs.colspan;l++){var u=(i+l)%e.width,d=t[2*u];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=da(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}}(O,s,e);return O}(e))};var va=new St("selectingCells");function ma(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function ga(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function ba(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:ma(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return e.doc.resolve(n)}for(var r=e.nodeBefore,o=e.pos;r;r=r.lastChild,o--){var s=r.type.spec.tableRole;if("cell"==s||"header_cell"==s)return e.doc.resolve(o-r.nodeSize)}}(t.$head)}function ya(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function ka(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function wa(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Sa(e){return ua.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Ca(e){return ua.get(e.node(-1)).colCount(e.pos-e.start(-1))}function xa(e,t,n){var i=e.start(-1),r=ua.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==r?null:e.node(0).resolve(i+r)}function $a(e,t,n){var i={};for(var r in e)i[r]=e[r];return i[t]=n,i}function Oa(e,t,n){void 0===n&&(n=1);var i=$a(e,"colspan",e.colspan-n);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,n),i.colwidth.some((function(e){return e>0}))||(i.colwidth=null)),i}function Ia(e,t,n){void 0===n&&(n=1);var i=$a(e,"colspan",e.colspan+n);if(i.colwidth){i.colwidth=i.colwidth.slice();for(var r=0;r<n;r++)i.colwidth.splice(t,0,0)}return i}function Ta(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=i)return!1;return!0}var Da=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),r=ua.get(i),o=t.start(-1),s=r.rectBetween(t.pos-o,n.pos-o),a=t.node(0),l=r.cellsInRect(s).filter((function(e){return e!=n.pos-o}));l.unshift(n.pos-o);var u=l.map((function(e){var t=i.nodeAt(e),n=e+o+1;return new nt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var i=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(ya(i)&&ya(r)&&wa(i,r)){var o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?t.rowSelection(i,r):o&&this.isColSelection()?t.colSelection(i,r):new t(i,r)}return it.between(i,r)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=ua.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},s=[],a=i.top;a<i.bottom;a++){for(var l=[],u=a*t.width+i.left,d=i.left;d<i.right;d++,u++){var c=t.map[u];if(!r[c]){r[c]=!0;var h=t.findCell(c),f=e.nodeAt(c),v=i.left-h.left,m=h.right-i.right;if(v>0||m>0){var g=f.attrs;v>0&&(g=Oa(g,0,v)),m>0&&(g=Oa(g,g.colspan-m,m)),f=h.left<i.left?f.type.createAndFill(g):f.type.create(g,f.content)}if(h.top<i.top||h.bottom>i.bottom){var b=$a(f.attrs,"rowspan",Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top));f=h.top<i.top?f.type.createAndFill(b):f.type.create(b,f.content)}l.push(f)}}s.push(e.child(a).copy(o.from(l)))}var y=this.isColSelection()&&this.isRowSelection()?e:s;return new p(o.from(y),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=p.empty);for(var i=t.steps.length,r=this.ranges,o=0;o<r.length;o++){var s=r[o],a=s.$from,l=s.$to,u=t.mapping.slice(i);t.replace(u.map(a.pos),u.map(l.pos),o?p.empty:n)}var d=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);d&&t.setSelection(d)},t.prototype.replaceWith=function(e,t){this.replace(e,new p(o.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=ua.get(t),i=this.$anchorCell.start(-1),r=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i)),o=0;o<r.length;o++)e(t.nodeAt(r[o]),i+r[o])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,i)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.top<=s.top?(o.top>0&&(e=a.resolve(r+i.map[o.left])),s.bottom<i.height&&(n=a.resolve(r+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(r+i.map[s.left])),o.bottom<i.height&&(e=a.resolve(r+i.map[i.width*(i.height-1)+o.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=ua.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),i=e.colCount(this.$headCell.pos-t);if(Math.min(n,i)>0)return!1;var r=n+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,o)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.left<=s.left?(o.left>0&&(e=a.resolve(r+i.map[o.top*i.width])),s.right<i.width&&(n=a.resolve(r+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(r+i.map[s.top*i.width])),o.right<i.width&&(e=a.resolve(r+i.map[i.width*(o.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,i){return void 0===i&&(i=n),new t(e.resolve(n),e.resolve(i))},t.prototype.getBookmark=function(){return new Va(this.$anchorCell.pos,this.$headCell.pos)},t}(et);Da.prototype.visible=!1,et.jsonID("cell",Da);var Va=function(e,t){this.anchor=e,this.head=t};function Ma(e){if(!(e.selection instanceof Da))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(Ps.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Ls.create(e.doc,t)}function Na(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,i=e.openEnd;1==t.childCount&&(n>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)n--,i--,t=t.firstChild.content;var r=t.firstChild,s=r.type.spec.tableRole,a=r.type.schema,l=[];if("row"==s)for(var u=0;u<t.childCount;u++){var d=t.child(u).content,c=u?0:Math.max(0,n-1),h=u<t.childCount-1?0:Math.max(0,i-1);(c||h)&&(d=Ra(fa(a).row,new p(d,c,h)).content),l.push(d)}else{if("cell"!=s&&"header_cell"!=s)return null;l.push(n||i?Ra(fa(a).row,new p(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var r=t[i],s=r.childCount-1;s>=0;s--)for(var a=r.child(s).attrs,l=a.rowspan,u=a.colspan,d=i;d<i+l;d++)n[d]=(n[d]||0)+u;for(var c=0,p=0;p<n.length;p++)c=Math.max(c,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(o.empty),n[h]<c){for(var f=fa(e).cell.createAndFill(),v=[],m=n[h];m<c;m++)v.push(f);t[h]=t[h].append(o.from(v))}return{height:t.length,width:c,rows:t}}(a,l)}function Ra(e,t){var n=e.createAndFill();return new ke(n).replace(0,n.content.size,t).doc}function Ba(e,t,n){var i=e.width,r=e.height,s=e.rows;if(i!=t){for(var a=[],l=[],u=0;u<s.length;u++){for(var d=s[u],c=[],p=a[u]||0,h=0;p<t;h++){var f=d.child(h%d.childCount);p+f.attrs.colspan>t&&(f=f.type.create(Oa(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),c.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)a[u+v]=(a[u+v]||0)+f.attrs.colspan}l.push(o.from(c))}s=l,i=t}if(r!=n){for(var m=[],g=0,b=0;g<n;g++,b++){for(var y=[],k=s[b%r],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create($a(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),y.push(S)}m.push(o.from(y))}s=m,r=n}return{width:i,height:r,rows:s}}function Pa(e,t,n,i,r,o,s,a){if(0==s||s==t.height)return!1;for(var l=!1,u=r;u<o;u++){var d=s*t.width+u,c=t.map[d];if(t.map[d-t.width]==c){l=!0;var p=n.nodeAt(c),h=t.findCell(c),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(c+i),null,$a(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill($a(p.attrs,"rowspan",f+p.attrs.rowspan-s))),u+=p.attrs.colspan-1}}return l}function Ea(e,t,n,i,r,o,s,a){if(0==s||s==t.width)return!1;for(var l=!1,u=r;u<o;u++){var d=u*t.width+s,c=t.map[d];if(t.map[d-1]==c){l=!0;var p=n.nodeAt(c),h=t.colCount(c),f=e.mapping.slice(a).map(c+i);e.setNodeMarkup(f,null,Oa(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill(Oa(p.attrs,0,s-h))),u+=p.attrs.rowspan-1}}return l}function Aa(e,t,n,i,r){var s=n?e.doc.nodeAt(n-1):e.doc,a=ua.get(s),l=i.top,u=i.left,d=u+r.width,c=l+r.height,h=e.tr,f=0;function v(){s=n?h.doc.nodeAt(n-1):h.doc,a=ua.get(s),f=h.mapping.maps.length}(function(e,t,n,i,r,s,a){var l,u,d=fa(e.doc.type.schema);if(r>t.width)for(var c=0,p=0;c<t.height;c++){var h=n.child(c);p+=h.nodeSize;var f=[],v=void 0;v=null==h.lastChild||h.lastChild.type==d.cell?l||(l=d.cell.createAndFill()):u||(u=d.header_cell.createAndFill());for(var m=t.width;m<r;m++)f.push(v);e.insert(e.mapping.slice(a).map(p-1+i),f)}if(s>t.height){for(var g=[],b=0,y=(t.height-1)*t.width;b<Math.max(t.width,r);b++){var k=!(b>=t.width)&&n.nodeAt(t.map[y+b]).type==d.header_cell;g.push(k?u||(u=d.header_cell.createAndFill()):l||(l=d.cell.createAndFill()))}for(var w=d.row.create(null,o.from(g)),S=[],C=t.height;C<s;C++)S.push(w);e.insert(e.mapping.slice(a).map(i+n.nodeSize-2),S)}return!(!l&&!u)})(h,a,s,n,d,c,f)&&v(),Pa(h,a,s,n,u,d,l,f)&&v(),Pa(h,a,s,n,u,d,c,f)&&v(),Ea(h,a,s,n,l,c,u,f)&&v(),Ea(h,a,s,n,l,c,d,f)&&v();for(var m=l;m<c;m++){var g=a.positionAt(m,u,s),b=a.positionAt(m,d,s);h.replace(h.mapping.slice(f).map(g+n),h.mapping.slice(f).map(b+n),new p(r.rows[m-l],0,0))}v(),h.setSelection(new Da(h.doc.resolve(n+a.positionAt(l,u,s)),h.doc.resolve(n+a.positionAt(c-1,d-1,s)))),t(h)}Va.prototype.map=function(e){return new Va(e.map(this.anchor),e.map(this.head))},Va.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&wa(t,n)?new Da(t,n):et.near(n,1)};var ja=dr({ArrowLeft:Fa("horiz",-1),ArrowRight:Fa("horiz",1),ArrowUp:Fa("vert",-1),ArrowDown:Fa("vert",1),"Shift-ArrowLeft":za("horiz",-1),"Shift-ArrowRight":za("horiz",1),"Shift-ArrowUp":za("vert",-1),"Shift-ArrowDown":za("vert",1),Backspace:Ka,"Mod-Backspace":Ka,Delete:Ka,"Mod-Delete":Ka});function La(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Fa(e,t){return function(n,i,r){var o=n.selection;if(o instanceof Da)return La(n,i,et.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=Ua(r,e,t);if(null==s)return!1;if("horiz"==e)return La(n,i,et.near(n.doc.resolve(o.head+t),t));var a,l=n.doc.resolve(s),u=xa(l,e,t);return a=u?et.near(u,1):t<0?et.near(n.doc.resolve(l.before(-1)),-1):et.near(n.doc.resolve(l.after(-1)),1),La(n,i,a)}}function za(e,t){return function(n,i,r){var o=n.selection;if(!(o instanceof Da)){var s=Ua(r,e,t);if(null==s)return!1;o=new Da(n.doc.resolve(s))}var a=xa(o.$headCell,e,t);return!!a&&La(n,i,new Da(o.$anchorCell,a))}}function Ka(e,t){var n=e.selection;if(!(n instanceof Da))return!1;if(t){var i=e.tr,r=fa(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(r)||i.replace(i.mapping.map(t+1),i.mapping.map(t+e.nodeSize-1),new p(r,0,0))})),i.docChanged&&t(i)}return!0}function _a(e,t){var n=ma(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Da(n))),!0)}function Ha(e,t,n){if(!ga(e.state))return!1;var i=Na(n),r=e.state.selection;if(r instanceof Da){i||(i={width:1,height:1,rows:[o.from(Ra(fa(e.state.schema).cell,n))]});var s=r.$anchorCell.node(-1),a=r.$anchorCell.start(-1),l=ua.get(s).rectBetween(r.$anchorCell.pos-a,r.$headCell.pos-a);return i=Ba(i,l.right-l.left,l.bottom-l.top),Aa(e.state,e.dispatch,a,l,i),!0}if(i){var u=ba(e.state),d=u.start(-1);return Aa(e.state,e.dispatch,d,ua.get(u.node(-1)).findCell(u.pos-d),i),!0}return!1}function Wa(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=qa(e,t.target);if(t.shiftKey&&e.state.selection instanceof Da)r(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=ma(e.state.selection.$anchor))&&Ga(e,t).pos!=n.pos)r(n,t),t.preventDefault();else if(!i)return;e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function r(t,n){var i=Ga(e,n),r=null==va.getState(e.state);if(!i||!wa(t,i)){if(!r)return;i=t}var o=new Da(t,i);if(r||!e.state.selection.eq(o)){var s=e.state.tr.setSelection(o);r&&s.setMeta(va,t.pos),e.dispatch(s)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=va.getState(e.state)&&e.dispatch(e.state.tr.setMeta(va,-1))}function s(n){var s,a=va.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(qa(e,n.target)!=i&&!(s=Ga(e,t)))return o();s&&r(s,n)}}function Ua(e,t,n){if(!(e.state.selection instanceof it))return null;for(var i=e.state.selection.$head,r=i.depth-1;r>=0;r--){var o=i.node(r);if((n<0?i.index(r):i.indexAfter(r))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=i.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function qa(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Ga(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?ma(e.state.doc.resolve(n.pos)):null}var Ja=new St("fix-tables");function Xa(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var r=ua.get(t);if(!r.problems)return i;i||(i=e.tr);for(var o,s,a=[],l=0;l<r.height;l++)a.push(0);for(var u=0;u<r.problems.length;u++){var d=r.problems[u];if("collision"==d.type){for(var c=t.nodeAt(d.pos),p=0;p<c.attrs.rowspan;p++)a[d.row+p]+=d.n;i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,Oa(c.attrs,c.attrs.colspan-d.n,d.n))}else if("missing"==d.type)a[d.row]+=d.n;else if("overlong_rowspan"==d.type){var h=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,$a(h.attrs,"rowspan",h.attrs.rowspan-d.n))}else if("colwidth mismatch"==d.type){var f=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,$a(f.attrs,"colwidth",d.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==o&&(o=v),s=v);for(var m=0,g=n+1;m<r.height;m++){var b=t.child(m),y=g+b.nodeSize,k=a[m];if(k>0){var w="cell";b.firstChild&&(w=b.firstChild.type.spec.tableRole);for(var S=[],C=0;C<k;C++)S.push(fa(e.schema)[w].createAndFill());var x=0!=m&&o!=m-1||s!=m?y-1:g+1;i.insert(i.mapping.map(x),S)}g=y}return i.setMeta(Ja,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&function e(t,n,i,r){var o=t.childCount,s=n.childCount;e:for(var a=0,l=0;a<s;a++){for(var u=n.child(a),d=l,c=Math.min(o,a+3);d<c;d++)if(t.child(d)==u){l=d+1,i+=u.nodeSize;continue e}r(u,i),l<o&&t.child(l).sameMarkup(u)?e(t.child(l),u,i+1,r):u.nodesBetween(0,u.content.size,r,i+1),i+=u.nodeSize}}(t.doc,e.doc,0,i):e.doc.descendants(i),n}function Ya(e){var t,n=e.selection,i=ba(e),r=i.node(-1),o=i.start(-1),s=ua.get(r);return(t=n instanceof Da?s.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):s.findCell(i.pos-o)).tableStart=o,t.map=s,t.table=r,t}function Za(e,t,n){var i=t.map,r=t.tableStart,o=t.table,s=n>0?-1:0;Ta(i,o,n+s)&&(s=0==n||n==i.width?null:0);for(var a=0;a<i.height;a++){var l=a*i.width+n;if(n>0&&n<i.width&&i.map[l-1]==i.map[l]){var u=i.map[l],d=o.nodeAt(u);e.setNodeMarkup(e.mapping.map(r+u),null,Ia(d.attrs,n-i.colCount(u))),a+=d.attrs.rowspan-1}else{var c=null==s?fa(o.type.schema).cell:o.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,o);e.insert(e.mapping.map(r+p),c.createAndFill())}}return e}function Qa(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.left))}return!0}function el(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.right))}return!0}function tl(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=e.mapping.maps.length,a=0;a<i.height;){var l=a*i.width+n,u=i.map[l],d=r.nodeAt(u);if(n>0&&i.map[l-1]==u||n<i.width-1&&i.map[l+1]==u)e.setNodeMarkup(e.mapping.slice(s).map(o+u),null,Oa(d.attrs,n-i.colCount(u)));else{var c=e.mapping.slice(s).map(o+u);e.delete(c,c+d.nodeSize)}a+=d.attrs.rowspan}}function nl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var r=n.right-1;tl(i,n,r),r!=n.left;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function il(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.width;r++)if(t.nodeAt(e.map[r+n*e.width]).type!=i)return!1;return!0}function rl(e,t,n){for(var i=t.map,r=t.tableStart,o=t.table,s=r,a=0;a<n;a++)s+=o.child(a).nodeSize;var l=[],u=n>0?-1:0;il(i,o,n+u)&&(u=0==n||n==i.height?null:0);for(var d=0,c=i.width*n;d<i.width;d++,c++)if(n>0&&n<i.height&&i.map[c]==i.map[c-i.width]){var p=i.map[c],h=o.nodeAt(p).attrs;e.setNodeMarkup(r+p,null,$a(h,"rowspan",h.rowspan+1)),d+=h.colspan-1}else{var f=null==u?fa(o.type.schema).cell:o.nodeAt(i.map[c+u*i.width]).type;l.push(f.createAndFill())}return e.insert(s,fa(o.type.schema).row.create(null,l)),e}function ol(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.top))}return!0}function sl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.bottom))}return!0}function al(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=0,a=0;a<n;a++)s+=r.child(a).nodeSize;var l=s+r.child(n).nodeSize,u=e.mapping.maps.length;e.delete(s+o,l+o);for(var d=0,c=n*i.width;d<i.width;d++,c++){var p=i.map[c];if(n>0&&p==i.map[c-i.width]){var h=r.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(u).map(p+o),null,$a(h,"rowspan",h.rowspan-1)),d+=h.colspan-1}else if(n<i.width&&p==i.map[c+i.width]){var f=r.nodeAt(p),v=f.type.create($a(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,d,r);e.insert(e.mapping.slice(u).map(o+m),v),d+=f.attrs.colspan-1}}}function ll(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var r=n.bottom-1;al(i,n,r),r!=n.top;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function ul(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function dl(e,t){var n=e.selection;if(!(n instanceof Da)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=Ya(e),r=i.map;if(function(e,t){for(var n=e.width,i=e.height,r=e.map,o=t.top*n+t.left,s=o,a=(t.bottom-1)*n+t.left,l=o+(t.right-t.left-1),u=t.top;u<t.bottom;u++){if(t.left>0&&r[s]==r[s-1]||t.right<n&&r[l]==r[l+1])return!0;s+=n,l+=n}for(var d=t.left;d<t.right;d++){if(t.top>0&&r[o]==r[o-n]||t.bottom<i&&r[a]==r[a+n])return!0;o++,a++}return!1}(r,i))return!1;if(t){for(var s,a,l=e.tr,u={},d=o.empty,c=i.top;c<i.bottom;c++)for(var p=i.left;p<i.right;p++){var h=r.map[c*r.width+p],f=i.table.nodeAt(h);if(!u[h])if(u[h]=!0,null==s)s=h,a=f;else{ul(f)||(d=d.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(s+i.tableStart,null,$a(Ia(a.attrs,a.attrs.colspan,i.right-i.left-a.attrs.colspan),"rowspan",i.bottom-i.top)),d.size){var m=s+1+a.content.size,g=ul(a)?s+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,d)}l.setSelection(new Da(l.doc.resolve(s+i.tableStart))),t(l)}return!0}function cl(e,t){var n=fa(e.schema);return pl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function pl(e){return function(t,n){var i,r,o=t.selection;if(o instanceof Da){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,r=o.$anchorCell.pos}else{if(!(i=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;r=ma(o.$from).pos}if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(n){var s=i.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=$a(s,"rowspan",1)),s.colspan>1&&(s=$a(s,"colspan",1));for(var u,d=Ya(t),c=t.tr,p=0;p<d.right-d.left;p++)a.push(l?$a(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=d.top;h<d.bottom;h++){var f=d.map.positionAt(h,d.left,d.table);h==d.top&&(f+=i.nodeSize);for(var v=d.left,m=0;v<d.right;v++,m++)v==d.left&&h==d.top||c.insert(u=c.mapping.map(f+d.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}c.setNodeMarkup(r,e({node:i,row:d.top,col:d.left}),a[0]),o instanceof Da&&c.setSelection(new Da(c.doc.resolve(o.$anchorCell.pos),u&&c.doc.resolve(u))),n(c)}return!0}}function hl(e,t){return function(n,i){if(!ga(n))return!1;var r=ba(n);if(r.nodeAfter.attrs[e]===t)return!1;if(i){var o=n.tr;n.selection instanceof Da?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&o.setNodeMarkup(i,null,$a(n.attrs,e,t))})):o.setNodeMarkup(r.pos,null,$a(r.nodeAfter.attrs,e,t)),i(o)}return!0}}function fl(e,t,n){for(var i=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),r=0;r<i.length;r++){var o=t.table.nodeAt(i[r]);if(o&&o.type!==n.header_cell)return!1}return!0}function vl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!ga(t))return!1;if(n){for(var i=fa(t.schema),r=Ya(t),o=t.tr,s=r.map.cellsInRect("column"==e?new la(r.left,0,r.right,r.map.height):"row"==e?new la(0,r.top,r.map.width,r.bottom):r),a=s.map((function(e){return r.table.nodeAt(e)})),l=0;l<s.length;l++)a[l].type==i.header_cell&&o.setNodeMarkup(r.tableStart+s[l],i.cell,a[l].attrs);if(0==o.steps.length)for(var u=0;u<s.length;u++)o.setNodeMarkup(r.tableStart+s[u],i.header_cell,a[u].attrs);n(o)}return!0}}(e):function(t,n){if(!ga(t))return!1;if(n){var i=fa(t.schema),r=Ya(t),o=t.tr,s=fl("row",r,i),a=fl("column",r,i),l=("column"===e?s:"row"===e&&a)?1:0,u="column"==e?new la(0,l,1,r.map.height):"row"==e?new la(l,0,r.map.width,1):r,d="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;r.map.cellsInRect(u).forEach((function(e){var t=e+r.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,d,n.attrs)})),n(o)}return!0}}var ml=vl("row",{useDeprecatedLogic:!0}),gl=vl("column",{useDeprecatedLogic:!0}),bl=vl("cell",{useDeprecatedLogic:!0});function yl(e){return function(t,n){if(!ga(t))return!1;var i=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var i=e.index(-1)-1,r=e.before();i>=0;i--){var o=e.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var s=e.node(-1),a=e.indexAfter(-1),l=e.after();a<s.childCount;a++){var u=s.child(a);if(u.childCount)return l+1;l+=u.nodeSize}}}(ba(t),e);if(null!=i){if(n){var r=t.doc.resolve(i);n(t.tr.setSelection(it.between(r,ka(r))).scrollIntoView())}return!0}}}function kl(e,t){for(var n=e.selection.$anchor,i=n.depth;i>0;i--){if("table"==n.node(i).type.spec.tableRole)return t&&t(e.tr.delete(n.before(i),n.after(i)).scrollIntoView()),!0}return!1}var wl=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Sl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Sl(e,t,n,i,r,o){for(var s=0,a=!0,l=t.firstChild,u=e.firstChild,d=0,c=0;d<u.childCount;d++)for(var p=u.child(d).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,c++){var m=r==c?o:f&&f[v],g=m?m+"px":"";s+=m||i,m||(a=!1),l?(l.style.width!=g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var b=l.nextSibling;l.parentNode.removeChild(l),l=b}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}wl.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Sl(e,this.colgroup,this.table,this.cellMinWidth),!0)},wl.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Cl=new St("tableColumnResizing");function xl(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var i=e.View;void 0===i&&(i=wl);var r=e.lastColumnResizable;return void 0===r&&(r=!0),new yt({key:Cl,state:{init:function(e,t){return this.spec.props.nodeViews[fa(t.schema).table.name]=function(e,t){return new i(e,n,t)},new $l(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Cl.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,r){var o=Cl.getState(e.state);if(!o.dragging){var s=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),a=-1;if(s){var l=s.getBoundingClientRect(),u=l.left,d=l.right;t.clientX-u<=n?a=Ol(e,t,"left"):d-t.clientX<=n&&(a=Ol(e,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){var c=e.state.doc.resolve(a),p=c.node(-1),h=ua.get(p),f=c.start(-1);if(h.colCount(c.pos-f)+c.nodeAfter.attrs.colspan-1==h.width-1)return}Tl(e,a)}}}(e,n,t,0,r)},mouseleave:function(e){!function(e){var t=Cl.getState(e.state);t.activeHandle>-1&&!t.dragging&&Tl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Cl.getState(e.state);if(-1==i.activeHandle||i.dragging)return!1;var r=e.state.doc.nodeAt(i.activeHandle),o=function(e,t,n){var i=n.colspan,r=n.colwidth,o=r&&r[r.length-1];if(o)return o;var s=e.domAtPos(t),a=s.node.childNodes[s.offset].offsetWidth,l=i;if(r)for(var u=0;u<i;u++)r[u]&&(a-=r[u],l--);return a/l}(e,i.activeHandle,r.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Cl.getState(e.state);i.dragging&&(!function(e,t,n){for(var i=e.state.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,u=0;u<o.height;u++){var d=u*o.width+a;if(!u||o.map[d]!=o.map[d-o.width]){var c=o.map[d],p=r.nodeAt(c).attrs,h=1==p.colspan?0:a-o.colCount(c);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():Dl(p.colspan);f[h]=n,l.setNodeMarkup(s+c,null,$a(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,Il(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Cl,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Cl.getState(e.state),r=Il(i.dragging,t,n);!function(e,t,n,i){var r=e.state.doc.resolve(t),o=r.node(-1),s=r.start(-1),a=ua.get(o).colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;Sl(o,l.firstChild,l,i,a,n)}(e,i.activeHandle,r,n)}e.dispatch(e.state.tr.setMeta(Cl,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Cl.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<o.height;l++){var u=a+l*o.width-1;if(!(a!=o.width&&o.map[u]==o.map[u+1]||0!=l&&o.map[u-1]==o.map[u-1-o.width])){var d=o.map[u],c=s+d+r.nodeAt(d).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Ps.widget(c,p))}}return Ls.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}var $l=function(e,t){this.activeHandle=e,this.dragging=t};function Ol(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var r=i.pos,o=ma(e.state.doc.resolve(r));if(!o)return-1;if("right"==n)return o.pos;var s=ua.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Il(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Tl(e,t){e.dispatch(e.state.tr.setMeta(Cl,{setHandle:t}))}function Dl(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Vl(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new yt({key:va,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(va);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var i=e.mapping.mapResult(t),r=i.deleted,o=i.pos;return r?null:o}},props:{decorations:Ma,handleDOMEvents:{mousedown:Wa},createSelectionBetween:function(e){if(null!=va.getState(e.state))return e.state.selection},handleTripleClick:_a,handleKeyDown:ja,handlePaste:Ha},appendTransaction:function(e,n,i){return function(e,t,n){var i,r,o=(t||e).selection,s=(t||e).doc;if(o instanceof ot&&(r=o.node.type.spec.tableRole)){if("cell"==r||"header_cell"==r)i=Da.create(s,o.from);else if("row"==r){var a=s.resolve(o.from+1);i=Da.rowSelection(a,a)}else if(!n){var l=ua.get(o.node),u=o.from+1,d=u+l.map[l.width*l.height-1];i=Da.create(s,u+1,d)}}else o instanceof it&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var i=t.pos,r=n.pos,o=t.depth;o>=0&&!(t.after(o+1)<t.end(o));o--,i++);for(var s=n.depth;s>=0&&!(n.before(s+1)>n.start(s));s--,r--);return i==r&&/row|table/.test(t.node(o).type.spec.tableRole)}(o)?i=it.create(s,o.from):o instanceof it&&function(e){for(var t,n,i=e.$from,r=e.$to,o=i.depth;o>0;o--){var s=i.node(o);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){t=s;break}}for(var a=r.depth;a>0;a--){var l=r.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===r.parentOffset}(o)&&(i=it.create(s,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,Xa(i,n),t)}})}$l.prototype.apply=function(e){var t=this,n=e.getMeta(Cl);if(n&&null!=n.setHandle)return new $l(n.setHandle,null);if(n&&void 0!==n.setDragging)return new $l(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);ya(e.doc.resolve(i))||(i=null),t=new $l(i,t.dragging)}return t};var Ml=["blockquote",0],Nl=["hr"],Rl=["pre",["code",0]],Bl=["ol",0],Pl=["ul",0],El=["li",0],Al=function(e){for(var t,n={},i=e.attributes,r=0;r<i.length;r++)n[(t=i[r]).name]=t.value;return n},jl=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Ll=function(){return jl(["style","class","id"])},Fl=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},zl=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},Kl=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},_l=Bt({link:{attrs:Bt({},Ll(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:Al}],toDOM:function(e){return["a",zl(e.attrs),0]}}},Kl("strong"),Kl("b"),Kl("em"),Kl("i"),Kl("u"),Kl("del"),Kl("sub"),Kl("sup"),Kl("code"),{style:{attrs:Bt({},Ll()),parseDOM:[{tag:"span",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["span",zl(e.attrs),0]:["span",0]}}}),Hl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Wl=Bt({},Hl("style"),Hl("class"),Hl("id"),Hl("headers")),Ul={doc:{content:"colgroup*"},col:{attrs:jl(["id","class","style","span"]),parseDOM:[{getAttrs:Al,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:jl(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:Al,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},ql=new Z({nodes:Ul,marks:{}}),Gl=ha({tableGroup:"block",cellContent:"block+",cellAttributes:Wl});Gl.table_row.attrs=Bt({},Gl.table_row.attrs,jl([Ct,"style","class","id"])),Gl.table_row.toDOM=function(e){return["tr",zl(e.attrs),0]},Gl.table_row.parseDOM=[{tag:"tr",getAttrs:Al}],Gl.table.attrs=Bt({},Gl.table.attrs,jl(["style","class","id","k-colgroup-data"])),Gl.table.toDOM=function(e){var t=Fl(e.attrs)?zl(e.attrs,"k-colgroup-data"):{},n=null;if(e.attrs["k-colgroup-data"]&&!function(e){for(var t=!1,n=e.child(0),i=0;i<n.childCount;i++){if(n.child(i).attrs.colwidth){t=!0;break}}return t}(e)){var i=Vt(Tt(e.attrs["k-colgroup-data"]),ql,{preserveWhitespace:!1}),r=Dt(i).firstChild;if(r){var o=Array.from(r.children).map((function(e){return["col",Al(e)]}));n=["colgroup",Al(r)].concat(o)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},Gl.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=Al(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t["k-colgroup-data"]=n.outerHTML),t}}];var Jl=Bt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"p",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["p",zl(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"div",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["div",zl(e.attrs),0]:["div",0]}},blockquote:{attrs:Bt({},Ll()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["blockquote",zl(e.attrs),0]:Ml}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Nl}},heading:{attrs:Bt({},Ll(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return Bt({},Al(e),{level:1})}},{tag:"h2",getAttrs:function(e){return Bt({},Al(e),{level:2})}},{tag:"h3",getAttrs:function(e){return Bt({},Al(e),{level:3})}},{tag:"h4",getAttrs:function(e){return Bt({},Al(e),{level:4})}},{tag:"h5",getAttrs:function(e){return Bt({},Al(e),{level:5})}},{tag:"h6",getAttrs:function(e){return Bt({},Al(e),{level:6})}}],toDOM:function(e){return Fl(e.attrs,"level")?["h"+e.attrs.level,zl(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return Rl}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Bt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Ll()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["img",zl(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:Bt({},Ll()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["br",zl(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:Bt({},Ll(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return Bt({},Al(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Fl(e.attrs,"order")?["ol",zl(e.attrs,"order"),0]:Bl:["ol",Bt({},zl(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"ul",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["ul",zl(e.attrs),0]:Pl}},list_item:{content:"(paragraph | heading) block*",attrs:Bt({},Ll()),parseDOM:[{tag:"li",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["li",zl(e.attrs),0]:El},defining:!0}},Gl),Xl=function(){};Xl.prototype.append=function(e){return e.length?(e=Xl.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Xl.prototype.prepend=function(e){return e.length?Xl.from(e).append(this):this},Xl.prototype.appendInner=function(e){return new Zl(this,e)},Xl.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Xl.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Xl.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Xl.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Xl.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var i=[];return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},Xl.from=function(e){return e instanceof Xl?e:e&&e.length?new Yl(e):Xl.empty};var Yl=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var r=t;r<n;r++)if(!1===e(this.values[r],i+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],i+r))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Xl);Xl.empty=new Yl([]);var Zl=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),i))&&(!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,i+r))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,i){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,i+r))&&(!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,i))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(Xl),Ql=Xl,eu=function(e,t){this.items=e,this.eventCount=t};eu.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var i,r,o=this.items.length;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(i=this.remapping(o,this.items.length),r=i.maps.length);var s,a,l=e.tr,u=[],d=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(o,t+1),r=i.maps.length),r--,void d.push(e);if(i){d.push(new tu(e.map));var c,p=e.step.map(i.slice(r));p&&l.maybeStep(p).doc&&(c=l.mapping.maps[l.mapping.maps.length-1],u.push(new tu(c,null,null,u.length+d.length))),r--,c&&i.appendMap(c,r)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(r)):e.selection,a=new eu(n.items.slice(0,o).append(d.reverse().concat(u)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},eu.prototype.addTransform=function(e,t,n,i){for(var r=[],o=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null,l=0;l<e.steps.length;l++){var u,d=e.steps[l].invert(e.docs[l]),c=new tu(e.mapping.maps[l],d,t);(u=a&&a.merge(c))&&(c=u,l?r.pop():s=s.slice(0,s.length-1)),r.push(c),t&&(o++,t=null),i||(a=c)}var p,h,f,v=o-n.depth;return v>iu&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),o-=v),new eu(s.append(r),o)},eu.prototype.remapping=function(e,t){var n=new be;return this.items.forEach((function(t,i){var r=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,r)}),e,t),n},eu.prototype.addMaps=function(e){return 0==this.eventCount?this:new eu(this.items.append(e.map((function(e){return new tu(e)}))),this.eventCount)},eu.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-t),r=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach((function(e){e.selection&&s--}),i);var a=t;this.items.forEach((function(t){var i=r.getMirror(--a);if(null!=i){o=Math.min(o,i);var l=r.maps[i];if(t.step){var u=e.steps[i].invert(e.docs[i]),d=t.selection&&t.selection.map(r.slice(a+1,i));d&&s++,n.push(new tu(l,u,d))}else n.push(new tu(l))}}),i);for(var l=[],u=t;u<o;u++)l.push(new tu(r.maps[u]));var d=this.items.slice(0,i).append(l).append(n),c=new eu(d,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c},eu.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},eu.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,i=[],r=0;return this.items.forEach((function(o,s){if(s>=e)i.push(o),o.selection&&r++;else if(o.step){var a=o.step.map(t.slice(n)),l=a&&a.getMap();if(n--,l&&t.appendMap(l,n),a){var u=o.selection&&o.selection.map(t.slice(n));u&&r++;var d,c=new tu(l.invert(),a,u),p=i.length-1;(d=i.length&&i[p].merge(c))?i[p]=d:i.push(c)}}else o.map&&n--}),this.items.length,0),new eu(Ql.from(i.reverse()),r)},eu.empty=new eu(Ql.empty,0);var tu=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};tu.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new tu(t.getMap().invert(),t,this.selection)}};var nu=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},iu=20;function ru(e){var t=[];return e.forEach((function(e,n,i,r){return t.push(i,r)})),t}function ou(e,t){if(!e)return null;for(var n=[],i=0;i<e.length;i+=2){var r=t.map(e[i],1),o=t.map(e[i+1],-1);r<=o&&n.push(r,o)}return n}function su(e,t,n,i){var r=uu(t),o=cu.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,r);if(s){var a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),o,r),u=new nu(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(cu,{redo:i,historyState:u}).scrollIntoView())}}var au=!1,lu=null;function uu(e){var t=e.plugins;if(lu!=t){au=!1,lu=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){au=!0;break}}return au}function du(e){return e.setMeta(pu,!0)}var cu=new St("history"),pu=new St("closeHistory");function hu(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new yt({key:cu,state:{init:function(){return new nu(eu.empty,eu.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var r,o=n.getMeta(cu);if(o)return o.historyState;n.getMeta(pu)&&(e=new nu(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(cu))return s.getMeta(cu).redo?new nu(e.done.addTransform(n,null,i,uu(t)),e.undone,ru(n.mapping.maps[n.steps.length-1]),e.prevTime):new nu(e.done,e.undone.addTransform(n,null,i,uu(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new nu(e.done.rebased(n,r),e.undone.rebased(n,r),ou(e.prevRanges,n.mapping),e.prevTime):new nu(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),ou(e.prevRanges,n.mapping),e.prevTime);var a=0==e.prevTime||!s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,i){for(var r=0;r<t.length;r+=2)e<=t[r+1]&&i>=t[r]&&(n=!0)})),n}(n,e.prevRanges)),l=s?ou(e.prevRanges,n.mapping):ru(n.mapping.maps[n.steps.length-1]);return new nu(e.done.addTransform(n,a?t.selection.getBookmark():null,i,uu(t)),eu.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?fu(e.state,e.dispatch):"historyRedo"==t.inputType&&vu(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function fu(e,t){var n=cu.getState(e);return!(!n||0==n.done.eventCount)&&(t&&su(n,e,t,!1),!0)}function vu(e,t){var n=cu.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&su(n,e,t,!0),!0)}function mu(e){var t=cu.getState(e);return t?t.done.eventCount:0}function gu(e){var t=cu.getState(e);return t?t.undone.eventCount:0}var bu=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,i,r){var o=n;if(t[1]){var s=t[0].lastIndexOf(t[1]);o+=t[0].slice(s+t[1].length);var a=(i+=s)-r;a>0&&(o=t[0].slice(s-a,s)+o,i=r)}return e.tr.insertText(o,i,r)}):t};function yu(e){var t=e.rules,n=new yt({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,r,o){return ku(e,i,r,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&ku(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function ku(e,t,n,i,r,o){if(e.composing)return!1;var s=e.state,a=s.doc.resolve(t);if(a.parent.type.spec.code)return!1;for(var l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,null,"")+i,u=0;u<r.length;u++){var d=r[u].match.exec(l),c=d&&r[u].handler(s,d,t-(d[0].length-i.length),n);if(c)return e.dispatch(c.setMeta(o,{transform:c,from:t,to:n,text:i})),!0}return!1}function wu(e,t){for(var n=e.plugins,i=0;i<n.length;i++){var r=n[i],o=void 0;if(r.spec.isInputRules&&(o=r.getState(e))){if(t){for(var s=e.tr,a=o.transform,l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(o.text){var u=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,u))}else s.delete(o.from,o.to);t(s)}return!0}}return!1}var Su=new bu(/--$/,"—"),Cu=new bu(/\.\.\.$/,"…"),xu=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),$u=new bu(/"$/,"”"),Ou=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Iu=new bu(/'$/,"’"),Tu=[xu,$u,Ou,Iu];function Du(e,t,n,i){return new bu(e,(function(e,r,o,s){var a=n instanceof Function?n(r):n,l=e.tr.delete(o,s),u=l.doc.resolve(o).blockRange(),d=u&&Me(u,t,a);if(!d)return null;l.wrap(u,d);var c=l.doc.resolve(o-1).nodeBefore;return c&&c.type==t&&Be(l.doc,o-1)&&(!i||i(r,c))&&l.join(o-1),l}))}function Vu(e,t,n){return new bu(e,(function(e,i,r,o){var s=e.doc.resolve(r),a=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(r,o).setBlockType(r,r,t,a):null}))}var Mu={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},Nu={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},Ru={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},Bu={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},Pu={mark:"sub"},Eu={mark:"sup"},Au={mark:"link"},ju="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Lu=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=fu,n["Shift-Mod-z"]=vu,n.Backspace=yi(wu,Wn,Un,Gn),n.Enter=yi(ni,oi,si,li),ju||(n["Mod-y"]=vu),e.marks.strong&&(n["Mod-b"]=Gt(dn,Bt({},Mu,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=Gt(dn,Bt({},Nu,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=Gt(dn,Bt({},Ru,{applyToWord:i}))),e.nodes.hard_break){var r=e.nodes.hard_break,o=yi(ri,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));n["Shift-Enter"]=o}return n},Fu=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return An(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},zu=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Ku=function(e){return/^MsoListParagraph/.test(e.className)},_u=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Hu=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Wu=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Uu=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i.getAttribute("datalist")?(n.push(e),t.add(n)):Ku(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Uu(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Uu(e.children,t)})))}}))},qu=function(e){var t,n=e.innerHTML,i=function(e){return e.replace(/^(?: |[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=i(_u(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Wu(i(_u(e)))}:void 0},Gu=function(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?_u(e):e.firstChild.innerHTML.replace(/^\w+[\.\)]( )+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^( |\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var i=document.createElement("li");return i.innerHTML=t,i},Ju=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(zu,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Uu(t.children,n),n.forEach((function(e){return function(e){var t,n,i,r,o,s,a,l,u,d,c,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(u=e[l]).getAttribute("datalist"),datalevel:u.getAttribute("datalevel")}).datalist,g=qu(u);if(d=g&&g.tag){if(c=h.datalevel||parseFloat(u.style.marginLeft||0),h.datalevel||u.style.marginLeft){var b=d+m;v[c]||(v[c]={}),(!n||n<0)&&(n=c,i=m,r=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Hu(d,g&&g.style),u.parentNode.insertBefore(s,u),f=c,v[c][b]=s),o=r===u,p=v[c][b],(c>f||!p)&&(p=Hu(d,g&&g.style),v[c][b]=p,t.appendChild(p)),t=Gu(u),p.appendChild(t),o?n=f=-1:f=c}}else!t||o&&!Ku(u)||(u.style.marginLeft&&(u.style.marginLeft=""),u.style.marginLeft&&(u.style.margin=""),t.appendChild(u))}}(e)})),t.innerHTML},Xu=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},Yu=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},Zu=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},Qu=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ed=function(e){/^Mso/.test(e.value)&&Qu(e)},td=/\s*;\s*/,nd=/\s*:\s*/,id=function(e){var t,n,i=e.value.split(td).filter((function(e){return Boolean(e)})),r=e.ownerElement.style,o="";i.forEach((function(e){var i;i=e.split(nd),t=i[0],n=i[1],void 0!==r[t]&&(o+=t+": "+n+"; ")})),(o=o.trim())?e.value=o:Qu(e)},rd=function(e,t){var n=e;if(t.convertMsLists&&(n=Ju(n)),t.stripTags&&(n=Zu(n,t.stripTags)),t.attributes){var i=document.createElement("div");i.innerHTML=n,Array.from(i.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;n>=0;n--){var i=e.attributes[n];t[i.name]?t[i.name](i):t["*"]&&t["*"](i)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,t.attributes)})),n=i.innerHTML}return n};function od(e){for(var t=e.length,n=new Array(t/2),i=0;i<t;i+=2)n[i]=String.fromCharCode(parseInt(e.substring(i,i+2),16));return btoa(n.join(""))}var sd=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,ad=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,ld=new RegExp("(?:("+ad.source+"))([\\da-fA-F\\s]+)\\}","g"),ud=/[^\da-fA-F]/g,dd=/file:\/[^'"]+\.(jpg|png|gif)/i,cd=/\\(png|jpeg)blip\\/,pd=function(e,t){var n=e.match(sd);if(!n||-1===t.types.indexOf("text/rtf"))return e;var i=t.getData("text/rtf"),r=[],o=i.match(ld);if(!i||!o)return e;for(var s=0,a=o;s<a.length;s++){var l=a[s],u=cd.exec(l);if(u){var d=l.replace(ad,"").replace(ud,"");r.push("data:image/"+u[1]+";base64,"+od(d))}}return n.length!==r.length?e:e.replace(sd,(function(e){var t=r.shift()||"";return e.replace(dd,t)}))},hd=function(e,t,n,i,r){var o,s,a,l,u,d,c=[],p=[],h=t.matchCase,f=t.matchWord,v=t.useRegExp,m=t.text;if(v&&(/^\\$/.test(m)||/[^\\]\\$/.test(m))&&(m=m.substring(0,m.length-1)),!m)return c;var g=h?"g":"gi",b=v?new RegExp(m,g):kd(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(r(c))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,v,m,g){if(r(c))return!1;var y=1+h+v;if(t.isText&&y+t.nodeSize>=n){if(u=t.text||"",d=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=y?{text:u,start:y}:{text:u.slice(n-y),start:n}),d&&d.isText)return;for(s=p.map((function(e){return e.text})).join(""),o=b.exec(s);null!==o&&(a=p[0].start+o.index,l=a+o[0].length,n<=a&&i>=l&&yd(o,f)&&c.push(it.create(e,a,l)),!r(c));)o=b.exec(s)}else p.length=0})))})),c},fd=function(e,t){var n=t.backward,i=t.matchCyclic,r=Pt(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=hd(s,r,0,a.from,o)).length&&i&&(l=hd(s,r,a.from,s.content.size,o)):!(l=hd(s,r,a.to,s.content.size,o)).length&&i&&(l=hd(s,r,0,a.to,o)),l.length?l[l.length-1]:null},vd=function(e,t){return hd(e,t,0,e.content.size,(function(){return!1}))},md=function(e,t,n){var i=e.from,r=e.to;return n.insertText(t,i,r).setSelection(it.create(n.doc,i,i+t.length)),n},gd=function(e,t,n){var i=vd(e.doc,n);if(0===i.length)return null;for(var r=e.tr,o=i.length-1;o>=0;o--)r.insertText(t,i[o].from,i[o].to);return r},bd=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,yd=function(e,t){if(t){if(!0===t){var n=e.input,i=n.charAt(e.index-1),r=n.charAt(e.index+e[0].length);return bd.test(i)&&bd.test(r)}return t(e)}return!0},kd=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function wd(e){var t={class:"k-placeholder","data-placeholder":e};return new yt({key:new St("placeholder"),props:{decorations:function(e){var n=e.doc,i=n.content.firstChild;if(!(0===n.childCount||1===n.childCount&&i.inlineContent&&0===i.childCount))return Ls.empty;var r=[];return n.descendants((function(e,n){r.push(Ps.node(n,n+e.nodeSize,t))})),Ls.create(n,r)}}})}var Sd=/\s+/g,Cd=/text-align/,xd=function(){return new yt({key:new St("spaces-fix"),props:{decorations:function(e){var t,n,i,r,o=[],s=e.doc;return s.nodesBetween(0,s.content.size,(function(e,s,a){if(e.type.isText&&function(e){return Cd.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Sd.exec(e.text||"");null!==n;){if(t=s+n.index,i=n[0].length,n.index+i<n.input.length)for(r=0;r<=i-1;r+=2)o.push(Ps.inline(t+r,t+r+1,{style:"white-space: normal"}));n=Sd.exec(e.text||"")}})),Ls.create(s,o)}}})},$d=new St("highlight");function Od(e){return void 0===e&&(e=$d),new yt({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map((function(e){return Ps.inline(e.from,e.to,e.attrs)}));return Ls.create(e.doc,t)}}})}var Id=new St("image-resize"),Td={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},Dd=Object.keys(Td),Vd=function(e,t,n){e.style[t]=n+"px"},Md=/[^\-]width:|[^\-]height:/,Nd=/^.+$/,Rd=function(){function e(e,t,n,i){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=i}return e.prototype.apply=function(t){var n=t.getMeta(Id);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),Bd=function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var r=Id.getState(e.state);t.preventDefault();var o=e.state.tr;function s(t){!function(e,t,n){var i=Id.getState(e.state),r=i.rect,o=i.dragging,s=i.nodePosition,a=i.activeHandle;if(o&&r){var l=e.nodeDOM(s),u=Td[a],d=(t.clientX-o.startX)*u.x,c=(t.clientY-o.startY)*u.y,p=u.x?d+l.width:r.width,h=u.y?c+l.height:r.height;if(n.lockRatio&&u.x&&u.y){var f=Math.min(p/l.width,h/l.height),v=l.width*f,m=l.height*f;o.startX=t.clientX-(p-v)*u.x,o.startY=t.clientY-(h-m)*u.y,p=v,h=m}else o.startX=u.x?t.clientX:o.startX,o.startY=u.y?t.clientY:o.startY;Vd(l,"width",p),Vd(l,"height",h),r.top=l.offsetTop,r.left=l.offsetLeft,r.width=l.offsetWidth,r.height=l.offsetHeight;var g=l.nextElementSibling;g.style.width=r.width+"px",g.style.height=r.height+"px",g.style.top=r.top+"px",g.style.left=r.left+"px"}}(e,t,n)}return o.setMeta(Id,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:i,rect:r.rect,nodePosition:r.nodePosition}),o.setMeta("addToHistory",!1),e.dispatch(o),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",s),function(e){var t=Id.getState(e.state),n=t.rect,i=t.dragging,r=t.nodePosition;if(i&&n){var o=e.state.selection;if(o instanceof ot){var s=o.node.attrs,a=n.width,l=n.height,u=void 0;if(Md.test(s.style||"")){var d=Et(s.style,{style:"width",value:Nd,newValue:a+"px"}),c=Et(d.style||"",{style:"height",value:Nd,newValue:l+"px"}).style;u=Bt({},s,{style:c})}else u=Bt({},s,{width:a,height:l});var p=o.node.type.createAndFill(u);if(p){var h=e.state.tr;h.replaceWith(r,r+1,p),h.setSelection(ot.create(h.doc,r)),h.setMeta("commandName","image-resize"),h.setMeta("args",u),h.setMeta(Id,{setDragging:null,activeHandle:null,rect:n,nodePosition:r}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0},Pd=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new yt({key:Id,view:function(t){return{resize:function(){Id.getState(t.state).rect&&t.dispatch(t.state.tr.setMeta("resize",!0))},get window(){return t.dom.ownerDocument&&t.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(t,n){var i=t.state,r=i.selection,o=i.schema.nodes[e.node],s=Id.getState(i),a=s.rect;if(r instanceof ot&&o===r.node.type){var l=t.nodeDOM(r.from),u={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(r)||a&&(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.left!==u.left)){var d=i.tr;d.setMeta(Id,{rect:u,nodePosition:r.from}),t.dispatch(d),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new Rd("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return Bd(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],r=Id.getState(t).rect;if(r&&n instanceof ot&&i===n.node.type){var o=document.createElement("div");o.className="k-editor-resize-handles-wrapper",o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.top=r.top+"px",o.style.left=r.left+"px";for(var s=0;s<Dd.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Dd[s],a.setAttribute("data-direction",Dd[s]),o.appendChild(a)}return Ls.create(t.doc,[Ps.widget(t.selection.from+1,o)])}return Ls.empty}}})},Ed=new St("caret-color");function Ad(){return new yt({key:Ed,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Ls.empty;var r=tn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!r)return Ls.empty;var o=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(o)&&s.push(Ps.node(t,t+e.nodeSize,{style:"caret-color: "+r}))})),Ls.create(t,s)}}})}function jd(e){return void 0===e&&(e={}),new yt({view:function(t){return new Ld(t,e)}})}var Ld=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var i=function(e){return n[t](e)};return e.dom.addEventListener(t,i),{name:t,handler:i}}))};Ld.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,i=t.handler;return e.editorView.dom.removeEventListener(n,i)}))},Ld.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())},Ld.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Ld.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,i=t.nodeAfter;if(n||i){var r=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),o=n?r.bottom:r.top;n&&i&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}if(!e){var s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}var a,l,u=this.editorView.dom.offsetParent;if(this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!u||u==document.body&&"static"==getComputedStyle(u).position)a=-pageXOffset,l=-pageYOffset;else{var d=u.getBoundingClientRect();a=d.left-u.scrollLeft,l=d.top-u.scrollTop}this.element.style.left=e.left-a+"px",this.element.style.top=e.top-l+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},Ld.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Ld.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=n&&n.type.spec.disableDropCursor,r="function"==typeof i?i(this.editorView,t):i;if(t&&!r){var o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(o=je(this.editorView.state.doc,o,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(o),this.scheduleRemoval(5e3)}}},Ld.prototype.dragend=function(){this.scheduleRemoval(20)},Ld.prototype.drop=function(){this.scheduleRemoval(20)},Ld.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var Fd=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));return t.valid(r)?new t(r):e.near(r)},t.prototype.content=function(){return p.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new zd(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),i=e.node(t);if(0!=n)for(var r=i.child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),i=e.node(t);if(n!=i.childCount)for(var r=i.child(n);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock},t.findFrom=function(e,n,i){e:for(;;){if(!i&&t.valid(e))return e;for(var r=e.pos,o=null,s=e.depth;;s--){var a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;r+=n;var l=e.doc.resolve(r);if(t.valid(l))return l}for(;;){var u=n>0?o.firstChild:o.lastChild;if(!u){if(o.isAtom&&!o.isText&&!ot.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),i=!1;continue e}break}o=u,r+=n;var d=e.doc.resolve(r);if(t.valid(d))return d}return null}},t}(et);Fd.prototype.visible=!1,et.jsonID("gapcursor",Fd);var zd=function(e){this.pos=e};zd.prototype.map=function(e){return new zd(e.map(this.pos))},zd.prototype.resolve=function(e){var t=e.resolve(this.pos);return Fd.valid(t)?new Fd(t):et.near(t)};var Kd=function(){return new yt({props:{decorations:Ud,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&Fd.valid(n))return new Fd(n)},handleClick:Wd,handleKeyDown:_d}})},_d=dr({ArrowLeft:Hd("horiz",-1),ArrowRight:Hd("horiz",1),ArrowUp:Hd("vert",-1),ArrowDown:Hd("vert",1)});function Hd(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,r){var o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof it){if(!r.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=Fd.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new Fd(l))),!0)}}function Wd(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!Fd.valid(i))return!1;var r=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(r>-1&&ot.isSelectable(e.state.doc.nodeAt(r)))&&(e.dispatch(e.state.tr.setSelection(new Fd(i))),!0)}function Ud(e){if(!(e.selection instanceof Fd))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ls.create(e.doc,[Ps.widget(e.selection.head,t,{key:"gapcursor"})])}var qd=function(e,t,n){for(var i,r=e.table,o=e.table_row,s=e.table_cell,a=[],l=0;l<t+1;l++){i=[];for(var u=0;u<n+1;u++)i.push(s.createAndFill());a.push(o.createAndFill(void 0,i))}return r.createAndFill(void 0,a)},Gd=function(e,t){for(var n=e.$head,i=n.depth;i>0;i--){var r=n.node(i);if(r.type.name===t)return{pos:n.before(i),node:r}}return null},Jd=function(e,t){return ol(e,t&&function(e){var n,i=Gd(e.selection,"table_row"),r=Gd(e.selection,"table");if(i&&r&&i.node.attrs[Ct]){for(var o=0,s=0;s<r.node.nodeSize;s++)if(r.node.child(s).eq(i.node)){o=s;break}var a=r.node.child(o-1),l=i.pos-a.nodeSize;e.setNodeMarkup(l,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})},Xd=function(e,t){return sl(e,t&&function(e){var n,i=Gd(e.selection,"table_row");if(i&&i.node.attrs[Ct]){var r=i.pos+i.node.nodeSize;e.setNodeMarkup(r,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213297,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var r="editor.pdf";t.messages=((i={})["editor.bold"]="Bold",i["editor.italic"]="Italic",i["editor.underline"]="Underline",i["editor.strikethrough"]="Strikethrough",i["editor.subscript"]="Subscript",i["editor.superscript"]="Superscript",i["editor.unlink"]="Remove hyperlink",i["editor.undo"]="Undo",i["editor.redo"]="Redo",i["editor.fontSize"]="Font Size",i["editor.fontName"]="Font Name",i["editor.format"]="Format",i["editor.alignLeft"]="Align text left",i["editor.alignRight"]="Align text right",i["editor.alignCenter"]="Center text",i["editor.alignJustify"]="Justify",i["editor.indent"]="Indent",i["editor.outdent"]="Outdent",i["editor.orderedList"]="Insert ordered list",i["editor.bulletList"]="Insert unordered list",i["editor.print"]="Print",i["editor.selectAll"]="Select All",i["editor.cleanFormatting"]="Clean formatting",i[r]="Export as PDF",i["editor.foregroundColor"]="Color",i["editor.backgroundColor"]="Background color",i["editor.createTable"]="Create a table",i["editor.insertTableHint"]="Create a {0} x {1} table",i["editor.addRowBefore"]="Add row above",i["editor.addRowAfter"]="Add row below",i["editor.addColumnBefore"]="Add column on the left",i["editor.addColumnAfter"]="Add column on the right",i["editor.deleteRow"]="Delete row",i["editor.deleteColumn"]="Delete column",i["editor.deleteTable"]="Delete table",i["editor.mergeCells"]="Merge cells",i["editor.splitCell"]="Split cell",i["editor.hyperlink"]="Insert hyperlink",i["editor.hyperlink-dialog-title"]="Insert hyperlink",i["editor.hyperlink-dialog-content-address"]="Web address",i["editor.hyperlink-dialog-content-title"]="Title",i["editor.hyperlink-dialog-content-newwindow"]="Open link in new window",i["editor.hyperlink-dialog-cancel"]="Cancel",i["editor.hyperlink-dialog-insert"]="Insert",i["editor.insertFile"]="Insert file",i["editor.insertfile-dialog-title"]="Insert file",i["editor.insertfile-dialog-content-address"]="Web address",i["editor.insertfile-dialog-content-title"]="Title",i["editor.insertfile-dialog-cancel"]="Cancel",i["editor.insertfile-dialog-insert"]="Insert",i["editor.image"]="Insert image",i["editor.image-dialog-title"]="Insert image",i["editor.image-address"]="Web address",i["editor.image-title"]="Title",i["editor.image-altText"]="Alternate text",i["editor.image-width"]="Width (px)",i["editor.image-height"]="Height (px)",i["editor.image-cancel"]="Cancel",i["editor.image-insert"]="Insert",i["editor.viewHtml"]="View HTML",i["editor.viewHtml-dialog-title"]="View HTML",i["editor.viewHtml-cancel"]="Cancel",i["editor.viewHtml-update"]="Update",i["editor.findReplace-tool-title"]="Find and Replace",i["editor.findReplace-dialog-title"]="Find and Replace",i["editor.findReplace-tab-find"]="Find",i["editor.findReplace-tab-replace"]="Replace",i["editor.findReplace-findWhat"]="Find What:",i["editor.findReplace-replaceWith"]="Replace With",i["editor.findReplace-replace"]="Replace",i["editor.findReplace-replaceAll"]="Replace All",i["editor.findReplace-matchCase"]="Match Case",i["editor.findReplace-matchWord"]="Match whole word only",i["editor.findReplace-matchCyclic"]="Match cyclic (Wrap around)",i["editor.findReplace-useRegExp"]="Regular Expression",i["editor.findReplace-prevMatch"]="Prev",i["editor.findReplace-nextMatch"]="Next",i["editor.findReplace-matches"]="{0} of {1} matches",i),t.keys={bold:"editor.bold",italic:"editor.italic",underline:"editor.underline",strikethrough:"editor.strikethrough",subscript:"editor.subscript",superscript:"editor.superscript",unlink:"editor.unlink",undo:"editor.undo",redo:"editor.redo",fontSize:"editor.fontSize",fontName:"editor.fontName",format:"editor.format",alignLeft:"editor.alignLeft",alignRight:"editor.alignRight",alignCenter:"editor.alignCenter",alignJustify:"editor.alignJustify",indent:"editor.indent",outdent:"editor.outdent",orderedList:"editor.orderedList",bulletList:"editor.bulletList",print:"editor.print",selectAll:"editor.selectAll",cleanFormatting:"editor.cleanFormatting",pdf:r,foregroundColor:"editor.foregroundColor",backgroundColor:"editor.backgroundColor",createTable:"editor.createTable",createTableHint:"editor.insertTableHint",addRowBefore:"editor.addRowBefore",addRowAfter:"editor.addRowAfter",addColumnBefore:"editor.addColumnBefore",addColumnAfter:"editor.addColumnAfter",deleteRow:"editor.deleteRow",deleteColumn:"editor.deleteColumn",deleteTable:"editor.deleteTable",mergeCells:"editor.mergeCells",splitCell:"editor.splitCell",insertHyperlink:"editor.hyperlink",insertHyperlinkDialogTitle:"editor.hyperlink-dialog-title",insertHyperlinkAddress:"editor.hyperlink-dialog-content-address",insertHyperlinkTitle:"editor.hyperlink-dialog-content-title",insertHyperlinkNewWindow:"editor.hyperlink-dialog-content-newwindow",insertHyperlinkCancel:"editor.hyperlink-dialog-cancel",insertHyperlinkInsert:"editor.hyperlink-dialog-insert",insertFile:"editor.insertFile",insertFileDialogTitle:"editor.insertfile-dialog-title",insertFileAddress:"editor.insertfile-dialog-content-address",insertFileTitle:"editor.insertfile-dialog-content-title",insertFileCancel:"editor.insertfile-dialog-cancel",insertFileInsert:"editor.insertfile-dialog-insert",insertImage:"editor.image",insertImageDialogTitle:"editor.image-dialog-title",insertImageAddress:"editor.image-address",insertImageTitle:"editor.image-title",insertImageAltText:"editor.image-altText",insertImageWidth:"editor.image-width",insertImageHeight:"editor.image-height",insertImageCancel:"editor.image-cancel",insertImageInsert:"editor.image-insert",viewHtml:"editor.viewHtml",viewHtmlDialogTitle:"editor.viewHtml-dialog-title",viewHtmlCancel:"editor.viewHtml-cancel",viewHtmlUpdate:"editor.viewHtml-update",findReplaceToolTitle:"editor.findReplace-tool-title",findReplaceDialogTitle:"editor.findReplace-dialog-title",findReplaceTabFind:"editor.findReplace-tab-find",findReplaceTabReplace:"editor.findReplace-tab-replace",findReplaceFindWhat:"editor.findReplace-findWhat",findReplaceReplaceWith:"editor.findReplace-replaceWith",findReplaceReplace:"editor.findReplace-replace",findReplaceReplaceAll:"editor.findReplace-replaceAll",findReplaceMatchCase:"editor.findReplace-matchCase",findReplaceMatchWord:"editor.findReplace-matchWord",findReplaceMatchCyclic:"editor.findReplace-matchCyclic",findReplaceUseRegExp:"editor.findReplace-useRegExp",findReplacePrevMatch:"editor.findReplace-prevMatch",findReplaceNextMatch:"editor.findReplace-nextMatch",findReplaceMatches:"editor.findReplace-matches"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213213,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213341,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return se})),n.d(t,"PopupVue2",(function(){return oe}));var i=n(1),r=n(15),o="bottom",s="center",a="middle",l="left",u="right",d="top",c=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,l=e.margin;void 0===l&&(l={});var d=n.horizontal,c=n.vertical,p=r.horizontal,h=r.vertical,f=l.horizontal||0,v=l.vertical||0,m=t.top,g=t.left;return c===o&&(m+=t.height),c!==s&&c!==a||(m+=Math.round(t.height/2)),h===o&&(m-=i.height,v*=-1),h!==s&&h!==a||(m-=Math.round(i.height/2),v*=-1),d===u&&(g+=t.width),d!==s&&d!==a||(g+=Math.round(t.width/2)),p===u&&(g-=i.width,f*=-1),p!==s&&p!==a||(g-=Math.round(i.width/2),f*=-1),{top:m+v,left:g+f}};function p(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=g()),i}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},w=function(e){return k(e)===e.ownerDocument.body},S=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=r,o}(e)),{top:i,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function x(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var $=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var O=function(e,t){var n=f(e),i=n.getComputedStyle(e),r=S(e),o=t||k(e),s=e.ownerDocument,a=o!==s.body&&o!==s.documentElement,l={top:0,left:0};if("fixed"!==i.position&&a){var u=n.getComputedStyle(o);(l=S(o)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},I=function(e,t){return e?$(e):function(e){var t=k(e);return t?$(t):{x:0,y:0}}(t)},T=function(e,t,n){void 0===n&&(n=1);var i=t?k(t):null,r=O(e,i),o=r.top,s=r.left,a=r.height,l=r.width,u=I(i,e),d=u.x,c=u.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:o+c*h,left:s+d*h,height:a,width:l}};function D(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var V="fit",M="flip",N=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},R=function(e){var t=e.offset,n=e.size,i=e.anchorSize,r=e.viewPortSize,o=e.anchorAlignPoint,u=e.elementAlignPoint,c=0,p=2*e.margin;if(u!==o&&!(u===s||u===a)&&!(o===s||o===a)){var h=o===d||o===l;t<0&&h?t+(c=n+i+p)+n>r&&(c=0):t>=0&&!h&&(t+n>r&&(c+=-(i+n+p)),t+c<0&&(c=0))}return c},B=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var l=i.top,u=i.left,d=i.height,c=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=o.vertical===V,y=o.horizontal===V,k=o.vertical===M,w=o.horizontal===M;b&&(g+=N(l,d,p)),y&&(m+=N(u,c,h)),k&&(g+=R({margin:v,offset:l,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=R({margin:f,offset:u,size:c,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=k&&0!==g,C=w&&0!==m,x=b&&0!==g,$=y&&0!==m;return{flipped:C||S,fitted:x||$,flip:{horizontal:C,vertical:S},fit:{horizontal:$,vertical:x},offset:{left:m,top:g}}},P=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},E=function(e,t){for(var n,i,r=C(e),o=t;o&&(n=P(o),!(i=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)o=o.parentElement;return i};A=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},L=!1;var A,j,L,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},z=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},K=function(){return"undefined"!=typeof document&&!!document.body},_=function(){return"undefined"!=typeof window},H=/auto|scroll/,W=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},U=function(){if(!K())return!1;var e=document.createElement("div");if(e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML="<div>child</div>",document.body.appendChild(e),e&&e.firstChild){var t=e.firstChild;t.style.position="fixed",t.style.top="10px"}var n=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),n}(),q="fit",G="flip",J="left",X="bottom",Y="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,r=e.elementAlign,o=e.offset,s=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,o):this.relativeRect(t,n,o);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(z(i.offset(e),n),i.stackingElementOffset(t)),o=i.stackingElementScroll(t),s=i.addScroll(r,o),a=this.elementScrollPosition(e,t),l=i.removeScroll(s,a);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return z(this._dom.position(e,t),n)},e}(),Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return c(e)},e.prototype.boundingOffset=function(e){return y(e)},e.prototype.getWindow=function(){return _()?window:null},e.prototype.isBodyOffset=function(e){return w(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?S(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var r=S(e);return e.style.left=n,e.style.top=i,r},e.prototype.position=function(e,t){if(!e||!t)return null;var n=E(e,t);return T(e,n)},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,r=this.isBodyOffset(e),o=n.top,s=n.left,r&&(s=0,o=0),{top:o+i.top,left:s+i.left,height:n.height,width:n.width};var n,i,r,o,s},e.prototype.addScroll=function(e,t){return p(e,t)},e.prototype.removeScroll=function(e,t){return D(e,t)},e.prototype.restrictToView=function(e){return B(e)},e.prototype.scrollPosition=function(e){return x(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!K()||!_())return t;for(var n=e.parentElement;n;)H.test(W(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?S(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!U)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!K()||!_())return null;var n=E(e,t);if(!n)return null;var i=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return K()&&_()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ee=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,r=e.currentLocation,o=e.element,s=e.anchorAlign,a=e.elementAlign,l=e.collisions,u=this._dom,d=e.viewPort||u.stackingElementViewPort(o)||u.windowViewPort(o),c=z(u.offset(i),r),p=(t=u.staticOffset(o),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(o,p),f=u.restrictToView({anchorAlign:s,anchorRect:c,collisions:l,elementAlign:a,elementRect:h,viewPort:d});return{flipped:f.flipped,offset:u.addOffset(p,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),te=n(0),ne={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213133,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},ie=i.h,re={left:-1e3,top:0},oe={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:q,vertical:G}}},anchorAlign:{type:Object,default:function(){return{horizontal:J,vertical:X}}},popupAlign:{type:Object,default:function(){return{horizontal:J,vertical:Y}}},offset:{type:Object,default:function(){return re}},show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}},inject:{kCurrentZIndex:{default:null}},data:function(){return{hasMounted:!1}},created:function(){Object(te.validatePackage)(ne),this.mountedAppendTo=void 0,this.mountedAnchor=void 0,this._initiallyMountedContent=void 0,this._flipped=!1,this._offsetTop=0,this._offsetLeft=-1e3,this._exitingAnimation=!1,this._prevShow=!1,this._prevShow=this.$props.show,this._domService=new Q,this._alignService=new Z(this._domService),this._positionService=new ee(this._domService),this.reposition=function(e,t,n){var i,r,o,s;void 0===n&&(n={});var a=0;n=n||{};var l=function(){a=!1===n.leading?0:(new Date).getTime(),i=null,s=e.apply(r,o),i||(r=o=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var d=t-(u-a);return r=this,o=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),a=u,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,d)),s}}(this.reposition.bind(this),1e3/60)},setup:ie?function(){return{v3:!!ie}}:void 0,mounted:function(){te.canUseDOM&&(this.mountedAppendTo=this.$props.appendTo?this.getParentRef(this.$props.appendTo):document.body,this.mountedAnchor=this.$props.anchor?this.getParentRef(this.$props.anchor):document.body),this._parentElement=this.$el.parentElement,this._initiallyMountedContent=this.$el.cloneNode(!0),this.hasMounted=!0,this.mountedAppendTo.appendChild(this.$el)},updated:function(){this._prevShow=this.$props.show},destroyed:ie?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:ie?void 0:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},unmounted:function(){this.detachRepositionHandlers()},beforeUnmount:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},methods:{onOpened:function(){var e=this.$el;this.$props.show&&e.classList.add("k-animation-container-shown"),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove("k-animation-container-shown");this.detachRepositionHandlers()},onClosed:function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$emit("close",{target:this})},transitionDuration:function(){var e=this.$props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},getParentRef:function(e){for(var t=this.$parent;!t.$refs[e];){if(t&&t.kendoAnchorRef)return t.kendoAnchorRef;if(!(t=t.$parent)&&te.canUseDOM)return document.body}return t.$refs[e].$el||t.$refs[e]},position:function(e,t,n){var i=e.anchorAlign,r=e.popupAlign,o=e.collision,s=e.offset,a=n?this.v3?this.mountedAnchor:this.getParentRef(n):document.body,l=this._alignService.alignElement({anchor:n?a:void 0,element:t,elementAlign:r,anchorAlign:i,offset:s});return this._positionService.positionElement({anchor:a,anchorAlign:i,collisions:o,element:t,currentLocation:l,elementAlign:r})},calculatePosition:function(e,t){if(!t||!_()||!te.canUseDOM)return{flipped:!1,offset:e.offset};var n=Object(te.getDefaultSlots)(this),i=document.createElement("div"),r=this.$el&&this.$el.firstChild&&this.$el.firstChild.firstChild?this.$el.firstChild.firstChild.cloneNode(!0):null,o=r&&r.getBoundingClientRect?r:this._initiallyMountedContent;if(o)i.appendChild(o);else{var s=this.v3?n&&n[0].props?n[0].props.class:"":n&&n[0].data?n[0].data.staticClass:"",a=this.v3?this.$props.popupClass?this.$props.popupClass:"":n&&n[0].data?n[0].data.class:"";i.innerHTML='<div class="k-animation-container k-animation-container-relative">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'+s+" "+a+'" >\n </div>\t\n </div>\t\n </div>'}if(t.appendChild(i),i&&i.firstChild){var l=i.firstChild;l.style.position="absolute",l.style.visibility="hidden",l.style.display="block",l.style.left="-1000",l.style.top="0";var u=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(u)for(var d=0,c=Object.entries(u);d<c.length;d++){var p=c[d],h=p[0],f=p[1];l.style[h]=f}}var v=this.position(e,i.firstChild,this.$props.anchor);return i.parentNode.removeChild(i),v},attachRepositionHandlers:function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.mountedAnchor:e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},detachRepositionHandlers:function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},reposition:function(){this.$forceUpdate()},getCurrentZIndex:function(){return this.kCurrentZIndex?this.kCurrentZIndex+1:100}},render:function(e){var t=ie||e,n=this.$props,i=n.className,o=n.popupClass,s=n.show,a=n.id,l=Object(te.getDefaultSlots)(this),u=this.v3||s?l:null,d=_()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var c=this.calculatePosition(this.$props,d);this._offsetLeft=c.offset.left,this._offsetTop=c.offset.top,this._flipped=!!c.flipped}var p=this._flipped?"up":"down",h=this.transitionDuration(),f=h.transitionEnterDuration,v=h.transitionExitDuration,m=this.getCurrentZIndex();return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!s,this.hasMounted?s||this._exitingAnimation&&d?t(r.c,{id:a,attrs:this.v3?void 0:{id:a,componentChildClassName:[o,"k-popup"],className:i,direction:p,transitionEnterDuration:f,transitionExitDuration:v,appear:s},componentChildClassName:[o,"k-popup"],className:i,onEntered:this.onOpened,on:this.v3?void 0:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},onExiting:this.onClosing,onExited:this.onClosed,direction:p,style:{zIndex:m,position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"},transitionEnterDuration:f,transitionExitDuration:v,appear:s},this.v3?function(){return[u]}:[u]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[o,"k-popup"]},[l])])}},se=oe},function(e,t,n){"use strict";var i,r,o,s,a;n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return a})),function(e){e.CIRCLE="circle",e.SQUARE="square",e.ROUNDED="rounded",e.RECTANGLE="rectangle"}(i||(i={})),function(e){e.TEXT="text",e.IMAGE="image",e.ICON="icon"}(r||(r={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(o||(o={})),function(e){e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(s||(s={})),function(e){e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return h}));var i={vertical:"top",horizontal:"left"},r={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},s={vertical:"fit",horizontal:"flip"},a={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:r,collision:o},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:r,collision:s}},l={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:i,collision:o},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:i,collision:s}},u=n(3);function d(e,t,n){var i=c(e,t,n);return n?"downward"===i?a.downward:a.leftward:"downward"===i?l.downward:l.rightward}function c(e,t,n){return Object(u.m)(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function p(e){return e?"rtl":"ltr"}function h(e,t){return e+"_"+t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return D})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return A}));var i=n(1),r=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},o=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},s={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},a=n(0),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},d=i,c=d.h,p=d.ref,h=d.Transition,f=s,v={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:c?function(){return{v3:!!c,elementRef:p(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(e){this.$emit("beforeenter",{animatedElement:e,target:this})},onEnter:function(e){this.animationStep="entering",this.$emit("entering",{animatedElement:e,target:this})},onAfterEnter:function(e){this.animationStep="entered",this.$emit("entered",{animatedElement:e,target:this})},onBeforeLeave:function(e){this.$emit("exit",{animatedElement:e,target:this})},onLeave:function(e){this.animationStep="exiting",this.$emit("exiting",{animatedElement:e,target:this})},onAfterLeave:function(e){this.animationStep="exited",this.$emit("exited",{animatedElement:e,target:this})}},render:function(e){var t=this,n=c||e,i=this.$props,r=i.appear,o=i.enter,s=i.exit,d=i.transitionName,p=i.transitionEnterDuration,v=i.transitionExitDuration,m=(i.className,i.componentChildClassName),g=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),b=i.animationEnteredStyle,y=i.animationExitingStyle,k=i.animationExitedStyle,w=(u(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),Object(a.getDefaultSlots)(this)),S=this.v3?r:!!w,C=this.v3?h:"transition",x=[m,f["child-animation-container"]],$=o?p:0,O=s?v:0,I=[l({transitionDelay:"0ms",transitionDuration:S?$+"ms":O+"ms"},this.$props.transitionStyle),{entering:l({transitionDuration:$+"ms"},g),entered:l({},b),exiting:l({transitionDuration:O+"ms"},y),exited:l({},k)}[this.animationStep]],T={enter:$,leave:O},D=[S?n("div",{style:I,class:x,ref:this.v3?function(e){t.elementRef=e}:"element"},[w]):null];return n(C,{duration:T,attrs:this.v3?null:{duration:T,name:d,appear:r,appearClass:f[d+"-appear"]||d+"-appear",appearToClass:f[d+"-appear-active"]||d+"-appear-active",enterClass:f[d+"-enter"]||d+"-enter",enterToClass:f[d+"-enter-active"]||d+"-enter-active",leaveClass:f[d+"-exit"]||d+"-exit",leaveToClass:f[d+"-exit-active"]||d+"-exit-active"},name:d,appear:r,appearFromClass:f[d+"-appear"]||d+"-appear",enterFromClass:f[d+"-enter"]||d+"-enter",leaveFromClass:f[d+"-exit"]||d+"-exit",appearToClass:f[d+"-appear-active"]||d+"-appear-active",enterToClass:f[d+"-enter-active"]||d+"-enter-active",leaveToClass:f[d+"-exit-active"]||d+"-exit-active",onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return D}:D)}},m={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213116,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},g=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},b=i.h,y=s,k={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:b?function(){return{v3:!!b}}:void 0,created:function(){Object(a.validatePackage)(m)},render:function(e){var t=b||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.id,i.tag,i.className),o=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,g(i,["id","tag","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[y["animation-container"],y["animation-container-relative"],r]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id},class:o},[t(v,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},w=i.h,S={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:w?function(){return{v3:!!w}}:void 0,render:function(e){var t=w||e,n=Object(a.getDefaultSlots)(this);return t(k,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},x=i.h,$=(Boolean,Boolean,Boolean,i.h),O={position:"absolute",top:"0",left:"0"},I=(Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),T=i.h,D={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:T?function(){return{v3:!!T}}:void 0,render:function(e){var t=T||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.id),o=(I(i,["direction","id"]),"slide-"+this.$props.direction);return t(k,{id:r,attrs:this.v3?void 0:{id:r,transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},V=i.h,M={position:"absolute",top:"0",left:"0"},N=(Boolean,Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),R=i.h,B=function(){},P={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(e){var t=this.$props.onEnter;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentIsEntering:function(e){var t=this.$props.onEntering;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentWillExit:function(e){var t=this.$props.onExit;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},updateContainerDimensions:function(e,t){void 0===t&&(t=B);var n=e?e.firstElementChild:null;if(n){var i=r(n),s=o(n);this.$data.maxHeight=i,this.$data.maxWidth=s,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?this.maxHeight+"px":null}:{maxWidth:this.maxWidth?this.maxWidth+"px":null}).maxHeight,maxWidth:e.maxWidth}}}},setup:R?function(){return{v3:!!R}}:void 0,render:function(e){var t=R||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.childFactory,N(i,["direction","childFactory"]),"reveal-"+this.$props.direction);return t(k,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},this.v3?function(){return[n]}:[n])}},E=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,r=e.duration,o=t&&1-t;e.onStart&&e.onStart();return n=window.requestAnimationFrame((function s(a){i||(i=a);var l=(a-i+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),n=window.requestAnimationFrame(s),t=l):(e.onEnd&&e.onEnd(1),t=0)}))},A=function(e){e&&window.cancelAnimationFrame(e)}},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var o=n(8),s=n(6),a=i({},s.indentRules.listsTypes);!function(e){var t={type:"button"};e.bold=i(i({},s.bold),{props:i({icon:"bold"},t),messages:{title:o.keys.bold},commandName:"Bold"}),e.italic=i(i({},s.italic),{props:i({icon:"italic"},t),messages:{title:o.keys.italic},commandName:"Italic"}),e.underline=i(i({},s.underline),{props:i({icon:"underline"},t),messages:{title:o.keys.underline},commandName:"Underline"}),e.strikethrough=i(i({},s.strikethrough),{props:i({icon:"strikethrough"},t),messages:{title:o.keys.strikethrough},commandName:"Strikethrough"}),e.subscript=i(i({},s.subscript),{props:i({icon:"subscript"},t),messages:{title:o.keys.subscript},commandName:"Subscript"}),e.superscript=i(i({},s.superscript),{props:i({icon:"superscript"},t),messages:{title:o.keys.superscript},commandName:"Superscript"}),e.link=i(i({},s.link),{props:i({icon:"link-horizontal"},t),messages:{insertHyperlink:o.keys.insertHyperlink,insertHyperlinkDialogTitle:o.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:o.keys.insertHyperlinkAddress,insertHyperlinkTitle:o.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:o.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:o.keys.insertHyperlinkCancel,insertHyperlinkInsert:o.keys.insertHyperlinkInsert},commandName:"Link"}),e.insertFile=i(i({},s.link),{props:i({icon:"file-add"},t),messages:{insertHyperlink:o.keys.insertFile,insertHyperlinkDialogTitle:o.keys.insertFileDialogTitle,insertHyperlinkAddress:o.keys.insertFileAddress,insertHyperlinkTitle:o.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:o.keys.insertFileCancel,insertHyperlinkInsert:o.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),e.insertTable={props:i({icon:"table-insert"},t),messages:{createTable:o.keys.createTable,createTableHint:o.keys.createTableHint},commandName:"InsertTable"},e.addRowBefore={command:s.addRowBefore,props:i({icon:"table-row-insert-above"},t),messages:{title:o.keys.addRowBefore},commandName:"AddRowBefore"},e.addRowAfter={command:s.addRowAfter,props:i({icon:"table-row-insert-below"},t),messages:{title:o.keys.addRowAfter},commandName:"AddRowAfter"},e.addColumnBefore={command:s.addColumnBefore,props:i({icon:"table-column-insert-left"},t),messages:{title:o.keys.addColumnBefore},commandName:"AddColumnBefore"},e.addColumnAfter={command:s.addColumnAfter,props:i({icon:"table-column-insert-right"},t),messages:{title:o.keys.addColumnAfter},commandName:"AddColumnAfter"},e.deleteRow={command:s.deleteRow,props:i({icon:"table-row-delete"},t),messages:{title:o.keys.deleteRow},commandName:"DeleteRow"},e.deleteColumn={command:s.deleteColumn,props:i({icon:"table-column-delete"},t),messages:{title:o.keys.deleteColumn},commandName:"DeleteColumn"},e.deleteTable={command:s.deleteTable,props:i({icon:"table-delete"},t),messages:{title:o.keys.deleteTable},commandName:"DeleteTable"},e.mergeCells={command:s.mergeCells,props:i({icon:"cells-merge"},t),messages:{title:o.keys.mergeCells},commandName:"MergeCells"},e.splitCell={command:s.splitCell,props:i({icon:"cell-split-horizontally"},t),messages:{title:o.keys.splitCell},commandName:"SplitCell"},e.print={props:i({icon:"print"},t),messages:{title:o.keys.print}},e.selectAll={props:i({icon:"select-all"},t),messages:{title:o.keys.selectAll}},e.pdf={props:i({icon:"pdf"},t),messages:{title:o.keys.pdf}},e.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},e.cleanFormatting={props:i({icon:"clear-css"},t),messages:{title:o.keys.cleanFormatting},commandName:"CleanFormatting"},e.image={node:"image",props:i({icon:"image"},t),messages:{insertImage:o.keys.insertImage,insertImageDialogTitle:o.keys.insertImageDialogTitle,insertImageAddress:o.keys.insertImageAddress,insertImageTitle:o.keys.insertImageTitle,insertImageAltText:o.keys.insertImageAltText,insertImageWidth:o.keys.insertImageWidth,insertImageHeight:o.keys.insertImageHeight,insertImageCancel:o.keys.insertImageCancel,insertImageInsert:o.keys.insertImageInsert},commandName:"InsertImage"},e.viewHtml={props:i({icon:"html"},t),messages:{viewHtml:o.keys.viewHtml,viewHtmlDialogTitle:o.keys.viewHtmlDialogTitle,viewHtmlCancel:o.keys.viewHtmlCancel,viewHtmlUpdate:o.keys.viewHtmlUpdate},commandName:"SetContent"},e.findAndReplace={props:i({icon:"find"},t),messages:{findReplaceToolTitle:o.keys.findReplaceToolTitle,findReplaceDialogTitle:o.keys.findReplaceDialogTitle,findReplaceTabFind:o.keys.findReplaceTabFind,findReplaceTabReplace:o.keys.findReplaceTabReplace,findReplaceFindWhat:o.keys.findReplaceFindWhat,findReplaceReplaceWith:o.keys.findReplaceReplaceWith,findReplaceReplace:o.keys.findReplaceReplace,findReplaceReplaceAll:o.keys.findReplaceReplaceAll,findReplaceMatchCase:o.keys.findReplaceMatchCase,findReplaceMatchWord:o.keys.findReplaceMatchWord,findReplaceMatchCyclic:o.keys.findReplaceMatchCyclic,findReplaceUseRegExp:o.keys.findReplaceUseRegExp,findReplacePrevMatch:o.keys.findReplacePrevMatch,findReplaceNextMatch:o.keys.findReplaceNextMatch,findReplaceMatches:o.keys.findReplaceMatches}},e.unlink=i(i({},s.link),{props:i({icon:"unlink-horizontal"},t),messages:{title:o.keys.unlink},commandName:"Unlink"}),e.undo={command:s.undo,props:i({icon:"undo"},t),messages:{title:o.keys.undo},commandName:"Undo"},e.redo={command:s.redo,props:i({icon:"redo"},t),messages:{title:o.keys.redo},commandName:"Redo"},e.fontSize={style:"font-size",defaultItem:{text:o.messages[o.keys.fontSize],value:"",localizationKey:o.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},e.fontName={style:"font-family",defaultItem:{text:o.messages[o.keys.fontName],value:"",localizationKey:o.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},e.formatBlock={defaultItem:{text:o.messages[o.keys.format],value:"",localizationKey:o.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},e.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:o.keys.foregroundColor},commandName:"ForeColor"},e.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:o.keys.backgroundColor},commandName:"BackColor"},e.alignLeft={actions:r(s.alignLeftRules),props:i({icon:"align-left"},t),messages:{title:o.keys.alignLeft},commandName:"AlignLeft"},e.alignRight={actions:r(s.alignRightRules),props:i({icon:"align-right"},t),messages:{title:o.keys.alignRight},commandName:"AlignRight"},e.alignCenter={actions:r(s.alignCenterRules),props:i({icon:"align-center"},t),messages:{title:o.keys.alignCenter},commandName:"AlignCenter"},e.alignJustify={actions:r(s.alignJustifyRules),props:i({icon:"align-justify"},t),messages:{title:o.keys.alignJustify},commandName:"AlignJustify"},e.alignRemove={actions:r(s.alignRemoveRules),props:i({icon:"align-remove"},t),messages:{},commandName:"AlignRemove"},e.indent={actions:s.indentRules.nodes,listsTypes:a,props:i({icon:"indent-increase"},t),messages:{title:o.keys.indent},commandName:"Indent"},e.outdent={actions:s.outdentRules.nodes,listsTypes:a,props:i({icon:"indent-decrease"},t),messages:{title:o.keys.outdent},commandName:"Outdent"},e.orderedList={listType:a.orderedList,props:i({icon:"list-ordered"},t),messages:{title:o.keys.orderedList},commandName:"OrderedList",types:i({},a)},e.bulletList={listType:a.bulletList,props:i({icon:"list-unordered"},t),messages:{title:o.keys.bulletList},commandName:"UnorderedList",types:i({},a)}}(t.EditorToolsSettings||(t.EditorToolsSettings={}))},function(e,t,n){"use strict";function i(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function r(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return f}));var i=n(0),r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},s=function e(t,n){var s=n.animation,a=void 0===s||s,l=n.keepItemsMounted,d=void 0!==l&&l,c=n.state,p=n.expanded,h=n.handleSelect,f=n.parentExpanded,v=void 0===f||f,m=n.level,g=void 0===m?0:m,b=n.parentPrivateKey,y=void 0===b?[]:b;return t.map((function(t,n){var s,l=u(t,y,n),f=i.templateRendering.call(this,t.content,i.getListeners.call(this)),m=i.templateRendering.call(this,t.header,i.getListeners.call(this));if(t.items){var b={animation:a,keepItemsMounted:d,state:c,expanded:p,handleSelect:h,parentExpanded:(p||[]).indexOf(l)>-1,level:g+1,parentPrivateKey:o(y,[l])};s=e.call(this,t.items,b)}return r(r({},t),{animation:void 0!==t.animation?t.animation:a,keepItemsMounted:d,id:t.id||"k-panelbar-item-default-"+l,uniquePrivateKey:l,parentUniquePrivateKey:y,parentExpanded:v,level:g,expanded:(p||[]).indexOf(l)>-1,focused:c.currentFocused===l&&c.wrapperFocused,selected:c.currentSelected===l,items:s,content:f,header:m})}),this)},a=function(e){var t=e.items[0];return t?u(t,[],0):""},l=function e(t,n,i,r,s){return void 0===i&&(i={currentExpanded:t.expanded||[],currentSelected:t.selected||"",currentFocused:t.focused||"",wrapperFocused:!1}),void 0===r&&(r=!0),void 0===s&&(s=[]),t.items.forEach((function(t,a){var l=u(t,s,a);!t.disabled&&r&&(t.selected&&(i.currentSelected=l),t.focused&&(i.currentFocused=l),t.expanded&&("multiple"===n?i.currentExpanded.push(l):"single"===n&&(i.currentExpanded=[l])),t.items&&(i=e(t,n,i,!!t.expanded,o(s,[l]))))})),i},u=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+"."+n:"."+n};function d(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&d(e.children,t))})),t}function c(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&e&&!e.disabled&&(t.push(e),e.items&&c(e.items,t))})),t}function p(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&(e.expanded||e.parentExpanded)&&(t.push(e),e.items&&p(e.items,t))})),t}var h=function(e){return null!=e},f=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(9),s=n(20),a=i.h,l=s.a.styles,u={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null},props:{dir:String,selected:{type:Boolean,default:void 0},togglable:{type:Boolean,default:!1},icon:{type:String,default:function(){}},iconClass:{type:String,default:function(){}},imageUrl:{type:String,default:function(){}},imageAlt:String,disabled:{type:Boolean,default:void 0},size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid"},themeColor:{type:String,default:"base"}},created:function(){Object(r.validatePackage)(o.a),this.currentActive=!0===this.$props.togglable&&!0===this.$props.selected,this._activeTemp=void 0},data:function(){return{currentActive:null}},computed:{computedSelected:function(){return void 0!==this._activeTemp?this._activeTemp:void 0!==this.$props.selected?this.$props.selected:this.currentActive},buttonClasses:function(){var e,t=this.$props,n=t.disabled,i=t.icon,o=t.iconClass,s=t.imageUrl,a=t.dir,u=t.size,d=t.shape,c=t.rounded,p=t.fillMode,h=t.themeColor,f=void 0!==i||void 0!==o||void 0!==s,v=Object(r.getDefaultSlots)(this);return(e={})[l.button]=!0,e["k-button-"+(r.kendoThemeMaps.sizeMap[u]||u)]=u,e["k-button-"+d]=d&&"rectangle"!==d,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[c]||c)]=c,e["k-icon-button"]=!v&&f,e["k-disabled"]=n,e["k-selected"]=this.computedSelected,e["k-rtl"]="rtl"===a,e["k-button-"+p]=p,e["k-button-"+p+"-"+h]=p&&h,e}},updated:function(){this.$props.togglable&&void 0!==this.$props.selected&&this.$props.selected!==this.currentActive&&(this.currentActive=this.$props.selected)},methods:{focus:function(e){this.$el.focus(e)},toggleIfApplicable:function(){if(!this.disabled&&this.$props.togglable&&void 0===this.$props.selected){var e=!this.currentActive;this._activeTemp=e,this.currentActive=e,this._activeTemp=void 0}},handleClick:function(e){this.toggleIfApplicable(),this.disabled||this.$emit("click",e)},handleMouseDown:function(e){this.disabled||this.$emit("mousedown",e)},handlePointerDown:function(e){this.disabled||this.$emit("pointerdown",e)},handleMouseUp:function(e){this.disabled||this.$emit("mouseup",e)},handlePointerUp:function(e){this.disabled||this.$emit("pointerup",e)},handleFocus:function(e){this.disabled||this.$emit("focus",e)},handleBlur:function(e){this.disabled||this.$emit("blur",e)},handleKeypress:function(e){this.disabled||this.$emit("keypress",e)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,i=n.togglable,o=n.icon,s=n.iconClass,l=n.imageUrl,u=n.imageAlt,d=Object(r.getDefaultSlots)(this);return t("button",{class:this.buttonClasses,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,pointerdown:this.handlePointerDown,pointerup:this.handlePointerUp,focus:this.handleFocus,blur:this.handleBlur,keypress:this.handleKeypress},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-disabled":this.$props.disabled||void 0,"aria-checked":i?this.currentActive:void 0},"aria-disabled":this.$props.disabled||void 0,"aria-checked":i?this.currentActive:void 0},[function(){if(l)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:u,src:l},class:"k-image",alt:u,src:l});if(o){var e=Object(r.classNames)("k-icon","k-button-icon","k-i-"+o);return t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return s?t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:s}):null}.call(this),d])}},d=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r}));var i=".k-dropdownlist > .k-button,.k-colorpicker > .k-button",r=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"];t.a={styles:{button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f}));var i=n(1),r=function(e){return null!=e},o=n(11),s=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(r(e)){var n=e?Object(o.parseColor)(e,!0):e,i=[e];r(n)&&i.push(n.toCss(),n.toCssRgba());for(var s=function(e){for(var n=function(n){if(i.some((function(i){return i===t.colorRows[e][n]})))return{value:{row:e,col:n}}},r=0;r<a.colorRows[e].length;r++){var o=n(r);if("object"==typeof o)return o}},a=this,l=0;l<this.colorRows.length;l++){var u=s(l);if("object"==typeof u)return u.value}}},e.prototype.getColorAt=function(e){if(r(e)&&r(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r(e)&&r(e.row)&&r(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),a=n(0),l=n(7),u={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},d=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(r(e)){var i=Object(o.parseColor)(e.trim(),n);if(r(i))return"hex"===t?i.toCss():i.toCssRgba()}},c=i.h,p=24,h="office",f={name:"KendoColorPalette",emits:{keydown:null,focus:null,blur:null,change:null},props:{palette:{type:[String,Array],default:h},columns:Number,tileSize:{type:[Number,Object],default:p},defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){Object(a.validatePackage)(l.a),this.guid=Object(a.guid)()},mounted:function(){this.wrapper=this.v3?this.wrapperRef:this.$refs.wrapper},updated:function(){this.wrapper=this.v3?this.wrapperRef:this.$refs.wrapper},computed:{focusedColorCooridanates:function(){return this.focusedColor?this.paletteService.getCellCoordsFor(this.focusedColor):void 0},isUncontrolled:function(){return void 0===this.$props.value},selectedColor:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:void 0,currentValue:void 0,isFirstRender:!0}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=this,n=c||e,i=this.getPaletteInfo(),r=this.paletteService=new s;r.setColorMatrix(i.colors,i.columns);var o=r.getCellCoordsFor(this.selectedColor),l=r.getCellCoordsFor(this.focusedColor),u=Object(a.classNames)("k-colorpalette",{"k-state-disabled":this.$props.disabled}),d=function(e,t,i,r){var o=void 0!==i&&i.row===t,s=i&&i.col,l=void 0!==r&&r.row===t,u=r&&r.col,d="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},c=d.width+"px",p=d.height+"px";return e.map((function(e,i){var r=this,d=o&&s===i,h=Object(a.classNames)("k-colorpalette-tile",{"k-state-selected":d,"k-state-focus":l&&u===i});return n("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!d||!!this.$props.disabled&&void 0,id:this.createCellId({row:t,col:i})},"aria-selected":!!d||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:c,height:p,minWidth:c},onClick:function(t){return r.onColorClick(e,t)},on:this.v3?void 0:{click:function(t){return r.onColorClick(e,t)}},id:this.createCellId({row:t,col:i}),key:i})}),this)};return i.colors.length?n("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:u,onFocusin:this.onFocus,on:this.v3?void 0:{focusin:this.onFocus,focusout:this.onBlur,keydown:this.onKeyDown},onFocusout:this.onBlur,onKeydown:this.onKeyDown,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:this.v3?function(e){t.wrapperRef=e}:"wrapper"},[n("div",{class:"k-colorpalette-table-wrap",role:"grid",attrs:this.v3?void 0:{role:"grid"}},[n("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n("tbody",[function(e,t,i){return e.map((function(e,r){return n("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:r},[d.call(this,e,r,t,i)])}),this)}.call(this,r.colorRows,o,l)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},getDerivedStateFromProps:function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(0,1);break;case a.Keys.up:this.handleCellNavigation(0,-1);break;case a.Keys.right:this.handleCellNavigation(1,0);break;case a.Keys.left:this.handleCellNavigation(-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}e.preventDefault(),this.$emit("keydown",e)},onColorClick:function(e,t){this.isUncontrolled?(this.currentValue=e,this.focusedColor=e):this.focusedColor=e,this.dispatchChangeEvent(e,t)},onFocus:function(e){this.focusedColor=this.selectedColor||this.paletteService.colorRows[0][0],this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.focusedColor=void 0,this.$emit("blur",{event:e,target:this})},handleCellNavigation:function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.focusedColor=this.paletteService.getColorAt(n)}else this.focusedColor=this.paletteService.colorRows[0][0]},handleEnter:function(e){this.isUncontrolled&&(this.currentValue=this.focusedColor),this.dispatchChangeEvent(this.focusedColor,e)},dispatchChangeEvent:function(e,t){this.$emit("change",{event:t,component:this,value:e,rgbaValue:d(e,"rgba")})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=u[this.$props.palette];return r(e)?{colors:e.colors,columns:this.$props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.$props.palette||[],columns:this.$props.columns||10}},createCellId:function(e){return this.guid+"_"+e.row+"_"+e.col}}}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(i||(i={}));var r=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case i.next:return n===t.items.length-1?e:t.items[n+1];case i.prev:return 0===n?e:t.items[n-1];case i.current:return t.payload;case i.reset:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i,r,o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(i||(i={})),function(e){e.toggle="toggle",e.remove="remove"}(r||(r={}));var s=function(e,t){switch(t.selection){case i.single:switch(t.type){case r.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case r.remove:return t.payload===e?null:e;default:return e}case i.multiple:switch(t.type){case r.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case r.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]):e;default:return e}case i.none:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=400,r=0},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(0),o=n(22),s=n(43),a=n(23),l=n(9),u=i,d=u.h,c=u.ref,p={name:"KendoVueChip",props:{id:String,text:String,value:[String,Object],type:String,dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"k-i-close-circle"}},disabled:{type:Boolean,default:!1},icon:String,selectedIcon:{type:String,default:function(){return"k-i-check"}},look:{type:String,default:function(){return"solid"}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String},emits:{click:null,keydown:null,blur:null,focus:null,remove:null},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:r.noop},handleDispatchSelection:{default:r.noop},handleDispatchFocus:{default:r.noop}},created:function(){this.currentDir=void 0,Object(r.validatePackage)(l.a)},mounted:function(){this.chip=this.v3?this.chipRef:this.$refs.chip,this.currentDir=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1},updated:function(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected:function(){var e=this;return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some((function(t){return t===e.$props.value})):this.kendoSelection.value===this.$props.value)}},methods:{computedFocused:function(){return this.kendoFocused.value===this.$props.value},handleClick:function(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove:function(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:s.a.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:o.a.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:a.a.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case r.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.prev,payload:this.$props.value,event:e});break;case r.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.next,payload:this.$props.value,event:e});break;case r.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e});break;case r.Keys.delete:this.handleRemove(e)}this.$emit("keydown",{target:this.target,event:e})},handleFocus:function(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:o.a.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:d?function(){return{v3:!!d,chipRef:c(null)}}:void 0,render:function(e){var t,n=this,i=d||e,o=this.$props,s=o.size,a=o.rounded,l=o.themeColor,u=o.fillMode,c=o.look,p=o.type;return i("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.value,ref:this.v3?function(e){n.chipRef=e}:"chip",dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip",(t={"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused()},t["k-chip-"+(r.kendoThemeMaps.sizeMap[s]||s)]=s,t["k-rounded-"+(r.kendoThemeMaps.roundedMap[a]||a)]=a,t["k-chip-"+u]=u,t["k-chip-"+u+"-"+l]=Boolean(u&&l),t["k-chip-success"]="success"===p,t["k-chip-warning"]="warning"===p,t["k-chip-error"]="error"===p,t["k-chip-info"]="info"===p,t["k-chip-outline"]="outline"===c||"outlined"===c,t["k-chip-solid"]="solid"===c||"filled"===c,t)),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,on:this.v3?void 0:{focus:this.handleFocus,blur:this.handleBlur,click:this.handleClick,keydown:this.handleKeyDown},onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown},[this.currentSelected&&this.$props.selectedIcon&&i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.icon)}),i("span",{class:"k-chip-content"},[this.$props.text&&i("span",{"aria-label":this.$props.text,attrs:this.v3?void 0:{"aria-label":this.$props.text},class:"k-chip-label"},[this.$props.text])]),this.$props.removable&&i("span",{class:"k-chip-actions"},[i("span",{class:"k-chip-action k-chip-remove-action"},[i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.ref,l={name:"KendoVueFloatingActionButtonItem",props:{disabled:Boolean,focused:Boolean,index:Number,icon:String,item:[String,Function,Object],dataItem:Object,text:String,tabIndex:Number,customProp:[String,Function,Object]},emits:{click:null,down:null},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element},computed:{itemClassNames:function(){return Object(r.classNames)("k-fab-item",{"k-state-focus":this.focused,"k-state-disabled":this.disabled})}},methods:{handleClick:function(e){void 0===this.$props.index||this.$props.disabled||this.$emit("click",e,this.$props.index)},focusElement:function(){this.$el&&this.$el.focus()},onDown:function(e){this.$emit("down",e)}},setup:s?function(){return{v3:!!s,elementRef:a(null)}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.disabled,a=i.id,l=i.tabIndex,u=i.dataItem,d=i.customProp,c=u.text,p=u.icon,h=n("li",{ref:this.v3?function(e){t.elementRef=e}:"element",id:a,attrs:this.v3?void 0:{id:a,role:"menuitem",tabIndex:Object(r.getTabIndex)(l,o),"aria-disabled":o,"aria-label":(c||"")+" floatingactionbutton item",customProp:d},class:this.itemClassNames,role:"menuitem",tabIndex:Object(r.getTabIndex)(l,o),"aria-disabled":o,"aria-label":(c||"")+" floatingactionbutton item",onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,customProp:d},[c&&n("span",{class:"k-fab-item-text"},[c]),p&&n("span",{class:Object(r.classNames)("k-fab-item-icon k-icon k-i-"+p)})]);return r.getTemplate.call(this,{h:n,template:this.$props.item,defaultRendering:h,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("span",[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(32),o=i,s=o.h,a=(o.ref,o.inject,{name:"KendoTabStripNavigation",emits:{select:null,keydown:null},props:{tabs:Array,selected:Number,tabIndex:Number,tabPosition:String},computed:{wrapperNavClasses:{get:function(){return{"k-tabstrip-items-wrapper":!0,"k-hstack":"top"===this.$props.tabPosition||"bottom"===this.$props.tabPosition,"k-vstack":"left"===this.$props.tabPosition||"right"===this.$props.tabPosition}}},navClasses:{get:function(){return{"k-tabstrip-items":!0,"k-reset":!0}}}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=this.$props,i=n.tabs,o=n.selected,a=i.length;return t("div",{class:this.wrapperNavClasses},[t("ul",{class:this.navClasses,role:"tablist",attrs:this.v3?void 0:{role:"tablist",tabIndex:this.$props.tabIndex},tabIndex:this.$props.tabIndex,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[function(){return(e=a,Array.apply(null,Array(e))).map((function(e,n,s){return t(r.a,{key:n,active:o===n,attrs:this.v3?void 0:{active:o===n,disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect}})}),this);var e}.call(this)])])},methods:{onKeyDown:function(e){this.$emit("keydown",e)},onSelect:function(e){this.$emit("select",e)}}}),l=a},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.formatString=t.onDownPreventDefault=void 0;t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}};t.userSelectNone={userSelect:"none"};t.formatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t,n){e=e.replace("{"+n+"}",String(t))})),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Dialog",(function(){return p})),n.d(t,"DialogVue2",(function(){return c})),n.d(t,"DialogActionsBar",(function(){return v})),n.d(t,"DialogActionsBarVue2",(function(){return f})),n.d(t,"Window",(function(){return x})),n.d(t,"WindowVue2",(function(){return C}));var i,r=n(1),o=n(0),s=n(5),a=r.h,l={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:a?function(){return{v3:!!a}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=a||e,i=this.$props,r=i.id,l=i.closeIcon,u=i.titleRender,d=i.title;return t=o.getTemplate.call(this,{h:n,template:u,defaultRendering:d}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:r,attrs:this.v3?void 0:{id:r}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[l&&n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",fillMode:"flat","aria-label":"Close",icon:"x"},fillMode:"flat","aria-label":"Close",icon:"x",onClick:this.onCloseButtonClick,on:this.v3?void 0:{click:this.onCloseButtonClick}})])])}},u={name:"@progress/kendo-vue-dialogs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213235,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},d=r.h,c={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:o.templateDefinition,id:String,wrapperId:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]},provide:function(){return{kCurrentZIndex:10002}},created:function(){Object(o.validatePackage)(u),this.titleId=this.generateTitleId()},setup:d?function(){return{v3:!!d}}:void 0,mounted:function(){if(this.$props.appendTo){var e=document.querySelector(this.$props.appendTo);this.windowElement=this.$refs.wrapper,e.append(this.windowElement)}},beforeDestroy:d?void 0:function(){this.$props.appendTo&&this.windowElement.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowElement.remove()},methods:{handleCloseDialog:function(e){e.preventDefault(),this.$emit("close",{event:e,target:this})},handleKeyDown:function(e){e.keyCode===o.Keys.esc&&o.hasListener.call(this,"close")&&(e.preventDefault(),this.handleCloseDialog(e))},transformDimesion:function(e){return"string"==typeof e&&(e.endsWith("px")||e.endsWith("%"))?e:e+"px"},getActionBarIndex:function(e){return e.findIndex((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("dialogactionsbar")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("actions-bar")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("dialogactionsbar")}))},generateTitleId:function(){return"dialog-title"+Object(o.guid)()}},render:function(e){var t=d||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,r=i.title,s=i.width,a=i.height,u=i.minWidth,c=i.dir,p=i.contentStyle,h=i.wrapperId,f=this.$props.titleRender?o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)):null,v=Object(o.getDefaultSlots)(this)||[];s=this.transformDimesion(s),a=this.transformDimesion(a),u=this.transformDimesion(u);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var b=void 0===this.$props.closeIcon||this.$props.closeIcon,y=t("div",{ref:"wrapper",class:"k-dialog-wrapper",onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown},tabIndex:0,attrs:this.v3?void 0:{tabIndex:0,id:h,dir:c},id:h,dir:c},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":r||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":r||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:a,minWidth:u}},[(r||f)&&t(l,{closeIcon:b,attrs:this.v3?void 0:{closeIcon:b,id:n,title:r,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:r,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:p},[v]),m])]);return this.$props.appendTo?t("div",[y]):y}},p=c,h=r.h,f={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:h?function(){return{v3:!!h}}:void 0,computed:{wrapperClasses:function(){var e=this.$props.layout;return{"k-dialog-buttongroup":this.buttonGroupClass,"k-actions":!0,"k-hstack":!0,"k-justify-content-start":"start"===e,"k-justify-content-center":"center"===e,"k-justify-content-end":"end"===e,"k-justify-content-stretch":"stretched"===e}}},render:function(e){var t=h||e,n=Object(o.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}},v=f;!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(i||(i={}));var m=r.h,g={props:{id:String,stage:String,closeButton:[String,Function,Object,Boolean],minimizeButton:[String,Function,Object,Boolean],maximizeButton:[String,Function,Object,Boolean],restoreButton:[String,Function,Object,Boolean],title:String,titleRender:[String,Function,Object,Boolean]},setup:m?function(){return{v3:!!m}}:void 0,methods:{onDoubleClick:function(e){this.$emit("doubleclick",e)},onMinimizeClick:function(e){this.$emit("minimizeclick",e)},onFullScreenClick:function(e){this.$emit("fullscreenclick",e)},onRestoreClick:function(e){this.$emit("restoreclick",e)},onCloseClick:function(e){this.$emit("closeclick",e)}},render:function(e){var t=m||e,n=this.$props,r=n.stage,a=n.title,l=n.titleRender,u=n.minimizeButton,d=n.maximizeButton,c=n.restoreButton,p=n.closeButton,h=o.getTemplate.call(this,{h:t,template:l,defaultRendering:a}),f=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-minimize",fillMode:"flat"},icon:"window-minimize",fillMode:"flat",onClick:this.onMinimizeClick,on:this.v3?void 0:{click:this.onMinimizeClick}}),v=o.getTemplate.call(this,{h:t,template:u,defaultRendering:f}),g=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-maximize",fillMode:"flat"},icon:"window-maximize",fillMode:"flat",onClick:this.onFullScreenClick,on:this.v3?void 0:{click:this.onFullScreenClick}}),b=o.getTemplate.call(this,{h:t,template:d,defaultRendering:g}),y=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-restore",fillMode:"flat"},icon:"window-restore",fillMode:"flat",onClick:this.onRestoreClick,on:this.v3?void 0:{click:this.onRestoreClick}}),k=o.getTemplate.call(this,{h:t,template:c,defaultRendering:y}),w=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"x",fillMode:"flat"},icon:"x",fillMode:"flat",onClick:this.onCloseClick,on:this.v3?void 0:{click:this.onCloseClick}}),S=o.getTemplate.call(this,{h:t,template:p,defaultRendering:w});return t("div",{class:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},onDblclick:this.onDoubleClick,on:this.v3?void 0:{dblclick:this.onDoubleClick}},[t("div",{class:"k-window-title"},[h]),t("div",{class:"k-window-actions"},[r===i.DEFAULT&&v,r===i.DEFAULT&&b,r!==i.DEFAULT&&k]),S])}},b=r.h,y=["n","e","s","w","se","sw","ne","nw"],k={name:"ResizeHandlers",emits:{resize:null},setup:b?function(){return{v3:!!b}}:void 0,methods:{onDrag:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!1,direction:t})},onRelease:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!0,direction:t})}},render:function(e){var t=b||e;return t("div",[y.map((function(e,n){var i=this;return t(o.Draggable,{key:n,onDrag:function(t){return i.onDrag(t,e)},on:this.v3?void 0:{drag:function(t){return i.onDrag(t,e)},release:function(t){return i.onRelease(t,e)}},onRelease:function(t){return i.onRelease(t,e)}},this.v3?function(){return[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})]}:[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})])}),this)])}},w=function(){return(w=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},S=r.h,C={name:"KendoWindow",emits:{resize:null,move:null,close:null,stagechange:null},provide:function(){return{kCurrentZIndex:10002}},props:{id:String,appendTo:String,width:{type:[Number],default:void 0},height:{type:[Number],default:void 0},left:{type:[Number],default:void 0},windowStyle:Object,windowClass:String,top:{type:[Number],default:void 0},initialWidth:[Number],initialHeight:[Number],initialLeft:[Number],initialTop:[Number],minWidth:{type:[Number],default:120},minHeight:{type:[Number],default:100},resizable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},modal:{type:Boolean,default:!1},doubleClickStageChange:{type:Boolean,default:!0},title:String,titleRender:o.templateDefinition,closeButton:o.templateDefinition,minimizeButton:o.templateDefinition,maximizeButton:o.templateDefinition,restoreButton:o.templateDefinition,shouldUpdateOnDrag:Boolean,stage:{type:String,validator:function(e){return-1!==["DEFAULT","MINIMIZED","FULLSCREEN"].indexOf(e)}}},setup:S?function(){return{v3:!!S}}:void 0,created:function(){Object(o.validatePackage)(u),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()}},beforeDestroy:S?void 0:function(){this.$props.appendTo&&this.windowWrapper.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowWrapper.remove()},data:function(){return{currentStage:this.$props.stage||i.DEFAULT,isDragging:!1,currentTop:this.getInitialTop(),currentLeft:this.getInitialLeft(),currentWidth:this.getInitialWidth(),currentHeight:this.getInitialHeight()}},mounted:function(){if(window&&(window.addEventListener("resize",this.handleBrowserWindowResize),this.$props.appendTo)){var e=document.querySelector(this.$props.appendTo);this.windowWrapper=this.$refs.wrapper,e.append(this.windowWrapper)}this.$el&&(this.windowElement=this.$refs.windowElement)},destroyed:S?void 0:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},unmounted:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},computed:{computedTop:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.top||this.currentTop,0):0},computedLeft:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.left||this.currentLeft,0):0},computedWidth:function(){var e=this.$props.width||this.currentWidth;return this.windowStage===i.FULLSCREEN&&(e=window.innerWidth),e},computedHeight:function(){var e=this.$props.height||this.currentHeight;return this.windowStage===i.FULLSCREEN?e=window.innerHeight:this.windowStage===i.MINIMIZED&&(e=0),e},windowStage:function(){return this.$props.stage||this.currentStage}},methods:{onPress:function(e){var t=e;this.windowCoordinatesState.differenceLeft=t.pageX-this.computedLeft,this.windowCoordinatesState.differenceTop=t.pageY-this.computedTop},onDrag:function(e){var t=e;t.originalEvent.preventDefault(),this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&(this.currentTop=Math.max(t.pageY-this.windowCoordinatesState.differenceTop,0),this.currentLeft=t.pageX-this.windowCoordinatesState.differenceLeft,this.isDragging=!0,this.dispatchMoveEvent("move",t,!0,!1))},onRelease:function(e){var t=e;this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&this.dispatchMoveEvent("move",t,!0,!0),this.isDragging=!1},handleKeyDown:function(e){if(e.target===e.currentTarget){var t=this.$props.minWidth||120,n=this.$props.minHeight||100;if(e.ctrlKey&&this.$props.resizable){switch(e.keyCode){case o.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case o.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case o.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case o.Keys.right:this.currentWidth=this.currentWidth+5;break;default:return}this.dispatchMoveEvent("resize",e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case o.Keys.up:this.windowStage===i.MINIMIZED?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleFullscreen(e),this.$emit("stagechange",e,this,{state:i.FULLSCREEN}));break;case o.Keys.down:this.windowStage===i.FULLSCREEN?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleMinimize(e),this.$emit("stagechange",e,this,{state:i.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case o.Keys.esc:return void this.handleCloseWindow(e);case o.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case o.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case o.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case o.Keys.right:e.preventDefault(),this.currentLeft=this.currentLeft+5;break;default:return}this.dispatchMoveEvent("move",e,!1,void 0)}}},getInitialTop:function(){if(void 0!==this.$props.top)return this.$props.top;if(void 0!==this.$props.initialTop)return this.$props.initialTop;var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),window.innerHeight/2-e/2},getInitialLeft:function(){if(void 0!==this.$props.left)return this.$props.left;if(void 0!==this.$props.initialLeft)return this.$props.initialLeft;var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),window.innerWidth/2-e/2},getInitialWidth:function(){var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),e},getInitialHeight:function(){var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),e},handleMinimize:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentStage=i.MINIMIZED,this.currentHeight=0,this.$emit("stagechange",e,this,{state:i.MINIMIZED})},handleFullscreen:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentLeft=0,this.currentTop=0,this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight,this.currentStage=i.FULLSCREEN,this.$emit("stagechange",e,this,{state:i.FULLSCREEN})},handleRestore:function(e){e.preventDefault(),this.windowStage===i.FULLSCREEN?(this.currentStage=i.DEFAULT,this.currentLeft=this.windowCoordinatesState.leftBeforeAction,this.currentTop=this.windowCoordinatesState.topBeforeAction,this.currentWidth=this.windowCoordinatesState.widthBeforeAction,this.currentHeight=this.windowCoordinatesState.heightBeforeAction):this.windowStage===i.MINIMIZED&&(this.currentStage=i.DEFAULT,this.currentHeight=this.windowCoordinatesState.heightBeforeAction),this.$emit("stagechange",e,this,{state:i.DEFAULT})},handleCloseWindow:function(e){e.preventDefault(),this.$emit("close",e,this,{state:void 0})},handleDoubleClick:function(e){this.$props.doubleClickStageChange&&(this.windowStage===i.FULLSCREEN||this.windowStage===i.MINIMIZED?this.handleRestore(e):this.handleFullscreen(e))},handleResize:function(e,t){var n=this.computedWidth,i=this.computedHeight,r=this.$props.minWidth||120,o=this.$props.minHeight||100,s=this.computedTop-e.pageY,a=this.computedLeft-e.pageX,l=e.pageX-this.computedLeft,u=e.pageY-this.computedTop;this.isDragging=!t.end,t.direction.indexOf("n")>=0&&o-(i+s)<0&&(this.currentTop=e.pageY,this.currentHeight=i+s),t.direction.indexOf("s")>=0&&o-u<0&&(this.currentHeight=u),t.direction.indexOf("w")>=0&&r-(n+a)<0&&(this.currentLeft=e.pageX,this.currentWidth=n+a),t.direction.indexOf("e")>=0&&r-l<0&&(this.currentWidth=l),this.dispatchMoveEvent("resize",e,!0,t.end)},dispatchMoveEvent:function(e,t,n,i){this.$emit(e,{event:t.event,drag:n,end:i,target:this,left:this.currentLeft,top:this.currentTop,width:this.currentWidth,height:this.currentHeight})},handleBrowserWindowResize:function(){this.windowStage===i.FULLSCREEN&&(this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight)}},render:function(e){var t=this,n=S||e,r=Object(o.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)),a=o.templateRendering.call(this,this.$props.closeButton,o.getListeners.call(this)),l=o.templateRendering.call(this,this.$props.minimizeButton,o.getListeners.call(this)),u=o.templateRendering.call(this,this.$props.maximizeButton,o.getListeners.call(this)),d=o.templateRendering.call(this,this.$props.restoreButton,o.getListeners.call(this)),c=Object(o.getDefaultSlots)(this),p=n("div",{ref:"wrapper"},[this.$props.modal&&n("div",{class:"k-overlay"}),n("div",{tabIndex:0,attrs:this.v3?void 0:{tabIndex:0},onFocus:function(e){return e.target.classList.add("k-state-focused")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-state-focused")},blur:function(e){return e.target.classList.remove("k-state-focused")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-state-focused")},onKeydown:this.handleKeyDown,ref:"windowElement",class:r,style:w({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||!1},this.$props.windowStyle)},[n(o.Draggable,{onPress:this.onPress,on:this.v3?void 0:{press:this.onPress,drag:this.onDrag,release:this.onRelease},onDrag:this.onDrag,onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[n(g,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]}:[n(g,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]),this.windowStage!==i.MINIMIZED?n("div",{class:"k-content k-window-content"},[c]):null,this.windowStage===i.DEFAULT&&this.$props.resizable?n(k,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[p]):p}},x=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(0),r=n(1),o=r.h,s={name:"KendoTabStripNavigationItem",emits:{select:null},props:{active:Boolean,disabled:Boolean,index:Number,title:{type:String,default:"Untitled"},titleRender:[String,Function,Object],first:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0}},computed:{itemClasses:{get:function(){var e,t=this.$props,n=t.active,i=t.disabled,r=t.first,o=t.last;return(e={})["k-first"]=r,e["k-last"]=o,e["k-item"]=!0,e["k-state-disabled"]=i,e["k-state-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=this.$props,r=n.active,s=n.title,a=void 0===s?"Untitled":s,l=this.$props.titleRender,u=i.getTemplate.call(this,{h:t,template:l,defaultRendering:a,additionalProps:this.$props,additionalListeners:{select:this.onClick}});return t("li",{"aria-selected":r,attrs:this.v3?void 0:{"aria-selected":r,role:"tab"},role:"tab",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick},class:this.itemClasses},[t("span",{class:"k-link"},[u])])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(34),o=n(0),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={type:"slide",duration:200},u={type:"slide",duration:0},d={name:"KendoDrawerNavigation",props:{item:[Object],tabIndex:Number},inject:{kendoDrawer:{default:null}},computed:{navigationClassNames:function(){var e=this.kendoDrawer.position;return{"k-widget k-drawer":!0,"k-drawer-start":"start"===e,"k-drawer-end":"end"===e}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=Object(o.getDefaultSlots)(this),i=this.kendoDrawer,d=i.animation,c=i.expanded,p=i.mode,h=i.position,f=i.mini,v=i.dir,m=i.width,g=i.miniWidth,b=i.items,y="boolean"!=typeof d?d:!1===d?u:l,k=m||240,w=g||50,S={opacity:1,flexBasis:k+"px",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},C={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},x={opacity:f?1:0,flexBasis:f?w+"px":0,WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},$={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},O={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},I={transform:"translateX(0%)",WebkitTransitionDuration:(y&&y.duration)+"ms",transitionDuration:(y&&y.duration)+"ms"},T=c?"push"===p?S:C:"push"===p?x:"ltr"===v&&"start"===h||"rtl"===v&&"end"===h?f?I:$:f?I:O,D=b&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":c},title:"drawer-list","aria-expanded":c},[b.map((function(e,n){var i=this.$props.item;!i||i.type||i.render||(i=o.templateRendering.call(this,this.$props.item,o.getListeners.call(this)));var a=t(r.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem},onClick:this.onSelect,on:this.v3?void 0:{click:this.onSelect},text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem});return o.getTemplate.call(this,{h:t,template:i,defaultRendering:a,additionalProps:s(s({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:T,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!c&&f&&"overlay"===p?{width:w+"px"}:{width:k+"px"}},[D||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}},c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i.h,a={name:"KendoDrawerItem",emits:{click:null},props:{index:Number,text:String,icon:String,separator:Boolean,selected:Boolean,disabled:Boolean,targetItem:[Object,Array]},inject:{kendoDrawer:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.disabled;return{"k-drawer-item":!0,"k-state-selected":e.selected,"k-state-disabled":t}}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=Object(r.getDefaultSlots)(this),i=this.$props,o=i.text,a=i.icon,l=i.separator,u=i.disabled,d=i.selected,c=i.tabIndex,p=this.kendoDrawer,h=p.expanded,f=p.mini,v=p.item;return l?t("li",{class:"k-drawer-item k-drawer-separator",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}):t("li",{class:this.itemClassNames,role:"option",attrs:this.v3?void 0:{role:"option","aria-selected":d,"aria-disabled":u,tabIndex:Object(r.getTabIndex)(c,u)},"aria-selected":d,"aria-disabled":u,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabIndex:Object(r.getTabIndex)(c,u)},[v?n:[a&&t("span",{class:"k-icon "+a}),!h&&f?null:t("span",{class:"k-item-text"},[o])]])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},handleClick:function(){if(!this.disabled){var e={element:this.$el,focus:this.focus,props:o(o({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}},l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoMenuItemLink",props:{opened:Boolean,focused:Boolean,url:String},computed:{menuItemClassName:function(){return{"k-link":!0,"k-menu-link":!0,"k-active":this.$props.opened,"k-focus":this.$props.focused}}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=Object(r.getDefaultSlots)(this);return this.$props.url?t("a",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation",href:this.$props.url,tabIndex:-1},href:this.$props.url,tabIndex:-1},[n]):t("span",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n])}},a=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(14),o=i.h,s="k-i-arrow-60-down",a="k-i-arrow-60-right",l="k-i-arrow-60-left",u={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e;return t("span",{class:"k-menu-expand-arrow"},[t("span",{class:this.getArrowClassName(),role:"presentation",attrs:this.v3?void 0:{role:"presentation"}})])},methods:{getArrowClassName:function(){var e,t=Object(r.b)(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[s]="downward"===t,e[a]="rightward"===t,e[l]="leftward"===t,e}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoSplitterPane",props:{orientation:{type:String,default:function(){},validator:function(e){return["vertical","horizontal"].includes(e)}},overlay:Boolean,containsSplitter:Boolean,size:String,min:String,max:String,resizable:Boolean,collapsible:Boolean,collapsed:Boolean,scrollable:Boolean,keepMounted:Boolean,content:[Object,Function,String]},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t,n=o||e,i=this.$props,s=i.size,a=i.collapsed,l=i.overlay,u=i.containsSplitter,d=i.collapsible,c=i.resizable,p=i.scrollable,h=i.keepMounted,f=s&&s.length>0,v={flexBasis:s},m=Object(r.classNames)("k-pane",((t={})["k-state-hidden"]=a,t.hidden=a,t["k-pane-flex"]=u,t["k-pane-static"]=!c&&!d||f,t["k-scrollable"]=p,t)),g=r.getTemplate.call(this,{h:n,template:this.$props.content,defaultRendering:null});return n("div",{style:v,class:m},[!a||h?g:void 0,l?n("div",{class:"k-splitter-overlay k-overlay"}):void 0])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i,a=s.h,l=(s.ref,"data-slider-label"),u={name:"KendoSliderLabel",emits:{click:null},props:{position:Number,title:String,vertical:Boolean},data:function(){return{currentDir:"ltr"}},inject:["kendoMax","kendoMin","kendoVertical"],mounted:function(){if(this.sliderLabelRef=this.$refs.sliderLabelRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t,n=a||e,i=this.currentDir,s=Object(r.getDefaultSlots)(this),l=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),u=this.kendoVertical?{bottom:l+"%",height:"1px",width:"100%"}:((t={})["rtl"===i?"right":"left"]=l+"%",t.width="1px",t.height="100%",t);return n("li",{ref:"sliderLabelRef",role:"presentation",attrs:this.v3?void 0:{role:"presentation",title:this.$props.title},class:"k-tick k-tick-large",title:this.$props.title,style:o({zIndex:1,position:"absolute"},u)},[n("span",{"data-slider-label":!0,attrs:this.v3?void 0:{"data-slider-label":!0},class:"k-label",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick}},[s])])},methods:{onClick:function(e){this.$emit("click",e)}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(7),s=i,a=s.h,l=s.ref,u=(s.inject,{name:"KendoRadioButton",props:{ariaDescribedBy:String,checked:Boolean,disabled:Boolean,className:String,content:[String,Number,Boolean,Object],id:String,label:String,labelRender:[String,Number,Boolean,Object],item:[String,Number,Boolean,Object],labelPlacement:String,name:String,tag:{type:String,default:"div"},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{change:null,focus:null,blur:null},created:function(){this.calculatedId=Object(r.guid)(),Object(r.validatePackage)(o.a)},mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-state-invalid"]=!1===this.$props.valid,e["k-invalid"]=!1===this.$props.valid,e[this.$props.className]=this.$props.className,e}},methods:{focusElement:function(){this.input&&this.input.focus()},handleChange:function(e){this.$emit("change",{event:e,value:this.$props.value})},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e,void 0)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e,void 0)}},setup:a?function(){return{v3:!!a,inputRef:l(null)}}:void 0,render:function(e){var t=this,n=a||e,i=Object(r.getDefaultSlots)(this),o=this.$props,s=o.ariaDescribedBy,l=o.checked,u=o.disabled,d=o.id,c=o.label,p=o.labelRender,h=o.labelPlacement,f=o.name,v=o.tabIndex,m=o.value,g=o.tag,b=c;if(p){var y=p?r.templateRendering.call(this,p,r.getListeners.call(this)):null;b=r.getTemplate.call(this,{h:n,template:y})}var k=r.getTemplate.call(this,{h:n,template:this.$props.content}),w=void 0!==b?n("label",{class:"k-radio-label",for:d||this.calculatedId,attrs:this.v3?void 0:{for:d||this.calculatedId,"aria-label":c},style:{userSelect:"none"},"aria-label":c},[b]):null,S=n("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:d||this.calculatedId,name:f,disabled:u,tabIndex:Object(r.getTabIndex)(v,u),"aria-describedby":s},id:d||this.calculatedId,name:f,class:this.inputClassName,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:u,tabIndex:Object(r.getTabIndex)(v,u),checked:this.v3?l:null,domProps:this.v3?void 0:{checked:l,value:m},style:this.$attrs.style,"aria-describedby":s,value:this.v3?m:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),C=n(g,"before"===h?[w,S,k,i]:[S,w,k,i]);return r.getTemplate.call(this,{h:n,template:this.$props.item,defaultRendering:C,defaultSlots:i,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}}),d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(15),o=n(0),s=function(e,t){var n=this,i=[];return t.forEach((function(t){n.v3&&t.children&&t.children.length&&(i=s.call(n,e,t.children)),(t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("tab")||t.type&&t.type.name&&-1!==t.type.name.toLowerCase().indexOf("kendotabstriptab"))&&i.push(t)})),i},a=i,l=a.h,u=(a.ref,a.inject,{name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=Object(o.guid)()},setup:l?function(){return{v3:!!l}}:void 0,data:function(){return{midAnimation:!1}},computed:{animationClass:function(){var e=this;return this.tabs.map((function(t,n){var i=n===e.$props.selected;return{"k-fade-appear":e.animation&&!i,"k-fade-enter-active":e.animation&&i}}))}},render:function(e){var t=l||e,n=this.$props,i=n.tabs,a=n.selected,u=(n.showAll,n.hasTabs),d=i&&"number"==typeof a&&i[a],c=Object(o.getDefaultSlots)(this),p=u?i:s.call(this,[],c||[]),h=a<p.length&&a>-1,f=Object(o.classNames)({"k-content":h},{"k-state-active":h},d&&d.contentClassName),v=function(e,n){var i=this,s=n===this.$props.selected,a={position:"initial",height:s?void 0:"0px",width:s?void 0:"0px"},l=u?o.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(r.a,{appear:!!this.v3||s,attrs:this.v3?void 0:{appear:!!this.v3||s,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:a},this.v3?function(){return[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])]}:[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])])};return t("div",{class:f,style:this.$props.style},[function(){return p.map((function(e,t){return v.call(this,e,t)}),this)}.call(this)])}}),d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i,r=n(1),o=n(0),s=n(4),a=n(24),l=((i={})["stepper.optionalText"]="(Optional)",i),u=r,d=u.h,c=u.inject,p={name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,index:Number,isValid:Boolean,focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,errorIcon:String},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.current,n=e.disabled,i=e.focused,r=e.index,o=e.isValid,s=e.optional;return{"k-step":!0,"k-step-first":0===r,"k-step-last":this.numOfSteps&&r===this.numOfSteps-1,"k-step-done":r<this.value,"k-step-current":t,"k-step-optional":s,"k-step-disabled":n,"k-step-focus":i,"k-step-error":void 0!==o&&!o,"k-step-success":o}},itemStyles:function(){var e=this.$props.index,t=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:"calc(100% / "+this.numOfSteps+")",pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:d?function(){return{v3:!!d,kendoLocalizationService:c("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=d||e,i=Object(o.getDefaultSlots)(this),r=this.$props,u=r.current,c=r.disabled,p=r.focused,h=r.icon,f=r.index,v=r.isValid,m=r.label,g=r.optional,b=r.tabIndex,y=r.text,k=r.animationDuration,w=r.item,S=r.linear,C=r.mode,x=r.value,$=r.successIcon,O=r.errorIcon,I=!S||f===x-1||f===x||f===x+1,T="labels"===C||Boolean(h)&&Boolean(m),D=Object(s.provideLocalizationService)(this),V=(t="stepper.optionalText",D.toLanguageString(t,l[t])),M="number"==typeof k?k:!1!==k?a.a:a.b,N=n("span",{class:"k-step-indicator-icon "+(v?$?""+$:"k-icon k-i-check":O?""+O:"k-icon k-i-warning"),"aria-hidden":"true",attrs:this.v3?void 0:{"aria-hidden":"true"}});return n("li",{class:this.itemClassNames,style:this.itemStyles},[n("a",{ref:"aElement",class:"k-step-link",title:m||void 0,attrs:this.v3?void 0:{title:m||void 0,tabIndex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,focusin:this.handleFocus},onFocusin:this.handleFocus,tabIndex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},[w?i:[function(){return"labels"!==C?n("span",{class:"k-step-indicator","aria-hidden":!0,attrs:this.v3?void 0:{"aria-hidden":!0},style:{transitionDuration:M+"ms"}},[h?T||void 0===v?n("span",{class:"k-step-indicator-icon k-icon "+h}):N:void 0!==v?N:n("span",{class:"k-step-indicator-text"},[y||f+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[m&&n("span",{class:"k-step-text"},[m]),T&&void 0!==v&&N,g&&n("span",{class:"k-step-label-optional"},[V])])}.call(this)]])])},methods:{focus:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleClick:function(e){this.disabled||this.$emit("change",{event:e,value:this.index,component:this})},handleFocus:function(e){this.disabled||this.$emit("focus",e)}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(15),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={name:"KendoPanelBarGroup",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],content:Object},data:function(){return{show:this.$props.expanded}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,i=n.item,l=n.items,u=n.uniquePrivateKey,d=n.disabled,c=n.expanded,h=n.animation,f=n.keepItemsMounted,v=r.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:s(s({},this.$props),{show:this.show})}),m=!d&&c,g=m||f?l?t("ul",{role:"group",attrs:this.v3?void 0:{role:"group"},class:"k-panelbar-group k-panel k-group",style:{display:f?this.$data.show?"block":"none":"block"}},[l.map((function(e){return t(p,s(s({props:this.v3?void 0:s(s({},e),{item:i})},e),{item:i}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[v]):null:null;return void 0!==h&&!h||d?g:t(o.b,{appear:m,attrs:this.v3?void 0:{appear:m,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!f},transitionEnterDuration:200,transitionExitDuration:200,key:u+"_animation",style:{display:"block"},unmountOnExit:!f,onEntering:this.handleEntering,on:this.v3?void 0:{entering:this.handleEntering,exited:this.handleExited},onExited:this.handleExited},this.v3?function(){return[g]}:[g])},methods:{handleEntering:function(){this.keepItemsMounted&&(this.show=!0)},handleExited:function(){this.keepItemsMounted&&(this.show=!1)}}},u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={name:"KendoPanelBarItem",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,selected:Boolean,level:Number,title:{type:[String,Object,Function],default:function(){return"Untitled"}},id:[String,Number],focused:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],parentUniquePrivateKey:Array,parentExpanded:Boolean,headerClassName:String,iconClass:String,imageUrl:String,icon:String,content:Object,header:Object},inject:{dispatchItemSelect:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t,n=d||e,i=this.$props,o=i.id,s=i.item,a=i.icon,c=i.items,p=i.content,h=i.title,f=i.uniquePrivateKey,v=i.disabled,m=i.selected,g=i.focused,b=i.expanded,y=i.className,k=i.level,w=i.headerClassName,S=i.animation,C=i.keepItemsMounted,x=!!c||p,$=Object(r.classNames)("k-item",{"k-panelbar-header":0===k,"k-panelbar-item":0!==k,"k-state-expanded":b&&x},"k-level-"+k,y),O=Object(r.classNames)("k-link",{"k-state-selected":!v&&m,"k-state-focus":g,"k-state-disabled":v},w),I=Object(r.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=b&&x,t["k-panelbar-collapse"]=b&&x,t["k-i-arrow-chevron-down"]=!b&&x,t["k-panelbar-expand"]=!b&&x,t)),T=function(){if(this.imageUrl)return n("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",src:this.imageUrl},class:"k-panelbar-item-icon k-image",src:this.imageUrl});if(a){var e=Object(r.classNames)("k-panelbar-item-icon","k-icon","k-i-"+a);return n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return this.iconClass?n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:"k-panelbar-item-icon "+this.iconClass}):null}.call(this),D=v||!c&&!p?null:n("span",{class:I}),V=c||p?n(l,{items:c,attrs:this.v3?void 0:{items:c,item:s,content:p,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C},item:s,content:p,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C}):null,M=r.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:u({},this.$props)});return n("li",{id:o,attrs:this.v3?void 0:{id:o,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},class:$,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},[n("span",{class:O,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[T,this.$props.header?M:n("span",{class:"k-panelbar-item-text"},[h]),D]),V])},methods:{handleItemClick:function(){var e=this.$props,t=e.disabled,n=e.id;t||this.dispatchItemSelect({uniquePrivateKey:this.$props.uniquePrivateKey,id:n,target:this})},childFactory:function(e){return e}}},p=c},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(i||(i={}));var r=function(e,t){switch(t.type){case i.add:break;case i.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case i.reorder:break;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoButtonItem",emits:{click:null,down:null},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String},computed:{wrapperClass:function(){return{"k-item":!0,"k-focus":this.$props.focused}},innerClass:function(){var e=this.$props.dataItem;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick:function(e){this.$emit("click",e,this.$props.index)},onDown:function(e){this.$emit("down",e,this.$props.index)}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=this.$props,i=n.dataItem,s=n.id,a=n.render;return t("li",{id:s,attrs:this.v3?void 0:{id:s,role:"menuitem","aria-disabled":i.disabled||void 0},class:this.wrapperClass,onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":i.disabled||void 0},[function(){var e=this.$props,n=e.textField,o=e.index,s=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-"+i.icon:i.iconClass,u=t("span",{tabIndex:-1,attrs:this.v3?void 0:{tabIndex:-1},class:this.innerClass,key:"icon"},[l&&t("span",{class:l,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}),i.imageUrl&&t("img",{class:"k-icon",alt:"",attrs:this.v3?void 0:{alt:"",src:i.imageUrl,role:"presentation"},src:i.imageUrl,role:"presentation",key:"image"}),s&&t("span",{class:"k-menu-link-text"},[s])]);return r.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||a,defaultRendering:u,additionalProps:{item:i,itemIndex:o,innerClass:this.innerClass,focused:this.focused}})}.call(this)])}}},function(e,t,n){"use strict";var i=n(0);t.a=function(e,t,n,r){if(n)return e;switch(t){case i.Keys.enter:case i.Keys.space:case i.Keys.esc:return-1;case i.Keys.up:case i.Keys.left:return Math.max(0,e-1);case i.Keys.down:case i.Keys.right:return Math.min(r-1,e+1);default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(0),o=n(23),s=n(22),a=n(43),l=n(25),u=n(9),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=i,p=c.h,h=c.ref,f={name:"KendoVueChipList",props:{id:String,tabIndex:Number,dataItems:Array,defaultDataItems:{type:Array,default:function(){return[]}},value:[Object,Array,String,Number],defaultValue:{type:[Object,Array,String,Number],default:function(){return null}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},selection:{type:String,default:function(){return"none"}},textField:{type:String,default:function(){return"text"}},valueField:{type:String,default:function(){return"value"}},disabled:{type:Boolean,default:!1},dir:{type:String,default:function(){return"ltr"}},chip:[String,Function,Object],ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoSelection:this.currentValue,kendoFocused:this.currentFocused,kendoDataItems:this.computedDataItems,handleDispatchDataItems:this.handleDispatchDataItems,handleDispatchSelection:this.handleDispatchSelection,handleDispatchFocus:this.handleDispatchFocus}},created:function(){Object(r.validatePackage)(u.a),this.currentDataItems=this.$props.dataItems||this.$props.defaultDataItems,this.currentValue.value=this.$props.value||this.$props.defaultValue},data:function(){return{currentDataItems:[],currentDir:"ltr",isRtl:!1,currentFocused:{value:!1},currentValue:{value:null}}},mounted:function(){this.chipList=this.v3?this.chipListRef:this.$refs.chipList,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir},computed:{computedDataItems:function(){return this.$props.dataItems||this.currentDataItems},computedValue:function(){return this.$props.value||this.currentValue.value},items:function(){return this.computedDataItems.reduce(this.itemsReducer,[])}},methods:{handleDispatchSelection:function(e){var t=Object(o.b)(this.computedValue,d(d({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=Object(s.b)(e.payload,d(d({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=Object(a.b)(this.computedDataItems,d(d({},e),{state:this.computedDataItems,valueField:this.$props.valueField}));this.handleDataChange(t,e.event),this.currentDataItems=t},handleChange:function(e,t){this.$el&&this.$emit("change",{value:e,target:this.$el,event:t})},handleDataChange:function(e,t){this.$el&&this.$emit("datachange",{value:e,target:this.$el,event:t})},itemsReducer:function(e,t){return e.push(t[this.$props.valueField||this.$props.valueField]),e}},setup:p?function(){return{v3:!!p,chipListRef:h(null)}}:void 0,render:function(e){var t,n=this,i=p||e,o=this.$props.size;return i("div",{ref:this.v3?function(e){n.chipListRef=e}:"chipList",role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.id,dir:this.currentDir,style:this.$props.style,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip-list",(t={},t["k-chip-list-"+(r.kendoThemeMaps.sizeMap[o]||o)]=o,t["k-rtl"]="rtl"===this.currentDir,t["k-selection-single"]="single"===this.$props.selection,t["k-selection-multiple"]="multiple"===this.$props.selection,t["k-disabled"]=this.$props.disabled,t)),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[this.computedDataItems.map((function(e){var t=r.templateRendering.call(this,this.$props.chip,r.getListeners.call(this)),n=i(l.a,{role:"option",attrs:this.v3?void 0:{role:"option",dataItem:e,text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode});return r.getTemplate.call(this,{h:i,template:t,defaultRendering:n,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}},v=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(19),o=n(0),s=n(44),a=n(45),l=n(12),u=n(17),d=n(9),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.ref,v={name:"KendoSplitButton",emits:{focus:null,blur:null,buttonclick:null,itemclick:null,open:null,close:null},props:{accessKey:String,text:String,items:{type:Array,default:function(){return[]}},textField:String,tabIndex:Number,disabled:Boolean,icon:String,size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Function,Object],item:[String,Function,Object],look:String,className:String,buttonClass:String,dir:String},data:function(){return{focused:!1,focusedIndex:-1,currentOpened:!1}},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-split-button":!0,"k-button-group":!0,"k-focus":this.focused}}},setup:h?function(){return{v3:!!h,kendoAnchorRef:f(null)}}:void 0,render:function(e){var t=this,n=this,i=h||e;this.buttonsData=this.$props.items;var a=this.isRtl(),d=a?"rtl":void 0,p=this.$props,f=p.tabIndex,v=p.disabled,m=Object(o.getDefaultSlots)(this),g=function(){var e=this.$props,t=e.item,n=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,a){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return i(s.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===a,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,index:a,id:this.guid+"-"+a},textField:r,focused:this.focusedIndex===a,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,key:a,index:a,id:this.guid+"-"+a})}),this):null};return i("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:d,attrs:this.v3?void 0:{dir:d}},[i(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:function(e){return n.onItemClick(e,-1)},on:this.v3?void 0:{click:function(e){return n.onItemClick(e,-1)}},disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,class:this.$props.buttonClass,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,ref:this._anchor,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,m]}:[t.$props.text,m]),i(r.a,{class:"k-split-button-arrow",size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,dir:d,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,onClick:this.onSplitPartClick,on:this.v3?void 0:{click:this.onSplitPartClick,mousedown:this.onDownSplitPart,pointerdown:this.onDownSplitPart},onMousedown:this.onDownSplitPart,onPointerdown:this.onDownSplitPart,dir:d,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,r=void 0===n?{}:n,s=t.size;return i(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a)},show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a),style:a?{direction:"rtl"}:void 0},this.v3?function(){return[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])]}:[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else{var t=void 0;if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(e.preventDefault(),this.dispatchClickEvent(e,this.focusedIndex),void 0!==this.focusedIndex&&this.focusedIndex>=0&&(t={focusedIndex:this.computedOpened?-1:0,currentOpened:!this.computedOpened},this.dispatchPopupEvent(e,t.currentOpened))):this.computedOpened&&e.keyCode===o.Keys.esc&&(t={focusedIndex:-1,currentOpened:!1},this.dispatchPopupEvent(e,t.currentOpened)),this.computedOpened){var n=Object(a.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);n!==this.focusedIndex&&((t=t||{}).focusedIndex=n);var i=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&i&&e.preventDefault()}t&&(this.focusedIndex=t.focusedIndex,this.focused=t.focused,void 0!==t.currentOpened&&(this.currentOpened=t.currentOpened))}},onFocus:function(e){this.focused||(this.$emit("focus",e,this,void 0),this.focused=!0),this.focusedIndex=-1,clearTimeout(this._blurTimeout)},onItemClick:function(e,t){var n=this.computedOpened;n&&(this.focusedIndex=0,this.currentOpened=!1),this.dispatchClickEvent(e,t),n&&this.dispatchPopupEvent(e,!1)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this,n=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==n.mainButton&&(n.focused=!1,n.focusedIndex=-1,n.$emit("blur",e,t,void 0),n.computedOpened&&(n.currentOpened=!1,n.dispatchPopupEvent(e,!1)))}),200)},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||(-1===t?this.$emit("buttonclick",e,this,void 0):this.$emit("itemclick",{event:e,component:this,item:this.buttonsData[t],itemIndex:t}))},onSplitPartClick:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.dispatchPopupEvent(e,t),this.focusedIndex=t?0:-1,this.currentOpened=t,this.focused=!0}},onDownSplitPart:function(e){e.preventDefault(),this.element()&&document.activeElement!==this.element()&&this.element().focus()},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(19),o=n(0),s=n(45),a=n(44),l=n(12),u=n(17),d=n(9),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.ref,v={name:"KendoDropDownButton",emits:{focus:null,blur:null,itemclick:null,open:null,close:null},props:{accessKey:String,primary:Boolean,items:{type:Array,default:function(){return[]}},text:String,textField:String,tabIndex:Number,disabled:Boolean,icon:String,iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Object,Function],item:Function,size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},look:{type:String,validator:function(e){return["default","flat","outline"].includes(e)}},buttonClass:String,dir:String},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.wrapper=null,this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},data:function(){return{currentOpened:!1,focused:!1,focusedIndex:-1}},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-dropdown-button":!0,"k-focus":this.focused}}},setup:h?function(){return{v3:!!h,kendoAnchorRef:f(null)}}:void 0,render:function(e){var t=this,n=h||e,i=this.isRtl(),s=i?"rtl":void 0,d=this.$props,p=d.tabIndex,f=d.disabled,v=Object(o.getDefaultSlots)(this);this.buttonsData=this.$props.items;var m=function(){var e=this.$props,t=e.item,i=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return n(a.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,id:this.guid+"-"+s},textField:r,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,key:s,id:this.guid+"-"+s})}),this):null};return n("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:s,attrs:this.v3?void 0:{dir:s}},[n(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:this.onClickMainButton,on:this.v3?void 0:{click:this.onClickMainButton,mousedown:this.mouseDown},onMousedown:this.mouseDown,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,class:this.$props.buttonClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,ref:this._anchor,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,v]}:[t.$props.text,v]),function(){var e=this,t=this.$props,r=t.popupSettings,s=void 0===r?{}:r,a=t.size;return n(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i)},show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i),style:i?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(void 0!==this.focusedIndex&&this.focusedIndex>=0&&this.dispatchClickEvent(e,this.focusedIndex),e.preventDefault(),this.focusedIndex=this.computedOpened?-1:0,this.currentOpened=!this.computedOpened,this.dispatchPopupEvent(e,this.currentOpened)):this.computedOpened&&e.keyCode===o.Keys.esc&&(this.focusedIndex=-1,this.currentOpened=!1,this.dispatchPopupEvent(e,this.currentOpened)),this.computedOpened){var t=Object(s.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);this.focusedIndex=t;var n=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&n&&e.preventDefault()}},onFocus:function(e){this.focused||(this.focused=!0,this.$emit("focus",e,this,void 0)),this.focusedIndex=this.computedOpened?0:-1,clearTimeout(this._blurTimeout)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==t.$el&&(t.focused=!1,t.focusedIndex=-1,t.$emit("blur",e,t,void 0),t.computedOpened&&(t.currentOpened=!1,t.dispatchPopupEvent(e,!1)))}),200)},onItemClick:function(e,t){this.focusedIndex=-1,this.currentOpened=!1,this.dispatchClickEvent(e,t),this.dispatchPopupEvent(e,!1)},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},mouseDown:function(e){e.preventDefault()},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||this.$emit("itemclick",{event:e,item:this.buttonsData[t],itemIndex:t})},onClickMainButton:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.currentOpened=t,this.focused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,t)}},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(20),s=n(9),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=i.h,u={name:"KendoToolbar",props:{tabIndex:{type:Number,default:0},dir:String,keyboardNavigation:{type:Boolean,default:!0},buttons:{type:Array,default:function(){}}},created:function(){this.offsetHeight=0,this.offsetWidth=0,this.currentButtons=[],this.focusedSelector=this.selectors.map((function(e){return e+":focus"})).join(","),Object(r.validatePackage)(s.a)},computed:{selectors:function(){return this.$props.buttons||o.c}},mounted:function(){window.addEventListener("resize",this.onWindowResize);var e=this.$el;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(0)))},updated:function(){this.$el&&!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(this.focusedIndex()))},destroyed:l?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:"k-widget k-toolbar",role:"toolbar",attrs:this.v3?void 0:{role:"toolbar",dir:this.$props.dir},dir:this.$props.dir,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[n])},methods:{getCurrentButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(this.selectors.join(","))):[]},getInternalButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(o.b)):[]},focusedIndex:function(){var e=this.$el&&this.$el.querySelector(this.focusedSelector);return Math.max(0,this.currentButtons.findIndex((function(t){return t===e})))},setTabIndex:function(e){var t=this.$props.tabIndex;this.currentButtons.forEach((function(n,i){n.tabIndex=i===e?t:-1})),this.getInternalButtons().forEach((function(e){e.tabIndex=-1}))},onKeyDown:function(e){if(!1!==this.$props.keyboardNavigation){var t=e.target;if((e.keyCode===r.Keys.left||e.keyCode===r.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===r.Keys.left?this.focusButton(n,n-1):this.focusButton(n,n+1)}}},focusButton:function(e,t){var n=this.$props.tabIndex,i=this.currentButtons[t];if(i){i.tabIndex=n,i.focus();var r=this.currentButtons[e];r&&(r.tabIndex=-1)}},onWindowResize:function(e){var t=this.$el;if(t){var n=t.offsetWidth,i=t.offsetHeight;if(this.offsetWidth!==n||this.offsetHeight!==i){this.offsetWidth=n,this.offsetHeight=i;var r={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",a(a({target:this},r),{nativeEvent:e}))}}}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(27),o=i.h,s={name:"KendoToolbarItem",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)(r.a,{class:"k-separator"})}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o}));var i=n(1),r=i.h,o={name:"KendoToolbarItem",setup:r?function(){return{v3:!!r}}:void 0,render:function(e){return(r||e)("span",{class:"k-spacer"})}},s=o},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var a=s(n(158)),l=n(58),u=n(6),d=n(53);!function(e){e.alignBlocks=function(e,t,n){return Boolean(u.alignBlocks(t,n)(e.state,e.dispatch))},e.applyInlineStyle=function(e,t,n){return u.applyInlineStyle(t,n)(e.state,e.dispatch)},e.applyLink=function(e,t,n){return u.applyLink(t,n)(e.state,e.dispatch)},e.canIndentList=function(e,t){return u.canIndentAsListItem(e,t)},e.canInsert=function(e,t){return u.canInsert(e,t)},e.canOutdentList=function(e,t){return u.canOutdentAsListItem(e,{listsTypes:t,nodes:[]})},e.convertMsLists=function(e){return u.convertMsLists(e)},e.createDocument=function(e,t,n){return u.parseContent(u.trimWhitespace(t),e,void 0!==n?n:{preserveWhitespace:"full"})},e.createTable=function(e,t,n){return u.createTable(e,t,n)},e.formatBlockElements=function(e,t,n){return u.formatBlockElements(t,n)(e.state,e.dispatch)},e.getBlockFormats=function(e){return u.getBlockFormats(e)},e.getHtml=function(e){return u.getHtml(e)},e.getInlineStyles=function(e,t){return u.getInlineStyles(e,t)},e.getMark=function(e,t){return u.getMark(e,t)},e.hasMark=function(e,t){return u.hasMark(e,t)},e.hasNode=function(e,t){return u.hasNode(e,t)},e.indentBlocks=function(e,t,n,i){return Boolean(u.indentBlocks(t,n,i)(e.state,e.dispatch))},e.indentHtml=function(e){return u.indentHtml(e)},e.insertNode=function(e,t,n){u.insertNode(t,n)(e.state,e.dispatch)},e.isAligned=function(e,t){return u.isAligned(e,t)},e.isIndented=function(e,t,n){return u.isIndented(e,t,n)},e.removeComments=function(e){return u.removeComments(e)},e.removeTag=function(e,t){return u.removeTag(e,t)},e.pasteCleanup=function(e,t){return u.pasteCleanup(e,t)},e.sanitizeClassAttr=function(e){u.sanitizeClassAttr(e)},e.sanitizeStyleAttr=function(e){u.sanitizeStyleAttr(e)},e.removeAttribute=function(e){u.removeAttribute(e)},e.sanitize=function(e){return u.sanitize(e)},e.replaceImageSourcesFromRtf=function(e,t){return u.replaceImageSourcesFromRtf(e,t)},e.textHighlight=function(e){return u.textHighlight(e)},e.imageResizing=function(e){return u.imageResizing(e)},e.setHtml=function(e,t,n,i){var r=u.trimWhitespace(t);u.setHtml(r,n,i)(e.state,e.dispatch)},e.toggleInlineFormat=function(e,t,n,i){return u.toggleInlineFormat(t,n,i)(e.state,e.dispatch)},e.toggleList=function(e,t,n){return u.toggleList(e.state,e.dispatch,e,t,n)},e.getShortcuts=function(e){return a.getShortcuts(e)},e.propsKey=d.editorPropsKey,e.imageResizeKey=u.imageResizeKey,e.marks=i({},l.marks),e.nodes=i({},l.nodes)}(t.EditorUtils||(t.EditorUtils={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(6);t.editorPropsKey=new i.PluginKey("editor-props")},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(4),s=n(2),a=n(7),l=i.h,u={name:"KendoSwitch",model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{name:String,accessKey:String,checked:{type:Boolean,default:void 0},className:String,disabled:{type:Boolean,default:!1},defaultChecked:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},trackRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},thumbRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,offLabel:{type:String,default:"OFF"},onLabel:{type:String,default:"ON"},required:{type:Boolean,default:!1},tabIndex:Number,valid:Boolean,validityStyles:{type:Boolean,default:!1},validationMessage:String,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:void 0}},created:function(){Object(r.validatePackage)(a.a),this._id=Object(r.guid)(),this.defaultValidationMessage=Object(o.provideLocalizationService)(this)},data:function(){return{currentChecked:this.$props.defaultChecked,valueDuringOnChange:void 0,focused:!1,currentDir:void 0}},computed:{computedValue:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentChecked},switchClassName:function(){var e,t=!this.validityStyles||this.validity().valid,n=this.$props.trackRounded;return(e={"k-switch":!0})["k-switch-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[n]||n)]=n,e["k-switch-on"]=this.computedValue,e["k-switch-off"]=!this.computedValue,e["k-focus"]=this.focused,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=!t,e},switchTrackClass:function(){var e,t=this.$props.trackRounded;return(e={"k-switch-track":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=this.v3?this.elementRef:this.$refs.element,this.input=this.v3?this.inputRef:this.$refs.input,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=l||e,i=this.$props,o=i.disabled,s=i.id,a=i.offLabel,u=i.onLabel,d=i.tabIndex,c=i.required;return n("span",{class:this.switchClassName,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir},onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,click:this.handleClick,focusout:this.handleWrapperBlur,focusin:this.handleWrapperFocus},onClick:this.handleClick,onFocusout:this.handleWrapperBlur,onFocusin:this.handleWrapperFocus},[n("span",{class:this.switchTrackClass,id:s||this._id,attrs:this.v3?void 0:{id:s||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":o||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(r.getTabIndex)(d,o,void 0),accessKey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":o||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.v3?function(e){t.elementRef=e}:"element",tabIndex:Object(r.getTabIndex)(d,o,void 0),accessKey:this.$props.accessKey},[n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",tabIndex:-1,name:this.$props.name,required:void 0!==c&&c,"aria-hidden":!0},checked:this.v3?this.$props.checked:null,domProps:this.v3?void 0:{checked:this.$props.checked,value:this.computedValue},ref:this.v3?function(e){t.inputRef=e}:"input",tabIndex:-1,name:this.$props.name,required:void 0!==c&&c,"aria-hidden":!0,value:this.v3?this.computedValue:null,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:r.noop,on:this.v3?void 0:{change:r.noop}}),n("span",{class:"k-switch-label-on"},[u]),n("span",{class:"k-switch-label-off"},[a]),n("span",{class:"k-switch-thumb-wrap"},[n("span",{class:this.switchThumbClass})])])])},methods:{focus:function(){this._element&&this._element.focus()},element:function(){return this._element},validity:function(){var e=void 0!==this.$props.validationMessage,t=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedValue;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||this.defaultValidationMessage.toLanguageString(s.i,s.c[s.i]))},limit:function(e,t,n){var i=n.offsetWidth,r=t.offsetWidth;return e<0?0:e>i-r?i-r:e},toggle:function(e,t){this.currentChecked=e,this.valueDuringOnChange=e,this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("change",{event:t,component:this,target:{value:e},name:this.$props.name,value:e,validity:this.validity()}),this.valueDuringOnChange=void 0},handleClick:function(e){this.eventTimeStamp!==e.timeStamp&&(this.eventTimeStamp=e.timeStamp,this.toggle(!this.computedValue,e))},handleKeyDown:function(e){if(!this.$props.disabled){var t=e.keyCode;t!==r.Keys.space&&t!==r.Keys.enter||this.toggle(!this.computedValue,e)}},handleWrapperFocus:function(e){this.$props.disabled||(this.focused=!0,this.$emit("focus",e))},handleWrapperBlur:function(e){this.$props.disabled||(this.focused=!1,this.$emit("blur",e))}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=i.h,s={name:"KendoButtonWrap",props:{},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return Object(r.getDefaultSlots)(this)[0]}},a=n(9),l=n(20),u=i.h,d=l.a.styles,c={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){Object(r.validatePackage)(a.a)},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t,n=u||e,i=Object(r.getDefaultSlots)(this),o=function(e,t,i,o){var a,l=Object(r.classNames)(((a={})[d["state-disabled"]]=this.$props.disabled,a[d["group-start"]]=o?i:0===t,a[d["group-end"]]=o?0===t:i,a));return n(s,{class:l,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},a=Object(r.classNames)([d["button-group"]],((t={})["k-disabled"]=this.$props.disabled,t[d["button-group-stretched"]]=!!this.$props.width,t));return n("div",{style:{width:this.width},width:this.$props.width,attrs:this.v3?void 0:{width:this.$props.width,dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:a},[function(e){var t=this,n=e.length,i=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1;return e.map((function(e,r){return t.isValidButton(e)?o.call(t,e,r,r===n-1,i):e}))}.call(this,i)])},methods:{isValidButton:function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("button")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("button")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("kendobutton")}}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var i=n(1),r=n(0),o=n(26),s=n(9),a=function(e){return"number"==typeof e?e+"px":e},l=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},u=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},d=function(e,t,n,i){var r=t.horizontal,o=t.vertical;if(e){var s=n&&void 0!==n.x?a(n.x):"16px",l=n&&void 0!==n.x?"calc(50% + "+a(n.x)+")":"50%",u=n&&void 0!==n.y?a(n.y):"16px",d=n&&void 0!==n.y?"calc(50% + "+a(n.y)+")":"50%";e.style.setProperty(c(t,i),"center"===r?l:s),e.style.setProperty(p(t),"middle"===o?d:u),i&&("top"!==o&&"bottom"!==o||"start"!==r||e.style.setProperty("left","unset"),"middle"===o&&"end"===r&&e.style.setProperty("right","unset"),"middle"===o&&"start"===r&&e.style.setProperty("left","unset"))}},c=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},p=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},h=n(12),f=i,v=f.h,m=f.ref,g={name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:Boolean,icon:String,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:function(){return"fixed"}},popupSettings:{type:Object,default:function(){return{}}},shape:{type:String,default:function(){return"rectangle"}},rounded:{type:String,default:"full"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},size:{type:String,default:function(){return"medium"}},themeColor:{type:String,default:function(){return"primary"}}},emits:{click:null,mousedown:null,mouseup:null,open:null,close:null,itemclick:null,focus:null,blur:null,keydown:null},data:function(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created:function(){Object(r.validatePackage)(s.a),this.element=void 0,this._anchor=Object(r.guid)(),this.listId=Object(r.guid)(),this.buttonId=Object(r.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=this.v3?this.listRef:this.$refs.list,this.popup=this.v3?this.popupRef:this.$refs.popup,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir,void 0!==this.opened&&d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames:function(){var e,t=this.$props,n=t.size,i=(t.icon,t.shape),o=t.themeColor,s=t.fillMode,a=t.rounded;return(e={"k-fab":!0})["k-fab-"+(i||"rectangle")]=null!==i,e["k-fab-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[a]||a)]=a,e["k-fab-"+s]=s,e["k-fab-"+s+"-"+o]=s&&o,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-"+this.$props.align.vertical+"-"+this.$props.align.horizontal]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return Object(r.classNames)({"k-pos-absolute":"absolute"===this.$props.positionMode,"k-pos-fixed":"fixed"===this.$props.positionMode})}},methods:{dispatchPopupEvent:function(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick:function(e){if(e.target&&!this.$props.disabled)if(this.$props.items){var t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}else this.$emit("click",e,void 0)},handleFocus:function(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",e,void 0)},handleBlur:function(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",e,void 0),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown:function(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp:function(e){this.$emit("mouseup",e)},dispatchItemClickEvent:function(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick:function(e,t){e.target&&this.$props.items&&(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown:function(e){r.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown:function(e){var t=this.focusedIndex,n=this.$props.items?this.$props.items.length-1:-1,i="bottom"===this.$props.align.vertical;switch(e.keyCode){case r.Keys.enter:case r.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case r.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case r.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case r.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case r.Keys.down:case r.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case r.Keys.up:case r.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<n&&i&&(this.focusedIndex=t+1)}this.$emit("keydown",e,void 0)}},setup:v?function(){return{v3:!!v,chipRef:m(null),kendoAnchorRef:m(null)}}:void 0,render:function(e){var t=this,n=this,i=v||e,s=this.$props,a=s.align,d=s.disabled,c=s.icon,p=s.iconClass,f=s.id,m=s.items,g=s.text,b=s.tabIndex,y=s.accessKey,k=s.popupSettings,w=r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)),S=function(){return m&&m.map((function(e,t){return i(o.a,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w},id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w,class:Object(r.classNames)(e.className,(n=this.currentDir||"ltr",s=a.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===s?"end":"start"])),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown});var n,s}),this)},C=c&&!g,x=(this.element?this.element.offsetWidth:0)/2-16;return i("div",{class:this.rootClassNames},[i("button",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this._anchor,id:f||this.buttonId,attrs:this.v3?void 0:{id:f||this.buttonId,role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabIndex:Object(r.getTabIndex)(b,d),accessKey:y,dir:this.currentDir,disabled:d},role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabIndex:Object(r.getTabIndex)(b,d),accessKey:y,dir:this.currentDir,disabled:d,class:this.buttonClassNames,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,focusin:this.handleFocus,blur:this.handleBlur,keydown:this.handleKeyDown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[c?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:Object(r.classNames)("k-fab-icon k-icon k-i-"+c)}):p?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:p}):null,g&&i("span",{class:"k-fab-text"},[g])]),i(h.Popup,{ref:this.v3?function(e){n.popupRef=e}:"popup",show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl)},anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:t.v3?function(e){n.listRef=e}:"list",role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])]}:[i("ul",{ref:t.v3?function(e){n.listRef=e}:"list",role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])])])}},b=g},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var r=n(6);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return r.marks}});var o=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},s=function(e){var t={};return Array.from(e.attributes).forEach((function(e){t[e.nodeName]=e.nodeValue})),t},a=i(i(i({},o("style")),o("class")),o("id")),l=r.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:a});l.table_row.attrs=l.table_row.attrs||{},l.table_row.attrs.style={default:null},l.table_row.attrs.class={default:null},l.table_row.attrs.id={default:null},l.table_row.toDOM=function(e){return["tr",e.attrs,0]},l.table_row.parseDOM=[{tag:"tr",getAttrs:s}],l.table.attrs=l.table.attrs||{},l.table.attrs.style={default:null},l.table.attrs.class={default:null},l.table.attrs.id={default:null},l.table.toDOM=function(e){return["table",e.attrs,["tbody",0]]},l.table.parseDOM=[{tag:"table",getAttrs:s}];var u=i(i({},r.nodes),l);t.nodes=u},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:s?function(){return{v3:!!s}}:void 0,mounted:function(){this.href=this.v3?this.hrefRef:this.$refs.href,this.title=this.v3?this.titleRef:this.$refs.title,this.target=this.v3?this.targetRef:this.$refs.target,this.href&&this.href.focus()},render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=d.provideLocalizationService(this),v=p.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,b=v.insertHyperlinkTitle,y=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!o&&u.getMark(o.state,o.state.schema.marks[p.mark]),C=i("div",{class:"k-edit-form-container"},[i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[f.toLanguageString(g,c.messages[g])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:this.v3?function(e){n.hrefRef=e}:"href",id:"k-editor-link-url",value:this.v3?S&&S.attrs.href||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.href||void 0}})])]),i("div",{class:"k-edit-label k-editor-link-text-row"},[i("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[f.toLanguageString(b,c.messages[b])])]),i("div",{class:"k-edit-field k-editor-link-text-row"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-text"},class:"k-input-inner",id:"k-editor-link-text",ref:this.v3?function(e){n.titleRef=e}:"title",value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==p.linkTarget&&i("div",{class:"k-edit-field"},[i("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"k-editor-link-target"},class:"k-checkbox k-checkbox-md k-rounded-md",id:"k-editor-link-target",ref:this.v3?function(e){n.targetRef=e}:"target",checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),i("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[f.toLanguageString(y,c.messages[y])])])]);return i(a.Dialog,{title:f.toLanguageString(m,c.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,c.messages[m]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[C,i(a.DialogActionsBar,t.v3?function(){return[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])]}:[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])])]}:[C,i(a.DialogActionsBar,t.v3?function(){return[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])]}:[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.href.value:void 0,title:this.title?this.title.value:void 0,target:this.target&&this.target.checked?"_blank":void 0};u.applyLink({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=p;var h=p;t.InsertLinkDialog=h},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var l=s(n(1)).h,u=n(5),d=n(16),c=n(6),p=n(4),h=n(8),f=d.EditorToolsSettings.alignRemove,v={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=r&&r.state,f=!!d&&c.isAligned(d,o.actions),v=p.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:f,togglable:!0,title:v.toLanguageString(m,h.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,r=!!i&&c.isAligned(i,n.actions),o=r?f.actions:n.actions,s=r?f.commandName:n.commandName;return t&&c.alignBlocks(o,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=v;var m=v;t.Align=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f=h&&h.schema.nodes,v=f&&f[o.listsTypes.listItem],m=o.actions,g=!!h&&(d.isIndented(h,m,s.dir)||m.some((function(e){return f[e.node]&&d.hasNode(h,f[e.node])})))&&!d.hasNode(h,v),b=!!h&&d.canIndentAsListItem(h,v),y=g||b,k=c.provideLocalizationService(this),w=o.messages.title,S=i(i(i({},s),{disabled:!y,title:k.toLanguageString(w,p.messages[w])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],i=this.settings.actions,r=!!e&&(d.isIndented(e,i,this.dir)||i.some((function(n){return t[n.node]&&d.hasNode(e,t[n.node])})))&&!d.hasNode(e,n),o=!!e&&d.canIndentAsListItem(e,n);this.view&&o?d.sinkListItem(n)(this.view.state,this.view.dispatch):this.view&&r&&d.indentBlocks(i,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.IndentVue2=h;var f=h;t.Indent=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=!1,f=c.provideLocalizationService(this),v=o.messages.title,m=o.types,g=o.listType;if(r){var b=r.state,y=b.schema.nodes,k=d.hasNode(b,y[m.orderedList]),w=d.hasNode(b,y[m.bulletList]);h=g===m.orderedList?k&&!w:!k&&w}var S=i(i(i({},s),{selected:h,togglable:!0,title:f.toLanguageString(v,p.messages[v])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,r=n.types,o=n.listType;this.view&&d.toggleList(t.state,t.dispatch,t,i({listType:o},r),n.commandName)},preventDefault:function(e){e.preventDefault()}}};t.ListVue2=h;var f=h;t.List=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f=!!h&&d.isIndented(h,o.actions,s.dir),v=(h&&h.schema.nodes[o.listsTypes.listItem],!!h&&d.canOutdentAsListItem(h,{nodes:o.actions,listsTypes:o.listsTypes})),m=f||v,g=c.provideLocalizationService(this),b=o.messages.title,y=i(i(i({},s),{disabled:!m,title:g.toLanguageString(b,p.messages[b])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=e.dir,r=t&&t.state,o=!!r&&d.isIndented(r,n.actions,i),s=r&&r.schema.nodes[n.listsTypes.listItem],a=!!r&&d.canOutdentAsListItem(r,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?d.liftListItem(s)(t.state,t.dispatch):t&&o&&d.indentBlocks(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=h;var f=h;t.Outdent=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f={mark:o.mark,altMarks:o.altMarks,altStyle:o.altStyle},v=c.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:!!h&&d.hasMark(h,f),togglable:!0,title:v.toLanguageString(m,p.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=this.settings,n={mark:t.mark,altMarks:t.altMarks,altStyle:t.altStyle};return this.view&&d.toggleInlineFormat(n,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.InlineFormatVue2=h;var f=h;t.InlineFormat=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var u=s(n(1)).h,d=n(144),c=n(6),p=n(30),h=n(4),f=n(8),v={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,v=a(n,["view","render","dataItems","settings","defaultItem"]),m=s.style,g=r?c.getInlineStyles(r.state,{name:m,value:/^.+$/}):[],b=1===new Set(g).size?g[0]:null,y=o||s.items,k=l||s.defaultItem,w=h.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,f.messages[k.localizationKey]):k.text);var S=i(i(i({},v),{value:b?y.find((function(e){return e.value===b})):b,dataItems:y,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(d.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=i.style,o=e.target.value;if(n){c.applyInlineStyle({style:r,value:o.value},i.commandName)(n.state,n.dispatch);var s=e.event;s&&"click"===s.type&&n.focus()}}}};t.FontNameVue2=v;var m=v;t.FontName=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var u=s(n(1)).h,d=n(144),c=n(6),p=n(30),h=n(4),f=n(8),v={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,v=a(n,["view","render","dataItems","settings","defaultItem"]),m=o||s.items,g=r&&r.state,b=g?c.getBlockFormats(g):[],y=1===new Set(b).size?b[0]:null,k=l||s.defaultItem,w=h.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,f.messages[k.localizationKey]):k.text);var S=i(i(i({},v),{value:y?m.find((function(e){return e.value===y})):y,dataItems:m,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(d.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=e.target.value;if(n&&c.formatBlockElements(r.value,i.commandName)(n.state,n.dispatch)){var o=e.event;o&&"click"===o.type&&n.focus()}}}};t.FormatBlockVue2=v;var m=v;t.FormatBlock=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var l=s(n(1)).h,u=n(5),d=n(0),c=n(4),p=n(8),h={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||d.noop}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=c.provideLocalizationService(this),h=o.messages.title,f=r&&r.state,v=!!f&&!this.command(f),m=i(i(i({},s),{disabled:v,title:d.toLanguageString(h,p.messages[h])}),o.props);return t(u.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this;this.view&&this.command(this.view.state,(function(t){return e.view.dispatch(t.setMeta("commandName",e.settings.commandName))}))}}};t.ProseMirrorVue2=h;var f=h;t.ProseMirror=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(59),p=n(4),h=n(8),f={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),f=r&&r.state,v=!f||f.selection.empty,m=f&&d.getMark(f,f.schema.marks[o.mark]),g=p.provideLocalizationService(this),b=o.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:v&&!m,title:g.toLanguageString(b,h.messages[b])}),o.props),k=[t(u.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y)),this.openedDialog&&r&&t(c.InsertLinkDialog,{key:"insertLinkDialog",settings:o,attrs:this.v3?void 0:{settings:o,dir:this.dir,view:r},dir:this.dir,view:r,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[k])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=f;var v=f;t.LinkTool=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),h={mark:o.mark},f=!!r&&d.hasMark(r.state,h),v=c.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{disabled:!f,title:v.toLanguageString(m,p.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&d.removeLink(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=h;var f=h;t.Unlink=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(6),h=n(16).EditorToolsSettings.cleanFormatting,f=p.cleanFormatting(),v={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return h}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),p=o.messages.title,h=d.provideLocalizationService(this),v=i(i(i({},s),{disabled:!r||!f(r.state),title:h.toLanguageString(p,c.messages[p])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){var e=this;this.view&&f(this.view.state,(function(t){t.setMeta("commandName",e.settings.commandName),e.view.dispatch(t)}))},preventDefault:function(e){e.preventDefault()}}};t.CleanFormattingVue2=v;var m=v;t.CleanFormatting=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(6),h=n(16).EditorToolsSettings.selectAll,f={name:"KendoSelectAll",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=(n.view,n.settings),o=void 0===r?h:r,s=a(n,["view","settings"]),p=o.messages.title,f=d.provideLocalizationService(this),v=i(i(i({},s),{title:f.toLanguageString(p,c.messages[p])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){this.view&&(p.selectAll(this.view.state,this.view.dispatch),this.view.focus())},preventDefault:function(e){e.preventDefault()}}};t.SelectAllVue2=f;var v=f;t.SelectAll=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var l=s(n(1)).h,u=n(6),d=n(5),c=n(162),p=n(4),h=n(8),f={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),f=r&&r.state,v=f?f.schema.nodes[o.node]:void 0,m=p.provideLocalizationService(this),g=o.messages.insertImage,b=i(i(i({},s),{key:"insertImage",disabled:!v||!f||!u.canInsert(f,v),title:m.toLanguageString(g,h.messages[g])}),o.props),y=[t(d.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:b},b)),this.openedDialog&&r&&t(c.InsertImageDialog,{key:"insertImageDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:b.dir},settings:o,dir:b.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[y])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.InsertImageVue2=f;var v=f;t.InsertImage=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var l=s(n(1)).h,u=n(5),d=n(0),c=n(163),p=n(4),h=n(8),f=n(6),v={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},u.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=d.guid()},data:function(){return{openedPopup:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=r&&r.state,v=p.provideLocalizationService(this),m=o.messages,g=m.createTable,b=m.createTableHint,y=v.toLanguageString(g,h.messages[g]),k=v.toLanguageString(b,h.messages[b]),w=i(i(i({},s),{disabled:!d||!f.canInsert(d,d.schema.nodes.table),key:"InsertTable",title:y}),o.props),S=[t(u.Button,i({ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.togglePopup,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:w},w)),r&&t(c.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,on:this.v3?void 0:{close:this.closePopup,tableinsert:this.onTableInsert},onTableinsert:this.onTableInsert})||null];return t("span",[S])},methods:{togglePopup:function(){this.openedPopup=!this.openedPopup},closePopup:function(){this.openedPopup&&this.togglePopup()},onTableInsert:function(e,t){var n=this.$props.view;if(n){var i=f.createTable(n.state.schema.nodes,e,t);i&&f.insertNode(i,!0)(n.state,n.dispatch),n.focus(),this.closePopup()}},preventDefault:function(e){e.preventDefault()}}};t.InsertTableVue2=v;var m=v;t.InsertTable=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var l=s(n(1)).h,u=n(5),d=n(165),c=n(4),p=n(8),h={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),h=c.provideLocalizationService(this),f=o.messages.viewHtml,v=i(i(i({},s),{key:"viewHtml",title:h.toLanguageString(f,p.messages[f])}),o.props),m=[t(u.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v)),this.openedDialog&&r&&t(d.ViewHtmlDialog,{key:"viewHtmlDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:v.dir},settings:o,dir:v.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[m])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=h;var f=h;t.ViewHtml=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(169),p=n(8),h=n(16),f=h.EditorToolsSettings.pdf,v=h.EditorToolsSettings.savePdfOptions,m={name:"KendoPdf",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=(n.view,n.render,n.settings),o=void 0===r?f:r,s=(n.savePdfOptions,n.savePdfCallback,a(n,["view","render","settings","savePdfOptions","savePdfCallback"])),c=o.messages.title,h=d.provideLocalizationService(this),v=i(i(i({},s),{title:h.toLanguageString(c,p.messages[c])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){this.view&&c.savePDF(this.view.dom,i(i({},v),this.savePdfOptions||{}),this.savePdfCallback)},preventDefault:function(e){e.preventDefault()}}};t.PdfVue2=m;var g=m;t.Pdf=g},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(16).EditorToolsSettings.print,h={name:"KendoPrint",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=void 0===o?p:o,h=a(n,["view","render","settings"]),f=r&&r.dom,v=f&&f.ownerDocument,m=v&&v.defaultView,g=s.messages.title,b=d.provideLocalizationService(this),y=i(i(i({},h),{disabled:!m||m===window,title:b.toLanguageString(g,c.messages[g])}),s.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault:function(e){e.preventDefault()}}};t.PrintVue2=h;var f=h;t.Print=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var l=s(n(1)).h,u=n(5),d=n(166),c=n(8),p=n(16),h=n(4),f=p.EditorToolsSettings.findAndReplace,v={name:"KendoFindAndReplace",props:i({view:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=a(n,["view"]),s=h.provideLocalizationService(this),p=f.messages.findReplaceToolTitle,v=i(i(i({},o),{key:"tool",disabled:!r,title:s.toLanguageString(p,c.messages[p])}),f.props),m=t(u.Button,i({onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.onOpen,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v));return t("span",[m,this.showDialog&&r&&t(d.FindAndReplaceDialog,{view:r,attrs:this.v3?void 0:{view:r,dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},dir:this.$props.dir,key:"dialog"})])},methods:{onClose:function(){this.showDialog=!1},onOpen:function(){this.showDialog=!0},preventDefault:function(e){e.preventDefault()}}};t.FindAndReplaceVue2=v;var m=v;t.FindAndReplace=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(28),o=n(40),s=n(0),a=n(10),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=i,d=u.h,c=(u.ref,u.inject,{name:"KendoTabStrip",emits:{select:null},props:{animation:{type:Boolean,default:!0},selected:Number,tabContentStyle:Object,tabPosition:{type:String,default:"top"},tabs:{type:Array,default:void 0},tabIndex:Number,dir:String},data:function(){return{currentShowAll:!0,currentTabs:[]}},computed:{compTabs:function(){return void 0!==this.tabs?this.tabs.map((function(e){var t=s.templateRendering.call(this,e.content,s.getListeners.call(this));return l(l({},e),{content:t})}),this):this.currentTabs}},provide:function(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created:function(){var e,t=this;this.keyBinding=((e={})[s.Keys.left]=function(){return t.prevNavigatableTab()},e[s.Keys.right]=function(){return t.nextNavigatableTab()},e[s.Keys.down]=function(){return t.nextNavigatableTab()},e[s.Keys.up]=function(){return t.prevNavigatableTab()},e[s.Keys.home]=function(){return 0},e[s.Keys.end]=function(){return t.compTabs.length-1},e),Object(s.validatePackage)(a.a)},watch:{selected:function(e,t){this.$props.animation&&(this.currentShowAll=!1,this.$nextTick((function(){this.currentShowAll=!0})))}},methods:{addRenderTitle:function(e,t){var n=this.compTabs.findIndex((function(t){return t.id===e}));this.v3?this.compTabs[n].titleRender=t:this.compTabs[n]=l(l({},this.compTabs[n]),{titleRender:t})},addTab:function(e){this.currentTabs.push(e)},removeTab:function(e){var t=this.currentTabs.findIndex((function(t){return t.id===e}));this.currentTabs.splice(t,1)},onSelect:function(e){this.$props.selected!==e&&this.$emit("select",{selected:e})},onKeyDown:function(e){var t;switch(e.keyCode){case s.Keys.left:t=this.keyBinding[this.invertKeys(s.Keys.left,s.Keys.right)];break;case s.Keys.right:t=this.keyBinding[this.invertKeys(s.Keys.right,s.Keys.left)];break;case s.Keys.up:t=this.keyBinding[s.Keys.up];break;case s.Keys.down:t=this.keyBinding[s.Keys.down];break;case s.Keys.home:t=this.keyBinding[s.Keys.home];break;case s.Keys.end:t=this.keyBinding[s.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1?t:e},firstNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=0;t<e;t++)if(!this.compTabs[t].disabled)return t},lastNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=e-1;t>0;t--)if(!this.compTabs[t].disabled)return t},prevNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t-1:-1;if(n<0)return this.lastNavigatableTab();if(e)for(var i=n;i>-1;i--){if(!this.compTabs[i].disabled)return i;if(0===i)return this.lastNavigatableTab()}},nextNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t+1:1;if(n>=e)return this.firstNavigatableTab();if(e)for(var i=n;i<e;i++){if(!this.compTabs[i].disabled)return i;if(i+1===e)return this.firstNavigatableTab()}}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t,n=d||e,i=this.$props,a=i.tabPosition,u=i.tabIndex,c=void 0===u?0:u,p="bottom"===a,h=Object(s.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===a,t["k-tabstrip-right"]="right"===a,t["k-tabstrip-bottom"]="bottom"===a,t["k-tabstrip-top"]="top"===a,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:h},[!p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c}),function(e){var t=e.selected,i=e.tabContentStyle,r=Object(s.getDefaultSlots)(this),a={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:i,showAll:this.currentShowAll};return n(o.a,l(l({},a),{attrs:this.v3?void 0:l({},a)}),this.v3?function(){return r}:[r])}.call(this,this.$props),p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c})])}}),p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=i,s=o.h,a=(o.ref,o.inject,{name:"KendoTabStripTab",props:{disabled:Boolean,contentClassName:String,title:String,titleRender:[String,Function,Object]},inject:{addRenderTitle:{default:null},addTab:{default:null},removeTab:{default:null}},created:function(){this.tabId=Object(r.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:s?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[Object(r.getDefaultSlots)(this)])}}),l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(13),o=n(10),s=n(0),a=i.h,l={name:"KendoCard",props:{dir:String,type:{type:String,default:r.d.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:r.c.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==r.c.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-"+this.$props.type]=this.$props.type!==r.d.DEFAULT,e["k-card-"+t]=!0,e}},render:function(e){var t=a||e,n=Object(s.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardHeader",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-header"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardTitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-title"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardBody",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-body"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=n(13),s=i.h,a={name:"KendoCardActions",props:{layout:{type:String,default:o.b.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:o.c.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:s?function(){return{v3:!!s}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-"+this.$props.layout]=!0,e["k-card-actions-"+(this.$props.orientation!==o.c.HORIZONTAL?"vertical":"k-card-horizontal")]=!0,e}},render:function(e){var t=s||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}},l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardImage",props:{src:String},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e;Object(r.getDefaultSlots)(this);return t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardSubtitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-subtitle"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardFooter",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-footer"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(13),o=n(10),s=n(0),a=i.h,l={name:"KendoAvatar",props:{type:{type:String,default:r.a.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse","inherit"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),r=t.rounded,o=t.fillMode,a=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-"+(s.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-avatar-"+o]=o,e["k-avatar-"+o+"-"+a]=Boolean(o&&a),e},innerClass:function(){var e;return(e={})["k-avatar-"+this.$props.type]=this.$props.type,e}},render:function(e){var t=a||e,n=Object(s.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(33),o=n(0),s=n(10),a=i.h,l={name:"KendoDrawer",props:{animation:{type:[Object,Boolean],default:!0},expanded:{type:Boolean,default:!1},dir:{type:String,default:"ltr"},item:[String,Object,Function],mode:{type:String,default:"overlay",validator:function(e){return["overlay","push"].includes(e)}},position:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}},items:Array,mini:{type:Boolean,default:!1},tabIndex:Number,width:{type:Number,default:240},miniWidth:{type:Number,default:50}},created:function(){Object(o.validatePackage)(s.a)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:r,mini:s,width:a,miniWidth:l,items:u,item:c}}},mounted:function(){this.currentDir=Object(o.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;this.drawer.expanded=t,this.drawer.mode=n,this.drawer.dir=this.currentDir,this.drawer.position=i,this.drawer.animation=r,this.drawer.mini=s,this.drawer.width=a,this.drawer.miniWidth=l,this.drawer.items=u,this.drawer.item=c},provide:function(){return{kendoDrawer:this.drawer}},computed:{drawerClassNames:function(){var e=this.$props,t=e.expanded,n=e.mode;return{"k-drawer-container":!0,"k-drawer-expanded":t,"k-drawer-overlay":"overlay"===n,"k-drawer-push":"push"===n,"k-drawer-mini":e.mini}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=Object(o.getDefaultSlots)(this),i=this.$props,s=i.items,l=i.tabIndex,u=i.mode,d=i.expanded,c=i.item,p=c?o.templateRendering.call(this,c,o.getListeners.call(this)):void 0;return t("div",{class:this.drawerClassNames,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabIndex:l},tabIndex:l},["overlay"===u&&d&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),s&&t(r.a,{onSelect:this.handleSelect,on:this.v3?void 0:{select:this.handleSelect},item:p,attrs:this.v3?void 0:{item:p}}),n])},methods:{focus:function(){this.$el&&this.$el.focus()},handleSelect:function(e,t){this.$props.items&&this.$emit("select",{itemTarget:e,itemIndex:t,component:this})},onOverlayClick:function(e){this.$emit("overlayclick",e)}}},u=l},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoDrawerContent",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-drawer-content"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(41),s=n(154),a=n(24),l=n(10),u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={name:"KendoStepper",model:{event:"changemodel"},props:{animationDuration:{type:[Boolean,Number],default:400},dir:String,disabled:Boolean,item:{type:[String,Object,Function,Boolean],default:void 0},items:Array,linear:Boolean,mode:{type:String,default:"steps",validator:function(e){return["steps","labels"].includes(e)}},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},value:{type:Number,default:0},modelValue:Number,successIcon:String,errorIcon:String},created:function(){Object(r.validatePackage)(l.a),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr"},data:function(){return{currentDir:"ltr",focusedIdx:0,stepper:{},currentFocused:!1}},watch:{value:function(e){this.focusedIdx=e}},computed:{computedValue:function(){return void 0!==this.$props.modelValue?this.$props.modelValue:this.$props.value},isVertical:function(){return"vertical"===this.$props.orientation},numOfSteps:function(){var e=this.$props.items;return e?e.length:0},stepperClasses:function(){return{"k-stepper":!0,"k-stepper-linear":this.$props.linear}},stepperStyles:function(){return{display:"grid",gridTemplateColumns:this.isVertical?void 0:"repeat("+2*this.numOfSteps+", 1fr)",gridTemplateRows:this.isVertical?"repeat("+4*this.numOfSteps+", 1fr)":void 0}},listClasses:function(){return{"k-step-list":!0,"k-step-list-horizontal":!this.isVertical,"k-step-list-vertical":this.isVertical}},listStyles:function(){return{gridColumnStart:this.isVertical?"":1,gridColumnEnd:this.isVertical?"":-1,gridRowStart:this.isVertical?1:"",gridRowEnd:this.isVertical?-1:""}},progressbarStyles:function(){return{gridColumnStart:this.isVertical?"":2,gridColumnEnd:this.isVertical?"":2*this.numOfSteps,gridRowStart:this.isVertical?2:"",gridRowEnd:this.isVertical?4*this.numOfSteps-2:""}}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=d||e,n=Object(r.getDefaultSlots)(this),i=this.$props,l=i.animationDuration,c=i.disabled,p=i.items,h=i.orientation,f=this.computedValue,v="number"==typeof l?l:!1!==l?a.a:a.b,m=p&&p.map((function(e,n){var i=this.$props.item?r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)):void 0,s=t(o.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:c||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:c||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus},onFocus:this.handleFocus,class:e.class,style:e.style,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon});return r.getTemplate.call(this,{h:t,template:i,defaultRendering:s,additionalProps:u(u({},e),{disabled:c||e.disabled,focused:n===this.focusedIdx,current:n===f,value:f}),additionalListeners:{change:this.handleChange,focus:this.handleFocus}})}),this);return t("nav",{tabIndex:this.currentFocused?-1:0,attrs:this.v3?void 0:{tabIndex:this.currentFocused?-1:0,dir:this.currentDir},class:this.stepperClasses,style:this.stepperStyles,dir:this.currentDir,onFocusin:this.handleFocusin,on:this.v3?void 0:{focusin:this.handleFocusin,focusout:this.handleFocusout,keydown:this.handleKeyDown},onFocusout:this.handleFocusout,onKeydown:this.handleKeyDown},[t("ol",{class:this.listClasses,style:this.listStyles},[m||n]),t(s.ProgressBar,{style:this.progressbarStyles,animation:{duration:v},attrs:this.v3?void 0:{animation:{duration:v},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:c,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:c,tabIndex:-1})])},methods:{focus:function(){this.$el&&Object(r.focusFirstFocusableChild)(this.$el)},dispatchChangeEvent:function(e,t){var n=t===this.computedValue-1,i=t===this.computedValue,r=t===this.computedValue+1,o=!this.linear||n||i||r;this.computedValue!==t&&!this.disabled&&o&&(this.focusedIdx=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{component:this,event:e,value:t}))},handleChange:function(e){var t=e.value;this.dispatchChangeEvent(e,t)},handleFocus:function(e){this.disabled||this.$emit("focus",e,void 0)},handleEnter:function(e){var t={component:this,event:e,value:this.focusedIdx};this.dispatchChangeEvent(t,this.focusedIdx)},handleFocusin:function(){this.currentFocused=!0},handleFocusout:function(){this.currentFocused=!1},handleKeyDown:function(e){var t="rtl"===this.currentDir,n=this.focusedIdx,i=this.items.length-1;switch(e.keyCode){case r.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case r.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case r.Keys.space:case r.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}},p=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var a=s(n(1)).h,l=n(168),u=n(6),d=n(4),c=n(8),p={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.colorPickerProps,o=n.dir,s=r.title,u=d.provideLocalizationService(this),p=i(i({},r),{dir:o,title:s?u.toLanguageString(s,c.messages[s]):s});return t(l.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:p},p))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,r=t.colorPickerProps,o=t.commandName;if(n){u.applyInlineStyle({style:i,value:e.value},o)(n.state,n.dispatch);var s=r.view;"palette"===(void 0===s?"palette":s)&&n.focus()}}}};t.ApplyColorVue2=p;var h=p;t.ApplyColor=h},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(29),r=n(1),o=n(7),s=r,a=s.h,l=(s.ref,{created:function(){Object(i.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(a||e)("span",{class:"k-input-separator"})}}),u=l},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(5),o=n(0),s=n(4),a=n(2),l=n(38),u=n(7),d=i,c=d.h,p=d.ref,h=d.inject,f={name:"KendoSlider",model:{event:"changemodel"},props:{modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:void 0},name:String,buttons:Boolean,tabIndex:Number,disabled:Boolean,dir:String,step:Number,min:{type:Number,required:!0},max:{type:Number,required:!0},value:Number,vertical:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},data:function(){return{currentValue:void 0,currentFocused:!1,currentDir:"ltr"}},computed:{computedValue:function(){var e=void 0!==this.$props.value?this.$props.value:this.currentValue,t=this.$props,n=t.min,i=t.max;return void 0===e?e:Math.min(Math.max(e,n),i)},sliderTrack:function(){return this._sliderTrack}},created:function(){Object(o.validatePackage)(u.a),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=this.$props.min,this.currentFocused=!1,this.currentDir=this.$props.dir},mounted:function(){if(this._sliderTrack=this.$refs.sliderTrack,this.$el&&(this.draggable=this.$refs.draggable),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},updated:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:c?function(){return{v3:!!c,inputRef:p(null),kendoLocalizationService:h("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=c||e,l=Object(s.provideLocalizationService)(this),u=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,d=Object(o.getDefaultSlots)(this);return i("div",{"aria-valuemin":this.$props.min,attrs:this.v3?void 0:{"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,tabIndex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0)},"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,style:this.$props.style,tabIndex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},onBlur:this.onBlur,onKeydown:this.onKeyDown,class:Object(o.classNames)("k-slider k-widget",{"k-state-focused":this.currentFocused,"k-state-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:Object(o.classNames)("k-slider-wrap")},[this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:l.toLanguageString(a.f,a.c[a.f])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:l.toLanguageString(a.f,a.c[a.f]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(o.Draggable,{onDrag:this.dragOver,on:this.v3?void 0:{drag:this.dragOver,press:this.dragStart},onPress:this.dragStart,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.g,a.c[a.g]),attrs:n.v3?void 0:{title:l.toLanguageString(a.g,a.c[a.g])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.g,a.c[a.g]),attrs:n.v3?void 0:{title:l.toLanguageString(a.g,a.c[a.g])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:l.toLanguageString(a.h,a.c[a.h])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:l.toLanguageString(a.h,a.c[a.h]),onClick:this.increment,on:this.v3?void 0:{click:this.increment}})])])},methods:{focus:function(){this.$el&&this.$el.focus()},isLabel:function(e){for(var t=e;t;){if(Boolean(t.getAttribute(l.a)))return!0;t=t.parentElement}return!1},onFocus:function(){this.currentFocused=!0},onBlur:function(){this.currentFocused=!1},onKeyDown:function(e){var t=void 0;e.keyCode===o.Keys.left||e.keyCode===o.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===o.Keys.right||e.keyCode===o.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===o.Keys.home?t=this.$props.min:e.keyCode===o.Keys.end&&(t=this.$props.max),void 0!==t&&(e.preventDefault(),this.change(e,t))},decrement:function(e){e.preventDefault(),this.change(e,this.currentValue-(this.$props.step||0))},increment:function(e){e.preventDefault(),this.change(e,this.currentValue+(this.$props.step||0))},dragStart:function(e){this.isLabel(e.originalEvent.target)||(e.isTouch&&e.originalEvent.preventDefault(),this.drag(e))},dragOver:function(e){e.originalEvent.preventDefault(),this.drag(e)},drag:function(e){var t=this.draggable.element.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);this.change(e,this.$props.min+n*(this.$props.max-this.$props.min))},change:function(e,t){t=Math.min(Math.max(t,this.$props.min),this.$props.max),this.currentValue=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t,component:this,target:{name:this.$props.name,value:t}})}}},v=f},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(0),o=n(7),s=n(4),a=n(2),l=i,u=l.h,d=l.ref,c=l.inject,p={name:"KendoCheckbox",emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},inject:{kendoLocalizationService:{default:null}},props:{checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:void 0},defaultValue:{type:[String,Boolean],default:void 0},modelValue:{type:[String,Boolean],default:void 0},dir:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,label:String,labelRender:[String,Number,Boolean,Object],labelPlacement:String,labelOptional:Boolean,name:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:{type:[String,Boolean],default:void 0},validationMessage:String,required:Boolean,valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0}},data:function(){return{valueDuringOnChange:void 0,currentDir:"ltr",currentChecked:void 0,currentValue:void 0}},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)(),void 0!==this.$props.defaultChecked&&(this.currentChecked=this.$props.defaultChecked),void 0!==this.$props.defaultValue&&(this.currentValue=this.$props.defaultValue),this.currentDir=this.$props.dir},computed:{valueIsBooleanOrNull:function(){var e=this.$props.value;return"boolean"==typeof e||null===e},isCheckedControlled:function(){return void 0!==this.$props.checked},isValueControlled:function(){return void 0!==this.$props.value&&this.valueIsBooleanOrNull},computedValue:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue},computedChecked:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentChecked},useValueAsChecked:function(){return void 0===this.computedChecked&&this.computedValue},checkedProp:function(){return this.useValueAsChecked?this.computedValue:this.computedChecked},valueProp:function(){var e=this.$props.value;return this.useValueAsChecked||this.isValueControlled?null===e?e:void 0:e||this.computedValue},indeterminateProp:function(){return null===this.checkedProp||null===this.valueProp},isValid:function(){var e=this.$props.valid;return void 0!==e?e:!this.$props.required||!!this.computedChecked}},mounted:function(){if(this.input=this.v3?this.inputRef:this.$refs.input,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}this.setValidity()},updated:function(){this.input||(this.input=this.v3?this.inputRef:this.$refs.input),this.setValidity()},setup:u?function(){return{v3:!!u,inputRef:d(null),kendoLocalizationService:c("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=u||e,i=this.$props,o=i.ariaDescribedBy,l=i.ariaLabelledBy,d=i.disabled,c=i.id,p=i.label,h=i.labelRender,f=i.labelPlacement,v=i.name,m=i.labelOptional,g=i.tabIndex,b=i.required,y=i.validityStyles,k=i.size,w=i.rounded,S=Object(r.getDefaultSlots)(this),C=p;this.localizationService=Object(s.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(a.b),this.optionalMessage=this.localizeMessage(a.a);var x=Object(r.classNames)({"k-state-disabled":d}),$=Object(r.classNames)(((t={"k-checkbox":!0})["k-checkbox-"+r.kendoThemeMaps.sizeMap[k]]=k,t["k-rounded-"+r.kendoThemeMaps.roundedMap[w]]=w,t["k-state-indeterminate"]=this.indeterminateProp,t["k-state-invalid k-invalid"]=!(this.isValid||void 0!==y||!0===y),t)),O=function(){var e=this;return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:v,id:c||this.calculatedId,"aria-labelledby":l,"aria-describedby":o,disabled:d,tabIndex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0},class:$,name:v,id:c||this.calculatedId,ref:this.v3?function(t){e.inputRef=t}:"input","aria-labelledby":l,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:d,tabIndex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,keydown:this.onKeyDownHandler,focus:this.onFocusHandler,blur:this.onBlurHandler},onKeydown:this.onKeyDownHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler})};if(h){var I=h?r.templateRendering.call(this,h,r.getListeners.call(this)):null;C=r.getTemplate.call(this,{h:n,template:I})}var T=function(){return void 0!==C?n("label",{class:"k-checkbox-label",for:c||this.calculatedId,attrs:this.v3?void 0:{for:c||this.calculatedId},style:{userSelect:"none"}},[C,m&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null};return n("span","before"===f?{class:x,dir:"rtl",attrs:this.v3?void 0:{dir:"rtl"}}:{class:x,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir}},[O.call(this),T.call(this),S])},methods:{setValidity:function(){var e=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedChecked;this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(e?"":this.$props.validationMessage||this.defaultValidationMessage)},localizeMessage:function(e){return this.localizationService.toLanguageString(e,a.c[e])},focusElement:function(){this.input&&this.input.focus()},setValue:function(e,t){this.$data.valueDuringOnChange=t;var n=this;this.$nextTick((function(){if(n.isCheckedControlled||n.isValueControlled||n.$props.disabled||(n.currentValue=t,n.currentChecked=t),!n.$props.disabled){var i={element:n.$el,focus:null};n.$emit("changemodel",t),n.$emit("update:modelValue",t),n.$emit("change",{e:e,handle:i,value:t})}this.$data.valueDuringOnChange=void 0}))},onChangeHandler:function(e){var t=e.target.checked;this.setValue(e,t)},onKeyDownHandler:function(e){if(!this.$props.disabled){var t=e.keyCode,n=e.currentTarget.checked;t===r.Keys.space&&(e.preventDefault(),e.stopPropagation(),this.setValue(e,!n))}},onBlurHandler:function(e){this.$props.disabled||this.$emit("blur",e)},onFocusHandler:function(e){this.$props.disabled||this.$emit("focus",e)}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(39),o=n(0),s=n(7),a=i,l=a.h,u=a.ref,d=(a.inject,{name:"KendoRadioGroup",props:{ariaLabelledBy:String,ariaDescribedBy:String,dataItems:Array,defaultValue:[String,Number,Object],dir:String,disabled:Boolean,labelPlacement:String,item:{type:String,default:void 0},layout:{type:String,default:"vertical",validator:function(e){return["horizontal","vertical"].includes(e)}},name:String,modelValue:[String,Number,Object],value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},created:function(){this.radioGroupName=Object(o.guid)(),Object(o.validatePackage)(s.a),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=Object(o.isRtl)(this.$el)},computed:{radioGroupClasses:function(){var e=this.$props.layout;return{"k-radio-list":!0,"k-list-horizontal":"horizontal"===e,"k-list-vertical":"vertical"===e||void 0===e}},checkedRadioValue:function(){var e=this.$props.value;return void 0!==e?e:void 0!==this.$props.modelValue?this.$props.modelValue:this.stateChecked},currentDir:function(){var e=this.$props.dir;return e||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleChange:function(e){var t=e.value;void 0!==this.$props.value||this.$props.disabled||(this.stateChecked=t),this.$props.disabled||(this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t}))},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e)}},setup:l?function(){return{v3:!!l,inputRef:u(null)}}:void 0,render:function(e){var t=l||e,n=this.$props,i=n.ariaLabelledBy,s=n.ariaDescribedBy,a=n.dataItems,u=n.disabled,d=n.name,c=n.labelPlacement,p=n.valid,h=a&&a.map((function(e,n){var i=this.checkedRadioValue===e.value,s=null===this.checkedRadioValue||void 0===this.checkedRadioValue,a=o.templateRendering.call(this,this.$props.item||e.item,o.getListeners.call(this));return t(r.a,{class:Object(o.classNames)("k-radio-item",{"k-state-disabled":e.disabled||u}),style:e.style,key:n,item:a,attrs:this.v3?void 0:{item:a,role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName},role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur},this.v3?function(){return[e.content]}:[e.content])}),this);return t("ul",{role:"radiogroup",attrs:this.v3?void 0:{role:"radiogroup",dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},[h])}}),c=d},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=n(7),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={name:"KendoTextArea",model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{ariaDescribedBy:String,ariaLabelledBy:String,autoSize:Boolean,modelValue:{type:[String,Array,Number],default:void 0},defaultValue:[String,Number],dir:String,disabled:Boolean,readOnly:Boolean,rows:Number,id:String,name:String,validationMessage:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:Boolean,placeholder:String,tabIndex:Number,valid:{type:Boolean,default:void 0},value:[String,Array,Number],validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.showLoadingIcon,l=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=l,e["k-required"]=s,e["k-loading"]=a,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e},computedValue:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentValue},isValid:function(){return void 0!==this.valid?this.valid:!this.required||!!this.computedValue}},data:function(){return{currentValue:this.$props.defaultValue,textAreaHeight:"auto",currentDir:"ltr"}},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=a||e,i=this.$props,o=i.ariaDescribedBy,l=i.ariaLabelledBy,u=i.autoSize,d=i.disabled,c=i.readOnly,p=i.required,h=i.rows,f=i.id,v=i.name,m=i.placeholder,g=i.tabIndex,b=i.iconName,y=i.showValidationIcon,k=i.showLoadingIcon,w=i.showClearButton,S=s({id:f||this.calculatedId,name:v,disabled:d,rows:h,placeholder:m,readOnly:c,required:p,tabIndex:Object(r.getTabIndex)(g,d),"aria-labelledby":l,"aria-describedby":o,"aria-multiline":!0,"aria-disabled":d||void 0},this.$attrs),C=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),x=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),$=r.getTemplate.call(this,{h:n,template:C,additionalProps:{value:this.computedValue,valid:this.isValid}}),O=r.getTemplate.call(this,{h:n,template:x,additionalProps:{value:this.computedValue,valid:this.isValid}}),I=n("textarea",s(s({},S),{attrs:this.v3?void 0:S,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:u?{resize:"none",overflow:"hidden",height:this.textAreaHeight}:{},value:this.v3?this.computedValue:null,domProps:this.v3?void 0:{value:this.computedValue},onChange:this.handleChange,onInput:this.handleInput,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur,input:this.handleInput},onFocus:this.handleFocus,onBlur:this.handleBlur}));return n("span",{class:this.rootClassName,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir},style:this.$attrs.style},[b&&n("span",{class:"k-input-icon k-icon k-i-"+b}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[$]),I,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[O]),y&&this.isValid&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),y&&!this.isValid&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),k&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),w&&this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight=this.element.scrollHeight+"px")},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this.element&&this.element.focus()},emitUpdate:function(e,t,n){var i=n;this.$props.disabled||(this.textAreaHeight="auto",this.currentValue=i),this.$props.disabled||(this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit(t,{event:e,component:this,name:this.element.name,value:i}))},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleFocus:function(e){this.$props.disabled||this.$emit("focus",{event:e,component:this,name:this.element.name})},handleBlur:function(e){this.$props.disabled||this.$emit("blur",{event:e,component:this,name:this.element.name})}}},u=l},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"AutoComplete",(function(){return Se})),n.d(t,"AutoCompleteVue2",(function(){return we})),n.d(t,"DropDownList",(function(){return Z})),n.d(t,"DropDownListVue2",(function(){return Y})),n.d(t,"ComboBox",(function(){return fe})),n.d(t,"ComboBoxVue2",(function(){return he})),n.d(t,"MultiSelect",(function(){return ze})),n.d(t,"MultiSelectVue2",(function(){return Fe}));var i,r,o=n(1),s=n(0),a=n(5),l=n(12),u=o.h,d={name:"list-container",emits:{mousedown:null,blur:null,open:null,close:null},props:{width:[String,Number],dir:String,itemsCount:Number,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}}},created:function(){this.kendoAnchorRef=void 0},setup:u?function(){return{v3:!!u}}:void 0,methods:{onMouseDown:function(e){this.$emit("mousedown",e)},onBlur:function(e){this.$emit("blur",e)},onOpen:function(e){this.$emit("open",e)},onClose:function(e){this.$emit("close",e)}},render:function(e){var t=this,n=u||e,i=Object(s.getDefaultSlots)(this),r=this.$props,o=(r.onMouseDown,r.onBlur,r.width),a=r.dir,d=r.popupSettings,c=d.popupClass,p=d.className,h=d.animate,f=d.anchor,v=d.show,m=(d.open,d.close,d.itemsCount);return n(l.Popup,{style:{width:o,direction:a},className:p,attrs:this.v3?void 0:{className:p,animate:h,anchor:f,show:v,contentKey:m},animate:h,anchor:f,show:v,contentKey:m,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose},this.v3?function(){return[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}},c=o,p=c.h,h=c.ref,f=s.kendoThemeMaps.sizeMap,v=s.kendoThemeMaps.roundedMap,m={name:"list-filter",emits:{keydown:null,change:null},props:{value:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{spanClass:function(){var e,t=this.$props,n=t.size,i=t.rounded,r=t.fillMode;return(e={"k-searchbox k-input":!0})["k-input-"+(f[n]||n)]=n,e["k-rounded-"+(v[i]||i)]=i,e["k-input-"+r]=r,e}},setup:p?function(){return{v3:!!p,inputRef:h(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},render:function(e){var t=this,n=p||e;return n("span",{class:"k-list-filter"},[n("span",{class:this.spanClass},[n("span",{class:"k-input-icon k-icon k-i-search"}),n("input",{ref:this.v3?function(e){t.inputRef=e}:"input",type:"text",attrs:this.v3?void 0:{type:"text"},value:this.v3?this.$props.value||"":null,domProps:this.v3?void 0:{value:this.$props.value||""},class:"k-input-inner",onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})])])}},g=function(e){return null!=e},b=function(e,t,n){if(!g(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},y=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var r=0;r<e.length;r++){var o=(w(e[r],n)||"")+"";if(o&&o.toLowerCase().startsWith(t)){i=r;break}}}return i},k=function(e,t,n,i){void 0===i&&(i=!1);var r=function(e){return i?e:e.toLowerCase()};return e.findIndex((function(e){return n?r(w(e,n))===r(t):r(t)===r(e.toString())}))},w=function(e,t){if(t&&g(e)){var n=t.split("."),i=e;return n.forEach((function(e){i=i?i[e]:void 0})),i}return e},S=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return C(e,t,n)}));-1!==i&&e.splice(i,1)}))},C=function(e,t,n){return e===t||g(e)===g(t)&&w(e,n)===w(t,n)},x=function(e,t,n){if(t){var i=k(e,t,n,!0);return-1!==i?e[i]:e[y(e,t,n)]}return e[0]},$=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},O=o.h,I={name:"list-default-item",props:{defaultItem:[Object,String],textField:String,selected:Boolean},setup:O?function(){return{v3:!!O}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClick:function(e){this.$emit("defaultitemclick",e)}},render:function(e){var t=O||e,n=this.$props,i=n.selected,r=n.defaultItem,o=n.textField;return t("div",{onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,style:{position:"unset"},class:Object(s.classNames)("k-list-optionlabel",{"k-selected":i})},[w(r,o)||""])}},T=function(){return(T=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},D=o.h,V={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:D?function(){return{v3:!!D}}:void 0,computed:{itemClass:function(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick:function(e){this.$emit("itemclick",this.$props.index,e)}},render:function(e){var t=D||e,n=this.$props.selected,i=t("li",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:"option","aria-selected":n},role:"option","aria-selected":n,class:Object(s.classNames)("k-list-item",{"k-selected":n,"k-focus":this.$props.focused}),onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},style:{position:"unset"}},[t("span",{class:"k-list-item-text"},[w(this.$props.dataItem,this.$props.textField).toString()])]);return s.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:i,additionalProps:T(T({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}},M=n(4),N="dropdowns.nodata",R="dropdowns.clear",B=((i={})[R]="clear",i[N]="NO DATA FOUND.",i),P=o,E=P.h,A=P.ref,j=P.inject,L={name:"list",emits:{listclick:null,scroll:null},props:{id:String,show:Boolean,dataItems:Array,value:[Object,String,Number,Boolean,Array],textField:String,valueField:String,optionsGuid:String,wrapperCssClass:String,wrapperStyle:Object,listStyle:Object,skip:Number,focusedIndex:Number,highlightSelected:{type:Boolean,default:!0},itemRender:[String,Function,Object],noDataRender:[String,Function,Object],scroller:Boolean},inject:{kendoLocalizationService:{default:null}},setup:E?function(){return{v3:!!E,listRef:A(null),kendoLocalizationService:j("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=this.v3?this.listRef:this.$refs.list},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=this,n=E||e,i=Object(s.getDefaultSlots)(this),r=Object(M.provideLocalizationService)(this),o=this.$props,a=o.id,l=o.show,u=o.wrapperCssClass,d=o.wrapperStyle,c=o.listStyle,p=(o.listRef,function(){var e=this.$props,t=e.textField,i=e.valueField,r=e.optionsGuid,o=e.skip,s=void 0===o?0:o,a=e.focusedIndex,l=e.highlightSelected,u=e.value,d=e.itemRender,c=Array.isArray(u);return this.$props.dataItems.map((function(e,o){var p=s+o,h=l&&(!c&&C(e,u,i)||c&&-1!==u.findIndex((function(t){return C(t,e,i)})));return n(V,{id:"option-"+r+"-"+p,attrs:this.v3?void 0:{id:"option-"+r+"-"+p,dataItem:e,selected:h,focused:a===o,index:p,textField:t,render:d},dataItem:e,selected:h,focused:a===o,index:p,key:p,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:t,render:d})}),this)}.call(this));return p.length?n("div",{class:u,style:d,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[n("ul",{id:a,attrs:this.v3?void 0:{id:a,role:"listbox","aria-hidden":!l||void 0},role:"listbox","aria-hidden":!l||void 0,class:"k-list-ul",ref:this.v3?function(e){t.listRef=e}:"list",style:c},[p]),i]):function(){var e=this.$props.noDataRender,t=n("div",{class:"k-nodata"},[n("div",[r.toLanguageString(N,B[N])])]);return s.getTemplate.call(this,{h:n,template:e,defaultRendering:t})}.call(this)}},F=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=i-r;if(!(o>n)){for(t=0;t<this.skip&&!(r+n+o<=i);t++)r-=n;if(r=this.validateTranslate(r),this.skip-t<=0&&r>=i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=this.list.children.length;for(t=0;t<o&&!(r+n>=i);t++)r+=n;r=this.validateTranslate(r),t>=o&&this.skip+t>=this.total?(this.translateTo(r),this.changePage(this.total-1,e)):r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.ScrollChange(e),this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight,e)},e}(),z=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return g(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),K={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213255,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},_=function(){return(_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},H=function(){function e(e){var t=this;this.vs=new F,this.navigation=new z,this.handleItemClick=function(e,n){var i=t.initState();i.event=n,t.component.handleItemSelect(e,i),t.togglePopup(i),t.applyState(i)},this.handleFocus=function(e){if(!t.component.currentFocused){var n=t.initState();n.data.currentFocused=!0,n.events.push({type:"focus"}),n.event=e,t.applyState(n)}},this.filterChanged=function(e,n){var i=t.component.$props,r=i.textField;i.filterable&&n.events.push({type:"filterchange",filter:{field:r,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.$props,i=void 0!==n.opened?n.opened:t.component.currentOpened;void 0===n.opened&&(e.data.currentOpened=!i),i?e.events.push({type:"close"}):(e.events.push({type:"open"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var i=t.initState();i.event=n,t.triggerOnPageChange(i,e.skip,e.take),t.applyState(i)},this.scrollChange=function(e){t.component.$emit("scroll",e)},this.scrollToVirtualItem=function(e,n){var i=t.vs;if(i.enabled=!1,0===e.skip)i.reset();else if(e.skip+e.pageSize===e.total)i.scrollToEnd();else{var r=i.translate;0===r&&(i.calcScrollElementHeight(),r=i.itemHeight*e.skip,i.translateTo(r-i.itemHeight)),i.container&&(i.container.scrollTop=r),t.scrollToItem(n,!0)}setTimeout((function(){return i.enabled=!0}),10)},Object(s.validatePackage)(K),this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange,this.vs.ScrollChange=this.scrollChange}return e.prototype.didMount=function(){var e=this.component.$props,t=e.popupSettings||{},n=e.style||{},i=t.width,r=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),r=!0),r&&this.component.$forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list,i=n?n.children[0]:void 0;if(i&&e>=0){var r=this.vs,o=r.container||n.parentNode;if(o){var s=void 0!==t?t:r.enabled;!function(e,t,n,i,r){var o=e.offsetHeight,s=t*n+(r?i-e.scrollTop:0);if(r){var a=0;s+t>o?a=s+t-o:s<0&&(a=s),0!==a?e.scrollTop+=a:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>o+e.scrollTop?e.scrollTop=s+t-o:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,i.offsetHeight,e,r.translate,s)}}},e.prototype.initState=function(){return{data:{},events:[],event:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&Object.keys(e.data).forEach((function(n){t.component[n]=e.data[n]}));var n=this.component.primitiveValue(),i={event:e.event,component:this.component,target:{name:this.component.$props.name,value:n},value:n};e.events.forEach((function(e){var r=e.type;delete e.type,r&&("change"===r&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(r,_(_({},i),e)))}))},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.$props.virtual;if(i){var r=Math.min(Math.max(0,t),Math.max(0,i.total-n));r!==i.skip&&e.events.push({type:"pagechange",page:{skip:r,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=void 0!==n.opened?n.opened:this.component.currentOpened;e&&s&&this.vs.enabled&&(s.skip>0&&C(e,r[0],o)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!a&&s.skip+s.pageSize<s.total&&C(e,r[r.length-1],o)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}(),W=function(){return(W=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},U=o,q=U.h,G=U.ref,J=s.kendoThemeMaps.sizeMap,X=s.kendoThemeMaps.roundedMap,Y={name:"KendoDropDownList",model:{event:"changemodel"},props:{id:String,title:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},leftRightKeysNavigation:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},delay:{type:Number,default:500},ignoreCase:{type:Boolean,default:!0},iconClassName:String,defaultItem:[Object,String],valueRender:[String,Function,Object],valueMap:Function,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,valueField:String,valuePrimitive:Boolean,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.prevCurrentValue=this.computedValue(),this.currentFocused=void 0,this.currentOpened=void 0,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:q?function(){return{v3:!!q,selectRef:G(null),baseWrapperRef:G(null),kendoAnchorRef:G(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=this.v3?this.selectRef:this.$refs.select,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.filterInput,d=this.$refs.scrollElement;this.$refs.scroller;if(l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),u&&(this.filterInput=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),this.$props.popupSettings.animate||a&&this.onPopupOpened(),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return C(e,c,i)})),f=!C(p,c,i);a&&r?(this.base.scrollToVirtualItem(r,h),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):o&&s&&c&&f&&!this._navigated?this.base.scrollToItem(h):o&&s&&this._navigated&&(this._navigated&&r&&0===r.skip?this.base.vs.reset():this._navigated&&r&&r.skip===r.total-r.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.prevCurrentValue=this.computedValue(),this.setValidity()},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return C(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.base.wrapper&&this.base.wrapper.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),g(e)||void 0===this.$props.defaultItem||(e=this.$props.defaultItem),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return w(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=n.defaultItem,l=o?o.skip:0,u=-1===e&&void 0!==a?a:r[e-l],d=!C(u,this.computedValue(),s);this.triggerOnChange(u,t),d&&this.base.triggerPageChangeCornerItems(u,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.defaultItem,s=n.dataItemKey,a=n.virtual,l=void 0===a?{skip:0,total:0,pageSize:0}:a,u=this.base.vs,d=this.computedValue(),c=r.findIndex((function(e){return C(e,d,s)})),p=this.base.navigation.navigate({current:l.skip+c,max:(u.enabled?l.total:r.length)-1,min:void 0!==o?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},search:function(e){var t=this;clearTimeout(this.typingTimeout),this.$props.filterable||(this.typingTimeout=setTimeout((function(){return t.searchState.word=""}),this.$props.delay),this.selectNext(e))},selectNext:function(e){var t,n=this,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.dataItemKey,a=o.map((function(e,t){return{item:e,itemIndex:t}})),l=this.searchState.word,u=this.searchState.last,d=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),c=a.length,p=Math.max(0,o.findIndex((function(e){return C(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},c+=1,p+=1),a=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(a,p+=d?1:0,t);for(var h,f,v,m=0,g=this.$props,y=g.textField,k=g.ignoreCase;m<c;m++)if(h=w(a[m].item,y),f=d&&b(h,u,k),v=b(h,l,k),f||v){m=a[m].itemIndex;break}if(m!==c){var S=this.base.initState();S.event=e,this.handleItemSelect(m,S),this.applyState(S),this.valueDuringOnChange=void 0}},handleKeyDown:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.leftRightKeysNavigation,o=t.filterable,a=t.disabled,l=t.virtual,u=void 0===l?{skip:0,total:0,pageSize:0}:l,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=e.keyCode,p=c===s.Keys.home||c===s.Keys.end,h=c===s.Keys.up||c===s.Keys.down,f=!d&&(e.altKey&&c===s.Keys.down||c===s.Keys.enter||c===s.Keys.space),v=d&&(e.altKey&&c===s.Keys.up||c===s.Keys.esc),m=r&&(c===s.Keys.left||c===s.Keys.right),g=h||!o&&(m||p),b=this.base.initState();if(b.event=e,!a){if(p&&this.base.vs.enabled)c===s.Keys.home?0!==u.skip?(this.base.triggerOnPageChange(b,0,u.pageSize),this._navigated=!0):this.triggerOnChange(i[0],b):u.skip<u.total-u.pageSize?(this.base.triggerOnPageChange(b,u.total-u.pageSize,u.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],b);else if(d&&c===s.Keys.enter){var y=this.focusedIndex();void 0!==y&&this.handleItemSelect(y,b),this.base.togglePopup(b),e.preventDefault()}else f||v?(this.base.togglePopup(b),e.preventDefault()):g&&(this.onNavigate(b,c),e.preventDefault());this.applyState(b)}},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},handleBlur:function(e){if(!this._skipFocusEvent&&this.currentFocused){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&this.base.togglePopup(n),this.applyState(n)}},handleDefaultItemClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.triggerOnChange(this.$props.defaultItem,t),this.applyState(t)},handleWrapperClick:function(e){var t=this.base.initState();t.event=e,this.currentFocused||(t.data.currentFocused=!0),this.base.togglePopup(t),this.applyState(t)},handleKeyPress:function(e){if(!this.$props.filterable&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.$props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.searchState={word:this.searchState.word+t,last:this.searchState.last+t},this.search(e)}},handleListFilterChange:function(e){var t=this.base.initState();t.event=e,void 0===this.$props.filter&&(t.data.currentText=e.target.value),this.base.filterChanged(e.target.value,t),this.applyState(t)},onPopupOpened:function(){this.filterInput&&this.focusElement(this.filterInput.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.base.wrapper&&e.focusElement(e.base.wrapper)}))},focusedIndex:function(){var e=g(this.$props.filter)?this.$props.filter:this.currentText,t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=void 0===r?{skip:0}:r,s=t.dataItemKey,a=t.textField,l=t.focusedItemIndex,u=this.computedValue(),d=!(i.findIndex((function(e){return C(e,u,s)}))<0&&!this.$props.defaultItem);return!d&&e&&0===o.skip?l?l(i,e,a):i.indexOf(x(i,e,a)):d||0!==o.skip?void 0:0},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},setValidity:function(){this.select&&this.select.setCustomValidity&&this.select.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please select a value from the list!")},triggerOnChange:function(e,t){C(this.computedValue(),e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=this,i=q||e,r=this.$props,o=r.style,l=r.className,u=r.label,c=r.dir,p=r.virtual,h=void 0===p?{skip:0}:p,f=r.size,v=r.rounded,g=r.fillMode,b=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,y=w(this.computedValue(),this.$props.textField),k=!this.$props.validityStyles||this.validity().valid,S=this.base,x=S.vs,O=this.$props.id||this.inputId;x.enabled=void 0!==this.$props.virtual;var T=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),D=this.$props,V=D.dataItemKey,M=D.dataItems,N=void 0===M?[]:M,R=D.disabled,B=D.tabIndex,P=D.loading,E=D.iconClassName,A=s.templateRendering.call(this,this.$props.valueRender,s.getListeners.call(this)),j=this.currentFocused,F=this.primitiveValue(),z=N.findIndex((function(e){return C(e,F,V)})),K=i("span",{class:"k-input-inner"},[i("span",{class:"k-input-value-text"},[y])]),_=s.getTemplate.call(this,{h:i,template:A,defaultRendering:K,additionalProps:W({value:this.computedValue()},this.$data)}),H=function(){var e=this.$props,t=e.textField,n=e.defaultItem;return void 0!==n&&i(I,{defaultItem:n,attrs:this.v3?void 0:{defaultItem:n,textField:t,selected:C(this.computedValue(),n,V)},textField:t,selected:C(this.computedValue(),n,V),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},U=function(){var e=this,t=this.$props.textField,n=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),o=h.skip,a="translateY("+x.translate+"px)";return i(L,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:b,dataItems:N.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:V,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:x.enabled?{transform:a}:void 0,skip:o,itemRender:n,noDataRender:r},show:b,dataItems:N.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:V,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:x.enabled?{transform:a}:void 0,key:"listkey",skip:o,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:x.scrollHandler},itemRender:n,noDataRender:r,onScroll:x.scrollHandler},this.v3?function(){return[Y.call(e)]}:[Y.call(e)])},G=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&i(m,{value:e,attrs:this.v3?void 0:{value:e,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},ref:"filterInput",onChange:this.handleListFilterChange,on:this.v3?void 0:{change:this.handleListFilterChange,keydown:this.handleKeyDown},onKeydown:this.handleKeyDown,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode})},Y=function(){return x.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&(S.vs.skip=h.skip,S.vs.total=h.total,S.vs.pageSize=h.pageSize);var Z=i("span",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,class:Object(s.classNames)("k-dropdownlist k-picker",l,(t={},t["k-picker-"+(J[f]||f)]=f,t["k-rounded-"+(X[v]||v)]=v,t["k-picker-"+g]=g,t["k-focus"]=j,t["k-disabled"]=R,t["k-invalid"]=!k,t["k-loading"]=P,t["k-required"]=this.required,t)),style:u?W(W({},o),{width:void 0}):o,dir:c,attrs:this.v3?void 0:{dir:c,tabIndex:Object(s.getTabIndex)(B,R),accessKey:this.$props.accessKey,role:"listbox","aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":b||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":b?"option-"+this.base.guid+"-"+(z+(h?h.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},onMousedown:b?$:s.noop,on:this.v3?void 0:{mousedown:b?$:s.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:R?s.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabIndex:Object(s.getTabIndex)(B,R),accessKey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:R?s.noop:this.handleWrapperClick,"aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":b||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":b?"option-"+this.base.guid+"-"+(z+(h?h.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},[_,P&&i("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),i(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:f,fillMode:g,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",E)},tabIndex:-1,size:f,fillMode:g,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",E),onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}}}),function(e){var t=this;return i("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:O,tabIndex:-1,"aria-hidden":!0,title:this.$props.label},id:O,ref:this.v3?function(e){t.selectRef=e}:"select",tabIndex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[i("option",{value:this.v3?this.$props.valueMap?this.$props.valueMap.call(void 0,e):e:null,domProps:this.v3?void 0:{value:this.$props.valueMap?this.$props.valueMap.call(void 0,e):e}})])}.call(this,F),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),o=s.getTemplate.call(this,{h:i,template:n}),a=s.getTemplate.call(this,{h:i,template:r}),l=void 0!==T.width?T.width:S.popupWidth;return i(d,{onMousedown:$,on:this.v3?void 0:{mousedown:$,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==c?c:S.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==c?c:S.dirCalculated,width:l,popupSettings:{popupClass:Object(s.classNames)(T.popupClass,"k-list",(e={},e["k-list-"+(J[f]||f)]=f,e["k-virtual-list"]=this.base.vs.enabled,e)),className:T.className,animate:T.animate,anchor:this.anchor,show:b}},width:l,popupSettings:{popupClass:Object(s.classNames)(T.popupClass,"k-list",(e={},e["k-list-"+(J[f]||f)]=f,e["k-virtual-list"]=this.base.vs.enabled,e)),className:T.className,animate:T.animate,anchor:this.anchor,show:b},onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[G.call(t),H.call(t),o&&i("div",{class:"k-list-header"},[o]),U.call(t),a&&i("div",{class:"k-list-footer"},[a])]}:[G.call(t),H.call(t),o&&i("div",{class:"k-list-header"},[o]),U.call(t),a&&i("div",{class:"k-list-footer"},[a])])}.call(this)]);return u?i("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[Z,this.$props.label?O?i("label",{for:O,attrs:this.v3?void 0:{for:O},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):Z}},Z=Y,Q=o,ee=Q.h,te=Q.ref,ne={name:"search-bar",emits:{change:null,keydown:null,focus:null,blur:null},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,describedby:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String},data:function(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated:function(){var e=this.$props,t=e.value,n=e.suggestedText,i=e.focused;this.input||(this.input=this.$refs.input);var r=this.input,o=this.$data.prevValue!==t||n!==this.prevSuggestedText,a=o&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&r&&s.canUseDOM&&document.activeElement!==r&&r.focus(),n&&o&&!a&&r&&r.setSelectionRange(t.length-n.length,t.length)},setup:ee?function(){return{v3:!!ee,inputRef:te(null)}}:void 0,mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},methods:{onChange:function(e){this.$emit("change",e)},onBlur:function(e){this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)},onKeyDown:function(e){this.$emit("keydown",e)},clearButtonClick:function(e){this.$emit("clearbuttonclick",e)}},render:function(e){var t=this;return(ee||e)("input",{autoComplete:"off",attrs:this.v3?void 0:{autoComplete:"off",id:this.$props.id,type:"text",placeholder:this.$props.placeholder,tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,role:"listbox",name:this.$props.name,size:this.$props.size?this.$props.size:20,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readOnly:this.$props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-owns":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy},id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,role:"listbox",name:this.$props.name,value:this.v3?this.$props.value:null,domProps:this.v3?void 0:{value:this.$props.value},size:this.$props.size?this.$props.size:20,onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown,focusin:this.onFocus,blur:this.onBlur},ref:this.v3?function(e){t.inputRef=e}:"input",onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readOnly:this.$props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-owns":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}},ie=o,re=ie.h,oe=ie.inject,se={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:re?function(){return{v3:!!re,kendoLocalizationService:oe("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=re||e,n=Object(M.provideLocalizationService)(this).toLanguageString(R,B[R]);return t("span",{class:"k-clear-value",role:"button",attrs:this.v3?void 0:{role:"button",tabIndex:-1,title:n},onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,tabIndex:-1,title:n,key:"clearbutton"},[t("span",{class:"k-icon k-i-x"})])}},ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},le=o,ue=le.h,de=le.ref,ce=s.kendoThemeMaps.sizeMap,pe=s.kendoThemeMaps.roundedMap,he={name:"KendoComboBox",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},props:{id:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},iconClassName:String,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},suggest:{type:Boolean,default:!1},allowCustom:{type:Boolean,default:!1},clearButton:{type:Boolean,default:!0},ariaLabelledBy:String,ariaDescribedBy:String,valueField:String,valuePrimitive:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1,suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.prevCurrentValue=this.computedValue(),this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:ue?function(){return{v3:!!ue,inputRef:de(null),elementRef:de(null),kendoAnchorRef:de(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.scrollElement,d=this.computedValue();if(this.valueOnDidUpdate=d,l&&(this.base.vs.list=l.list,this.base.list=l.list),u&&(this.base.vs.scrollElement=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.prevCurrentValue,p=n.findIndex((function(e){return C(e,d,i)})),h=!C(c,d,i);a&&r?(this.base.scrollToVirtualItem(r,p),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):o&&s&&d&&h&&this.base.scrollToItem(p)}a&&this.input&&this.input.focus(),this.prevCurrentValue=this.computedValue(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return C(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return w(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=r[e-(o?o.skip:0)],l=!C(a,this.computedValue(),s);this.triggerOnChange(a,t),void 0!==this.currentText&&(t.data.currentText=void 0),l&&this.base.triggerPageChangeCornerItems(a,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=void 0===o?{skip:0}:o,a=this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedIndex(),u=this.base.vs,d=this.computedValue();if(this.suggested="",-1===l||g(d))if(""===a)this.handleItemSelect(0,e);else{var c=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:c,max:(u.enabled?u.total:r.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},toggleBtnClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.applyState(t)},applyValueOnEnter:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=w(this.computedValue(),s)===e?this.index:k(o,e,s),d=-1!==u,c=void 0;if(this.suggested="",d)c=o[u];else{if(!a)return this.selectFocusedItem(e,t);c=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(c,t),l&&this.base.togglePopup(t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.applyState(t)},applyValueOnRejectSuggestions:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=w(this.computedValue(),s);if(this.suggested="",e===u||""===e&&!g(u))return l&&this.base.togglePopup(t),this.applyState(t);var d=k(o,e,s,!0),c=null;-1!==d?c=o[d]:a&&(c=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(c,t),void 0!==this.currentText&&(t.data.currentText=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},selectFocusedItem:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.virtual,l=void 0===a?{skip:0}:a,u=i.focusedItemIndex,d=void 0===u?y:u,c=l.skip,p=""===e&&0===c?0:d(o,e,s);return-1!==p?this.handleItemSelect(p+c,t):(this.triggerOnChange(null,t),void 0!==this.currentText&&(t.data.currentText=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.currentFocused=!1,t.events.push({type:"blur"}),t.event=e,this.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.base.initState();if(r.event=e,!e.altKey&&(n===s.Keys.up||n===s.Keys.down))return e.preventDefault(),this.onNavigate(r,n),void this.applyState(r);var o=function(){e.preventDefault(),t.base.togglePopup(r),t.applyState(r)};i?e.altKey&&n===s.Keys.up?o():n===s.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,r)):n===s.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,r):e.altKey&&n===s.Keys.down&&o()},inputOnChange:function(e){var t=this.base.initState();t.event=e;var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=e.currentTarget,r=i.value;if(this.$props.suggest){var o=i.selectionEnd===r.length,s=void 0!==this.$props.filter?this.$props.filter:this.currentText;g(s)||(s=w(this.computedValue(),this.$props.textField)||"");var a=s&&s===r,l=s&&s.length>r.length;a||l||!o?this.suggested="":this.suggestValue(r)}void 0===this.$props.filter&&(t.data.currentText=r),void 0!==this.currentFocusedItem&&(t.data.focusedItem=void 0),n||this.base.togglePopup(t),this.base.filterChanged(r,t),this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState();t.event=e,e.stopPropagation(),this.suggested="",this.base.filterChanged("",t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.triggerOnChange(null,t),(void 0!==this.$props.opened?this.$props.opened:this.currentOpened)&&this.base.togglePopup(t),this.applyState(t)},getFocusedIndex:function(){var e=this.computedValue(),t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=t.dataItemKey,s=t.virtual,a=void 0===s?{skip:0}:s,l=t.focusedItemIndex,u=void 0===l?y:l,d=this.$props.filter?this.$props.filter:this.currentText;return g(e)&&void 0===d?i.findIndex((function(t){return C(t,e,o)})):d?u(i,d,r):0===a.skip?0:-1},suggestValue:function(e){var t=this.$props,n=t.dataItems,i=t.textField;this.suggested=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var r=t[y(t,e,n)];if(r){var o=w(r,n);e.toLowerCase()!==o.toLowerCase()&&(i=o.substring(e.length))}}return i}(e,n,i)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},triggerOnChange:function(e,t){var n=this.computedValue();!g(n)&&!g(e)||C(n,e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=this,i=ue||e,r=this.$props,o=r.dir,l=r.disabled,u=r.clearButton,c=r.label,p=r.textField,h=r.className,f=r.style,v=r.loading,m=r.iconClassName,b=r.virtual,y=r.size,k=r.fillMode,S=r.rounded,x=this.currentFocused,$=!this.$props.validityStyles||this.validity().valid,O=void 0!==this.$props.filter?this.$props.filter:this.currentText,I=w(this.computedValue(),p),T=g(O)?O:I,D=u&&(!!T||g(this.computedValue())),V=this.base,M=V.vs,N=this.$props.id||this.inputId,R=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);M.enabled=void 0!==b,void 0!==b&&(M.skip=b.skip,M.total=b.total,M.pageSize=b.pageSize);var B=function(){var e=this,t=this.$props,n=t.dataItemKey,r=t.dataItems,o=void 0===r?[]:r,a=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),l=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this));b||(b={skip:0});var u=b.skip,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c="translateY("+M.translate+"px)",h=d?this.getFocusedIndex():void 0,f=g(O)&&O!==I?null:this.computedValue();return i(L,{id:V.listBoxId,attrs:this.v3?void 0:{id:V.listBoxId,show:d,dataItems:o,focusedIndex:h,value:f,textField:p,valueField:n,optionsGuid:V.guid,wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:M.enabled?{transform:c}:void 0,skip:u,itemRender:a,noDataRender:l},show:d,dataItems:o,focusedIndex:h,value:f,textField:p,valueField:n,optionsGuid:V.guid,ref:"list",wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:M.enabled?{transform:c}:void 0,key:"listkey",skip:u,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:M.scrollHandler},itemRender:a,noDataRender:l,onScroll:M.scrollHandler},this.v3?function(){return[P.call(e)]}:[P.call(e)])},P=function(){return M.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})},E=i("span",{class:Object(s.classNames)("k-combobox k-input",(t={},t["k-input-"+(ce[y]||y)]=y,t["k-rounded-"+(pe[S]||S)]=S,t["k-input-"+k]=k,t["k-invalid"]=!$,t["k-loading"]=v,t["k-required"]=this.required,t["k-disabled"]=l,t["k-focus"]=x&&!l,t),h),ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,style:c?ae(ae({},f),{width:void 0}):f,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var n=this,r=this.$props,o=r.placeholder,s=r.tabIndex,a=r.dataItems,u=void 0===a?[]:a,d=r.dataItemKey;b||(b={skip:0});var c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,u.findIndex((function(e){return C(e,p,d)})));return this.suggested&&!C(this.valueOnDidUpdate,p,d)&&(this.suggested=""),i(ne,{id:t,attrs:this.v3?void 0:{id:t,placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,disabled:l,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+b.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,ref:this.v3?function(e){n.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.inputOnChange,focus:this.base.handleFocus,blur:this.handleBlur},onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+b.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,T||"",N),D&&!v&&i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),v&&i("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),i(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:y,fillMode:k,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",m)},tabIndex:-1,size:y,fillMode:k,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",m),onClick:this.toggleBtnClick,on:this.v3?void 0:{click:this.toggleBtnClick,mousedown:function(e){return e.preventDefault()}},onMousedown:function(e){return e.preventDefault()}}),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:i,template:n}),l=s.getTemplate.call(this,{h:i,template:r}),u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=void 0!==R.width?R.width:V.popupWidth;return i(d,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:c,attrs:this.v3?void 0:{width:c,popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(ce[y]||y)]=y,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==o?o:this.base.dirCalculated},popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(ce[y]||y)]=y,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&i("div",{class:"k-list-header"},[a]),B.call(t),l&&i("div",{class:"k-list-footer"},[l])]}:[a&&i("div",{class:"k-list-header"},[a]),B.call(t),l&&i("div",{class:"k-list-footer"},[l])])}.call(this)]);return c?i("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[E,this.$props.label?N?i("label",{for:N,attrs:this.v3?void 0:{for:N},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):E}},fe=he,ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},me=o,ge=me.h,be=me.ref,ye=s.kendoThemeMaps.sizeMap,ke=s.kendoThemeMaps.roundedMap,we={name:"KendoAutoComplete",model:{event:"changemodel"},props:{id:String,defaultValue:{type:[String],default:void 0},name:String,modelValue:{type:[String],default:void 0},value:{type:[String],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},readonly:Boolean,accessKey:String,dataItems:Array,textField:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],suggest:{type:[Boolean,String],default:!1},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,focusedItem:void 0,searchState:{word:"",last:""},valueDuringOnChange:{},suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:ge?function(){return{v3:!!ge,inputRef:be(null),kendoAnchorRef:be(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},dataItems:function(e,t){this.prevData=t},focusedItem:function(e,t){this.prevFocusedItem=t}},updated:function(){var e=this.$props.dataItems,t=void 0===e?[]:e,n=this.focusedIndex(),i=t[n],r=this.prevData!==t,o=void 0!==i&&this.prevFocusedItem!==i,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=!(void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened)&&s,l=this.$refs.list;l&&(this.base.vs.list=l.list,this.base.list=l.list),t.length&&(s&&(o||r)||a)&&this.base.scrollToItem(n),this.setValidity()},computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props.dataItems,i=w((void 0===n?[]:n)[e],this.$props.textField);this.triggerOnChange(i,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=r[e];C(this.$data.focusedItem,s,o)||(t.data.focusedItem=s)},togglePopup:function(e){this.base.togglePopup(e)},onNavigate:function(e,t){var n=this,i=this.computedValue(),r=this.$props,o=r.dataItems,s=void 0===o?[]:o,a=r.textField,l=r.focusedItemIndex,u=void 0!==this.$data.focusedItem?s.findIndex((function(e){return C(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf(x(s,i,a)),d=this.base.navigation.navigate({keyCode:t,current:u,max:s.length-1,min:0});void 0!==d&&this.itemFocus(d,e),this.applyState(e)},applyInputValue:function(e,t,n){var i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.$props,o=r.dataItems,a=void 0===o?[]:o,l=r.textField;if(this.suggested="",i&&n===s.Keys.enter){var u=w(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}i&&this.togglePopup(t),this.applyState(t)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},onChangeHandler:function(e){var t=this.base.initState(),n=e.target,i=n.value,r=n.selectionEnd===i.length;t.event=e;var o=this.suggested,s=this.computedValue(),a=s&&o&&s.substring(0,s.length-o.length),l=a&&a===i,u=a&&a.length>i.length,d=this.$props.suggest,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==d&&!1!==d){l||u||!r?this.suggested="":this.suggestValue(i);var p=i+this.suggested,h={userInput:i,value:this.suggested};this.triggerOnChange(p,t,{suggestion:h})}else this.suggested="",this.triggerOnChange(i,t);(!c&&i||c&&!i)&&this.togglePopup(t),t.data.focusedItem=void 0,this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState(),n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e;this.suggested="",this.triggerOnChange("",t),void 0!==this.$data.focusedItem&&(t.data.focusedItem=void 0),n&&this.togglePopup(t),this.applyState(t)},onInputKeyDown:function(e){var t=e.keyCode,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=e;var r=function(){n&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(r(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(r(),this.onNavigate(i,t))},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.focused=!1,t.events.push({type:"blur"}),t.event=e,this.applyInputValue(e.currentTarget.value,t),this.currentFocused=!1}},triggerOnChange:function(e,t,n){(this.computedValue()!==e||n)&&(t.data.currentValue=e,this.valueDuringOnChange=e,t.events.push(ve({type:"change"},n||{})))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0},suggestValue:function(e){if(this.suggested="",e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=i[y(i,e,r)];if(o){var s=w(o,r);e.toLowerCase()!==s.toLowerCase()&&(this.suggested=s.substring(e.length))}}},focusedIndex:function(e){var t=this,n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=n.focusedItemIndex,a=void 0!==e?e:this.computedValue();return void 0!==this.$data.focusedItem?r.findIndex((function(e){return C(e,t.$data.focusedItem,o)})):s?s(r,a,o):Math.max(0,r.indexOf(x(r,a,o)))}},render:function(e){var t,n=this,i=ge||e,r=this.$props,o=r.dir,a=r.disabled,l=r.label,u=r.size,c=r.rounded,p=r.fillMode,h=r.style,f=r.loading,v=r.suggest,m=!this.$props.validityStyles||this.validity().valid,g=this.currentFocused,b=this.base,y=this.computedValue(),k=!f&&!!y,w=this.$props.id||this.inputId,S=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof v&&(this.suggested=v);var C=function(){var e=this.$props,t=e.textField,n=e.dataItems,r=void 0===n?[]:n,o=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),a=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return i(L,{id:b.listBoxId,attrs:this.v3?void 0:{id:b.listBoxId,show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:b.guid,wrapperStyle:{maxHeight:S.height},wrapperCssClass:"k-list-content",itemRender:o,noDataRender:a},show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:b.guid,ref:"list",wrapperStyle:{maxHeight:S.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:o,noDataRender:a})},x=i("span",{class:Object(s.classNames)("k-autocomplete k-input",(t={},t["k-input-"+(ye[u]||u)]=u,t["k-rounded-"+(ke[c]||c)]=c,t["k-input-"+p]=p,t["k-invalid"]=!m,t["k-focus"]=g&&!a,t["k-loading"]=f,t["k-required"]=this.required,t["k-disabled"]=a,t)),ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,style:l?ve(ve({},h),{width:void 0}):h,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var n=this,r=this.$props,o=r.placeholder,s=r.tabIndex,l=r.readonly,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return i(ne,{id:t,attrs:this.v3?void 0:{id:t,placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:g,name:this.$props.name,disabled:a,readOnly:l,expanded:u,owns:b.listBoxId,activedescendant:"option-"+b.guid+"-"+this.focusedIndex(),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:g,name:this.$props.name,ref:this.v3?function(e){n.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:b.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:b.handleFocus,onBlur:this.handleBlur,disabled:a,readOnly:l,expanded:u,owns:b.listBoxId,activedescendant:"option-"+b.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,y||"",w),function(e){return e?i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):i("span")}.call(this,k),function(e){return e?i("span",{class:"k-icon k-input-loading-icon k-i-loading"}):i("span")}.call(this,f),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:i,template:n}),l=s.getTemplate.call(this,{h:i,template:r}),c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=void 0!==S.width?S.width:b.popupWidth;return i(d,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:p,attrs:this.v3?void 0:{width:p,popupSettings:{animate:S.animate,anchor:this.anchor,show:c,popupClass:Object(s.classNames)(S.popupClass,"k-list",(e={},e["k-list-"+(ye[u]||u)]=u,e)),className:S.className,appendTo:S.appendTo},dir:void 0!==o?o:this.base.dirCalculated},ref:"container",popupSettings:{animate:S.animate,anchor:this.anchor,show:c,popupClass:Object(s.classNames)(S.popupClass,"k-list",(e={},e["k-list-"+(ye[u]||u)]=u,e)),className:S.className,appendTo:S.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&i("div",{class:"k-list-header"},[a]),C.call(t),l&&i("div",{class:"k-list-footer"},[l])]}:[a&&i("div",{class:"k-list-header"},[a]),C.call(t),l&&i("div",{class:"k-list-footer"},[l])])}.call(this)]);return l?i("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[x,this.$props.label?w?i("label",{for:w,attrs:this.v3?void 0:{for:w},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):x}},Se=we,Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},xe=o,$e=xe.h,Oe=(xe.ref,function(e){return e.preventDefault()}),Ie=function(e){return e.stopPropagation()},Te={name:"TagList",props:{dataItems:Array,guid:String,focused:Object,tagRender:[String,Function,Object],tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{wrapperClass:function(){var e,t=this.$props,n=t.size,i=t.disabled;return(e={"k-chip-list":!0})["k-chip-list-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-selection-single"]=!0,e["k-disabled"]=i,e},chipClass:function(){var e,t=this.$props,n=t.size,i=t.disabled,r=t.tagsRounded,o=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-chip-"+o]=o,e["k-chip-"+o+"-base"]=Boolean(o),e}},setup:$e?function(){return{v3:!!$e}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=$e||e,n=this.$props,i=n.dataItems,r=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+r},id:"tagslist-"+r},[i.map((function(e,n){var o=this,a="tag-"+r+"-"+e.text.toString().replace(/\s+/g,"-"),l=t("div",{class:Ce(Ce({},this.chipClass),{"k-focus":e===this.$props.focused}),key:a,id:a,attrs:this.v3?void 0:{id:a,"aria-selected":!0,role:"option","aria-setsize":i.length},onMousedown:Oe,on:this.v3?void 0:{mousedown:Oe,click:Ie},onClick:Ie,"aria-selected":!0,role:"option","aria-setsize":i.length},[t("span",{class:"k-chip-content"},[e.text]),t("span",{"aria-label":"delete",attrs:this.v3?void 0:{"aria-label":"delete"},class:"k-select",onClick:function(t){return o.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return o.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return s.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:l,additionalProps:Ce(Ce({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}};!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(r||(r={}));var De,Ve=function(){return(Ve=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Me=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ne=o,Re=Ne.h,Be=Ne.ref,Pe=s.kendoThemeMaps.sizeMap,Ee=s.kendoThemeMaps.roundedMap,Ae=function(e){return e.preventDefault()},je=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!C(e[i],t[i],n))return!1;return!0}(e.data,t.data,n))},Le=function(e){return e===De.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(De||(De={}));var Fe={name:"KendoMultiSelect",emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},model:{event:"changemodel"},props:{autoClose:{type:Boolean,default:!0},allowCustom:Boolean,modelValue:Array,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,label:String,loading:Boolean,name:String,value:Array,defaultValue:Array,valueField:String,valuePrimitive:Boolean,dataItemKey:String,placeholder:String,tags:Array,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},tagRender:[String,Function,Object],id:String,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,virtual:{type:Object,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},setup:Re?function(){return{v3:!!Re,inputRef:Be(null),kendoAnchorRef:Be(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||w(this.computedValue()[0],this.$props.textField);return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!(t&&0!==t),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},created:function(){this.valuesItemsDuringOnChange=null,this._tags=[],this._skipFocusEvent=!1,this.scrollToFocused=!1,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:r.PopupList}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0)}},updated:function(){var e=this.$props.virtual,t=e?e.skip:0,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,r=!i&&n,o=i&&!n,s=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),a=this.$refs.list,l=this.$refs.scrollElement;if(a&&(this.base.vs.list=a.list,this.base.list=a.list),l&&(this.base.vs.scrollElement=l),a&&this.dataItems.length&&this.base.vs.scrollerRef(a.$el),!s.animate&&o&&this.onPopupClosed(),e&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.getFocusedState(),d=u.focusedItem,c=u.focusedIndex;r&&e?(this.base.scrollToVirtualItem(e,c-t),this.prevCurrentOpened=!0):r&&!e?(this.base.scrollToItem(c),this.prevCurrentOpened=!0):n&&i&&d&&this.scrollToFocused&&this.base.scrollToItem(c-t)}this.scrollToFocused=!1,this.searchBarRef(),this.setValidity()},mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.searchBarRef(),this.setValidity()},methods:{computedValue:function(){var e=[];return this.valuesItemsDuringOnChange?e.push.apply(e,this.valuesItemsDuringOnChange):this.$props.value?e.push.apply(e,this.$props.value):void 0!==this.$props.modelValue?e.push.apply(e,this.$props.modelValue):this.currentValue?e.push.apply(e,this.currentValue):this.$props.defaultValue&&e.push.apply(e,this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this;return t.map((function(t){var i=n.dataItems.findIndex((function(n){return w(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return w(t,e.valueField)}));return this.valuePrimitive?n:t},validity:function(){var e=void 0!==this.$props.validationMessage,t=this.computedValue(),n=!this.$props.required||null!==t&&t.length>0&&void 0!==t;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:n,valueMissing:null===t}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=this.computedValue(),l=r[e-(s?s.skip:0)],u=a.findIndex((function(e){return C(e,l,o)})),d=[];-1!==u?(d=a).splice(u,1):d=Me(a,[l]),(void 0!==this.$props.filter?this.$props.filter:this.currentText)&&(this.currentText&&(t.data.currentText=""),this.base.filterChanged("",t)),void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.triggerOnChange(d,t),this.base.triggerPageChangeCornerItems(l,t)},onTagDelete:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=t,n&&this.base.togglePopup(i),this.currentFocused||(i.data.currentFocused=!0);var r=this.computedValue();S(r,e,this.$props.dataItemKey),this.triggerOnChange(r,i),this.applyState(i)},onNavigate:function(e,t){var n=this.$props,i=n.allowCustom,r=n.dataItems,o=void 0===r?[]:r,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,u=this.getFocusedState(),d=u.focusedType,c=u.focusedIndex,p=i&&l,h=Le(d),f=this.base,v=f.vs;if(a&&t===s.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:c,max:(v.enabled?v.total:o.length)-1,min:p?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,s=n.allowCustom,a=n.virtual,l=a?a.skip:0,u=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=s&&u,p=o[e-l];p&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=r.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(p,t)},searchBarRef:function(){var e=this;this.input&&this.currentFocused&&setTimeout((function(){return e.input.focus()}),0)},onChangeHandler:function(e){var t=this.base.initState(),n=e.currentTarget.value,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e,void 0===this.$props.filter&&(t.data.currentText=n),t.data.currentFocusedIndex=void 0,i||this.base.togglePopup(t),this.base.filterChanged(n,t),this.applyState(t)},clearButtonClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,e.stopPropagation(),this.computedValue().length>0&&this.triggerOnChange([],n),void 0!==this.currentFocusedIndex&&(n.data.currentFocusedIndex=void 0),t&&this.base.togglePopup(n);var i=void 0!==this.$props.filter?this.$props.filter:this.currentText;g(i)&&""!==i&&this.base.filterChanged("",n),this.currentText&&(n.data.currentText=""),this.applyState(n)},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.filter?this.$props.filter:this.currentText,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.getFocusedState().focusedItem,a=this.base.initState();if(a.event=e,!i&&this.computedValue().length>0&&(n===s.Keys.left||n===s.Keys.right||n===s.Keys.home||n===s.Keys.end||n===s.Keys.delete||n===s.Keys.backspace))return this.onTagsNavigate(e,a);var l=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};r?e.altKey&&n===s.Keys.up?l():n===s.Keys.up||n===s.Keys.down?(e.preventDefault(),this.onNavigate(a,n)):n===s.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===o?this.customItemSelect(e):this.selectFocusedItem(e)):n===s.Keys.esc&&l():e.altKey&&n===s.Keys.down&&l()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,o=this._tags,a=this.$props.dataItemKey,l=i?o.findIndex((function(e){return je(e,i,a)})):-1,u=void 0,d=-1!==l;if(n===s.Keys.left)u=o[l=d?Math.max(0,l-1):o.length-1];else if(n===s.Keys.right)l===o.length-1?u=void 0:d&&(u=o[l=Math.min(o.length-1,l+1)]);else if(n===s.Keys.home)u=o[0];else if(n===s.Keys.end)u=o[o.length-1];else if(n===s.Keys.delete){if(d){var c=this.computedValue();S(c,o[l].data,a),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.computedValue();if(d)S(c,o[l].data,a),this.triggerOnChange(c,t);else if(!d&&o.length){var p=o.pop();S(c,p.data,a),this.triggerOnChange(c,t)}}u!==i&&(t.data.currentFocusedTag=u,t.data.activedescendant=r.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=Me(e)),this.valuesItemsDuringOnChange=[],this.setItems(e,this.valuesItemsDuringOnChange),t.events.push({type:"change"})},selectFocusedItem:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=this.getFocusedState().focusedIndex;void 0!==i[o-(r?r.skip:0)]&&this.handleItemClick(o,e)},setItems:function(e,t){t.length=0,t.push.apply(t,e)},getFocusedState:function(){var e,t=this.currentFocusedIndex,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props,r=i.allowCustom,o=i.dataItems,s=void 0===o?[]:o,a=i.dataItemKey,l=i.virtual,u=i.textField,d=i.focusedItemIndex,c=void 0===d?y:d,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:De.ListItem};var h=this.computedValue();if(r&&n)return{focusedItem:null,focusedIndex:-1,focusedType:De.CustomItem};if(n)return{focusedItem:s[e=c(s,n,u)],focusedIndex:e+p,focusedType:De.ListItem};if(h.length){var f=h[h.length-1];return e=s.findIndex((function(e){return C(e,f,a)})),void 0!==s[e]?{focusedIndex:e+p,focusedItem:s[e],focusedType:De.ListItem}:{focusedType:De.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:De.ListItem}:{focusedType:De.None,focusedIndex:-1}},customItemSelect:function(e){var t,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props.textField;if(n){var r=this.base.initState();r.event=e;var o=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(r.data.currentText=""),r.data.currentFocusedIndex=void 0,this.base.filterChanged("",r);var s=Me(this.computedValue(),[o]);this.triggerOnChange(s,r),this.base.togglePopup(r),this.applyState(r)}},handleWrapperClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.input;!t&&n&&this.focusElement(n);var i=this.base.initState();i.event=e,this.currentFocused||(i.events.push({type:"focus"}),i.data.currentFocused=!0),this.base.togglePopup(i),this.applyState(i)},handleItemClick:function(e,t){var n=this.base.initState();n.event=t,this.handleItemSelect(e,n),this.$props.autoClose&&this.base.togglePopup(n),this.applyState(n)},handleBlur:function(e){if(this.currentFocused&&!this._skipFocusEvent){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState(),i=this.$props,r=i.allowCustom,o=i.filterable;n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&(this.currentOpened&&(n.data.currentOpened=!1),n.events.push({type:"close"})),r||o||!this.currentText||(n.data.currentText=""),this.applyState(n)}},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},onPopupOpened:function(){this.input&&this.currentFocused&&this.focusElement(this.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.focusElement(e.input)}),0)},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},applyState:function(e){this.base.applyState(e),this.valuesItemsDuringOnChange=null},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},focus:function(){this.input&&this.input.focus()}},render:function(e){var t,n=this,i=Re||e,o=this.$props,a=o.style,l=o.label,u=o.dir,c=o.disabled,p=o.tags,h=o.textField,f=o.dataItemKey,v=o.virtual,m=o.loading,g=o.size,b=o.fillMode,y=o.rounded,k=o.tagsRounded,S=this.currentFocused,C=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),x=this.currentFocusedTag,O=this.computedValue(),I=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",T=!m&&(!!I||O.length>0),D=this.base.vs,V=this.$props.id||this.inputId,M=s.templateRendering.call(this,this.$props.tagRender,s.getListeners.call(this));D.enabled=void 0!==v,void 0!==v&&(D.skip=v.skip,D.total=v.total,D.pageSize=v.pageSize);var N=[];void 0===p?this.computedValue().forEach((function(e){N.push({text:w(e,h),data:[e]})})):N.push.apply(N,p),this.setItems(N,this._tags);var R=!this.$props.validityStyles||this.validity().valid,B=function(){var e=this,t=this.$props.dataItems,n=void 0===t?[]:t,r=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),o=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),a=v?v.skip:0,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=this.getFocusedState().focusedIndex,d="translateY("+D.translate+"px)";return i(L,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:l,dataItems:n.slice(),focusedIndex:u-a,value:this.computedValue(),textField:h,valueField:f,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:d}:void 0,skip:a,itemRender:r,noDataRender:o},show:l,dataItems:n.slice(),focusedIndex:u-a,value:this.computedValue(),textField:h,valueField:f,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:d}:void 0,key:"listKey",skip:a,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:D.scrollHandler},itemRender:r,noDataRender:o,onScroll:D.scrollHandler},this.v3?function(){return[P.call(e)]}:[P.call(e)])},P=function(){return D.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})},E=i("span",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,class:Object(s.classNames)("k-multiselect","k-input",(t={},t["k-input-"+(Pe[g]||g)]=g,t["k-rounded-"+(Ee[y]||y)]=y,t["k-input-"+b]=b,t["k-focus"]=S&&!c,t["k-disabled"]=c,t["k-invalid"]=!R,t["k-loading"]=m,t["k-required"]=this.required,t)),style:l?Ve(Ve({},a),{width:void 0}):a,dir:u,attrs:this.v3?void 0:{dir:u},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:$},onClick:this.handleWrapperClick,onMousedown:$},[N.length>0&&i(Te,{tagsRounded:k,attrs:this.v3?void 0:{tagsRounded:k,size:g,fillMode:b,tagRender:M,dataItems:N,guid:this.base.guid,focused:x?N.find((function(e){return je(e,x,f)})):void 0},size:g,fillMode:b,tagRender:M,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:N,guid:this.base.guid,focused:x?N.find((function(e){return je(e,x,f)})):void 0}),function(e){var t=this,n=this.activedescendant,o=this.$props.placeholder,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=this.getFocusedState().focusedIndex,l=0!==O.length||I?void 0:o,u=n===r.TagsList&&void 0!==x?"tag-"+this.base.guid+"-"+x.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+a;return i(ne,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((l||"").length,I.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:I,disabled:c,expanded:s,owns:this.base.listBoxId,activedescendant:u,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((l||"").length,I.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:I,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,blur:this.handleBlur,keydown:this.onInputKeyDown},onBlur:this.handleBlur,onKeydown:this.onInputKeyDown,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:c,expanded:s,owns:this.base.listBoxId,activedescendant:u,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,V),function(e){return e?i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):i("span")}.call(this,T),function(e){return e?i("span",{class:"k-icon k-input-loading-icon k-i-loading"}):i("span")}.call(this,m),function(){var e,t=this,n=this.base,r=this.$props,o=r.allowCustom,a=r.dataItems,l=void 0===a?[]:a,c=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),p=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),h=s.getTemplate.call(this,{h:i,template:c}),f=s.getTemplate.call(this,{h:i,template:p}),m=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,b=void 0!==this.$props.filter?this.$props.filter:this.currentText,y=void 0!==C.width?C.width:n.popupWidth,k=this.getFocusedState().focusedType,w=o&&b&&i("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[i("div",{class:Object(s.classNames)("k-item k-custom-item",{"k-focus":Le(k)})},[b,i("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return i(d,{ref:"container",onMousedown:Ae,on:this.v3?void 0:{mousedown:Ae,blur:this.handleBlur},dir:void 0!==u?u:n.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==u?u:n.dirCalculated,width:y,popupSettings:{animate:C.animate,anchor:this.anchor,show:m,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(Pe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,appendTo:C.appendTo},itemsCount:l.length},onBlur:this.handleBlur,width:y,popupSettings:{animate:C.animate,anchor:this.anchor,show:m,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(Pe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,appendTo:C.appendTo},itemsCount:l.length},this.v3?function(){return[h&&i("div",{class:"k-list-header"},[h]),w,B.call(t),f&&i("div",{class:"k-list-footer"},[f]),v&&h]}:[h&&i("div",{class:"k-list-header"},[h]),w,B.call(t),f&&i("div",{class:"k-list-footer"},[f]),v&&h])}.call(this)]);return l?i("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[E,this.$props.label?V?i("label",{for:V,attrs:this.v3?void 0:{for:V},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):E}},ze=Fe},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return w}));var i,r=n(1),o=n(0),s=n(7),a=((i={})["labels.optional"]="(Optional)",i),l=n(4),u={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213280,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},d=r,c=d.h,p=d.inject,h=(Boolean,Boolean,Boolean,r.h,r.h,r),f=h.h,v=h.inject,m={name:"KendoFloatingLabel",props:{label:String,editorId:String,editorValue:[String,Boolean,Number],editorPlaceholder:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,id:String,optional:Boolean},data:function(){return{focused:!1}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(u)},computed:{spanClassNames:function(){return{"k-floating-label-container":!0,"k-focus":this.focused,"k-empty":!this.$props.editorPlaceholder&&!this.$props.editorValue&&0!==this.$props.editorValue,"k-text-disabled":this.$props.editorDisabled,"k-rtl":"rtl"===this.$props.dir}},labelClassNames:function(){return{"k-label":!0,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":this.$props.editorDisabled}}},methods:{handleFocus:function(){this.focused=!0},handleBlur:function(){this.focused=!1}},setup:f?function(){return{v3:!!f,kendoLocalizationService:v("kendoLocalizationService",{})}}:void 0,render:function(e){var t=f||e,n=Object(o.getDefaultSlots)(this),i=this.$props,r=i.label,s=i.editorId,u=i.id,d=i.optional,c=Object(l.provideLocalizationService)(this),p=d?c.toLanguageString("labels.optional",a["labels.optional"]):"",h=p&&t("span",{class:"k-label-optional"},[p]);return t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[n,r?s?t("label",{id:u,attrs:this.v3?void 0:{id:u,for:s},for:s,class:this.labelClassNames},[r,h]):t("span",{id:u,attrs:this.v3?void 0:{id:u},class:this.labelClassNames},[r,h]):null])}},g=function(){return(g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},b=r,y=b.h,k=b.ref,w={model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null,keyup:null,keydown:null,keypress:null},props:{modelValue:{type:[String,Number],default:void 0},disabled:Boolean,defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:o.templateDefinition,inputSuffix:o.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){Object(o.validatePackage)(s.a),this._input=void 0,this._inputId=Object(o.guid)(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this.$data.hasMounted=!0,this.setValidity()},updated:function(){this.setValidity()},setup:y?function(){return{v3:!!y,inputRef:k(null)}}:void 0,render:function(e){var t=this,n=y||e,i=!this.$props.validityStyles||this.validity().valid,r=this.$props,s=r.label,a=r.id,l=r.required,u=r.iconName,d=r.showValidationIcon,c=r.showLoadingIcon,p=r.showClearButton,h=a||this._inputId,f=n("input",g(g({domProps:this.v3?null:g(g({},this.$attrs),{placeholder:this.$props.placeholder,id:h,required:l,value:this.computedValue}),attrs:this.v3?void 0:this.$attrs},this.$attrs),{placeholder:this.$props.placeholder,id:h,required:l,value:this.computedValue,class:this.inputInnerClass,ref:this.v3?function(e){t.inputRef=e}:"input",on:this.v3?null:{change:this.handleChange,focus:this.emitFocus,blur:this.emitBlur,keydown:this.handleKeydown,keyup:this.handleKeyup,keypress:this.handleKeypress,input:this.handleInput,animationstart:this.handleAutoFill,animationend:this.handleAutoFillEnd},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd})),v=o.templateRendering.call(this,this.$props.inputPrefix,o.getListeners.call(this)),b=o.templateRendering.call(this,this.$props.inputSuffix,o.getListeners.call(this)),k=o.getTemplate.call(this,{h:n,template:v,additionalProps:{value:this.computedValue,valid:i}}),w=o.getTemplate.call(this,{h:n,template:b,additionalProps:{value:this.computedValue,valid:i}}),S=n("span",{class:this.inputWrapperClass()},[u&&n("span",{class:"k-input-icon k-icon k-i-"+u}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[k]),f,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[w]),d&&i&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),d&&!i&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),c&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),p&&this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return s?n(m,{label:s,attrs:this.v3?void 0:{label:s,editorId:h,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:h,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[S]}:[S]):S},methods:{emitFocus:function(e){this.$emit("focus",e),this.$data.focused=!0},emitBlur:function(e){this.$emit("blur",e),this.$data.focused=!1},handleKeydown:function(e){this.$emit("keydown",e)},handleKeyup:function(e){this.$emit("keyup",e)},handleKeypress:function(e){this.$emit("keypress",e)},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this._input&&this._input.focus()},validity:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,tooShort:!!this._input&&this._input.validity.tooShort,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return g(g({},e),{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!this._input||!this.isInvalid(e)})},isInvalid:function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},emitUpdate:function(e,t,n){var i=this;this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick((function(){i.$emit("changemodel",n),i.$emit("update:modelValue",n),i.$emit(t,{event:e,value:n,component:i,target:e.target,validity:i.validity()}),i.$data.valueDuringOnChange=void 0})))},handleAutoFill:function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-empty")&&(this.$data.autofill=!0,t.classList.remove("k-empty"))}},handleAutoFillEnd:function(e){"autoFillEnd"===e.animationName&&(e.target.parentNode&&(this.$data.autofill=!1))},name:function(){return this.$props.name},inputWrapperClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,s=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-"+(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(o.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!s,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e[this.wrapperClass]=this.wrapperClass,e}},computed:{spanClassNames:{get:function(){var e=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===this.computedValue||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e},computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue}}}},S=w},function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return I}));var i=n(1),r=n(0),o=n(3);function s(e){return e&&e.length>0?{items:l.call(this,e),inputItems:e}:{items:[],inputItems:[]}}function a(e){var t={},n=e.text,i=e.url,o=e.icon,s=e.disabled,a=e.cssClass,l=e.cssStyle,u=e.render,d=e.linkRender,c=e.contentRender,p=e.data;return void 0!==n&&(t.text=n),void 0!==i&&(t.url=i),void 0!==o&&(t.icon=o),void 0!==s&&(t.disabled=s),void 0!==a&&(t.cssClass=a),void 0!==l&&(t.cssStyle=l),void 0!==u&&(t.render=r.templateRendering.call(this,u,r.getListeners.call(this))),void 0!==d&&(t.linkRender=r.templateRendering.call(this,d,r.getListeners.call(this))),void 0!==c&&(t.contentRender=r.templateRendering.call(this,c,r.getListeners.call(this))),void 0!==p&&(t.data=p),t}function l(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],s=a.call(this,r);s.id=Object(o.c)(i.toString(),t),s.isLastFromSiblings=i===e.length-1,s.items=u.call(this,r,s),n.push(s)}return n}function u(e,t){return e.contentRender?[{contentParentItemId:t.id,id:Object(o.c)(o.b,t.id),isLastFromSiblings:!0,contentRender:r.templateRendering.call(this,e.contentRender,r.getListeners.call(this)),items:[]}]:e.items?l.call(this,e.items,t.id):[]}var d=/\S/;function c(e,t,n,i,s,a){var l,u=g();switch(n){case r.Keys.left:return s?a?f():p():a?h():c();case r.Keys.right:return s?a?p():f():a?c():h();case r.Keys.up:return s?y():Object(o.m)(t)?m():y();case r.Keys.down:return s?k():Object(o.m)(t)?v():k();case r.Keys.enter:case r.Keys.space:return u.disabled?t:b()?Object(o.f)(t):Object(o.h)(t);case r.Keys.home:return w()[0].id;case r.Keys.end:return(l=w())[l.length-1].id;case r.Keys.esc:return Object(o.m)(t)?t:Object(o.d)(t);default:return 1===i.length&&d.test(i)?function(){var e=i.toLowerCase(),n=w(),r=Number(Object(o.i)(t)),s=n.slice(r+1).concat(n.slice(0,r+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return s?s.id:t}():t}function c(){return Object(o.m)(t)?y():Object(o.l)(t)?v(y(Object(o.h)(t))):Object(o.d)(t)}function p(){return Object(o.m)(t)?m():Object(o.d)(t)}function h(){return Object(o.m)(t)?k():v(b()?t:k(Object(o.h)(t)))}function f(){return v(Object(o.m)(t)||b()?t:k(Object(o.h)(t)))}function v(e){return S(!0,e)}function m(e){return S(!1,e)}function g(n,i){return void 0===n&&(n=t),void 0===i&&(i=e),Object(o.g)(n,i)}function b(e){return g(e).items.length>0}function y(e){return C(!1,e)}function k(e){return C(!0,e)}function w(){return Object(o.m)(t)?e:g(Object(o.d)(t),e).items}function S(e,n){void 0===n&&(n=t);var i=g(n);return b(n)&&!i.disabled?e?Object(o.f)(n):function(e){var t=g(e).items;return t[t.length-1].id}(n):n}function C(n,i){if(void 0===i&&(i=t),Object(o.m)(i))return Object(o.e)(n,i,e.length);var r=Object(o.d)(i),s=Object(o.i)(i),a=g(r).items.length;return Object(o.c)(Object(o.e)(n,s,a),r)}}var p=n(12),h=n(14),f=n(35),v=n(36),m=i,g=m.h,b=m.ref,y={name:"KendoMenuItemInternal",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{item:Object,focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},created:function(){this.itemElement=null,this.prevFocusedItemId=this.$props.focusedItemId,this.isFirstRender=!0,this._anchor=Object(r.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=this.v3?this.kendoAnchorRef:this.$refs[this._anchor];var e=this.$props.focusedItemId,t=this.$props.item.id;e&&e===t&&this.itemElement&&this.itemElement.focus(),this.isFirstRender=!1},watch:{focusedItemId:function(e,t){this.prevFocusedItemId=t}},updated:function(){var e=this.$props.focusedItemId,t=this.$props.item.id;e?this.prevFocusedItemId===e||e!==t||this.itemElement.contains(document.activeElement)||this.itemElement.focus():document.activeElement===this.itemElement&&this.itemElement.blur()},computed:{currentItemRender:function(){return this.$props.item.render||this.$props.itemRender},currentLinkRender:function(){return this.$props.item.linkRender||this.$props.linkRender},contentRender:function(){return this.$props.item.contentParentItemId?this.$props.item.contentRender:null},currentOpened:function(){var e=this.$props;return e.item.items.length>0&&Object(o.n)(e.item.id,e.lastItemIdToBeOpened)&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return Object(r.classNames)({"k-menu-popup":!0,"k-rtl":this.$props.isDirectionRightToLeft})},menuItemClassName:function(){var e,t=this.$props.item;return(e={"k-item":!0,"k-menu-item":!0,"k-first":Object(o.j)(t.id),"k-last":t.isLastFromSiblings,"k-disabled":t.disabled})[t.cssClass?t.cssClass:""]=t.cssClass,e}},setup:g?function(){return{v3:!!g,kendoAnchorRef:b(null)}}:void 0,render:function(e){var t=this,n=g||e,i=this.$props.item,o=i.id,s=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-"+this.$props.item.icon,role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},a=function(){return this.$props.item.items.length>0?n(v.a,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft),key:"2"}):null},l=this.$props.originalItemNeeded(i.id);return n("li",{class:this.menuItemClassName,style:i.cssStyle,tabIndex:o===this.$props.tabbableItemId?0:-1,attrs:this.v3?void 0:{tabIndex:o===this.$props.tabbableItemId?0:-1,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0},onMouseover:this.onMouseOver,on:this.v3?void 0:{mouseover:this.onMouseOver,mouseleave:this.onMouseLeave,mousedown:function(e){return t.handleMouseDown(e)},focusout:function(){return t.handleBlur(o)},focusin:function(){return t.handleFocus(o)},click:function(e){return t.handleClick(e,o)},keydown:this.handleKeyDown},onMouseleave:this.onMouseLeave,onMousedown:function(e){return t.handleMouseDown(e)},onFocusout:function(){return t.handleBlur(o)},onFocusin:function(){return t.handleFocus(o)},onClick:function(e){return t.handleClick(e,o)},onKeydown:this.handleKeyDown,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0,ref:this.v3?function(e){t.kendoAnchorRef=e}:this._anchor,key:"0"},[this.contentRender?function(){var e=this.$props.item.contentParentItemId;return n("div",{class:"k-content",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[function(e){return r.getTemplate.call(this,{h:n,template:this.contentRender,additionalProps:e})}.call(this,{item:this.handleOriginalItemNeeded(e),itemId:e})])}.call(this):function(){var e=this,t=n("span",{class:"k-menu-link-text"},[i.text]),o=r.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:l,itemId:i.id,key:"1"}}),u=n(f.a,{url:i.url,attrs:this.v3?void 0:{url:i.url,opened:this.currentOpened,focused:this.currentFocused},opened:this.currentOpened,focused:this.currentFocused},this.v3?function(){return[[s.call(e),o,a.call(e)]]}:[[s.call(e),o,a.call(e)]]);return r.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:u,additionalProps:{item:l,itemId:i.id,opened:this.currentOpened,dir:Object(h.a)(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=Object(h.d)(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(p.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1},show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1,key:"1"},this.v3?function(){return[n(w,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})]}:[n(w,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})])}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleClick:function(e,t){this.$emit("click",e,t)},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},handleMouseDown:function(e){this.$emit("mousedown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},onMouseOver:function(e){this.$emit("mouseover",this.$props.item.id),e.stopPropagation()},onMouseLeave:function(e){this.$emit("mouseleave",this.$props.item.id),e.stopPropagation()}}},k=i.h,w={name:"KendoMenuItemInternalsList",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{items:Array,parentItemId:{type:String,default:void 0},focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},setup:k?function(){return{v3:!!k}}:void 0,render:function(e){var t=k||e,n=this.$props.parentItemId;return t("ul",{role:void 0!==n?"menu":"menubar",attrs:this.v3?void 0:{role:void 0!==n?"menu":"menubar",id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(y,{item:e,attrs:this.v3?void 0:{item:e,isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,originalItemNeeded:this.handleOriginalItemNeeded},isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,onMouseover:this.handleItemMouseOver,on:this.v3?void 0:{mouseover:this.handleItemMouseOver,mouseleave:this.handleItemMouseLeave,mousedown:this.handleItemMouseDown,keydown:this.handleKeyDown,blur:this.handleItemMouseBlur,focus:this.handleItemMouseFocus,click:this.handleItemMouseClick},onMouseleave:this.handleItemMouseLeave,onMousedown:this.handleItemMouseDown,onKeydown:this.handleKeyDown,onBlur:this.handleItemMouseBlur,onFocus:this.handleItemMouseFocus,onClick:this.handleItemMouseClick,originalItemNeeded:this.handleOriginalItemNeeded,key:n})}),this):null}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseDown:function(e){this.$emit("mousedown",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleItemMouseClick:function(e,t){this.$emit("click",e,t)},onMouseOver:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseover",this.$props.parentItemId),e.stopPropagation())},onMouseLeave:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseleave",this.$props.parentItemId),e.stopPropagation())}}},S=function(){function e(){this.phase="Initialized"}return e.prototype.getIsDirectionRightToLeft=function(){return this.isDirectionRightToLeft},e.prototype.setIsDirectionRightToLeft=function(e){this.phase="NotInitialized"===this.phase?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=e},e.prototype.hasDirectionChanged=function(){return"NewValueReceived"===this.phase&&this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft},e}(),C=function(){function e(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.openOnClick=e,this.isMouseOverEnabled=!e}return Object.defineProperty(e.prototype,"OpenOnClick",{set:function(e){Boolean(e)!==Boolean(this.openOnClick)&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e},enumerable:!1,configurable:!0}),e.prototype.handleItemSelectedViaKeyboard=function(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())},Object.defineProperty(e.prototype,"IsMouseOverEnabled",{get:function(){return this.isMouseOverEnabled},enumerable:!1,configurable:!0}),e.prototype.handleItemMouseDown=function(){this.mouseDown=!0},e.prototype.handleItemFocus=function(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1},e.prototype.handleItemClick=function(e,t){this.openOnClick&&(this.isMouseOverEnabled?t&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))},e}(),x=n(10),$=function(){return($=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},O=i.h,I={name:"KendoMenu",props:{vertical:{type:Boolean,default:!1},items:Array,dir:String,hoverOpenDelay:{type:Number,default:void 0},hoverCloseDelay:{type:Number,default:void 0},openOnClick:Boolean,itemRender:[String,Object,Function],linkRender:[String,Object,Function],customCloseItemIds:Array},created:function(){Object(r.validatePackage)(x.a),this.mouseOverHandler=new C(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=Object(r.guid)(),this.directionHolder=new S,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:O?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:o.a,hoveredItemId:o.a,tabbableItemId:o.b,isFirstRender:!0}},computed:{menuClassName:function(){return{"k-widget":!0,"k-reset":!0,"k-header":!0,"k-menu":!0,"k-menu-horizontal":!this.$props.vertical,"k-menu-vertical":this.$props.vertical}}},setup:O?function(){return{v3:!!O}}:void 0,render:function(e){var t=this,n=O||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var i=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?Object(o.d)(this.focusedItemId):o.a;return n("div",{class:this.getMenuWrapperClassName(),ref:function(e){return t.menuWrapperEl=e}},[n(w,{class:this.menuClassName,"aria-orientation":this.$props.vertical?"vertical":void 0,attrs:this.v3?void 0:{"aria-orientation":this.$props.vertical?"vertical":void 0,items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,onMouseleave:this.onItemMouseLeave,on:this.v3?void 0:{mouseleave:this.onItemMouseLeave,mouseover:this.onItemMouseOver,mousedown:this.onItemMouseDown,keydown:this.onKeyDown,focus:this.onItemFocus,click:this.onItemClick,blur:this.onItemBlur},onMouseover:this.onItemMouseOver,onMousedown:this.onItemMouseDown,onKeydown:this.onKeyDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,originalItemNeeded:this.getInputItem})])},methods:{reset:function(){this.clearItemHoverAndLeaveRequestsIfApplicable(),this.focusedItemId=o.a,this.hoveredItemId=o.a,this.tabbableItemId=o.b},onKeyDown:function(e){if(this.focusedItemId!==o.a){var t=Object(o.g)(this.focusedItemId,this.currentItems),n=c(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==r.Keys.enter&&e.keyCode!==r.Keys.space||t.disabled||(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(e,t.id),!e.defaultPrevented&&0===t.items.length&&t.url&&window.location.assign(t.url))}},onItemMouseOver:function(e){if(this.mouseOverHandler.IsMouseOverEnabled){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemHoverRequest=window.setTimeout((function(){t.setHoveredItemId(e),t.itemHoverRequest=null}),void 0!==(n=$({},this.$props)).hoverOpenDelay?n.hoverOpenDelay:n.openOnClick?0:100)}var n},onItemMouseLeave:function(e){if(this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemLeaveRequest=window.setTimeout((function(){t.setHoveredItemId(o.a),t.itemLeaveRequest=null}),void 0!==(n=$({},this.$props)).hoverCloseDelay?n.hoverCloseDelay:100)}var n},onItemMouseDown:function(){this.mouseOverHandler.handleItemMouseDown()},onItemFocus:function(e){this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},onItemClick:function(e,t){var n=Object(o.g)(t,this.currentItems);n.disabled||(this.setFocusedItemId(t),this.mouseOverHandler.handleItemClick(t,this.isItemWithDefaultClose(t)),this.dispatchSelectEventIfWired(e,t),!e.defaultPrevented&&n.url&&window.location.assign(n.url))},onItemBlur:function(e){this.isItemWithDefaultClose(e)&&this.setFocusedItemId(o.a)},getInputItem:function(e){return Object(o.g)(e,this.inputItems)},setFocusedItemId:function(e){var t=e===o.a?this.tabbableItemId:Object(o.h)(e),n=e===o.a||Object(o.k)(this.hoveredItemId)&&Object(o.k)(e)?this.hoveredItemId:o.a;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){Object(o.k)(e)&&Object(o.k)(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=o.a,this.tabbableItemId=o.b)},getMenuWrapperClassName:function(){return{"k-rtl":this.directionHolder.getIsDirectionRightToLeft()}},clearItemHoverAndLeaveRequestsIfApplicable:function(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)},isItemWithDefaultClose:function(e){return!this.$props.customCloseItemIds||-1===this.$props.customCloseItemIds.indexOf(e)},checkIsDirectionRightToLeft:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction},prepareItems:function(){var e=s.call(this,this.$props.items),t=e.items,n=e.inputItems;this.currentItems=t,this.inputItems=n},dispatchSelectEventIfWired:function(e,t){this.$emit("select",{event:e,compontent:this,item:this.getInputItem(t),itemId:t})}}},T=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C}));var i,r=n(1);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i||(i={}));var o=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),s=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),a=function(e){return(e||"").split("")},l=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof s?this.parse(e):this.parse(new s(a(e),a(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.Literal},e}(),u=function(e,t){return new l((function(n){var i=n.next().char,r=e[i];return"\\"===i?(i=n.next().char,new o(t.literal(i),n)):new o(r?t.mask(r):t.literal(i),n)}))},d=function(e){var t=e.prompt,n=e.promptPlaceholder;return new l((function(e){var i=e.next().char;return new o(i===t?n:i,e)}))},c=function(e){return new l((function(t){var n=t.next().char;return new o(e?n:"",t)}))},p=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new l((function(e){return new o(t,e)}))));var t},h=function(e){return new l((function(t){for(var n=new o([],t);!t.eof();)n=n.concat(e.run(t));return n}))},f=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,s=void 0===o?" ":o,a=e.rules,l=void 0===a?{}:a,u=e.includeLiterals,d=void 0!==u&&u;this.mask=n,this.prompt=r,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return p(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(p(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(p(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",o=i,s=t.split("").slice(0,n),a=t.split("").slice(i);return p(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=s.concat(e).concat(a).join("")})),{selection:o,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",o=n,s=e.split("").slice(n),a=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return p(this.maskTokens.slice(0,l)).run(a,t).fold((function(e){o=i.adjustPosition(e,o),r=e.concat(s).join("")})),{selection:o,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",o=n,s=e.slice(0,n);return p(this.unmaskTokens).run(s,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return p(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:o,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new l((function(e){return e.peek().char===t?(e.eat(),new o(t,e,i.Literal)):new o(t,e,i.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new l((function(r){for(;!r.eof();){var s=r.peek(),a=s.char,l=s.control;if(a===l&&l===t)return r.eat(),new o(t,r,i.Mask);if(e.test(a))return r.eat(),new o(a,r,i.Mask);if(a===n)return r.eat(),new o(t,r,i.Mask);r.eat_input()}return r.eat(),new o(t,r,i.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new l((function(e){return e.eof()?new o("",e):(e.peek().char===t&&e.eat(),new o(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new l((function(t){for(;!t.eof();){var i=t.peek(),r=i.char,s=i.control;if(r===n&&s===n)return t.eat(),new o(r,t);if(e.test(r))return t.eat(),new o(r,t);t.eat_input()}return t.eat(),new o("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return c(n)},mask:function(n){return d({prompt:e,promptPlaceholder:t})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return c(!1)},mask:function(t){return d({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;h(u(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),h(u(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),h(u(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),h(u(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),v={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},m=function(){return!1},g=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var i in e)if(e[i]!==t[i]){n=!1;break}if(n)for(var i in t)if(!e.hasOwnProperty(i)){n=!1;break}return n},b=n(0),y=n(7),k=r,w=k.h,S=k.ref,C={model:{event:"changemodel"},props:{type:{type:String,default:"text"},modelValue:String,modelRawValue:String,value:String,defaultValue:String,placeholder:String,title:String,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,accessKey:String,disabled:Boolean,readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},prompt:{type:String,default:"_"},promptPlaceholder:{type:String,default:" "},includeLiterals:{type:Boolean,default:!1},maskValidation:{type:Boolean,default:!0},mask:String,rules:{type:Object,default:function(){return v}},selection:Object,name:String,label:String,validationMessage:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:b.templateDefinition,inputSuffix:b.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{currentValue:void 0,currentFocused:!1,inputValue:void 0,currentSelection:[null,null]}},created:function(){Object(b.validatePackage)(y.a),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-"+Object(b.guid)(),this.service=new f,this.isPasted=!1},setup:w?function(){return{v3:!!w,inputRef:S(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.element=this.input=this.v3?this.inputRef:this.$refs.input,this.updateService(),this.setValidity()},watch:{currentFocused:function(e,t){this.prevCurrentFocused=t},selection:function(e,t){this.prevSelection=t},includeLiterals:function(e,t){this.prevIncludeLiterals=t},mask:function(e,t){this.prevMask=t},prompt:function(e,t){this.prevPrompt=t},promptPlaceholder:function(e,t){this.prevPromptPlaceholder=t},rules:function(e,t){this.prevRules=t}},updated:function(){if(this.element&&this.currentFocused){var e=this.currentSelection,t=e[0],n=e[1],i=this.prevSelection,r=this.$props.selection;(!i&&r||i&&r&&(i.start!==r.start||i.end!==r.end))&&(t=r.start,n=r.end),null!==t&&null!==n&&this.element.setSelectionRange(t,n)}var o,s,a={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules};o=a,s=this.$props,o.includeLiterals===s.includeLiterals&&o.mask===s.mask&&o.prompt===s.prompt&&o.promptPlaceholder===s.promptPlaceholder&&g(o.rules,s.rules)||this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},v,this.$props.rules)}},spanClassNames:{get:function(){var e,t=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir,"k-loading":this.showLoadingIcon})[this.wrapperClass]=this.wrapperClass,e}},wrapperSpanClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,o=!this.$props.validityStyles||this.validity().valid;return(e={"k-maskedtextbox":!0,"k-input":!0})["k-input-"+(b.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(b.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!o,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e||""},rawValue:function(){return this.service.rawValue(this.computedValue())},validity:function(){var e=this.computedValue(),t=this.service.validationValue(e);return{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!(this.$props.required&&!t||this.$props.maskValidation&&this.$props.prompt&&-1!==e.indexOf(this.$props.prompt)),valueMissing:!t}},pasteHandler:function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.currentSelection=[n||0,i||0])},clearClick:function(e){this.triggerOnChange("",e)},onChangeHandler:function(e){var t=e.currentTarget,n=this.inputValue=t.value,i=this.currentSelection[0]||0,r=this.currentSelection[1]||0;if(!this.$props.mask)return this.isPasted=!1,this.currentSelection=[null,null],void this.triggerOnChange(n,e);var o,s=this.computedValue();if(this.isPasted){this.isPasted=!1;var a=s.length-r,l=n.length-a;o=this.service.maskInRange(n.slice(i,l),s,i,r)}else o=this.service.maskInput(n,s,t.selectionStart||0);this.currentSelection=[o.selection,o.selection],this.triggerOnChange(o.value,e),this.inputValue=void 0},focusHandler:function(e){this.currentFocused||(this.currentFocused=!0,this.$emit("focus",{target:this,event:e}))},blurHandler:function(e){this.currentFocused&&(this.currentFocused=!1,this.$emit("blur",{target:this,event:e}))},triggerOnChange:function(e,t){this.currentValue=e,this.valueDuringOnChange=e,this.$emit("change",{event:t,selectionStart:this.currentSelection[0],selectionEnd:this.currentSelection[1],value:this.computedValue(),component:this,target:{name:this.$props.name,value:this.computedValue(),rawValue:this.rawValue()},validity:this.validity()}),this.$emit("update:modelValue",this.computedValue()),this.$emit("update:modelRawValue",this.rawValue()),this.$emit("changemodel",this.computedValue()),this.valueDuringOnChange=void 0},updateService:function(e){var t=Object.assign({includeLiterals:this.$props.includeLiterals,mask:this.$props.mask,prompt:this.$props.prompt,promptPlaceholder:this.$props.promptPlaceholder,rules:this.$props.rules},e);this.service.update(t)},setValidity:function(){this.element&&this.element.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")}},render:function(e){var t=this,n=w||e,i=this.$props.id||this.inputId,r=this.$props,o=r.iconName,s=r.showValidationIcon,a=r.showLoadingIcon,l=r.showClearButton,u=!this.$props.validityStyles||this.validity().valid,d=this.computedValue(),c=(this.inputValue,b.templateRendering.call(this,this.$props.inputPrefix,b.getListeners.call(this))),p=b.templateRendering.call(this,this.$props.inputSuffix,b.getListeners.call(this)),h=b.getTemplate.call(this,{h:n,template:c,additionalProps:{value:d,valid:u}}),f=b.getTemplate.call(this,{h:n,template:p,additionalProps:{value:d,valid:u}}),v=n("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperSpanClass,style:this.$props.label?void 0:{width:this.$props.width}},[o&&n("span",{class:"k-input-icon k-icon k-i-"+o}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[h]),n("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,id:i,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabIndex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accessKey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readOnly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required},autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,class:this.inputInnerClass,value:this.v3?d:null,domProps:this.v3?void 0:{value:d},id:i,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabIndex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accessKey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readOnly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required,ref:this.v3?function(e){t.inputRef=e}:"input",onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragStart:m,drop:m},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:m,onDrop:m}),this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[f]),s&&u&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),s&&!u&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),a&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),l&&d&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return this.$props.label?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[v,this.$props.label?i?n("label",{for:i,attrs:this.v3?void 0:{for:i},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):v}},x=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(1),r=n(15),o=n(0),s=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},a=function(e,t,n,i){var r=Math.max(n,.01),o=100/r*100;e&&t&&(e.style.width=i?"100%":r+"%",t.style.width=i?"100%":o+"%",e.style.height=i?r+"%":"100%",t.style.height=i?o+"%":"100%")},l={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213324,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},u=i.h,d={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(e){return["start","center","end"].includes(e)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){Object(o.validatePackage)(l),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=this.v3?this.progressStatusRef:this.$refs.progressStatus,this._progressStatusWrap=this.v3?this.progressStatusWrapRef:this.$refs.progressStatusWrap,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(o.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:u?void 0:function(){Object(r.e)(this.animationFrame)},unmounted:function(){Object(r.e)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var e=this.$props,t=e.disabled,n=e.reverse,i="vertical"===e.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===e.value,"k-state-disabled":t}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var e=this.$props.animation;return"boolean"!=typeof e&&void 0!==e?e.duration:e?400:0}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=this,n=u||e,i=this.$props,r=i.disabled,s=i.labelVisible,a=i.labelPlacement,l=i.max,d=i.min,c=i.tabIndex,p=i.emptyStyle,h=i.emptyClassName,f=i.progressStyle,v=i.progressClassName,m=this.$props.value||0,g=null===this.$props.value,b=function(e){var t=e.toString().split(".");return 1===t.length?""+t[0]:t[0]+"."+t[1].substr(0,3)}(m),y={value:m},k=this.$props.labelRender?o.templateRendering.call(this,this.$props.labelRender,o.getListeners.call(this)):void 0,w=n("span",{class:"k-progress-status"},b),S=o.getTemplate.call(this,{h:n,template:k,defaultRendering:w,additionalProps:y}),C=s?this.$props.label?n("span",{class:"k-progress-status"},[this.$props.label]):S:void 0,x=Object(o.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===a,"k-progress-center":"center"===a,"k-progress-end":"end"===a||void 0===a});return n("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:Object(o.getTabIndex)(c,r),role:"progressbar","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":g?void 0:m,"aria-disabled":r},tabindex:Object(o.getTabIndex)(c,r),role:"progressbar","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":g?void 0:m,"aria-disabled":r},[n("span",{class:x+(h?" "+h:""),style:p},[C]),n("div",{class:"k-state-selected",style:f,ref:this.v3?function(e){t.progressStatusRef=e}:"progressStatus"},[n("span",{class:x+(v?" "+v:""),ref:this.v3?function(e){t.progressStatusWrapRef=e}:"progressStatusWrap"},[C])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=s(this.min,this.max,this.prevValue);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=s(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);a(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=s(this.min,this.max,this.value);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(5),o=n(0),s=n(7),a=n(12),l=i.h,u={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String},computed:{horizontalAlign:function(){return"rtl"===this.$props.dir?"right":"left"},anchorAlign:function(){return{horizontal:this.horizontalAlign,vertical:"bottom"}},popupAlign:function(){return{horizontal:this.horizontalAlign,vertical:"top"}}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=Object(o.getDefaultSlots)(this),i=this.$props.popupSettings||{};return t(a.Popup,{anchor:this.$props.popupAnchor,attrs:this.v3?void 0:{anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open},anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose,class:Object(o.classNames)("k-reset",i.className)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}},d=n(21),c=i.h,p={palette:d.b,tileSize:d.c},h=function(e){return void 0!==e},f={name:"KendoColorPicker",props:{value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,paletteSettings:{type:Object,default:function(){return p}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:Object,open:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}}},data:function(){return{focused:!1,stateValue:"",stateOpen:!1}},computed:{isValueControlled:function(){return h(this.$props.value)},isOpenControlled:function(){return h(this.$props.open)},computedValue:function(){return this.isValueControlled?this.$props.value:this.stateValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.stateOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-"+e},wrapperClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded;return(e={"k-picker":!0,"k-colorpicker":!0})["k-picker-"+(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-"+i]=i,e["k-rounded-"+(o.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){Object(o.validatePackage)(s.a),this.focusableElementGuid=Object(o.guid)()},mounted:function(){this.focusableElement=this.$refs[this.focusableElementGuid],this.button=this.v3?this.buttonRef:this.$refs.button,this.palette=this.v3?this.paletteRef:this.$refs.palette},updated:function(){this.button=this.v3?this.buttonRef:this.$refs.button,this.palette=this.v3?this.paletteRef:this.$refs.palette},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t,n=this,i=this,s=c||e,a=this.$props,l=a.disabled,p=a.tabIndex,h=a.dir;return s("span",{class:this.wrapperClassName,dir:h,attrs:this.v3?void 0:{dir:h,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(o.getTabIndex)(p,l),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabIndex:Object(o.getTabIndex)(p,l),title:this.$props.title,onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,focusin:this.onFocusHandler,focusout:this.onBlurHandler},onFocusin:this.onFocusHandler,onFocusout:this.onBlurHandler},[s("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[s("span",{class:Object(o.classNames)("k-value-icon","k-color-preview",{"k-no-color":!this.computedValue,"k-icon-color-preview":this.icon||this.iconClassName})},[(this.iconClassName||this.icon)&&s("span",{class:Object(o.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-"+this.icon]=this.icon&&!this.iconClassName,t))}),s("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),s(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",rounded:null,icon:"arrow-s"},ref:this.v3?function(e){i.buttonRef=e}:"button",onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler},rounded:null,class:"k-input-button",icon:"arrow-s"}),s(u,{dir:h,attrs:this.v3?void 0:{dir:h,open:this.computedOpen,popupAnchor:this.focusableElementGuid},open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid},this.v3?function(){return[s(d.a,{onKeydown:n.onKeyDownHandler,on:n.v3?void 0:{keydown:n.onKeyDownHandler,change:n.onPaletteChangeHandler,blur:n.onBlurHandler},ref:n.v3?function(e){i.paletteRef=e}:"palette",value:n.computedValue||void 0,attrs:n.v3?void 0:{value:n.computedValue||void 0},onChange:n.onPaletteChangeHandler,onBlur:n.onBlurHandler})]}:[s(d.a,{onKeydown:n.onKeyDownHandler,on:n.v3?void 0:{keydown:n.onKeyDownHandler,change:n.onPaletteChangeHandler,blur:n.onBlurHandler},ref:n.v3?function(e){i.paletteRef=e}:"palette",value:n.computedValue||void 0,attrs:n.v3?void 0:{value:n.computedValue||void 0},onChange:n.onPaletteChangeHandler,onBlur:n.onBlurHandler})])])},methods:{focusElement:function(){this.focusableElement&&this.focusableElement.focus()},setOpen:function(e,t){this.isOpenControlled||(e||t||!this.focusableElement||this.focusableElement.focus(),this.stateOpen=e)},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;if(n!==o.Keys.esc)return n!==o.Keys.enter||this.isOpenControlled?void(!t||n!==o.Keys.up&&n!==o.Keys.down||(e.preventDefault(),e.stopPropagation(),n===o.Keys.up&&this.focusableElement&&(this.focusableElement.focus(),this.setOpen(!1)),n===o.Keys.down&&this.setOpen(!0))):(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen));this.setOpen(!1)},onOpenHandler:function(){this.isOpenControlled||this.palette&&this.palette.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.palette&&document.activeElement===this.palette.$el;e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(e){clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=window.setTimeout(this.onBlurTimeout,200),this.$emit("blur",{event:e})},onChangeHandler:function(e,t){var n=t?e.rgbaValue:e.value;this.isValueControlled||(this.stateValue=n),t&&this.setOpen(!1),this.$emit("change",{value:n,event:e})},onPaletteChangeHandler:function(e){this.onChangeHandler(e,!0)}}},v=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return P}));var i=n(1),r=n(0),o=n(4),s=n(5),a=n(2),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=/\d/,d=function(e,t){return void 0!==e?e:t},c=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},p=function(e){return(String(e).split(".")[1]||"").length},h=function(e,t){return Math.max(p(e),p(t))},f=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},v=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)+(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},m=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)-(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},g=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},b=function(e,t,n){var i=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var i=t[n][1];return e.length-i.length}(e,t);if(-1!==i&&n.selectionStart>i)n.selectionStart=n.selectionEnd=i;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var r=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==r&&n.selectionStart<r&&(n.selectionStart=n.selectionEnd=r),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},y=function(e,t,n,i){e.selectionStart=e.selectionEnd=t,b(n,i,e)},k=function(e,t,n,i){e.eventValue=i.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,y(e,e.selectionStart,e.currentLooseValue,n)},w=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:C(e,u)},S=function(e){return e.split("").reverse().join("")},C=function(e,t){return e.length-S(e).search(t)},x=function(e){return e.split(e[e.search(u)])[0]},$=function(e){var t=S(e);return S(t.split(t[t.search(u)])[0])},O=function(e,t){return e.search(t)},I=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},T=function(e,t,n,i,r){var o="0"===e.replace(r,"")[0],s="0"===t.replace(r,"")[0];if(o&&!s)return n-1;if(s&&i)return n+1;for(var a=0,l=0;l<n;l++)u.test(e.charAt(l))&&a++;for(var d=0;a>0&&t.length>d;)u.test(t.charAt(d))&&a--,d++;return d},D=function(e,t,n){var i=l({},e),r=i.prevLooseValue,o=n.numberSymbols(),s=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=t.numberSymbols(),a=new RegExp("[\\d\\"+s.decimal+s.group+"]","g");return[n,i,r,o].map((function(e){return e.replace(a,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),a=String(i.currentLooseValue),d=String(r),p=new RegExp("[^\\d\\"+o.decimal+"]","g"),h=new RegExp("[^\\d\\"+o.decimal+"\\"+o.group+"]","g"),f=new RegExp("[\\d\\"+o.decimal+"\\"+o.group+"]"),v=a.replace(p,""),m=O(a,u),g=-1===m?-1:C(a,u),b=a.indexOf(o.decimal),S=(a.substring(0,m)+a.substring(m,g).replace(h,"")+a.substring(g,a.length)).split("").filter((function(e){return-1!==s.indexOf(e)||-1!==e.search(f)})).join(""),D=n.formatNumber(.31111111111111117,t).replace(p,""),V=D.indexOf(o.decimal),M=V>-1?D.length-V-1:0,N=n.formatNumber(1,t).replace(p,""),R=N.indexOf(o.decimal),B=R>-1?N.length-R-1:0,P=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=x(n),a=x(i),l=x(r),u=x(o);return{positiveInfo:[s,$(n)],negativeInfo:[a,$(i)],zeroInfo:[l,$(r)],oneInfo:[u,$(o)]}}(t,n),E=[P.positiveInfo,P.negativeInfo,P.zeroInfo,P.oneInfo],A=1!==E.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),j=a.length>0&&a.length<d.length,L=t&&"p"===t[0]&&a&&-1===a.indexOf(o.percentSign);if(!i.isPaste){if(""===a)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===o.minusSign&&n.formatNumber(-0,t)!==d)return i.eventValue=-0,i.currentLooseValue=c(i.eventValue,t,n),y(i,w(i.currentLooseValue,o),i.currentLooseValue,E),i;if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return n.split(t.minusSign).length!==i.split(t.minusSign).length&&n.length===i.length+t.minusSign.length}(i,o)){var F=n.parseNumber(r,t);i.eventValue=-(null!==F?F:0),i.currentLooseValue=c(i.eventValue,t,n);var z=O(i.currentLooseValue,u),K=O(d,u);return y(i,i.selectionEnd-1+(z-K),i.currentLooseValue,E),i}if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==i.indexOf(t.minusSign)}(i,o))return i.eventValue=n.parseNumber(i.currentLooseValue,t),y(i,i.selectionStart,i.currentLooseValue,E),i;if(i.currentLooseValue===o.decimal){i.eventValue=0;var _=c(i.eventValue,t,n);if(0===B&&M>0){var H=C(_,u);i.currentLooseValue=_.substring(0,H)+o.decimal+_.substring(H)}else i.currentLooseValue=_;return y(i,w(i.currentLooseValue,o)+1,i.currentLooseValue,E),i}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(i,o))return k(i,t,E,n),i;if(L)return i.eventValue=n.parseNumber(a,t)/100,i.currentLooseValue=c(i.eventValue,t,n),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return k(i,t,E,n),i;if(v!==a&&a&&A)if(-1===E.findIndex((function(e){var t=e[0],n=e[1],i=a.indexOf(t),r=a.indexOf(n),s=0===i,l=r===a.length-n.length,u=i+t.length!==m&&-1!==m&&a[i+t.length]!==o.decimal,d=r!==g&&-1!==g&&a[r-1]!==o.decimal;return t&&n?!u&&!d&&(s&&l):t?!u&&s:!!n&&(!d&&l)})))return k(i,t,E,n),i;if(v[v.length-1]===o.decimal&&M>0)return i.eventValue=n.parseNumber(a,t),i.currentLooseValue=S,i;if(i.currentLooseValue&&r)if((s+o.decimal+o.group).split("").findIndex((function(e){return a.split("").filter((function(t){return t===e})).length<d.split("").filter((function(t){return t===e})).length&&a.length+1===d.length&&(e!==o.decimal||0!==I(d.replace(p,""),o.decimal))}))>-1)return i.eventValue=n.parseNumber(e.prevLooseValue,t),i.currentLooseValue=e.prevLooseValue,i;var W=I(v,o.decimal),U="0"===v[v.length-1];if(j&&U&&W<B)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i;if(W>0){var q=a.substring(0,b);if(U&&(!q||0!==d.indexOf(q))){i.eventValue=n.parseNumber(i.currentLooseValue,t);var G=c(i.eventValue,t,n);return y(i,T(a,G,i.selectionEnd,j,p),G,E),i.currentLooseValue=G,i}if(W>M){var J=a.indexOf(o.decimal),X=a.substring(0,J)+a.substring(J,J+1+M)+a.substring(g,String(i.currentLooseValue).length);return i.eventValue=n.parseNumber(X,t),i.currentLooseValue=X,y(i,i.selectionStart,X,E),i}if(B!==M&&W<=M&&U)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=S,i;if(W<B)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i}}if(i.eventValue=n.parseNumber(i.currentLooseValue,t),L&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue){G=c(i.eventValue,t,n);1===a.length?y(i,w(G,o),G,E):y(i,T(a,G,i.selectionEnd,j,p),G,E),i.currentLooseValue=G}else i.currentLooseValue=c(n.parseNumber(v),t,n);return i},V=n(7),M=i,N=M.h,R=M.ref,B=M.inject,P={model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{modelValue:Number,value:Number,defaultValue:Number,step:{type:Number,default:1},format:[String,Object],tabIndex:Number,accessKey:String,title:String,placeholder:String,min:Number,max:Number,spinners:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},dir:String,name:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:{type:Boolean,default:!1},id:String,iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,isInvalid:!1,isEmpty:!1,currentValue:0,valueDuringOnChange:0,currentLooseValue:"",selectionStart:0,selectionEnd:0,decimalSelect:!1,focused:!1,forceUpdate:!1}},created:function(){Object(r.validatePackage)(V.a),this._textBeforeInput="",this._inputId=Object(r.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=Object(o.provideIntlService)(this),this._symbols=this._intl.numberSymbols(),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=null},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this._elementWrapper=this.v3?this.elementWrapperRef:this.$refs.elementWrapper,this.$data.hasMounted=!0,this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},updated:function(){r.canUseDOM&&document.activeElement!==this._input||!this._input||null===this.$data.currentLooseValue||this.$data.forceUpdate&&(this._input.selectionStart=this.$data.selectionStart,this._input.selectionEnd=this.$data.selectionEnd,this.$data.forceUpdate=!1),this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},computed:{computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:this.$data.currentValue}},looseValue:{get:function(){return c(this.$data.focused?this.$data.currentLooseValue:d(this.$props.value,this.$data.currentValue),this.$props.format,this._intl)}},spanClassNames:{get:function(){var e,t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid,n=this.computedValue;return(e={"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===n||(n||this.$props.placeholder)),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir})[this.inputClass]=this.inputClass,e}},wrapperClassNames:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.disabled,l=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!l,e["k-required"]=s,e["k-disabled"]=a,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{validity:function(){var e=void 0!==this.$props.validationMessage,t=!(this.$data.valueIsOutOfRange||this.$props.required&&null===this.computedValue);return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},clearClick:function(e){void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=null,this.$emit("changemodel",null),this.$emit("update:modelValue",null),this.$emit("change",{event:e,value:null,component:this,target:{name:this.$props.name,value:null},validity:this.validity()})},focus:function(){this._input&&this._input.focus()},emitFocus:function(e){this.$data.currentLooseValue=this._prevLooseValue,this.$data.focused=!0,this.$emit("focus",e),this.$data.forceUpdate=!0},emitBlur:function(e){this.$data.eventValue=null,this.$data.prevLooseValue="",this.$data.currentLooseValue="",this.$data.focused=!1,this.$data.selectionStart=void 0,this.$data.selectionEnd=void 0,this.$data.decimalSelect=!1,this.$data.valueIsCorrected=!1,this.$data.valueIsOutOfRange=!1,this.$emit("blur",e),this.$data.forceUpdate=!0},handleFocus:function(e){this.$data.focused=!0},handleBlur:function(e){this.$data.focused=!1},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},getCurrentState:function(){return{eventValue:d(this.$props.value,this.$data.currentValue),prevLooseValue:this._prevLooseValue,currentLooseValue:this._input.value,selectionStart:this._input.selectionStart,selectionEnd:this._input.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:this._isPaste,focused:this.$data.focused}},parseNumber:function(e){return this._intl.parseNumber(e,this.$props.format)},elementChange:function(e){var t=this.getCurrentState();this._isPaste=!1,this.triggerChange(e,D(t,this.$props.format,this._intl))},triggerChange:function(e,t){var n=this;if(!this.$props.disabled){this.$data.valueDuringOnChange=t.eventValue,this.$data.currentValue=t.eventValue;var i=c(g(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);if(r!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=r,this.$data.valueDuringOnChange=r,this.$data.currentValue=r),t.valueIsCorrected){var o=this._elementWrapper;o&&-1===o.className.indexOf("k-invalid")&&(this.$data.isInvalid=!0,setTimeout((function(){n.$data.isInvalid=!1}),50))}var s=this.$props.value!==t.eventValue;void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=this.$data.valueDuringOnChange,this.$data.prevLooseValue=t.prevLooseValue,this.$data.currentLooseValue=t.currentLooseValue,this.$data.selectionStart=t.selectionStart,this.$data.selectionEnd=t.selectionEnd,this.$data.decimalSelect=t.decimalSelect,this.$data.valueIsCorrected=t.valueIsCorrected,this.$data.valueIsOutOfRange=t.valueIsOutOfRange,this.$data.focused=t.focused,this.$data.isPaste=t.isPaste,this.$data.forceUpdate=!this.$data.forceUpdate,s&&(this.$emit("changemodel",this.$data.valueDuringOnChange),this.$emit("update:modelValue",this.$data.valueDuringOnChange),this.$emit("change",{event:e,value:this.$data.valueDuringOnChange,component:this,target:{name:this.$props.name,value:this.$data.valueDuringOnChange},validity:this.validity()})),this.$data.valueDuringOnChange=void 0}},onPasteHandler:function(e){this._isPaste=!0},increase:function(e){var t=this.getCurrentState();v(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},decrease:function(e){var t=this.getCurrentState();m(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},wheel:function(e){r.canUseDOM&&document.activeElement===this._input&&this._input&&(e.deltaY<0&&(e.preventDefault(),this.increase(e)),e.deltaY>0&&(e.preventDefault(),this.decrease(e)))},keyDown:function(e){var t=this.getCurrentState(),n=this.parseNumber(String(t.currentLooseValue));if(!(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)){switch(e.keyCode){case 38:v(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:m(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=c(g(n,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=r,t.currentLooseValue=c(r,this.$props.format,this._intl),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var o=this._input,s=this._intl.numberSymbols();o&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=D(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){r.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:N?function(){return{v3:!!N,inputRef:R(null),elementWrapperRef:R(null),kendoLocalizationService:B("kendoLocalizationService",{}),kendoIntlService:B("kendoIntlService",{})}}:void 0,render:function(e){var t=this,n=N||e,i=this.$props,l=i.iconName,u=i.showValidationIcon,d=i.showLoadingIcon,c=i.showClearButton,p=this.$props.id||this._inputId,h=Object(r.getDefaultSlots)(this),f=Object(o.provideLocalizationService)(this),v=this.validity().valid;void 0!==this.$props.value&&this.$props.value!==this.$data.currentValue?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue&&this.$props.modelValue!==this.$data.currentValue&&(this.$data.currentValue=this.$props.modelValue),this._prevLooseValue=this.looseValue;var m=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),g=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),b=r.getTemplate.call(this,{h:n,template:m,additionalProps:{value:this.computedValue,valid:v}}),y=r.getTemplate.call(this,{h:n,template:g,additionalProps:{value:this.computedValue,valid:v}}),k=n("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,"aria-disabled":this.$props.disabled?"true":void 0},class:this.wrapperClassNames,"aria-disabled":this.$props.disabled?"true":void 0,style:this.$attrs.style},[l&&n("span",{class:"k-input-icon k-icon k-i-"+l}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[b]),n("input",{tabIndex:this.$props.tabIndex,attrs:this.v3?void 0:{tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellCheck:!1,autoComplete:"off",autoCorrect:"off",id:p,"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name},accessKey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellCheck:!1,autoComplete:"off",autoCorrect:"off",class:this.inputInnerClass,id:p,value:this.v3?this.looseValue:null,domProps:this.v3?void 0:{value:this.looseValue},"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name,onWheel:this.wheel,on:this.v3?void 0:{wheel:this.wheel,keydown:this.keyDown,input:this.elementChange,focus:this.emitFocus,blur:this.emitBlur,paste:this.onPasteHandler},onKeydown:this.keyDown,onInput:this.elementChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onPaste:this.onPasteHandler,ref:this.v3?function(e){t.inputRef=e}:"input"}),this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[y]),u&&v&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),u&&!v&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),d&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),c&&void 0!==this.computedValue&&null!==this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})]),h,this.$props.spinners&&n("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":f.toLanguageString(a.e,a.c[a.e]),title:f.toLanguageString(a.e,a.c[a.e])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":f.toLanguageString(a.e,a.c[a.e]),title:f.toLanguageString(a.e,a.c[a.e]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":f.toLanguageString(a.d,a.c[a.d]),title:f.toLanguageString(a.d,a.c[a.d])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":f.toLanguageString(a.d,a.c[a.d]),title:f.toLanguageString(a.d,a.c[a.d]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[k,this.$props.label?p?n("label",{for:p,attrs:this.v3?void 0:{for:p},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):k}},E=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i,r=n(1),o=n(0),s=n(2),a=n(4),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(i||(i={}));var u=n(7),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=r,p=c.h,h=c.ref,f=c.inject,v={name:"KendoRangeSlider",model:{event:"changemodel"},props:{id:String,value:{type:Object,validator:function(e){return e.start<=e.end}},defaultValue:{type:Object,default:function(){return{start:0,end:0}},validator:function(e){return e.start<=e.end}},step:{type:Number,default:1},min:{type:Number,required:!0},max:{type:Number,required:!0},vertical:Boolean,disabled:Boolean,dir:{type:String,default:"ltr",validator:function(e){return[null,"ltr","rtl"].includes(e)}},startTabIndex:Number,endTabIndex:Number},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(u.a)},data:function(){return{currentValue:this.defaultValue,currentDrag:"",currentDir:"ltr"}},computed:{computedValue:function(){return void 0!==this.$props.value?this.$props.value:this.currentValue},percentStart:function(){return(this.computedValue.start-this.min)/(this.max-this.min)*100},percentEnd:function(){return(this.computedValue.end-this.min)/(this.max-this.min)*100},sliderItemsStyle:function(){return this.vertical?{paddingTop:0,height:"100%"}:{}},trackStyles:function(){return this.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}},mounted:function(){if(this.sliderRef=this.$refs.sliderRef,this.sliderSelectionRef=this.$refs.sliderSelectionRef,this.startHandle=this.$refs.startHandle,this.endHandle=this.$refs.endHandle,this.sliderTrackRef=this.$refs.sliderTrackRef,this.sliderTrackWrapRef=this.$refs.sliderTrackWrapRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:p?function(){return{v3:!!p,inputRef:h(null),kendoLocalizationService:f("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,i=this,r=p||e,l=Object(a.provideLocalizationService)(this),u=Object(o.getDefaultSlots)(this),c=this.$props,h=c.id;c.dir;return r("div",{role:"slider",attrs:this.v3?void 0:{role:"slider",id:h,dir:this.currentDir,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:h,dir:this.currentDir,class:Object(o.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-state-disabled":this.$props.disabled,"k-slider-vertical":this.$props.vertical,"k-slider-horizontal":!this.$props.vertical},this.$props.class),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[r(o.Draggable,{onDrag:this.handleTrackPress,on:this.v3?void 0:{drag:this.handleTrackPress,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])]}:[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])])])},methods:{dispatchStateValue:function(e){var t=function(e,t){var n,r;switch(t.type){case i.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case i.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case i.min:n="start"===t.key?l(l({},e),{start:t.min}):l(l({},e),{end:Math.max(t.min,e.start)});break;case i.max:n="start"===t.key?l(l({},e),{start:Math.min(t.max,e.end)}):l(l({},e),{end:t.max});break;case i.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;case i.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;default:n=e}return n}({start:this.computedValue.start,end:this.computedValue.end},d(d({},e),{min:this.min,max:this.max,step:this.step}));this.currentValue.start=t.start,this.currentValue.end=t.end,this.$emit("change",{min:this.min,max:this.max,step:this.step,value:{start:t.start,end:t.end}})},focus:function(){this.startHandle&&this.startHandle.focus()},handleChange:function(e,t){this.$emit("change",{value:e,event:t})},calcNewDistance:function(e){if(this.sliderTrackWrapRef){e.originalEvent.preventDefault();var t=this.sliderTrackWrapRef.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);return this.min+n*(this.max-this.min)}},calcKey:function(e){return e<=this.computedValue.start?"start":e>=this.computedValue.end?"end":2*e<this.computedValue.end+this.computedValue.start?"start":"end"},handleStartKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"start",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"start",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"start",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"start",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"start",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"end",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"end",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"end",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"end",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"end",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"end",event:e})}},handleTrackPress:function(e){var t=this.calcNewDistance(e),n=this.calcKey(t);this.currentDrag=n,"end"===n?this.endHandle.focus():this.startHandle.focus();var r="end"===n?i.end:i.start;this.dispatchStateValue({type:r,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(37),o=n(0),s=i.h,a={name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},index:Number,prev:Object,next:Object},created:function(){this.draggable=null},computed:{isStatic:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsible||n.collapsible;return!i&&!r},isDraggable:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsed||n.collapsed;return!!i&&!r},isHorizontal:function(){return"horizontal"===this.$props.orientation}},data:function(){return{focused:!1}},mounted:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=this,i=this,r=s||e,a=this.isDraggable,l=this.isStatic,u=this.isHorizontal,d=Object(o.classNames)("k-splitbar",((t={})["k-state-focused"]=this.focused,t["k-splitbar-horizontal"]=u,t["k-splitbar-vertical"]=!u,t["k-splitbar-draggable-horizontal"]=u&&a,t["k-splitbar-draggable-vertical"]=!u&&a,t["k-splitbar-static-horizontal"]=u&&l,t["k-splitbar-static-vertical"]=!u&&l,t)),c=this.previousArrowClass(u),p=this.nextArrowClass(u);return r(o.Draggable,{onPress:function(e){return i.onDrag(e,!0,!1)},on:this.v3?void 0:{press:function(e){return i.onDrag(e,!0,!1)},drag:function(e){return i.onDrag(e,!1,!1)},release:function(e){return i.onDrag(e,!1,!0)}},onDrag:function(e){return i.onDrag(e,!1,!1)},onRelease:function(e){return i.onDrag(e,!1,!0)},ref:"draggable"},this.v3?function(){return[r("div",{tabIndex:l?-1:0,attrs:n.v3?void 0:{tabIndex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[r("div",{tabIndex:l?-1:0,attrs:n.v3?void 0:{tabIndex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])])},methods:{onDrag:function(e,t,n){var i=e,r=this.$props.index,o=this.draggable&&this.draggable.element;!n&&i&&i.originalEvent.preventDefault(),o&&!this.isStatic&&this.isDraggable&&this.$emit("drag",i,o,r,t,n)},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},onToggle:function(e){var t=this.$props,n=t.index,i=t.prev,r=t.next;(i.collapsible||r.collapsible)&&this.$emit("toggle",i.collapsible?n:n+1,e)},onPrevToggle:function(e){var t=this.$props,n=t.index;t.prev.collapsible&&this.$emit("toggle",n,e)},onNextToggle:function(e){var t=this.$props,n=t.index;t.next.collapsible&&this.$emit("toggle",n+1,e)},onKeyDown:function(e){var t=this,n=e&&e.keyCode,i=this.isHorizontal,r=this.$props.index,s=this.draggable&&this.draggable.element,a=function(n,i,r){e.preventDefault(),t.$emit("keyboardresize",n,i,r,e)};s&&(n===o.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===o.Keys.left?a(s,r,-10):i&&n===o.Keys.right?a(s,r,10):i||n!==o.Keys.up?i||n!==o.Keys.down||a(s,r,10):a(s,r,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-prev"]=i,t["k-i-arrow-60-left"]=i&&e&&!r,t["k-i-arrow-60-right"]=i&&e&&r,t["k-i-arrow-60-up"]=i&&!e&&!r,t["k-i-arrow-60-down"]=i&&!e&&r,t))},nextArrowClass:function(e){var t,n=this.$props.next,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-next"]=i,t["k-i-arrow-60-right"]=i&&e&&!r,t["k-i-arrow-60-left"]=i&&e&&r,t["k-i-arrow-60-down"]=i&&!e&&!r,t["k-i-arrow-60-up"]=i&&!e&&r,t))}}},l=n(10),u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},p={name:"KendoSplitter",props:{orientation:{type:String,default:"horizontal",validator:function(e){return["vertical","horizontal"].includes(e)}},panes:Array,defaultPanes:Array},computed:{isControlledState:function(){return void 0!==this.$props.panes},computedPanes:function(){return this.isControlledState?this.$props.panes:this.currentPanes},isRtl:function(){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1}},created:function(){Object(o.validatePackage)(l.a)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=d||e,n=this.panesOptions(),i=Object(o.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-"+this.orientation);this.validatePanes(n);return t("div",{class:i},[function(e){return e.map((function(n,i){var s,l=o.templateRendering.call(this,n.content,o.getListeners.call(this)),u=2*i,d=u+1;if(i+1<e.length){var c=e[i+1];s=t(a,{key:d,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:c},orientation:this.orientation,prev:n,next:c,onDrag:this.onBarDragResize,on:this.v3?void 0:{drag:this.onBarDragResize,toggle:this.onBarToggle,keyboardresize:this.onBarKeyboardResize},onToggle:this.onBarToggle,onKeyboardresize:this.onBarKeyboardResize})}return[t(r.a,{key:u,containsSplitter:n.containsSplitter,attrs:this.v3?void 0:{containsSplitter:n.containsSplitter,size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:l},size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:l}),s]}),this)}.call(this,n)])},methods:{validatePanes:function(e){if(!e.filter((function(e){return void 0===e.size})).length)throw new Error("The Splitter should have at least one pane without a set size.")},mapPaneOptions:function(e){for(var t=this.orientation,n=[],i=0;i<e.length;i++){var r=!1;this.isDragging&&void 0!==this.dragIndex&&(r=this.dragIndex===i||this.dragIndex+1===i),n.push(u(u(u({},c),{orientation:t,overlay:r}),e[i]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var i=t;return n===e?u(u({},i),{collapsed:!t.collapsed}):u({},i)}));this.$emit("change",{newState:n,isLast:!0,nativeEvent:t})},onBarDragResize:function(e,t,n,i,r){var o=(new Date).getTime(),s=e.pageX,a=e.pageY,l=this.surroudingPanes(t),u=l.prevElement,d=l.nextElement;if(u&&d){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=o,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(u),void(this.originalNextSize=this.elementSize(d));var c,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;if(!i&&o-v<150)r&&this.resetDragState();else c="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,c,r,e),r&&this.resetDragState()}},onBarKeyboardResize:function(e,t,n,i){var r=this.surroudingPanes(e),o=r.prevElement,s=r.nextElement,a=this.elementSize(o),l=this.elementSize(s);this.resize(t,t+1,a,l,n,!0,i)},surroudingPanes:function(e){return{prevElement:e.previousElementSibling,nextElement:e.nextElementSibling}},containerSize:function(){return this.$el?this.elementSize(this.$el,!0):0},isPercent:function(e){return/%$/.test(e)},toPixels:function(e,t){var n=parseInt(e,10);return this.isPercent(e)&&(n=t*n/100),n},panesOptions:function(){return this.mapPaneOptions(this.computedPanes)},resetDragState:function(){this.isDragging=!1,this.dragIndex=void 0,this.startTime=0,this.originalX=0,this.originalY=0,this.originalPrevSize=0,this.originalNextSize=0},elementSize:function(e,t){var n=t?"client":"offset";return"vertical"===this.orientation?e[n+"Height"]:e[n+"Width"]},clamp:function(e,t,n){return Math.min(t,Math.max(e,n))},fixedSize:function(e){return e&&e.length>0},resize:function(e,t,n,i,r,o,s){var a,l,d=this,c=this.panesOptions(),p=c[e],h=c[t],f=n+i,v=this.containerSize(),m=function(e){return d.toPixels(e,v)},g={index:e,initialSize:n,min:m(p.min)||f-m(h.max)||0,max:m(p.max)||f-m(h.min)||f},b={index:t,initialSize:i,min:m(h.min)||f-m(p.max)||0,max:m(h.max)||f-m(p.min)||f},y=function(e,t){var n=c[e.index],i=d.clamp(e.min,e.max,e.initialSize+t);return d.isPercent(n.size||"")?100*i/v+"%":i+"px"};this.fixedSize(p.size)&&this.fixedSize(h.size)?(a=y(g,r),l=y(b,-r)):h.collapsible||this.fixedSize(h.size)?l=y(b,-r):a=y(g,r);var k=c.map((function(n,i){var r=n;return i===e?u(u({},r),{size:a}):i===t?u(u({},r),{size:l}):u({},r)}));this.panesDuringOnChange=k,this.isControlledState||(this.currentPanes=k),this.$emit("change",{newState:k,isLast:o,nativeEvent:s}),this.panesDuringOnChange=void 0}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i,r=n(1),o=n(42),s=n(18),a=n(0),l=n(10);!function(e){e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous"}(i||(i={}));var u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},c=r.h,p={name:"KendoPanelBar",emits:{select:null,keydown:null},props:{animation:{type:Boolean,default:!0},items:Array,dir:String,selected:String,expanded:{type:Array,default:void 0},focused:String,expandMode:{type:String,default:"multiple",validator:function(e){return["single","multiple"].includes(e)}},className:String,keepItemsMounted:Boolean},created:function(){this.activeDescendant=null,Object(a.validatePackage)(l.a)},data:function(){var e=Object(s.e)(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=Object(s.d)(this.$props)),e},computed:{selectedItem:function(){var e=this.$props.selected;return void 0===e?this.currentSelected:e},expandedItems:function(){return void 0!==this.$props.expanded?this.$props.expanded||[]:this.currentExpanded},computedItems:function(){var e=u(u({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return s.h.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=c||e,n=Object(a.classNames)("k-panelbar",this.$props.className);return t("ul",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"tree",tabIndex:0,"aria-activedescendant":this.activeDescendant},role:"tree",tabIndex:0,onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,focus:this.handleWrapperFocus,blur:this.handleWrapperBlur},onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,class:n,"aria-activedescendant":this.activeDescendant},[this.computedItems.map((function(e){return t(o.a,u(u({props:this.v3?void 0:u(u({},e),{item:e})},e),{item:e}))}),this)])},methods:{handleSelect:function(e){this.onSelect(e),this.onFocus(e)},onSelect:function(e){var t,n,i=this;if(Object(s.a)(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=d(t.parentUniquePrivateKey,[t.uniquePrivateKey]),Object(s.f)(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?d(t.parentUniquePrivateKey):[]);break;case"multiple":var r=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===r?n.push(t.uniquePrivateKey):n.splice(r,1);break;default:n=this.expandedItems.slice()}this.currentSelected=t.uniquePrivateKey,this.currentExpanded=n,this.$emit("select",{target:t,expandedItems:n})}},onFocus:function(e,t){var n=this;void 0===t&&(t=0);var i,r=Object(s.b)(this.computedItems);r.forEach((function(o,s){if(o.uniquePrivateKey===(e.uniquePrivateKey||n.currentFocused)){var a=s+t<0?0:s+t>r.length?r.length-1:s+t;i=r[a]}})),i&&(this.activeDescendant=i.id,this.currentFocused=i.uniquePrivateKey)},onNavigate:function(e,t){var n;switch(t){case i.Previous:n=-1,this.onFocus(e,n);break;case i.Next:n=1,this.onFocus(e,n);break;case i.Toggle:this.onSelect(e)}},nextTick:function(e){this.nextTickId=window.setTimeout((function(){return e()}))},handleWrapperFocus:function(){clearTimeout(this.nextTickId),this.wrapperFocused||(this.wrapperFocused=!0)},handleWrapperBlur:function(){this.wrapperFocused=!1},handleKeyDown:function(e){var t=this._element&&"rtl"===getComputedStyle(this._element).direction||!1;if(e.target===e.currentTarget){var n=void 0;switch(e.keyCode){case a.Keys.left:n=t?i.Next:i.Previous;break;case a.Keys.up:n=i.Previous;break;case a.Keys.right:n=t?i.Previous:i.Next;break;case a.Keys.down:n=i.Next;break;case a.Keys.space:case a.Keys.enter:n=i.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}},h=p},function(e,t,n){"use strict";var i=n(148);n.d(t,"ProgressBar",(function(){return i.a}));n(99),n(100),n(101),n(102)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=t.EditorToolsSettings=t.Editor=t.ProseMirror=void 0;var i=n(156);Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return i.Editor}});var r=n(16);Object.defineProperty(t,"EditorToolsSettings",{enumerable:!0,get:function(){return r.EditorToolsSettings}});var o=n(52);Object.defineProperty(t,"EditorUtils",{enumerable:!0,get:function(){return o.EditorUtils}});var s=n(6);t.ProseMirror={Selection:s.Selection,SelectionRange:s.SelectionRange,TextSelection:s.TextSelection,NodeSelection:s.NodeSelection,AllSelection:s.AllSelection,EditorState:s.EditorState,Plugin:s.Plugin,PluginKey:s.PluginKey,Transaction:s.Transaction,Decoration:s.Decoration,DecorationSet:s.DecorationSet,EditorView:s.EditorView,Node:s.Node,ResolvedPos:s.ResolvedPos,NodeRange:s.NodeRange,Fragment:s.Fragment,Slice:s.Slice,ReplaceError:s.ReplaceError,Mark:s.Mark,Schema:s.Schema,NodeType:s.NodeType,MarkType:s.MarkType,ContentMatch:s.ContentMatch,DOMParser:s.DOMParser,DOMSerializer:s.DOMSerializer,Transform:s.Transform,Step:s.Step,StepResult:s.StepResult,joinPoint:s.joinPoint,canJoin:s.canJoin,canSplit:s.canSplit,insertPoint:s.insertPoint,dropPoint:s.dropPoint,liftTarget:s.liftTarget,findWrapping:s.findWrapping,StepMap:s.StepMap,MapResult:s.MapResult,Mapping:s.Mapping,AddMarkStep:s.AddMarkStep,RemoveMarkStep:s.RemoveMarkStep,ReplaceStep:s.ReplaceStep,ReplaceAroundStep:s.ReplaceAroundStep,replaceStep:s.replaceStep,deleteSelection:s.deleteSelection,joinBackward:s.joinBackward,selectNodeBackward:s.selectNodeBackward,joinForward:s.joinForward,selectNodeForward:s.selectNodeForward,joinUp:s.joinUp,joinDown:s.joinDown,lift:s.lift,newlineInCode:s.newlineInCode,exitCode:s.exitCode,createParagraphNear:s.createParagraphNear,liftEmptyBlock:s.liftEmptyBlock,splitBlock:s.splitBlock,splitBlockKeepMarks:s.splitBlockKeepMarks,selectParentNode:s.selectParentNode,selectAll:s.selectAll,wrapIn:s.wrapIn,setBlockType:s.setBlockType,toggleMark:s.toggleMark,autoJoin:s.autoJoin,chainCommands:s.chainCommands,pcBaseKeymap:s.pcBaseKeymap,macBaseKeymap:s.macBaseKeymap,baseKeymap:s.baseKeymap,history:s.history,undo:s.undo,redo:s.redo,undoDepth:s.undoDepth,redoDepth:s.redoDepth,InputRule:s.InputRule,inputRules:s.inputRules,undoInputRule:s.undoInputRule,emDash:s.emDash,ellipsis:s.ellipsis,openDoubleQuote:s.openDoubleQuote,closeDoubleQuote:s.closeDoubleQuote,openSingleQuote:s.openSingleQuote,closeSingleQuote:s.closeSingleQuote,smartQuotes:s.smartQuotes,wrappingInputRule:s.wrappingInputRule,textblockTypeInputRule:s.textblockTypeInputRule,keymap:s.keymap,keydownHandler:s.keydownHandler,orderedList:s.orderedList,bulletList:s.bulletList,listItem:s.listItem,addListNodes:s.addListNodes,wrapInList:s.wrapInList,splitListItem:s.splitListItem,liftListItem:s.liftListItem,sinkListItem:s.sinkListItem,dropCursor:s.dropCursor,gapCursor:s.gapCursor,tableEditing:s.tableEditing,fixTables:s.fixTables,fixTablesKey:s.fixTablesKey,cellAround:s.cellAround,isInTable:s.isInTable,selectionCell:s.selectionCell,moveCellForward:s.moveCellForward,inSameTable:s.inSameTable,findCell:s.findCell,colCount:s.colCount,nextCell:s.nextCell,removeColSpan:s.removeColSpan,addColSpan:s.addColSpan,columnIsHeader:s.columnIsHeader,tableNodes:s.tableNodes,tableNodeTypes:s.tableNodeTypes,CellSelection:s.CellSelection,TableMap:s.TableMap,tableEditingKey:s.tableEditingKey,columnResizing:s.columnResizing,columnResizingPluginKey:s.columnResizingPluginKey,updateColumnsOnResize:s.updateColumnsOnResize,selectedRect:s.selectedRect,addColumn:s.addColumn,addColumnBefore:s.addColumnBefore,addColumnAfter:s.addColumnAfter,deleteColumn:s.deleteColumn,rowIsHeader:s.rowIsHeader,addRow:s.addRow,addRowBefore:s.addRowBefore,addRowAfter:s.addRowAfter,deleteRow:s.deleteRow,mergeCells:s.mergeCells,splitCell:s.splitCell,splitCellWithType:s.splitCellWithType,setCellAttr:s.setCellAttr,toggleHeader:s.toggleHeader,toggleHeaderRow:s.toggleHeaderRow,toggleHeaderColumn:s.toggleHeaderColumn,toggleHeaderCell:s.toggleHeaderCell,goToNextCell:s.goToNextCell,deleteTable:s.deleteTable};var a=n(60);Object.defineProperty(t,"Align",{enumerable:!0,get:function(){return a.Align}});var l=n(61);Object.defineProperty(t,"Indent",{enumerable:!0,get:function(){return l.Indent}});var u=n(62);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return u.List}});var d=n(63);Object.defineProperty(t,"Outdent",{enumerable:!0,get:function(){return d.Outdent}});var c=n(64);Object.defineProperty(t,"InlineFormat",{enumerable:!0,get:function(){return c.InlineFormat}});var p=n(65);Object.defineProperty(t,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=n(66);Object.defineProperty(t,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=n(67);Object.defineProperty(t,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=n(68);Object.defineProperty(t,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=n(69);Object.defineProperty(t,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=n(70);Object.defineProperty(t,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var b=n(71);Object.defineProperty(t,"SelectAll",{enumerable:!0,get:function(){return b.SelectAll}});var y=n(72);Object.defineProperty(t,"InsertImage",{enumerable:!0,get:function(){return y.InsertImage}});var k=n(73);Object.defineProperty(t,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=n(74);Object.defineProperty(t,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=n(75);Object.defineProperty(t,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var C=n(76);Object.defineProperty(t,"Print",{enumerable:!0,get:function(){return C.Print}});var x=n(77);Object.defineProperty(t,"FindAndReplace",{enumerable:!0,get:function(){return x.FindAndReplace}});var $=n(117);Object.defineProperty(t,"ApplyColor",{enumerable:!0,get:function(){return $.ApplyColor}})},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var l=s(n(1)),u=l.h,d=l.markRaw,c=n(5),p=n(0),h=n(6),f=n(58),v=n(157),m=n(16),g=n(59),b=n(52),y=n(53),k=n(159),w=m.EditorToolsSettings.link,S=m.EditorToolsSettings.bold,C=m.EditorToolsSettings.italic,x=m.EditorToolsSettings.underline,$=n(160),O=n(161),I=n(60),T=n(61),D=n(62),V=n(63),M=n(64),N=n(65),R=n(66),B=n(67),P=n(68),E=n(69),A=n(70),j=n(71),L=n(72),F=n(73),z=n(74),K=n(75),_=n(76),H=n(77),W=n(117);t.allTools={Bold:{comp:M.InlineFormat,props:m.EditorToolsSettings.bold},Italic:{comp:M.InlineFormat,props:m.EditorToolsSettings.italic},Underline:{comp:M.InlineFormat,props:m.EditorToolsSettings.underline},Strikethrough:{comp:M.InlineFormat,props:m.EditorToolsSettings.strikethrough},Subscript:{comp:M.InlineFormat,props:m.EditorToolsSettings.subscript},Superscript:{comp:M.InlineFormat,props:m.EditorToolsSettings.superscript},AlignLeft:{comp:I.Align,props:m.EditorToolsSettings.alignLeft},AlignCenter:{comp:I.Align,props:m.EditorToolsSettings.alignCenter},AlignRight:{comp:I.Align,props:m.EditorToolsSettings.alignRight},AlignJustify:{comp:I.Align,props:m.EditorToolsSettings.alignJustify},Indent:{comp:T.Indent,props:m.EditorToolsSettings.indent},Outdent:{comp:V.Outdent,props:m.EditorToolsSettings.outdent},OrderedList:{comp:D.List,props:m.EditorToolsSettings.orderedList},UnorderedList:{comp:D.List,props:m.EditorToolsSettings.bulletList},FontSize:{comp:N.FontName,props:m.EditorToolsSettings.fontSize},FontName:{comp:N.FontName,props:m.EditorToolsSettings.fontName},FormatBlock:{comp:R.FormatBlock,props:m.EditorToolsSettings.formatBlock},Undo:{comp:B.ProseMirror,props:m.EditorToolsSettings.undo},Redo:{comp:B.ProseMirror,props:m.EditorToolsSettings.redo},Link:{comp:P.LinkTool,props:m.EditorToolsSettings.link},Unlink:{comp:E.Unlink,props:m.EditorToolsSettings.unlink},InsertImage:{comp:L.InsertImage,props:m.EditorToolsSettings.image},ViewHtml:{comp:z.ViewHtml,props:m.EditorToolsSettings.viewHtml},CleanFormatting:{comp:A.CleanFormatting,props:m.EditorToolsSettings.cleanFormatting},SelectAll:{comp:j.SelectAll,props:m.EditorToolsSettings.selectAll},InsertTable:{comp:F.InsertTable,props:m.EditorToolsSettings.insertTable},MergeCells:{comp:B.ProseMirror,props:m.EditorToolsSettings.mergeCells},SplitCell:{comp:B.ProseMirror,props:m.EditorToolsSettings.splitCell},AddRowBefore:{comp:B.ProseMirror,props:m.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:B.ProseMirror,props:m.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:B.ProseMirror,props:m.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:B.ProseMirror,props:m.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteRow},DeleteColumn:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteColumn},DeleteTable:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteTable},Print:{comp:_.Print,props:m.EditorToolsSettings.print},Pdf:{comp:K.Pdf,props:m.EditorToolsSettings.pdf},InsertFile:{comp:P.LinkTool,props:m.EditorToolsSettings.insertFile},FindAndReplace:{comp:H.FindAndReplace,props:m.EditorToolsSettings.findAndReplace},ForeColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.foreColor},BackColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.backColor}};var U={name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function},data:function(){return{updateGuid:p.guid(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,p.validatePackage(O.packageMetadata)},mounted:function(){this.iframe=this.v3?this.iframeRef:this.$refs.iframe,this.contentElement=this.v3?this.contentElementRef:this.$refs.contentElement,this.iframe&&$.firefox||this.initialize()},watch:{value:function(e,t){this._prevValue=t}},updated:function(){var e=this.$props.value,t=this.getView();void 0!==e&&t&&(k.updateEditorValue(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:u?void 0:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},unmounted:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},computed:{computedValue:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var n=this,r=u||e,o=100,s=this.$props,a=s.tools,l=void 0===a?[]:a,h=s.defaultEditMode,f=void 0===h?"iframe":h,v=s.preserveWhitespace,m=void 0===v?"full":v,b=s.style,k=this.getView();this.view&&(y.editorPropsKey.getState(this.view.state).preserveWhitespace=m);var S=this.$props.contentStyle;void 0===S&&void 0===(b||{}).height&&(S={height:"300px"});var C=function(e,n){var s=t.allTools[e]||e;if(t.allTools[e]){o++;var a=i({view:k,dir:this.$props.dir,key:o,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return r(this.v3?d(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return r(c.ToolbarSeparator,{key:o});var l=p.templateRendering.call(this,s.render,p.getListeners.call(this));return p.getTemplate.call(this,{h:r,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:k,dir:this.$props.dir,updateGuid:this.updateGuid,key:o,settings:s.props}})},x=function(e,t){return e.map((function(e){return C.call(this,e,t)}),this)},$=l.map((function(e,t){var n=this;return Array.isArray(e)?r(c.ButtonGroup,{key:t},this.v3?function(){return[x.call(n,e,t)]}:[x.call(n,e,t)]):C.call(this,e,t)}),this);return r("div",{class:p.classNames("k-widget k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[$.length>0&&r(c.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[$]}:[$]),"iframe"===f?r("div",{class:"k-editor-content"},[r("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:this.v3?function(e){n.iframeRef=e}:"iframe",frameBorder:"0",attrs:this.v3?void 0:{frameBorder:"0"},style:S,class:"k-iframe"})]):r("div",{style:S,class:"k-editor-content"},[r("div",{ref:this.v3?function(e){n.contentElementRef=e}:"contentElement"})]),function(){return this.linkDialog&&r(g.InsertLinkDialog,{view:k,attrs:this.v3?void 0:{view:k,settings:w,dir:this.$props.dir},settings:w,dir:this.$props.dir,onClose:this.handleClose,on:this.v3?void 0:{close:this.handleClose}})}.call(this)])},methods:{getView:function(){return this.v3?this.view:this._view},getHTML:function(){var e=this.getView();return e?b.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&b.EditorUtils.setHtml(t,e)},focus:function(){this.getView()&&this.getView().focus()},updateTools:function(e){this.v3?this.view=e:this._view=e,this.v3&&(this.updateGuid=p.guid())},iframeLoad:function(){$.firefox&&this.initialize()},initialize:function(){var e=this,t=this.iframe&&this.iframe.contentWindow;if(t){var n=t.document;[v.defaultStyle,v.tablesStyles,"rtl"===this.$props.dir?v.rtlStyles:void 0].forEach((function(e){if(e){var t=n.createElement("style");t.appendChild(n.createTextNode(e)),n.head.appendChild(t)}}));var r=n.createElement("meta");r.setAttribute("charset","utf-8"),n.head.appendChild(r),this.contentElement=n.createElement("div"),n.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content")}var o=this.contentElement;if(o){var s=this.$props.preserveWhitespace,l=void 0===s?"full":s,u=[new h.Plugin({view:function(){return{update:e.updateTools}},key:new h.PluginKey("toolbar-tools-update-plugin")}),new h.Plugin({filterTransaction:this.filterTransaction,key:new h.PluginKey("onExecute-event-plugin")}),new h.Plugin({key:y.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),h.spacesFix(),h.history(),h.dropCursor(),h.gapCursor(),h.tableEditing()],c=i(i({},b.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:S,italic:C,underline:x}})),{"Mod-k":function(){var t=e.$data.linkDialog,n=e.getView();if(n){var i=n.state,r=i.selection.empty,o=h.getMark(i,i.schema.marks[w.mark]);t||r&&!o||(e.linkDialog=!0)}return!t}}),p=this.$props,m=p.defaultContent,g=void 0===m?"":m,k=p.value,$=k&&"string"!=typeof k?k:b.EditorUtils.createDocument(new h.Schema({nodes:f.nodes,marks:f.marks}),k||g,{preserveWhitespace:l}),O={state:h.EditorState.create({plugins:a(u,[h.keymap(c),h.keymap(h.baseKeymap)]),doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},I={plugins:u,shortcuts:c,target:this,viewProps:O,dom:o};this.$emit("loaded",I);var T=this.$props.extendView&&this.$props.extendView(I)||new h.EditorView({mount:o},O);this.v3?this.view=d(T):this._view=T}},filterTransaction:function(e,t){var n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml:function(e){if(this.$props.pasteHtml&&this.pasteEvent){var t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction:function(e){var t=e.docChanged;if(t){this.trOnChange=e;var n=e.doc,i=e.doc.type.schema,r=this,o={target:r,value:n,get html(){return r.htmlOnChange=b.EditorUtils.getHtml({doc:n,schema:i}),r.htmlOnChange},transaction:e,schema:i};this.$emit("change",o)}!this.getView()||void 0!==this.$props.value&&t||this.getView().updateState(this.getView().state.apply(e))},onFocus:function(e,t){var n={target:this,event:t};return this.$emit("focus",n),!1},onBlur:function(e,t){var n={target:this,event:t};return this.$emit("blur",n),!1},onPaste:function(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose:function(){this.linkDialog=!1}}};t.EditorVue2=U;var q=U;t.Editor=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var r=n(6),o=n(16),s=o.EditorToolsSettings.bold,a=o.EditorToolsSettings.underline,l=o.EditorToolsSettings.italic,u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=r.chainCommands(r.exitCode,(function(t,n){var i=e&&e.types&&e.types.hardBreak||"hard_break",r=t.schema.nodes[i];return n&&n(t.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",o=e&&e.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return r.toggleInlineFormat(o.bold||s)(e,t)},"Mod-i":function(e,t){return r.toggleInlineFormat(o.italic||l)(e,t)},"Mod-u":function(e,t){return r.toggleInlineFormat(o.underline||a)(e,t)},"Mod-z":r.undo,"Shift-Mod-z":r.redo},i({},u?{}:{"Mod-y":r.redo})),{Backspace:r.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},u?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return r.splitListItem(e.schema.nodes[n])(e,t)},Tab:r.goToNextCell(1),"Shift-Tab":r.goToNextCell(-1)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(6),r=n(52),o=function(e,t){var n=t.tr||e.state.tr.setSelection(new i.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||r.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML");e.updateState(e.state.apply(n))};t.updateEditorValue=function(e,t,n,i,r){"string"==typeof t?i&&t===r?o(e,{tr:i}):t!==n&&o(e,{html:t}):i&&t.eq(i.doc)?o(e,{tr:i}):e.state.doc.eq(t)||o(e,{doc:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213382,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=this.v3?this.srcRef:this.$refs.src,this.altText=this.v3?this.altTextRef:this.$refs.altText,this.title=this.v3?this.titleRef:this.$refs.title,this.width=this.v3?this.widthRef:this.$refs.width,this.height=this.v3?this.heightRef:this.$refs.height,this.src&&this.src.focus()},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=p.messages,v=f.insertImageDialogTitle,m=f.insertImageAddress,g=f.insertImageTitle,b=f.insertImageAltText,y=f.insertImageWidth,k=f.insertImageHeight,w=f.insertImageCancel,S=f.insertImageInsert,C=d.provideLocalizationService(this),x=o&&o.state,$={};x&&x.selection instanceof u.NodeSelection&&x.selection.node.type===x.schema.nodes[p.node]&&($=x.selection.node.attrs);var O=i("div",{class:"k-edit-form-container"},[i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[C.toLanguageString(m,c.messages[m])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-url"},class:"k-input-inner",id:"k-editor-image-url",value:this.v3?$.src:null,domProps:this.v3?void 0:{value:$.src},ref:this.v3?function(e){n.srcRef=e}:"src"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[C.toLanguageString(b,c.messages[b])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-alt"},class:"k-input-inner",id:"k-editor-image-alt",value:this.v3?$.alt:null,domProps:this.v3?void 0:{value:$.alt},ref:this.v3?function(e){n.altTextRef=e}:"altText"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[C.toLanguageString(g,c.messages[g])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-title"},class:"k-input-inner",id:"k-editor-image-title",value:this.v3?$.title:null,domProps:this.v3?void 0:{value:$.title},ref:this.v3?function(e){n.titleRef=e}:"title"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[C.toLanguageString(y,c.messages[y])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-width"},class:"k-input-inner",id:"k-editor-image-width",value:this.v3?$.width:null,domProps:this.v3?void 0:{value:$.width},ref:this.v3?function(e){n.widthRef=e}:"width"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[C.toLanguageString(k,c.messages[k])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-height"},class:"k-input-inner",id:"k-editor-image-height",value:this.v3?$.height:null,domProps:this.v3?void 0:{value:$.height},ref:this.v3?function(e){n.heightRef=e}:"height"})])])]),I=[i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:h},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:h,key:"cancel"},this.v3?function(){return[C.toLanguageString(w,c.messages[w])]}:[C.toLanguageString(w,c.messages[w])]),i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:h,key:"insert"},this.v3?function(){return[C.toLanguageString(S,c.messages[S])]}:[C.toLanguageString(S,c.messages[S])])];return i(a.Dialog,{title:C.toLanguageString(v,c.messages[v]),attrs:this.v3?void 0:{title:C.toLanguageString(v,c.messages[v]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[O,i(a.DialogActionsBar,t.v3?function(){return[I]}:[I])]}:[O,i(a.DialogActionsBar,t.v3?function(){return[I]}:[I])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props,t=e.view,n=e.settings,i=t.state.schema.nodes[n.node],r={src:this.src?this.src.value:null,title:this.title?this.title.value:null,alt:this.altText?this.altText.value:null,width:this.width?this.width.value:null,height:this.height?this.height.value:null},o=Object.keys(r).filter((function(e){return null!==r[e]&&""!==r[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=r[t],n))}),{}),s=i.createAndFill(o);u.insertNode(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",o))})),this.onClose()}}};t.InsertImageDialogVue2=p;var h=p;t.InsertImageDialog=h},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var s=o(n(1)).h,a=n(12),l=n(164),u={name:"KendoInsertTablePopup",props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String},data:function(){return{pointerdown:!1}},updated:function(){},mounted:function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},destroyed:s?void 0:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},unmounted:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,r=i.show,o=i.anchor,u=i.dir,d=i.rows,c=i.columns,p="rtl"===u?"right":"left";return n(a.Popup,{anchor:o,attrs:this.v3?void 0:{anchor:o,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:r},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:r,style:"rtl"===u?{direction:"rtl"}:void 0},this.v3?function(){return[n(l.PopupGrid,{rows:d,attrs:t.v3?void 0:{rows:d,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})]}:[n(l.PopupGrid,{rows:d,attrs:t.v3?void 0:{rows:d,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})])},methods:{onTableInsert:function(e,t){this.$emit("tableinsert",e,t)},onWindowDown:function(e){var t=this.$props.anchor;(!t||t!==e.target&&t.firstElementChild!==e.target)&&(this.$props.show&&!this.pointerdown&&this.$props.onClose(),this.pointerdown=!1)},onPointerDown:function(){this.pointerdown=!0}}};t.InsertTablePopupVue2=u;var d=u;t.InsertTablePopup=d},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var s=o(n(1)).h,a=n(30),l={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=[],r=this.$props.columns*this.$props.rows,o=this.$data,l=o.row,u=o.col,d=this.$props.createTableMessage;u>-1&&(d=a.formatString(this.$props.createTableHintMessage,l+1,u+1));for(var c=function(e,t,i){var r=this,o=Math.floor(e/this.$props.columns),s=e%this.$props.columns;return n("span",{class:"k-ct-cell k-state-disabled"+(s<=i&&o<=t?" k-state-selected":""),onMouseenter:function(){return r.cellMouseEnter({row:o,col:s})},on:this.v3?void 0:{mouseenter:function(){return r.cellMouseEnter({row:o,col:s})},click:function(){return r.onCellClick(o,s)}},onClick:function(){return r.onCellClick(o,s)},key:e})},p=0;p<r;p++)i.push(c.call(this,p,l,u));var h=[n("div",{onMouseleave:function(){return t.handleMouseLeave()},on:this.v3?void 0:{mouseleave:function(){return t.handleMouseLeave()},pointerdown:this.onDown,mousedown:this.onDown},key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onDown,onMousedown:this.onDown},[i]),n("div",{class:"k-status",key:"status",onPointerdown:this.onDown,on:this.v3?void 0:{pointerdown:this.onDown,mousedown:this.onDown},onMousedown:this.onDown},[d])];return n("span",[h])},methods:{cellMouseEnter:function(e){var t=e.row,n=e.col;this.row=t,this.col=n},handleMouseLeave:function(){this.row=-1,this.col=-1},onCellClick:function(e,t){this.$emit("cellclick",e,t)},onDown:function(e){this.$emit("down",e)}}};t.PopupGridVue2=l;var u=l;t.PopupGrid=u},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p=n(53),h={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=this.v3?this.htmlAreaRef:this.$refs.htmlArea},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=d.provideLocalizationService(this),v=p.messages,m=v.viewHtmlDialogTitle,g=v.viewHtmlCancel,b=v.viewHtmlUpdate,y=i("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:this.v3?function(e){n.htmlAreaRef=e}:"htmlArea",value:this.v3?u.indentHtml(u.getHtml(o.state)):null,domProps:this.v3?void 0:{value:u.indentHtml(u.getHtml(o.state))}}),k=[i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:h},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:h,key:"cancel"},this.v3?function(){return[f.toLanguageString(g,c.messages[g])]}:[f.toLanguageString(g,c.messages[g])]),i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:h,key:"update"},this.v3?function(){return[f.toLanguageString(b,c.messages[b])]}:[f.toLanguageString(b,c.messages[b])])];return i(a.Dialog,{title:f.toLanguageString(m,c.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,c.messages[m]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[y,i(a.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[y,i(a.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=u.trimWhitespace(this.htmlArea?this.htmlArea.value:""),r=p.editorPropsKey.getState(t.state).preserveWhitespace;u.setHtml(i,n.commandName,{preserveWhitespace:r})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=h;var f=h;t.ViewHtmlDialog=f},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var s=o(n(1)).h,a=n(5),l=n(31),u=n(167),d=n(4),c=n(8),p=n(16),h=n(30),f=n(6),v=p.EditorToolsSettings.findAndReplace,m={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return v}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:f.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted:function(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){var e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated:function(){var e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){var i=n.state,r=i.tr,o=[];e.forEach((function(e){o.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),r.setMeta(f.textHighlightKey,o),r.setSelection(t||f.TextSelection.create(i.doc,i.selection.from)),n.dispatch(r)}},destroyed:s?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=d.provideLocalizationService(this),r=this.settings.messages,o=r.findReplaceDialogTitle,p=r.findReplaceTabFind,h=r.findReplaceTabReplace,f=r.findReplaceFindWhat,v=r.findReplaceReplaceWith,m=r.findReplaceReplace,g=r.findReplaceReplaceAll,b=r.findReplaceMatchCase,y=r.findReplaceMatchWord,k=r.findReplaceMatchCyclic,w=r.findReplaceUseRegExp,S=r.findReplacePrevMatch,C=r.findReplaceNextMatch,x=r.findReplaceMatches,$=this,O=$.matchCase,I=$.matchWord,T=$.matchCyclic,D=$.useRegExp,V=$.searchText,M=$.replaceText,N=$.nextMatch,R=n("div",{class:"k-search-options"},[n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-case"},id:"match-case",checked:this.v3?O:null,domProps:this.v3?void 0:{checked:O},onChange:this.onMatchCaseChecked,on:this.v3?void 0:{change:this.onMatchCaseChecked}}),n("label",{for:"match-case",attrs:this.v3?void 0:{for:"match-case"},class:"k-checkbox-label"},[i.toLanguageString(b,c.messages[b])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-whole"},id:"match-whole",checked:this.v3?I:null,domProps:this.v3?void 0:{checked:I},onChange:this.onMatchWordChecked,on:this.v3?void 0:{change:this.onMatchWordChecked}}),n("label",{for:"match-whole",attrs:this.v3?void 0:{for:"match-whole"},class:"k-checkbox-label"},[i.toLanguageString(y,c.messages[y])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-cyclic"},id:"match-cyclic",checked:this.v3?T:null,domProps:this.v3?void 0:{checked:T},onChange:this.onMatchCyclicChecked,on:this.v3?void 0:{change:this.onMatchCyclicChecked}}),n("label",{for:"match-cyclic",attrs:this.v3?void 0:{for:"match-cyclic"},class:"k-checkbox-label"},[i.toLanguageString(k,c.messages[k])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"regular-expression"},id:"regular-expression",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},onChange:this.onUseRegExpChecked,on:this.v3?void 0:{change:this.onUseRegExpChecked}}),n("label",{for:"regular-expression",attrs:this.v3?void 0:{for:"regular-expression"},class:"k-checkbox-label"},[i.toLanguageString(w,c.messages[w])])])]),B=function(e){var t="rtl"===this.$props.dir,r=n(a.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindPrev,on:this.v3?void 0:{click:this.onFindPrev}},this.v3?function(){return[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,c.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,c.messages[S])]),o=n(a.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindNext,on:this.v3?void 0:{click:this.onFindNext}},this.v3?function(){return[i.toLanguageString(C,c.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]}:[i.toLanguageString(C,c.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[r,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(x,c.messages[x]))]),o])},P=function(e){return n("div",{class:"k-edit-label"},[n("label",{ref:e,for:e,attrs:this.v3?void 0:{for:e}},[i.toLanguageString(f,c.messages[f])])])},E=function(e){return n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:e,attrs:this.v3?void 0:{id:e,type:"text"},ref:e,type:"text",class:"k-input-inner",value:this.v3?V:null,domProps:this.v3?void 0:{value:V},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},A=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,c.messages[v])])]),j=n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:"replaceWith",attrs:this.v3?void 0:{id:"replaceWith",type:"text"},class:"k-input-inner",type:"text",value:this.v3?M:null,domProps:this.v3?void 0:{value:M},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(l.Window,{title:i.toLanguageString(o,c.messages[o]),attrs:this.v3?void 0:{title:i.toLanguageString(o,c.messages[o]),windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},this.v3?function(){return[n(u.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])]}:[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])])]}:[n(u.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])]}:[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])])])},methods:{onTabSelect:function(e){this.selectedTab=e.selected},onClose:function(){var e=this.$props.view,t=e.state,n=t.tr.setSelection(f.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage:function(e){var t=this.matches,n=this.nextMatch,i=0,r=0;if(t&&n){var o=t.findIndex((function(e){return e.eq(n)}));i=-1===o?t.length:o+1,r=t.length}return h.formatString(e,i,r)},onFindNext:function(){this.onFind()},onFindPrev:function(){this.onFind(!0)},onFind:function(e){void 0===e&&(e=!1);var t=this.$props.view,n=this.$data,i=n.searchText,r=n.matchCase,o=n.matchCyclic,s={text:i,matchWord:n.matchWord,matchCase:r,useRegExp:n.useRegExp,backward:e,matchCyclic:o},a=f.find(t.state,s);if(a){var l=t.state.tr.setSelection(a);l.scrollIntoView(),t.updateState(t.state.apply(l)),this._prevMatch=this.nextMatch,this.nextMatch=a,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace:function(){var e=this.$props.view,t=e.state.selection,n=this.$data.replaceText;if(!t.empty){var i=t.from,r=i+n.length,o=f.replace(t,n,e.state.tr);o.setSelection(f.TextSelection.create(o.doc,i,r)),o.scrollIntoView(),e.dispatch(o),this.setNextState({})}},onReplaceAll:function(){var e=this.$props.view,t=this.$data,n=t.searchText,i=t.replaceText,r=t.matchCase,o={text:n,matchWord:t.matchWord,matchCase:r,useRegExp:t.useRegExp};e.dispatch(f.replaceAll(e.state,i,o)),this.setNextState({})},onKeyDown:function(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked:function(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked:function(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked:function(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked:function(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange:function(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange:function(e){this.replaceText=e.target.value,this.setNextState()},setNextState:function(){var e=this.$props.view;if(this.searchText){var t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection,i=f.findAll(e.state.doc,t),r=!this.searchText&&i[0]||i.find((function(e){return e.from>=n.from}))||this.matchCyclic&&i[0]||void 0;this._prevMatch=this.nextMatch,this.matches=i,this.nextMatch=r}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0}}};t.FindAndReplaceDialogVue2=m;var g=m;t.FindAndReplaceDialog=g},function(e,t,n){"use strict";n.r(t);var i=n(78);n.d(t,"TabStrip",(function(){return i.a})),n.d(t,"TabStripVue2",(function(){return i.b}));var r=n(40);n.d(t,"TabStripContent",(function(){return r.a})),n.d(t,"TabStripContentVue2",(function(){return r.b}));var o=n(28);n.d(t,"TabStripNavigation",(function(){return o.a})),n.d(t,"TabStripNavigationVue2",(function(){return o.b}));var s=n(32);n.d(t,"TabStripNavigationItem",(function(){return s.a})),n.d(t,"TabStripNavigationItemVue2",(function(){return s.b}));var a=n(79);n.d(t,"TabStripTab",(function(){return a.a})),n.d(t,"TabStripTabVue2",(function(){return a.b}));var l=n(80);n.d(t,"Card",(function(){return l.a})),n.d(t,"CardVue2",(function(){return l.b}));var u=n(81);n.d(t,"CardHeader",(function(){return u.a})),n.d(t,"CardHeaderVue2",(function(){return u.b}));var d=n(82);n.d(t,"CardTitle",(function(){return d.a})),n.d(t,"CardTitleVue2",(function(){return d.b}));var c=n(83);n.d(t,"CardBody",(function(){return c.a})),n.d(t,"CardBodyVue2",(function(){return c.b}));var p=n(84);n.d(t,"CardActions",(function(){return p.a})),n.d(t,"CardActionsVue2",(function(){return p.b}));var h=n(85);n.d(t,"CardImage",(function(){return h.a})),n.d(t,"CardImageVue2",(function(){return h.b}));var f=n(86);n.d(t,"CardSubtitle",(function(){return f.a})),n.d(t,"CardSubtitleVue2",(function(){return f.b}));var v=n(87);n.d(t,"CardFooter",(function(){return v.a})),n.d(t,"CardFooterVue2",(function(){return v.b}));var m=n(88);n.d(t,"Avatar",(function(){return m.a})),n.d(t,"AvatarVue2",(function(){return m.b}));var g=n(89);n.d(t,"Drawer",(function(){return g.a})),n.d(t,"DrawerVue2",(function(){return g.b}));var b=n(90);for(var y in b)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return b[e]}))}(y);var k=n(33);n.d(t,"DrawerNavigation",(function(){return k.a})),n.d(t,"DrawerNavigationVue2",(function(){return k.b}));var w=n(91);for(var y in w)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return w[e]}))}(y);var S=n(92);n.d(t,"DrawerContent",(function(){return S.a})),n.d(t,"DrawerContentVue2",(function(){return S.b}));var C=n(93);for(var y in C)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return C[e]}))}(y);var x=n(34);n.d(t,"DrawerItem",(function(){return x.a})),n.d(t,"DrawerItemVue2",(function(){return x.b}));var $=n(94);for(var y in $)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(y);var O=n(95);for(var y in O)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return O[e]}))}(y);var I=n(96);for(var y in I)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return I[e]}))}(y);var T=n(97);for(var y in T)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return T[e]}))}(y);var D=n(98);n.d(t,"Stepper",(function(){return D.a})),n.d(t,"StepperVue2",(function(){return D.b}));var V=n(103);for(var y in V)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(y);var M=n(104);for(var y in M)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return M[e]}))}(y);var N=n(105);for(var y in N)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return N[e]}))}(y);var R=n(106);for(var y in R)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(y);var B=n(41);n.d(t,"Step",(function(){return B.a})),n.d(t,"StepVue2",(function(){return B.b}));var P=n(107);for(var y in P)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return P[e]}))}(y);var E=n(108);for(var y in E)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return E[e]}))}(y);var A=n(109);for(var y in A)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(y);var j=n(110);for(var y in j)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(y);var L=n(146);n.d(t,"Menu",(function(){return L.a})),n.d(t,"MenuVue2",(function(){return L.b}));var F=n(35);n.d(t,"MenuItemLink",(function(){return F.a})),n.d(t,"MenuItemLinkVue2",(function(){return F.b}));var z=n(36);n.d(t,"downArrowClass",(function(){return z.c})),n.d(t,"rightArrowClass",(function(){return z.e})),n.d(t,"leftArrowClass",(function(){return z.d})),n.d(t,"MenuItemArrow",(function(){return z.a})),n.d(t,"MenuItemArrowVue2",(function(){return z.b}));var K=n(111);for(var y in K)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return K[e]}))}(y);var _=n(112);for(var y in _)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return _[e]}))}(y);var H=n(152);n.d(t,"Splitter",(function(){return H.a})),n.d(t,"SplitterVue2",(function(){return H.b}));var W=n(37);n.d(t,"SplitterPane",(function(){return W.a})),n.d(t,"SplitterPaneVue2",(function(){return W.b}));var U=n(153);n.d(t,"PanelBar",(function(){return U.a})),n.d(t,"PanelBarVue2",(function(){return U.b}));var q=n(42);n.d(t,"PanelBarItem",(function(){return q.a})),n.d(t,"PanelBarItemVue2",(function(){return q.b}));var G=n(18);n.d(t,"renderChildren",(function(){return G.h})),n.d(t,"getFirstId",(function(){return G.d})),n.d(t,"getInitialState",(function(){return G.e})),n.d(t,"flatVisibleItems",(function(){return G.c})),n.d(t,"flatChildren",(function(){return G.a})),n.d(t,"flatVisibleChildren",(function(){return G.b})),n.d(t,"isPresent",(function(){return G.g})),n.d(t,"isArrayEqual",(function(){return G.f}));var J=n(113);for(var y in J)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return J[e]}))}(y);var X=n(114);for(var y in X)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return X[e]}))}(y);var Y=n(115);for(var y in Y)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Y[e]}))}(y);var Z=n(116);for(var y in Z)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Z[e]}))}(y)},function(e,t,n){"use strict";n.r(t);var i=n(21);n.d(t,"ColorPalette",(function(){return i.a}));var r=n(149);n.d(t,"ColorPicker",(function(){return r.a})),n.d(t,"ColorPickerVue2",(function(){return r.b}));var o=n(118);for(var s in o)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(119);for(var s in a)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var l=n(120);for(var s in l)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(s);var u=n(121);for(var s in u)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(s);var d=n(122);for(var s in d)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(s);var c=n(123);for(var s in c)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var p=n(124);for(var s in p)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return p[e]}))}(s);var h=n(125);for(var s in h)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return h[e]}))}(s);var f=n(54);n.d(t,"Switch",(function(){return f.a})),n.d(t,"SwitchVue2",(function(){return f.b}));var v=n(126);n.d(t,"InputSeparator",(function(){return v.a})),n.d(t,"InputSeparatorVue2",(function(){return v.b}));var m=n(145);n.d(t,"Input",(function(){return m.a})),n.d(t,"InputVue2",(function(){return m.b}));var g=n(150);n.d(t,"NumericTextBox",(function(){return g.a})),n.d(t,"NumericTextBoxVue2",(function(){return g.b}));var b=n(147);n.d(t,"MaskedTextBox",(function(){return b.a})),n.d(t,"MaskedTextBoxVue2",(function(){return b.b}));var y=n(127);for(var s in y)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return y[e]}))}(s);var k=n(128);n.d(t,"Slider",(function(){return k.a})),n.d(t,"SliderVue2",(function(){return k.b}));var w=n(38);n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return w.a})),n.d(t,"SliderLabel",(function(){return w.b})),n.d(t,"SliderLabelVue2",(function(){return w.c}));var S=n(151);n.d(t,"RangeSlider",(function(){return S.a})),n.d(t,"RangeSliderVue2",(function(){return S.b}));var C=n(129);for(var s in C)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return C[e]}))}(s);var x=n(130);for(var s in x)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return x[e]}))}(s);var $=n(131);for(var s in $)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(s);var O=n(132);n.d(t,"Checkbox",(function(){return O.a})),n.d(t,"CheckboxVue2",(function(){return O.b}));var I=n(133);n.d(t,"RadioGroup",(function(){return I.a})),n.d(t,"RadioGroupVue2",(function(){return I.b}));var T=n(134);for(var s in T)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return T[e]}))}(s);var D=n(135);for(var s in D)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return D[e]}))}(s);var V=n(136);for(var s in V)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(s);var M=n(39);n.d(t,"RadioButton",(function(){return M.a})),n.d(t,"RadioButtonVue2",(function(){return M.b}));var N=n(137);for(var s in N)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return N[e]}))}(s);var R=n(138);for(var s in R)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(s);var B=n(139);for(var s in B)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return B[e]}))}(s);var P=n(140);n.d(t,"TextArea",(function(){return P.a})),n.d(t,"TextAreaVue2",(function(){return P.b}));var E=n(141);for(var s in E)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return E[e]}))}(s);var A=n(142);for(var s in A)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(s);var j=n(143);for(var s in j)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(s)},function(e,t,n){"use strict";n.r(t),n.d(t,"PDFExport",(function(){return y})),n.d(t,"PDFExportVue2",(function(){return b})),n.d(t,"savePDF",(function(){return k})),n.d(t,"GridPdfExport",(function(){return F})),n.d(t,"GridPdfExportVue2",(function(){return L}));var i=n(1),r=n(11);function o(e,t,n){void 0===n&&(n={});var i=d;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(a()&&(i=u),navigator.msSaveBlob&&(i=l)),i(e,t,n)}var s=function(){return document.createElement("a")},a=function(){return"download"in s()};function l(e,t){var n=e;if("string"==typeof e){for(var i=e.split(";base64,"),r=i[0],o=atob(i[1]),s=new Uint8Array(o.length),a=0;a<o.length;a++)s[a]=o.charCodeAt(a);n=new Blob([s.buffer],{type:r})}navigator.msSaveBlob(n,t)}function u(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=s();i.download=t,i.href=n;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r),setTimeout((function(){return URL.revokeObjectURL(n)}))}function d(e,t,n){if(n.proxyURL){var i=document.createElement("form");i.setAttribute("action",n.proxyURL),i.setAttribute("method","POST"),i.setAttribute("target",n.proxyTarget||"_self");var r=n.proxyData||{};r.fileName=t;var o=e.split(";base64,");for(var s in r.contentType=o[0].replace("data:",""),r.base64=o[1],r)if(r.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",r[s]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}}String.fromCharCode;var c=n(0),p=i,h=p.h,f=p.createApp,v=function(){function e(e,t,n,i,r){var o=this;void 0===r&&(r={}),this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=i,this.options=r,this.convertPageTemplateToHtml=function(e){if(h&&f&&c.canUseDOM){var t=o,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var i,r=document.createElement("div");n.appendChild(r),document.body.appendChild(n);var s={render:function(){return h(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick((function(){document.body.removeChild(n),i.unmount()}))}};return(i=f(s)).mount(r),r.outerHTML}var a=new(p.extend(o.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return a.$mount(),a.$el.outerHTML}}return e.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&n.then(e,e)},e.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}(),m={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655213366,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},g=i.h,b={name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save:function(e){new v(r.drawDOM,r.exportPDF,o,this.$el,this.$props).savePDF(e)}},setup:g?function(){return{v3:!!g}}:void 0,created:function(){Object(c.validatePackage)(m)},render:function(e){return(g||e)("div",[Object(c.getDefaultSlots)(this)])}},y=b;function k(e,t,n){void 0===t&&(t={}),new v(r.drawDOM,r.exportPDF,o,e,t).savePDF(n)}var w,S={},C=function(e){return String(e).trim().split(" ")},x=function(e){return function(t){return function(e,t){var n=C(t);return Boolean(C(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},$=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=$(e,t);if(i)return i}e=e.nextSibling}}},O=(S[w="TABLE"]||(S[w]=function(e){return String(e.nodeName).toLowerCase()===w.toLowerCase()}),S[w]),I=function(e){return e?"locked":"wrap"},T=function(){function e(e){this.element=e,this.list=$(e,x("k-grid-container"))}return e.prototype.content=function(e){return $(this.list,x("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||$(this.element,x("k-grid-header")),$(this.headerWrap,x("k-grid-header-"+I(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||$(this.element,x("k-grid-footer")),$(this.footerWrap,x("k-grid-footer-"+I(e)))},e.prototype.table=function(){return $(this.element,O)},e}(),D=function(e,t){for(var n=t.length,i=0;i<n;i++)e.appendChild(t[i].cloneNode(!0))},V=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},M=function(e){var t=e.length,n=e[0].cloneNode(!0),i=n.rows.length;if(t>1)for(var r=0;r<i;r++)for(var o=1;o<t;o++)D(n.rows[r],e[o].rows[r].cells);return n},N=function(e,t,n,i){for(var r=document.createElement("table"),o=e[0].cloneNode(!0),s=1;s<e.length;s++)D(o,e[s].querySelectorAll("col"));var a=M(t),l=M(n);if(a.className="k-grid-header",function(e,t){if(t.length>1&&e.rows.length>1)for(var n=1;n<e.rows.length;n++){var i=t[0].rows[n].cells.length,r=e.rows[n].cells[i];-1===String(r.className).indexOf("k-first")&&(r.className+=" k-first")}}(a,t),r.appendChild(o),r.appendChild(a),r.appendChild(l),i.length){var u=M(i);u.className="k-grid-footer",r.appendChild(u)}return V(r)},R=function(){return(R=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},B=i,P=B.h,E=B.createApp;function A(e){return function(t,n,i,r,o){return void 0===n&&(n={}),function(e,t,n,i,r,o){void 0===n&&(n={});var s,a,l,u;function d(){e(h.call(this),n,p)}function p(){u.unmount?u.unmount():u.$destroy(),document.body.removeChild(s),document.body.removeChild(l),s=l=void 0,i&&i()}function h(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=function(e){var t,n=new T(e),i=n.content();if(i){var r=[i.querySelector("colgroup")],o=[n.header().querySelector("thead")],s=[i.querySelector("tbody")],a=n.footer(),l=a?[a.querySelector("tfoot")]:[];t=N(r,o,s,l)}else t=V(n.table().cloneNode(!0));return t}(this.$el);return l.appendChild(e),document.body.appendChild(l),e}!function(){if(c.canUseDOM){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),a=document.createElement("div"),s.appendChild(a),document.body.appendChild(s);var e=r&&{dataItems:r,total:r.length,pageSize:r.length,skip:0};if(o){var n={render:function(){return P(t.type,R(R({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),d.call(this)}};(u=E(n)).mount(a)}else{var i=Object.getPrototypeOf(t).constructor;(u=new i({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){u.$el.style&&(u.$el.style.width="1000px"),d.call(u)}})).$slots=t.$slots,u.$scopedSlots=t.$scopedSlots,u.$mount(a)}}}()}(e,t,n,i,r,o)}}var j=i.h,L={name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created:function(){this.saveGridPDF=A(this.getSavePDF())},methods:{save:function(e,t){var n=Object(c.getDefaultSlots)(this).filter((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("grid")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("grid")}));n.length&&(this.gridComponent=this.v3?n[0]:n[0].componentInstance,this.saveGridPDF(this.gridComponent,this.$props,t,e,this.v3))},getSavePDF:function(){return k}},setup:j?function(){return{v3:!!j}}:void 0,render:function(e){return(j||e)("div",[Object(c.getDefaultSlots)(this)])}},F=L;"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",y),window.Vue.component("kendo-grid-pdf-export",F))}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-vue-intl","@progress/kendo-drawing","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):e.KendoVueEditor=t(e.Vue,e.KendoVueIntl,e.KendoDrawing,e.KendoLicensing)}(window,(function(e,t,n,i){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=155)}([function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return r})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return s})),n.d(t,"noop",(function(){return V})),n.d(t,"isObject",(function(){return i})),n.d(t,"getListeners",(function(){return A})),n.d(t,"hasListener",(function(){return E})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"focusFirstFocusableChild",(function(){return l})),n.d(t,"clone",(function(){return O})),n.d(t,"Draggable",(function(){return x})),n.d(t,"cloneArray",(function(){return D})),n.d(t,"cloneValue",(function(){return T})),n.d(t,"cloneObject",(function(){return I})),n.d(t,"cloneDate",(function(){return $})),n.d(t,"getTemplate",(function(){return K})),n.d(t,"templateRendering",(function(){return z})),n.d(t,"templateDefinition",(function(){return F})),n.d(t,"getTabIndex",(function(){return H})),n.d(t,"getDefaultSlots",(function(){return w})),n.d(t,"isRtl",(function(){return W})),n.d(t,"getDir",(function(){return U})),n.d(t,"getter",(function(){return R})),n.d(t,"setter",(function(){return P})),n.d(t,"validatePackage",(function(){return G})),n.d(t,"kendoThemeMaps",(function(){return J}));var i=function(e){return"object"==typeof e},r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):i(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},s={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},u=n(1),d=function(e,t){return function(n){return t(e(n))}},c=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},p=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},h=function(){},f=function(e){return e.preventDefault()},v=/touch/;function m(e){return e.type.match(v)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var g=function(e){var t=this,n=e.press;void 0===n&&(n=h);var i=e.drag;void 0===i&&(i=h);var r=e.release;void 0===r&&(r=h);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=d(m,n),this._dragHandler=d(m,i),this._releaseHandler=d(m,r),this._ignoreMouse=!1,this._mouseOnly=o,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(c(t.document,"mousemove",t._mousemove),c(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){p(t.document,"mousemove",t._mousemove),p(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(c(t.document,"pointermove",t._pointermove),c(t.document,"pointerup",t._pointerup),c(t.document,"pointercancel",t._pointerup),c(t.document,"contextmenu",f),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(p(t.document,"pointermove",t._pointermove),p(t.document,"pointerup",t._pointerup),p(t.document,"pointercancel",t._pointerup),p(t.document,"contextmenu",f),t._releaseHandler(e))}},b={document:{configurable:!0}};g.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},b.document.get=function(){return this._element?this._element.ownerDocument:document},g.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},g.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?c(e,"pointerdown",this._pointerdown):(c(e,"mousedown",this._mousedown),this._mouseOnly||(c(e,"touchstart",this._touchstart),c(e,"touchmove",this._touchmove),c(e,"touchend",this._touchend)))},g.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return p(e,"pointerdown",this._pointerdown),p(this.document,"pointermove",this._pointermove),p(this.document,"pointerup",this._pointerup),p(this.document,"contextmenu",f),void p(this.document,"pointercancel",this._pointerup);p(e,"mousedown",this._mousedown),this._mouseOnly||(p(e,"touchstart",this._touchstart),p(e,"touchmove",this._touchmove),p(e,"touchend",this._touchend))},g.prototype._usePointers=function(){return!this._mouseOnly&&g.supportPointerEvent()},g.prototype.update=function(e){var t=e.press;void 0===t&&(t=h);var n=e.drag;void 0===n&&(n=h);var i=e.release;void 0===i&&(i=h);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=d(m,t),this._dragHandler=d(m,n),this._releaseHandler=d(m,i),this._mouseOnly=r},g.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(g.prototype,b),g.default=g;var y,k=g;function w(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=u.h,x=(S(y={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new k({press:this.press,drag:this.drag,release:this.release})},setup:C?function(){return{v3:!!C}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:C?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",C?function(){return{v3:!!C}}:void 0),S(y,"render",(function(e){return w(this)})),y),$=function(e){return e?new Date(e.getTime()):null};function O(e){var t={};return I(e,t),t}function I(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=T(i,t[n])}}function T(e,t){if(Array.isArray(e))return D(e);if(e instanceof Date)return $(e);if(e&&i(e)){var n=t||{};return I(e,n),n}return e}function D(e){return e.map((function(e){return T(e,void 0)}))}var V=function(){},M=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,N={};function R(e){if(N[e])return N[e];var t=[];return e.replace(M,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),N[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},N[e]}N.undefined=function(){};var B={};function P(e){if(B[e])return B[e];var t=[];return e.replace(M,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),B[e]=function(e,n){for(var i=e,r=t.length-1,o=0;o<r&&i;o++)i=i[t[o]]=i[t[o]]||{};i[t[r]]=n},B[e]}function E(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function A(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}B.undefined=function(e){return e};var j=function(){return(j=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},L=u.h,F={type:[String,Function,Object,Boolean],default:function(){}};function z(e,t){if(e||!1===e){var n=L?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||i(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function K(e){var t,n,i,r=e.h,o=e.template,s=e.defaultRendering,a=e.defaultSlots,l=e.additionalProps,u=e.additionalListeners,d=e.swapDefaultSlots;if(!o||o&&!0===o.render)return s;if(L){var c=s?s.props:{};t=j(j({},_(u)),o.listeners),n=j(j(j({},c),l),t),i=j(j({},n),t)}else{var p=s&&s.componentOptions,h=p?s.componentOptions.listeners:{},f=p?s.componentOptions.propsData:{};t=j(j(j(j({},h),u),_(u)),o.listeners),i={props:n=j(j(j({},f),l),t),on:t}}if("slot"===o.type){var v=o.render({props:n,listeners:t,methods:t,defaultSlots:a});return v?v[0]:void 0}return"renderFunction"===o.type?d?o.render?o.render(r,s,a,n,t):void 0:o.render?o.render(r,s,n,t,a):void 0:r(o.render,i,L?function(){return[a]}:[a])}function _(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];t["on"+r.charAt(0).toUpperCase()+r.slice(1)]=e[r]}return t}var H=function(e,t,n){var i="string"==typeof e?parseInt(e,void 0):e;if(NaN!==i)return void 0!==i?i:t?n?void 0:-1:0};function W(e){return Boolean(a&&e&&"rtl"===getComputedStyle(e).direction)}function U(e,t){if(!t&&a&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var q=n(29);function G(e){if(void 0!==q)q.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var J={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,n){t.exports=e},function(e,t,n){"use strict";var i;n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return c})),n.d(t,"c",(function(){return p}));var r="numerictextbox.increment",o="numerictextbox.decrement",s="slider.increment",a="slider.decrement",l="slider.dragTitle",u="checkbox.validation",d="checkbox.optionalText",c="switch.validation",p=((i={})[r]="Increase value",i[o]="Decrease value",i[s]="Increase",i[a]="Decrease",i[l]="Drag",i["colorGradient.r"]="r",i["colorGradient.g"]="g",i["colorGradient.b"]="b",i["colorGradient.a"]="a",i["colorGradient.hex"]="hex",i["colorGradient.contrastRatio"]="Contrast ratio",i["colorGradient.colorGradientAALevel"]="AA",i["colorGradient.colorGradientAAALevel"]="AAA",i["colorGradient.colorGradientPass"]="Pass",i["colorGradient.colorGradientFail"]="Fail",i[u]="Please check this box if you want to proceed!",i[d]="(Optional)",i["radioButton.validation"]="Please select option if you want to proceed!",i[c]="Please turn on if you want to proceed!",i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"n",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"k",(function(){return c})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return v})),n.d(t,"e",(function(){return m}));var i="",r="0";function o(e,t){if(p(e))return t[Number(e)];var n=t[Number(s(e))];return n.items?o(function(e){if(c(e))return e;var t=e.indexOf("_");return e.substring(t+1)}(e),n.items):void 0}function s(e){return c(e)?e:e.split("_")[0]}function a(e){return u("0",e)}function l(e,t){return 0===t.indexOf(e)&&(t.length===e.length||"_"===t.charAt(e.length))}function u(e,t){return t?t+"_"+e:e}function d(e){var t=e.lastIndexOf("_");return t<0?i:e.substring(0,t)}function c(e){return e===i||e.indexOf("_")<0}function p(e){return e!==i&&e.indexOf("_")<0}function h(e){return 1===function(e){return e.split("_").length-1}(e)}function f(e){return v(e)===r}function v(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}function m(e,t,n){return p(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var i=n(19);n.d(t,"Button",(function(){return i.a})),n.d(t,"ButtonVue2",(function(){return i.b}));var r=n(55);n.d(t,"ButtonGroup",(function(){return r.a})),n.d(t,"ButtonGroupVue2",(function(){return r.b}));var o=n(25);n.d(t,"Chip",(function(){return o.a})),n.d(t,"ChipVue2",(function(){return o.b}));var s=n(46);n.d(t,"ChipList",(function(){return s.a})),n.d(t,"ChipListVue2",(function(){return s.b}));var a=n(56);n.d(t,"FloatingActionButton",(function(){return a.a})),n.d(t,"FloatingActionButtonVue2",(function(){return a.b}));var l=n(26);n.d(t,"FloatingActionButtonItem",(function(){return l.a})),n.d(t,"FloatingActionButtonItemVue2",(function(){return l.b}));var u=n(57);for(var d in u)["default","Toolbar","ToolbarVue2","ToolbarItem","ToolbarItemVue2","ToolbarSeparator","ToolbarSeparatorVue2","ToolbarSpacer","ToolbarSpacerVue2","Button","ButtonVue2","ButtonGroup","ButtonGroupVue2","SplitButton","SplitButtonVue2","DropDownButton","DropDownButtonVue2","Chip","ChipVue2","ChipList","ChipListVue2","FloatingActionButton","FloatingActionButtonVue2","FloatingActionButtonItem","FloatingActionButtonItemVue2"].indexOf(d)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(d);var c=n(47);n.d(t,"SplitButton",(function(){return c.a})),n.d(t,"SplitButtonVue2",(function(){return c.b}));var p=n(48);n.d(t,"DropDownButton",(function(){return p.a})),n.d(t,"DropDownButtonVue2",(function(){return p.b}));var h=n(49);n.d(t,"Toolbar",(function(){return h.a})),n.d(t,"ToolbarVue2",(function(){return h.b}));var f=n(27);n.d(t,"ToolbarItem",(function(){return f.a})),n.d(t,"ToolbarItemVue2",(function(){return f.b}));var v=n(50);n.d(t,"ToolbarSeparator",(function(){return v.a})),n.d(t,"ToolbarSeparatorVue2",(function(){return v.b}));var m=n(51);n.d(t,"ToolbarSpacer",(function(){return m.a})),n.d(t,"ToolbarSpacerVue2",(function(){return m.b}))},function(e,t,n){"use strict";function i(e){this.content=e}n.r(t),n.d(t,"getHtml",(function(){return Nt})),n.d(t,"setHtml",(function(){return Rt})),n.d(t,"parseContent",(function(){return Mt})),n.d(t,"trimWhitespace",(function(){return It})),n.d(t,"htmlToFragment",(function(){return Tt})),n.d(t,"domToPmDoc",(function(){return Vt})),n.d(t,"pmDocToFragment",(function(){return Dt})),n.d(t,"applyInlineStyle",(function(){return cn})),n.d(t,"getInlineStyles",(function(){return ln})),n.d(t,"toggleInlineFormat",(function(){return dn})),n.d(t,"applyLink",(function(){return hn})),n.d(t,"removeLink",(function(){return pn})),n.d(t,"insertText",(function(){return fn})),n.d(t,"insertImage",(function(){return vn})),n.d(t,"alignBlocks",(function(){return $n})),n.d(t,"isAligned",(function(){return On})),n.d(t,"cleanFormatting",(function(){return In})),n.d(t,"hasNode",(function(){return Sn})),n.d(t,"activeNode",(function(){return xn})),n.d(t,"formatBlockElements",(function(){return bn})),n.d(t,"getBlockFormats",(function(){return kn})),n.d(t,"parentBlockFormat",(function(){return Cn})),n.d(t,"changeTextBlock",(function(){return mn})),n.d(t,"blockNodes",(function(){return gn})),n.d(t,"cleanTextBlockFormatting",(function(){return yn})),n.d(t,"hasMark",(function(){return en})),n.d(t,"getMark",(function(){return rn})),n.d(t,"getActiveMarks",(function(){return on})),n.d(t,"removeAllMarks",(function(){return Zt})),n.d(t,"cleanMarks",(function(){return Qt})),n.d(t,"selectionMarks",(function(){return nn})),n.d(t,"indent",(function(){return Ri})),n.d(t,"canIndentAsListItem",(function(){return Vi})),n.d(t,"outdent",(function(){return Bi})),n.d(t,"canOutdentAsListItem",(function(){return Mi})),n.d(t,"isIndented",(function(){return Di})),n.d(t,"canBeIndented",(function(){return Ni})),n.d(t,"indentBlocks",(function(){return Ti})),n.d(t,"toggleOrderedList",(function(){return _i})),n.d(t,"toggleUnorderedList",(function(){return Ki})),n.d(t,"toggleList",(function(){return zi})),n.d(t,"listStyle",(function(){return Fi})),n.d(t,"blockquote",(function(){return Oi})),n.d(t,"liftBlockquote",(function(){return Ii})),n.d(t,"hasSameMarkup",(function(){return zt})),n.d(t,"getSelectionText",(function(){return Kt})),n.d(t,"getNodeFromSelection",(function(){return _t})),n.d(t,"selectedLineTextOnly",(function(){return Ht})),n.d(t,"expandSelection",(function(){return qt})),n.d(t,"expandToWordWrap",(function(){return Gt})),n.d(t,"canInsert",(function(){return At})),n.d(t,"insertNode",(function(){return Ft})),n.d(t,"indentHtml",(function(){return Wt})),n.d(t,"alignLeftRules",(function(){return Wi})),n.d(t,"alignCenterRules",(function(){return qi})),n.d(t,"alignRightRules",(function(){return Ui})),n.d(t,"alignJustifyRules",(function(){return Gi})),n.d(t,"alignRemoveRules",(function(){return Ji})),n.d(t,"indentRules",(function(){return _n})),n.d(t,"outdentRules",(function(){return Hn})),n.d(t,"nodes",(function(){return Jl})),n.d(t,"marks",(function(){return _l})),n.d(t,"buildKeymap",(function(){return Lu})),n.d(t,"buildListKeymap",(function(){return Fu})),n.d(t,"bold",(function(){return Mu})),n.d(t,"italic",(function(){return Nu})),n.d(t,"underline",(function(){return Ru})),n.d(t,"strikethrough",(function(){return Bu})),n.d(t,"subscript",(function(){return Pu})),n.d(t,"superscript",(function(){return Eu})),n.d(t,"link",(function(){return Au})),n.d(t,"sanitize",(function(){return Xu})),n.d(t,"removeComments",(function(){return Yu})),n.d(t,"removeTag",(function(){return Zu})),n.d(t,"pasteCleanup",(function(){return rd})),n.d(t,"sanitizeClassAttr",(function(){return ed})),n.d(t,"sanitizeStyleAttr",(function(){return id})),n.d(t,"removeAttribute",(function(){return Qu})),n.d(t,"replaceImageSourcesFromRtf",(function(){return pd})),n.d(t,"convertMsLists",(function(){return Ju})),n.d(t,"find",(function(){return fd})),n.d(t,"findAt",(function(){return hd})),n.d(t,"findAll",(function(){return vd})),n.d(t,"replace",(function(){return md})),n.d(t,"replaceAll",(function(){return gd})),n.d(t,"placeholder",(function(){return wd})),n.d(t,"spacesFix",(function(){return xd})),n.d(t,"textHighlight",(function(){return Od})),n.d(t,"textHighlightKey",(function(){return $d})),n.d(t,"imageResizing",(function(){return Pd})),n.d(t,"imageResizeKey",(function(){return Id})),n.d(t,"caretColor",(function(){return Ad})),n.d(t,"caretColorKey",(function(){return Ed})),n.d(t,"autoJoin",(function(){return bi})),n.d(t,"baseKeymap",(function(){return $i})),n.d(t,"chainCommands",(function(){return yi})),n.d(t,"createParagraphNear",(function(){return oi})),n.d(t,"deleteSelection",(function(){return Wn})),n.d(t,"exitCode",(function(){return ri})),n.d(t,"joinBackward",(function(){return Un})),n.d(t,"joinDown",(function(){return ei})),n.d(t,"joinForward",(function(){return Xn})),n.d(t,"joinUp",(function(){return Qn})),n.d(t,"lift",(function(){return ti})),n.d(t,"liftEmptyBlock",(function(){return si})),n.d(t,"macBaseKeymap",(function(){return Ci})),n.d(t,"newlineInCode",(function(){return ni})),n.d(t,"pcBaseKeymap",(function(){return Si})),n.d(t,"selectAll",(function(){return di})),n.d(t,"selectNodeBackward",(function(){return Gn})),n.d(t,"selectNodeForward",(function(){return Yn})),n.d(t,"selectParentNode",(function(){return ui})),n.d(t,"selectTextblockEnd",(function(){return fi})),n.d(t,"selectTextblockStart",(function(){return hi})),n.d(t,"setBlockType",(function(){return mi})),n.d(t,"splitBlock",(function(){return ai})),n.d(t,"splitBlockKeepMarks",(function(){return li})),n.d(t,"toggleMark",(function(){return gi})),n.d(t,"wrapIn",(function(){return vi})),n.d(t,"dropCursor",(function(){return jd})),n.d(t,"GapCursor",(function(){return Fd})),n.d(t,"gapCursor",(function(){return Kd})),n.d(t,"HistoryState",(function(){return nu})),n.d(t,"closeHistory",(function(){return du})),n.d(t,"history",(function(){return hu})),n.d(t,"redo",(function(){return vu})),n.d(t,"redoDepth",(function(){return gu})),n.d(t,"undo",(function(){return fu})),n.d(t,"undoDepth",(function(){return mu})),n.d(t,"InputRule",(function(){return bu})),n.d(t,"closeDoubleQuote",(function(){return $u})),n.d(t,"closeSingleQuote",(function(){return Iu})),n.d(t,"ellipsis",(function(){return Cu})),n.d(t,"emDash",(function(){return Su})),n.d(t,"inputRules",(function(){return yu})),n.d(t,"openDoubleQuote",(function(){return xu})),n.d(t,"openSingleQuote",(function(){return Ou})),n.d(t,"smartQuotes",(function(){return Tu})),n.d(t,"textblockTypeInputRule",(function(){return Vu})),n.d(t,"undoInputRule",(function(){return wu})),n.d(t,"wrappingInputRule",(function(){return Du})),n.d(t,"keydownHandler",(function(){return dr})),n.d(t,"keymap",(function(){return ur})),n.d(t,"ContentMatch",(function(){return R})),n.d(t,"DOMParser",(function(){return ee})),n.d(t,"DOMSerializer",(function(){return ce})),n.d(t,"Fragment",(function(){return o})),n.d(t,"Mark",(function(){return d})),n.d(t,"MarkType",(function(){return Y})),n.d(t,"Node",(function(){return D})),n.d(t,"NodeRange",(function(){return O})),n.d(t,"NodeType",(function(){return q})),n.d(t,"ReplaceError",(function(){return c})),n.d(t,"ResolvedPos",(function(){return w})),n.d(t,"Schema",(function(){return Z})),n.d(t,"Slice",(function(){return p})),n.d(t,"addListNodes",(function(){return Pn})),n.d(t,"bulletList",(function(){return Nn})),n.d(t,"liftListItem",(function(){return jn})),n.d(t,"listItem",(function(){return Rn})),n.d(t,"orderedList",(function(){return Mn})),n.d(t,"sinkListItem",(function(){return Ln})),n.d(t,"splitListItem",(function(){return An})),n.d(t,"wrapInList",(function(){return En})),n.d(t,"AllSelection",(function(){return at})),n.d(t,"EditorState",(function(){return mt})),n.d(t,"NodeSelection",(function(){return ot})),n.d(t,"Plugin",(function(){return yt})),n.d(t,"PluginKey",(function(){return St})),n.d(t,"Selection",(function(){return et})),n.d(t,"SelectionRange",(function(){return nt})),n.d(t,"TextSelection",(function(){return it})),n.d(t,"Transaction",(function(){return ct})),n.d(t,"CellSelection",(function(){return Da})),n.d(t,"TableMap",(function(){return ua})),n.d(t,"TableView",(function(){return wl})),n.d(t,"__clipCells",(function(){return Ba})),n.d(t,"__insertCells",(function(){return Aa})),n.d(t,"__pastedCells",(function(){return Na})),n.d(t,"addColSpan",(function(){return Ia})),n.d(t,"addColumn",(function(){return Za})),n.d(t,"addColumnAfter",(function(){return el})),n.d(t,"addColumnBefore",(function(){return Qa})),n.d(t,"addRow",(function(){return rl})),n.d(t,"cellAround",(function(){return ma})),n.d(t,"colCount",(function(){return Ca})),n.d(t,"columnIsHeader",(function(){return Ta})),n.d(t,"columnResizing",(function(){return xl})),n.d(t,"columnResizingPluginKey",(function(){return Cl})),n.d(t,"deleteColumn",(function(){return nl})),n.d(t,"deleteRow",(function(){return ll})),n.d(t,"deleteTable",(function(){return kl})),n.d(t,"findCell",(function(){return Sa})),n.d(t,"fixTables",(function(){return Xa})),n.d(t,"fixTablesKey",(function(){return Ja})),n.d(t,"goToNextCell",(function(){return yl})),n.d(t,"handlePaste",(function(){return Ha})),n.d(t,"inSameTable",(function(){return wa})),n.d(t,"isInTable",(function(){return ga})),n.d(t,"mergeCells",(function(){return dl})),n.d(t,"moveCellForward",(function(){return ka})),n.d(t,"nextCell",(function(){return xa})),n.d(t,"pointsAtCell",(function(){return ya})),n.d(t,"removeColSpan",(function(){return Oa})),n.d(t,"removeColumn",(function(){return tl})),n.d(t,"removeRow",(function(){return al})),n.d(t,"rowIsHeader",(function(){return il})),n.d(t,"selectedRect",(function(){return Ya})),n.d(t,"selectionCell",(function(){return ba})),n.d(t,"setAttr",(function(){return $a})),n.d(t,"setCellAttr",(function(){return hl})),n.d(t,"splitCell",(function(){return cl})),n.d(t,"splitCellWithType",(function(){return pl})),n.d(t,"tableEditing",(function(){return Vl})),n.d(t,"tableEditingKey",(function(){return va})),n.d(t,"tableNodeTypes",(function(){return fa})),n.d(t,"tableNodes",(function(){return ha})),n.d(t,"toggleHeader",(function(){return vl})),n.d(t,"toggleHeaderCell",(function(){return bl})),n.d(t,"toggleHeaderColumn",(function(){return gl})),n.d(t,"toggleHeaderRow",(function(){return ml})),n.d(t,"updateColumnsOnResize",(function(){return Sl})),n.d(t,"AddMarkStep",(function(){return Fe})),n.d(t,"MapResult",(function(){return me})),n.d(t,"Mapping",(function(){return be})),n.d(t,"RemoveMarkStep",(function(){return ze})),n.d(t,"ReplaceAroundStep",(function(){return Ie})),n.d(t,"ReplaceStep",(function(){return Oe})),n.d(t,"Step",(function(){return xe})),n.d(t,"StepMap",(function(){return ge})),n.d(t,"StepResult",(function(){return $e})),n.d(t,"Transform",(function(){return ke})),n.d(t,"TransformError",(function(){return ye})),n.d(t,"canJoin",(function(){return Be})),n.d(t,"canSplit",(function(){return Re})),n.d(t,"dropPoint",(function(){return je})),n.d(t,"findWrapping",(function(){return Me})),n.d(t,"insertPoint",(function(){return Ae})),n.d(t,"joinPoint",(function(){return Ee})),n.d(t,"liftTarget",(function(){return Ve})),n.d(t,"replaceStep",(function(){return Ke})),n.d(t,"Decoration",(function(){return Ps})),n.d(t,"DecorationSet",(function(){return Ls})),n.d(t,"EditorView",(function(){return Zs})),n.d(t,"__endComposition",(function(){return $s})),n.d(t,"__parseFromClipboard",(function(){return qo})),n.d(t,"__serializeForClipboard",(function(){return Uo})),n.d(t,"createTable",(function(){return qd})),n.d(t,"addRowAfter",(function(){return Xd})),n.d(t,"addRowBefore",(function(){return Jd})),n.d(t,"pmAddRowAfter",(function(){return sl})),n.d(t,"pmAddRowBefore",(function(){return ol})),i.prototype={constructor:i,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),s=r.content.slice();return-1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new i(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new i(n)},addToStart:function(e,t){return new i([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new i(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),s=r.find(e);return o.splice(-1==s?o.length:s,0,t,n),new i(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=i.from(e)).size?new i(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=i.from(e)).size?new i(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=i.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},i.from=function(e){if(e instanceof i)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new i(t)};var r=i;var o=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},s={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};o.prototype.nodesBetween=function(e,t,n,i,r){void 0===i&&(i=0);for(var o=0,s=0;s<t;o++){var a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,r,o)&&a.content.size){var u=s+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),n,i+u)}s=l}},o.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},o.prototype.textBetween=function(e,t,n,i){var r="",o=!0;return this.nodesBetween(e,t,(function(s,a){s.isText?(r+=s.text.slice(Math.max(e,a)-a,t-a),o=!n):s.isLeaf&&i?(r+="function"==typeof i?i(s):i,o=!n):!o&&s.isBlock&&(r+=n,o=!0)}),0),r},o.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,i=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)i.push(e.content[r]);return new o(i,this.size+e.size)},o.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],i=0;if(t>e)for(var r=0,s=0;s<t;r++){var a=this.content[r],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a=a.isText?a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),n.push(a),i+=a.nodeSize),s=l}return new o(n,i)},o.prototype.cutByIndex=function(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))},o.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var i=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new o(i,r)},o.prototype.addToStart=function(e){return new o([e].concat(this.content),this.size+e.nodeSize)},o.prototype.addToEnd=function(e){return new o(this.content.concat(e),this.size+e.nodeSize)},o.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},s.firstChild.get=function(){return this.content.length?this.content[0]:null},s.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},s.childCount.get=function(){return this.content.length},o.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},o.prototype.maybeChild=function(e){return this.content[e]},o.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var i=this.content[t];e(i,n,t),n+=i.nodeSize}},o.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),function e(t,n,i){for(var r=0;;r++){if(r==t.childCount||r==n.childCount)return t.childCount==n.childCount?null:i;var o=t.child(r),s=n.child(r);if(o!=s){if(!o.sameMarkup(s))return i;if(o.isText&&o.text!=s.text){for(var a=0;o.text[a]==s.text[a];a++)i++;return i}if(o.content.size||s.content.size){var l=e(o.content,s.content,i+1);if(null!=l)return l}i+=o.nodeSize}else i+=o.nodeSize}}(this,e,t)},o.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),function e(t,n,i,r){for(var o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:i,b:r};var a=t.child(--o),l=n.child(--s),u=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:i,b:r};if(a.isText&&a.text!=l.text){for(var d=0,c=Math.min(a.text.length,l.text.length);d<c&&a.text[a.text.length-d-1]==l.text[l.text.length-d-1];)d++,i--,r--;return{a:i,b:r}}if(a.content.size||l.content.size){var p=e(a.content,l.content,i-1,r-1);if(p)return p}i-=u,r-=u}else i-=u,r-=u}}(this,e,t,n)},o.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,i=0;;n++){var r=i+this.child(n).nodeSize;if(r>=e)return r==e||t>0?l(n+1,r):l(n,i);i=r}},o.prototype.toString=function(){return"<"+this.toStringInner()+">"},o.prototype.toStringInner=function(){return this.content.join(", ")},o.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},o.fromJSON=function(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new o(t.map(e.nodeFromJSON))},o.fromArray=function(e){if(!e.length)return o.empty;for(var t,n=0,i=0;i<e.length;i++){var r=e[i];n+=r.nodeSize,i&&r.isText&&e[i-1].sameMarkup(r)?(t||(t=e.slice(0,i)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}return new o(t||e,n)},o.from=function(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(o.prototype,s);var a={index:0,offset:0};function l(e,t){return a.index=e,a.offset=t,a}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!u(e[i],t[i]))return!1}else{for(var r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(var o in t)if(!(o in e))return!1}return!0}o.empty=new o([],0);var d=function(e,t){this.type=e,this.attrs=t};function c(e){var t=Error.call(this,e);return t.__proto__=c.prototype,t}d.prototype.addToSet=function(e){for(var t,n=!1,i=0;i<e.length;i++){var r=e[i];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,i));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t},d.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},d.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},d.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},d.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},d.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},d.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},d.setFrom=function(e){if(!e||0==e.length)return d.none;if(e instanceof d)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},d.none=[],c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.name="ReplaceError";var p=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},h={size:{configurable:!0}};function f(e,t,n){if(n.openStart>e.depth)throw new c("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new c("Inconsistent open depths");return function e(t,n,i,r){var s=t.index(r),a=t.node(r);if(s==n.index(r)&&r<t.depth-i.openStart){var l=e(t,n,i,r+1);return a.copy(a.content.replaceChild(s,l))}if(i.content.size){if(i.openStart||i.openEnd||t.depth!=r||n.depth!=r){var u=function(e,t){for(var n=t.depth-e.openStart,i=t.node(n).copy(e.content),r=n-1;r>=0;r--)i=t.node(r).copy(o.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(i,t),d=u.start,c=u.end;return y(a,function e(t,n,i,r,s){var a=t.depth>s&&m(t,n,s+1),l=r.depth>s&&m(i,r,s+1),u=[];b(null,t,s,u),a&&l&&n.index(s)==i.index(s)?(v(a,l),g(y(a,e(t,n,i,r,s+1)),u)):(a&&g(y(a,k(t,n,s+1)),u),b(n,i,s,u),l&&g(y(l,k(i,r,s+1)),u));return b(r,null,s,u),new o(u)}(t,d,c,n,r))}var p=t.parent,h=p.content;return y(p,h.cut(0,t.parentOffset).append(i.content).append(h.cut(n.parentOffset)))}return y(a,k(t,n,r))}(e,t,n,0)}function v(e,t){if(!t.type.compatibleContent(e.type))throw new c("Cannot join "+t.type.name+" onto "+e.type.name)}function m(e,t,n){var i=e.node(n);return v(i,t.node(n)),i}function g(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function b(e,t,n,i){var r=(t||e).node(n),o=0,s=t?t.index(n):r.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(g(e.nodeAfter,i),o++));for(var a=o;a<s;a++)g(r.child(a),i);t&&t.depth==n&&t.textOffset&&g(t.nodeBefore,i)}function y(e,t){if(!e.type.validContent(t))throw new c("Invalid content for node "+e.type.name);return e.copy(t)}function k(e,t,n){var i=[];(b(null,e,n,i),e.depth>n)&&g(y(m(e,t,n+1),k(e,t,n+1)),i);return b(t,null,n,i),new o(i)}h.size.get=function(){return this.content.size-this.openStart-this.openEnd},p.prototype.insertAt=function(e,t){var n=function e(t,n,i,r){var o=t.findIndex(n),s=o.index,a=o.offset,l=t.maybeChild(s);if(a==n||l.isText)return r&&!r.canReplace(s,s,i)?null:t.cut(0,n).append(i).append(t.cut(n));var u=e(l.content,n-a-1,i);return u&&t.replaceChild(s,l.copy(u))}(this.content,e+this.openStart,t,null);return n&&new p(n,this.openStart,this.openEnd)},p.prototype.removeBetween=function(e,t){return new p(function e(t,n,i){var r=t.findIndex(n),o=r.index,s=r.offset,a=t.maybeChild(o),l=t.findIndex(i),u=l.index,d=l.offset;if(s==n||a.isText){if(d!=i&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(i))}if(o!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-s-1,i-s-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},p.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},p.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},p.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},p.fromJSON=function(e,t){if(!t)return p.empty;var n=t.openStart||0,i=t.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(e,t.content),n,i)},p.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,i=0,r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new p(e,n,i)},Object.defineProperties(p.prototype,h),p.empty=new p(o.empty,0,0);var w=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},S={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};w.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},S.parent.get=function(){return this.node(this.depth)},S.doc.get=function(){return this.node(0)},w.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},w.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},w.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},w.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},w.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},w.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},w.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},S.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},S.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i},S.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},w.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],i=0==t?0:this.path[3*t-1]+1,r=0;r<e;r++)i+=n.child(r).nodeSize;return i},w.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){var r=n;n=i,i=r}for(var o=n.marks,s=0;s<o.length;s++)!1!==o[s].type.spec.inclusive||i&&o[s].isInSet(i.marks)||(o=o[s--].removeFromSet(o));return o},w.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,i=e.parent.maybeChild(e.index()),r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||i&&n[r].isInSet(i.marks)||(n=n[r--].removeFromSet(n));return n},w.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},w.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new O(this,e,n)},w.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},w.prototype.max=function(e){return e.pos>this.pos?e:this},w.prototype.min=function(e){return e.pos<this.pos?e:this},w.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},w.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],i=0,r=t,o=e;;){var s=o.content.findIndex(r),a=s.index,l=s.offset,u=r-l;if(n.push(o,a,i+l),!u)break;if((o=o.child(a)).isText)break;r=u-1,i+=l+1}return new w(t,n,r)},w.resolveCached=function(e,t){for(var n=0;n<C.length;n++){var i=C[n];if(i.pos==t&&i.doc==e)return i}var r=C[x]=w.resolve(e,t);return x=(x+1)%$,r},Object.defineProperties(w.prototype,S);var C=[],x=0,$=12,O=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},I={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};I.start.get=function(){return this.$from.before(this.depth+1)},I.end.get=function(){return this.$to.after(this.depth+1)},I.parent.get=function(){return this.$from.node(this.depth)},I.startIndex.get=function(){return this.$from.index(this.depth)},I.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(O.prototype,I);var T=Object.create(null),D=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||o.empty,this.marks=i||d.none},V={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};V.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},V.childCount.get=function(){return this.content.childCount},D.prototype.child=function(e){return this.content.child(e)},D.prototype.maybeChild=function(e){return this.content.maybeChild(e)},D.prototype.forEach=function(e){this.content.forEach(e)},D.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},D.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},V.textContent.get=function(){return this.textBetween(0,this.content.size,"")},D.prototype.textBetween=function(e,t,n,i){return this.content.textBetween(e,t,n,i)},V.firstChild.get=function(){return this.content.firstChild},V.lastChild.get=function(){return this.content.lastChild},D.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},D.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},D.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||T)&&d.sameSet(this.marks,n||d.none)},D.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},D.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},D.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},D.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return p.empty;var i=this.resolve(e),r=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),a=i.node(o).content.cut(i.pos-s,r.pos-s);return new p(a,i.depth-o,r.depth-o)},D.prototype.replace=function(e,t,n){return f(this.resolve(e),this.resolve(t),n)},D.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),i=n.index,r=n.offset;if(!(t=t.maybeChild(i)))return null;if(r==e||t.isText)return t;e-=r+1}},D.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,i=t.offset;return{node:this.content.maybeChild(n),index:n,offset:i}},D.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,i=t.offset;if(i<e)return{node:this.content.child(n),index:n,offset:i};var r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}},D.prototype.resolve=function(e){return w.resolveCached(this,e)},D.prototype.resolveNoCache=function(e){return w.resolve(this,e)},D.prototype.rangeHasMark=function(e,t,n){var i=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(i=!0),!i})),i},V.isBlock.get=function(){return this.type.isBlock},V.isTextblock.get=function(){return this.type.isTextblock},V.inlineContent.get=function(){return this.type.inlineContent},V.isInline.get=function(){return this.type.isInline},V.isText.get=function(){return this.type.isText},V.isLeaf.get=function(){return this.type.isLeaf},V.isAtom.get=function(){return this.type.isAtom},D.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)},D.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},D.prototype.canReplace=function(e,t,n,i,r){void 0===n&&(n=o.empty),void 0===i&&(i=0),void 0===r&&(r=n.childCount);var s=this.contentMatchAt(e).matchFragment(n,i,r),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var l=i;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},D.prototype.canReplaceWith=function(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;var r=this.contentMatchAt(e).matchType(n),o=r&&r.matchFragment(this.content,t);return!!o&&o.validEnd},D.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},D.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=d.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!d.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},D.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},D.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var i=o.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(D.prototype,V);var M=function(e){function t(t,n,i,r){if(e.call(this,t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(D);function N(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var R=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},B={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};R.parse=function(e,t){var n=new P(e,t);if(null==n.next)return R.empty;var i=A(n);n.next&&n.err("Unexpected trailing text");var r=function(e){var t=Object.create(null);return function n(i){var r=[];i.forEach((function(t){e[t].forEach((function(t){var n=t.term,i=t.to;if(n){var o=r.indexOf(n),s=o>-1&&r[o+1];_(e,i).forEach((function(e){s||r.push(n,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var o=t[i.join(",")]=new R(i.indexOf(e.length-1)>-1),s=0;s<r.length;s+=2){var a=r[s+1].sort(K);o.next.push(r[s],t[a.join(",")]||n(a))}return o}(_(e,0))}(function(e){var t=[[]];return r(function e(t,o){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,o))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=e(t.exprs[s],o);if(s==t.exprs.length-1)return a;r(a,o=n())}else{if("star"==t.type){var l=n();return i(o,l),r(e(t.expr,l),l),[i(l)]}if("plus"==t.type){var u=n();return r(e(t.expr,o),u),r(e(t.expr,u),u),[i(u)]}if("opt"==t.type)return[i(o)].concat(e(t.expr,o));if("range"==t.type){for(var d=o,c=0;c<t.min;c++){var p=n();r(e(t.expr,d),p),d=p}if(-1==t.max)r(e(t.expr,d),d);else for(var h=t.min;h<t.max;h++){var f=n();i(d,f),r(e(t.expr,d),f),d=f}return[i(d)]}if("name"==t.type)return[i(o,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){var r={term:i,to:n};return t[e].push(r),r}function r(e,t){e.forEach((function(e){return e.to=t}))}}(i));return function(e,t){for(var n=0,i=[e];n<i.length;n++){for(var r=i[n],o=!r.validEnd,s=[],a=0;a<r.next.length;a+=2){var l=r.next[a],u=r.next[a+1];s.push(l.name),!o||l.isText||l.hasRequiredAttrs()||(o=!1),-1==i.indexOf(u)&&i.push(u)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(r,n),r},R.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},R.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var i=this,r=t;i&&r<n;r++)i=i.matchType(e.child(r).type);return i},B.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},B.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},R.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},R.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function r(s,a){var l=s.matchFragment(e,n);if(l&&(!t||l.validEnd))return o.from(a.map((function(e){return e.createAndFill()})));for(var u=0;u<s.next.length;u+=2){var d=s.next[u],c=s.next[u+1];if(!d.isText&&!d.hasRequiredAttrs()&&-1==i.indexOf(c)){i.push(c);var p=r(c,a.concat(d));if(p)return p}}}(this,[])},R.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},R.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),r=i.match;if(r.matchType(e)){for(var o=[],s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(var a=0;a<r.next.length;a+=2){var l=r.next[a];l.isLeaf||l.hasRequiredAttrs()||l.name in t||i.type&&!r.next[a+1].validEnd||(n.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}},B.edgeCount.get=function(){return this.next.length>>1},R.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},R.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var i=1;i<n.next.length;i+=2)-1==e.indexOf(n.next[i])&&t(n.next[i])}(this),e.map((function(t,n){for(var i=n+(t.validEnd?"*":" ")+" ",r=0;r<t.next.length;r+=2)i+=(r?", ":"")+t.next[r].name+"->"+e.indexOf(t.next[r+1]);return i})).join("\n")},Object.defineProperties(R.prototype,B),R.empty=new R(!0);var P=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},E={next:{configurable:!0}};function A(e){var t=[];do{t.push(j(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function j(e){var t=[];do{t.push(L(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function L(e){for(var t=function(e){if(e.eat("(")){var t=A(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,i=n[t];if(i)return[i];var r=[];for(var o in n){var s=n[o];s.groups.indexOf(t)>-1&&r.push(s)}0==r.length&&e.err("No node type or group '"+t+"' found");return r}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=z(e,t)}return t}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function z(e,t){var n=F(e),i=n;return e.eat(",")&&(i="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function K(e,t){return t-e}function _(e,t){var n=[];return function t(i){var r=e[i];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(i);for(var o=0;o<r.length;o++){var s=r[o],a=s.term,l=s.to;a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(K)}function H(e){var t=Object.create(null);for(var n in e){var i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function W(e,t){var n=Object.create(null);for(var i in e){var r=t&&t[i];if(void 0===r){var o=e[i];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+i);r=o.default}n[i]=r}return n}function U(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new J(e[n]);return t}E.next.get=function(){return this.tokens[this.pos]},P.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},P.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(P.prototype,E);var q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=U(n.attrs),this.defaultAttrs=H(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},G={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};G.isInline.get=function(){return!this.isBlock},G.isTextblock.get=function(){return this.isBlock&&this.inlineContent},G.isLeaf.get=function(){return this.contentMatch==R.empty},G.isAtom.get=function(){return this.isLeaf||this.spec.atom},G.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},q.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},q.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},q.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)},q.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new D(this,this.computeAttrs(e),o.from(t),d.setFrom(n))},q.prototype.createChecked=function(e,t,n){if(t=o.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new D(this,this.computeAttrs(e),t,d.setFrom(n))},q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=o.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var r=this.contentMatch.matchFragment(t).fillBefore(o.empty,!0);return r?new D(this,e,t.append(r),d.setFrom(n)):null},q.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},q.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},q.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},q.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.empty:e},q.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,i){return n[e]=new q(e,t,i)}));var i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var r in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(q.prototype,G);var J=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},X={isRequired:{configurable:!0}};X.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(J.prototype,X);var Y=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=U(i.attrs),this.rank=t,this.excluded=null;var r=H(this.attrs);this.instance=r&&new d(this,r)};Y.prototype.create=function(e){return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))},Y.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,r){return n[e]=new Y(e,i++,t,r)})),n},Y.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},Y.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},Y.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var Z=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=r.from(e.nodes),this.spec.marks=r.from(e.marks),this.nodes=q.compile(this.spec.nodes,this),this.marks=Y.compile(this.spec.marks,this);var n=Object.create(null);for(var i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");var o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=n[s]||(n[s]=R.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?Q(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(var l in this.marks){var u=this.marks[l],d=u.spec.excludes;u.excluded=null==d?[u]:""==d?[]:Q(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function Q(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i],o=e.marks[r],s=o;if(o)n.push(o);else for(var a in e.marks){var l=e.marks[a];("_"==r||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}Z.prototype.node=function(e,t,n,i){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,i)},Z.prototype.text=function(e,t){var n=this.nodes.text;return new M(n,n.defaultAttrs,e,d.setFrom(t))},Z.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},Z.prototype.nodeFromJSON=function(e){return D.fromJSON(this,e)},Z.prototype.markFromJSON=function(e){return d.fromJSON(this,e)},Z.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var ee=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};ee.prototype.parse=function(e,t){void 0===t&&(t={});var n=new se(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},ee.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new se(this,t,!0);return n.addAll(e,null,t.from,t.to),p.maxOpen(n.finish())},ee.prototype.matchTag=function(e,t,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var r=this.tags[i];if(le(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){var o=r.getAttrs(e);if(!1===o)continue;r.attrs=o}return r}}},ee.prototype.matchStyle=function(e,t,n,i){for(var r=i?this.styles.indexOf(i)+1:0;r<this.styles.length;r++){var o=this.styles[r];if(!(0!=o.style.indexOf(e)||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s}return o}}},ee.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,i=0;i<t.length;i++){var r=t[i];if((null==r.priority?50:r.priority)<n)break}t.splice(i,0,e)}var i=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ue(e)),e.mark=t}))};for(var r in e.marks)i(r);var o;for(var s in e.nodes)o=void 0,(o=e.nodes[s].spec.parseDOM)&&o.forEach((function(e){n(e=ue(e)),e.node=s}));return t},ee.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new ee(e,ee.schemaRules(e)))};var te={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ne={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ie={ol:!0,ul:!0};function re(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var oe=function(e,t,n,i,r,o,s){this.type=e,this.attrs=t,this.solid=r,this.match=o||(4&s?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=d.none,this.pendingMarks=i,this.stashMarks=[]};oe.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(o.from(e));if(!t){var n,i=this.type.contentMatch;return(n=i.findWrapping(e.type))?(this.match=i,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},oe.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var i=o.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},oe.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},oe.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var i=n[t];(this.type?this.type.allowsMarkType(i.type):de(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},oe.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!te.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var se=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,r=t.topNode,o=re(null,t.preserveWhitespace,0)|(n?4:0);i=r?new oe(r.type,r.attrs,d.none,d.none,!0,t.topMatch||r.type.contentMatch,o):new oe(n?null:e.schema.topNodeType,null,d.none,d.none,!0,null,o),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},ae={top:{configurable:!0},currentPos:{configurable:!0}};function le(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ue(e){var t={};for(var n in e)t[n]=e[n];return t}function de(e,t){var n=t.schema.nodes,i=function(i){var r=n[i];if(r.allowsMarkType(e)){var o=[],s=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var i=e.edge(n),r=i.type,a=i.next;if(r==t)return!0;if(o.indexOf(a)<0&&s(a))return!0}};return s(r.contentMatch)?{v:!0}:void 0}};for(var r in n){var o=i(r);if(o)return o.v}}ae.top.get=function(){return this.nodes[this.open]},se.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];for(;t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(var r=0;r<n.length;r++)this.addPendingMark(n[r]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],i)}},se.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var i=n.content[n.content.length-1],r=e.previousSibling;(!i||r&&"BR"==r.nodeName||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},se.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();ie.hasOwnProperty(i)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var i=1==t.nodeType?t.nodeName.toLowerCase():null;i&&ie.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):"li"==i?n=t:i&&(n=null)}}(e);var r=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(r?r.ignore:ne.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!r||r.skip||r.closeParent){r&&r.closeParent?this.open=Math.max(0,this.open-1):r&&r.skip.nodeType&&(e=r.skip);var o,s=this.top,a=this.needsBlock;if(te.hasOwnProperty(i))o=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(s),this.needsBlock=a}else this.addElementByRule(e,r,!1===r.consuming?n:null)},se.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},se.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},se.prototype.readStyles=function(e){var t=d.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var r=this.parser.matchStyle(e[n],e[n+1],this,i);if(!r)continue e;if(r.ignore)return null;if(t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t),!1!==r.consuming)break;i=r}return t},se.prototype.addElementByRule=function(e,t,n){var i,r,o,s=this;t.node?(r=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):i=this.enter(r,t.attrs,t.preserveWhitespace):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));var a=this.top;if(r&&r.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,i)}i&&(this.sync(a),this.open--),o&&this.removePendingMark(o,a)},se.prototype.addAll=function(e,t,n,i){for(var r=n||0,o=n?e.childNodes[n]:e.firstChild,s=null==i?null:e.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o),t&&te.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,r)},se.prototype.findPlace=function(e){for(var t,n,i=this.open;i>=0;i--){var r=this.nodes[i],o=r.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=r,!o.length))break;if(r.solid)break}if(!t)return!1;this.sync(n);for(var s=0;s<t.length;s++)this.enterInner(t[s],null,!1);return!0},se.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var i=n.activeMarks,r=0;r<e.marks.length;r++)n.type&&!n.type.allowsMarkType(e.marks[r].type)||(i=e.marks[r].addToSet(i));return n.content.push(e.mark(i)),!0}return!1},se.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},se.prototype.enterInner=function(e,t,n,i){this.closeExtra();var r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e,t);var o=re(e,i,r.options);4&r.options&&0==r.content.length&&(o|=4),this.nodes.push(new oe(e,t,r.activeMarks,r.pendingMarks,n,null,o)),this.open++},se.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},se.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},se.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},ae.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,i=n.length-1;i>=0;i--)e+=n[i].nodeSize;t&&e++}return e},se.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},se.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},se.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++){if(null==this.find[i].pos&&1==e.nodeType&&e.contains(this.find[i].node))t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}},se.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},se.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=-(i?i.depth+1:0)+(r?0:1),s=function(e,a){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;a>=o;a--)if(s(e-1,a))return!0;return!1}var u=a>0||0==a&&r?t.nodes[a].type:i&&a>=o?i.node(a-o).type:null;if(!u||u.name!=l&&-1==u.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},se.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var i in this.parser.schema.nodes){var r=this.parser.schema.nodes[i];if(r.isTextblock&&r.defaultAttrs)return r}},se.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},se.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var i=this.nodes[n];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);var r=i.popFromStashMark(e);r&&i.type&&i.type.allowsMarkType(r.type)&&(i.activeMarks=r.addToSet(i.activeMarks))}if(i==t)break}},Object.defineProperties(se.prototype,ae);var ce=function(e,t){this.nodes=e||{},this.marks=t||{}};function pe(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function he(e){return e.document||window.document}ce.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=he(t).createDocumentFragment());var r=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);for(var n=0,s=0;n<o.length&&s<e.marks.length;){var a=e.marks[s];if(i.marks[a.type.name]){if(!a.eq(o[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}for(;n<o.length;)r=o.pop(),o.pop();for(;s<e.marks.length;){var l=e.marks[s++],u=i.serializeMark(l,e.isInline,t);u&&(o.push(l,r),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(i.serializeNodeInner(e,t))})),n},ce.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ce.renderSpec(he(t),this.nodes[e.type.name](e)),i=n.dom,r=n.contentDOM;if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,r,t):this.serializeFragment(e.content,t,r)}return i},ce.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),i=e.marks.length-1;i>=0;i--){var r=this.serializeMark(e.marks[i],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n},ce.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ce.renderSpec(he(n),i(e,t))},ce.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i=t[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));var o=null,s=n?e.createElementNS(n,i):e.createElement(i),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a))for(var u in l=2,a)if(null!=a[u]){var d=u.indexOf(" ");d>0?s.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):s.setAttribute(u,a[u])}for(var c=l;c<t.length;c++){var p=t[c];if(0===p){if(c<t.length-1||c>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ce.renderSpec(e,p,n),f=h.dom,v=h.contentDOM;if(s.appendChild(f),v){if(o)throw new RangeError("Multiple content holes");o=v}}return{dom:s,contentDOM:o}},ce.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ce(this.nodesFromSchema(e),this.marksFromSchema(e)))},ce.nodesFromSchema=function(e){var t=pe(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ce.marksFromSchema=function(e){return pe(e.marks)};var fe=Math.pow(2,16);function ve(e){return 65535&e}var me=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},ge=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};ge.prototype.recover=function(e){var t=0,n=ve(e);if(!this.inverted)for(var i=0;i<n;i++)t+=this.ranges[3*i+2]-this.ranges[3*i+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/fe}(e)},ge.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},ge.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},ge.prototype._map=function(e,t,n){for(var i=0,r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?i:0);if(a>e)break;var l=this.ranges[s+r],u=this.ranges[s+o],d=a+l;if(e<=d){var c=a+i+((l?e==a?-1:e==d?1:t:t)<0?0:u);if(n)return c;var p=e==(t<0?a:d)?null:s/3+(e-a)*fe;return new me(c,t<0?e!=a:e!=d,p)}i+=u-l}return n?e+i:new me(e+i)},ge.prototype.touches=function(e,t){for(var n=0,i=ve(t),r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?n:0);if(a>e)break;var l=this.ranges[s+r];if(e<=a+l&&s==3*i)return!0;n+=this.ranges[s+o]-l}return!1},ge.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,i=0,r=0;i<this.ranges.length;i+=3){var o=this.ranges[i],s=o-(this.inverted?r:0),a=o+(this.inverted?0:r),l=this.ranges[i+t],u=this.ranges[i+n];e(s,s+l,a,a+u),r+=u-l}},ge.prototype.invert=function(){return new ge(this.ranges,!this.inverted)},ge.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},ge.offset=function(e){return 0==e?ge.empty:new ge(e<0?[0,-e,0]:[0,0,e])},ge.empty=new ge([]);var be=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function ye(e){var t=Error.call(this,e);return t.__proto__=ye.prototype,t}be.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new be(this.maps,this.mirror,e,t)},be.prototype.copy=function(){return new be(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},be.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},be.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var i=e.getMirror(t);this.appendMap(e.maps[t],null!=i&&i<t?n+i:null)}},be.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},be.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},be.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var i=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=i&&i>t?n-i-1:null)}},be.prototype.invert=function(){var e=new be;return e.appendMappingInverted(this),e},be.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},be.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},be.prototype._map=function(e,t,n){for(var i=!1,r=this.from;r<this.to;r++){var o=this.maps[r].mapResult(e,t);if(null!=o.recover){var s=this.getMirror(r);if(null!=s&&s>r&&s<this.to){r=s,e=this.maps[s].recover(o.recover);continue}}o.deleted&&(i=!0),e=o.pos}return n?e:new me(e,i)},ye.prototype=Object.create(Error.prototype),ye.prototype.constructor=ye,ye.prototype.name="TransformError";var ke=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new be},we={before:{configurable:!0},docChanged:{configurable:!0}};function Se(){throw new Error("Override me")}we.before.get=function(){return this.docs.length?this.docs[0]:this.doc},ke.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new ye(t.failed);return this},ke.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},we.docChanged.get=function(){return this.steps.length>0},ke.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(ke.prototype,we);var Ce=Object.create(null),xe=function(){};xe.prototype.apply=function(e){return Se()},xe.prototype.getMap=function(){return ge.empty},xe.prototype.invert=function(e){return Se()},xe.prototype.map=function(e){return Se()},xe.prototype.merge=function(e){return null},xe.prototype.toJSON=function(){return Se()},xe.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Ce[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},xe.jsonID=function(e,t){if(e in Ce)throw new RangeError("Duplicate use of step JSON ID "+e);return Ce[e]=t,t.prototype.jsonID=e,t};var $e=function(e,t){this.doc=e,this.failed=t};$e.ok=function(e){return new $e(e,null)},$e.fail=function(e){return new $e(null,e)},$e.fromReplace=function(e,t,n,i){try{return $e.ok(e.replace(t,n,i))}catch(e){if(e instanceof c)return $e.fail(e.message);throw e}};var Oe=function(e){function t(t,n,i,r){e.call(this),this.from=t,this.to=n,this.slice=i,this.structure=!!r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Te(e,this.from,this.to)?$e.fail("Structure replace would overwrite content"):$e.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new ge([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted?null:new t(n.pos,Math.max(n.pos,i.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?p.empty:new p(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var i=this.slice.size+e.slice.size==0?p.empty:new p(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),i,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,p.fromJSON(e,n.slice),!!n.structure)},t}(xe);xe.jsonID("replace",Oe);var Ie=function(e){function t(t,n,i,r,o,s,a){e.call(this),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=o,this.insert=s,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(Te(e,this.from,this.gapFrom)||Te(e,this.gapTo,this.to)))return $e.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return $e.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?$e.fromReplace(e,this.from,this.to,n):$e.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new ge([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deleted&&i.deleted||r<n.pos||o>i.pos?null:new t(n.pos,i.pos,r,o,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,p.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(xe);function Te(e,t,n){for(var i=e.resolve(t),r=n-t,o=i.depth;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0)for(var s=i.node(o).maybeChild(i.indexAfter(o));r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}return!1}function De(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ve(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var i=e.$from.node(n),r=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(r,o,t))return n;if(0==n||i.type.spec.isolating||!De(i,r,o))break}}function Me(e,t,n,i){void 0===i&&(i=e);var r=function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.contentMatchAt(i).findWrapping(t);if(!o)return null;var s=o.length?o[0]:t;return n.canReplaceWith(i,r,s)?o:null}(e,t),o=r&&function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.child(i),s=t.contentMatch.findWrapping(o.type);if(!s)return null;for(var a=(s.length?s[s.length-1]:t).contentMatch,l=i;a&&l<r;l++)a=a.matchType(n.child(l).type);if(!a||!a.validEnd)return null;return s}(i,t);return o?r.map(Ne).concat({type:t,attrs:n}).concat(o.map(Ne)):null}function Ne(e){return{type:e,attrs:null}}function Re(e,t,n,i){void 0===n&&(n=1);var r=e.resolve(t),o=r.depth-n,s=i&&i[i.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(var a=r.depth-1,l=n-2;a>o;a--,l--){var u=r.node(a),d=r.index(a);if(u.type.spec.isolating)return!1;var c=u.content.cutByIndex(d,u.childCount),p=i&&i[l]||u;if(p!=u&&(c=c.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(d+1,u.childCount)||!p.type.validContent(c))return!1}var h=r.indexAfter(o),f=i&&i[0];return r.node(o).canReplaceWith(h,h,f?f.type:r.node(o+1).type)}function Be(e,t){var n=e.resolve(t),i=n.index();return Pe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function Pe(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function Ee(e,t,n){void 0===n&&(n=-1);for(var i=e.resolve(t),r=i.depth;;r--){var o=void 0,s=void 0,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):n>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Pe(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=n<0?i.before(r):i.after(r)}}function Ae(e,t,n){var i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(0==i.parentOffset)for(var r=i.depth-1;r>=0;r--){var o=i.index(r);if(i.node(r).canReplaceWith(o,o,n))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(var s=i.depth-1;s>=0;s--){var a=i.indexAfter(s);if(i.node(s).canReplaceWith(a,a,n))return i.after(s+1);if(a<i.node(s).childCount)return null}}function je(e,t,n){var i=e.resolve(t);if(!n.content.size)return t;for(var r=n.content,o=0;o<n.openStart;o++)r=r.firstChild.content;for(var s=1;s<=(0==n.openStart&&n.size?2:1);s++)for(var a=i.depth;a>=0;a--){var l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,u=i.index(a)+(l>0?1:0),d=i.node(a),c=!1;if(1==s)c=d.canReplace(u,u,r);else{var p=d.contentMatchAt(u).findWrapping(r.firstChild.type);c=p&&d.canReplaceWith(u,u,p[0])}if(c)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function Le(e,t,n){for(var i=[],r=0;r<e.childCount;r++){var s=e.child(r);s.content.size&&(s=s.copy(Le(s.content,t,s))),s.isInline&&(s=t(s,n,r)),i.push(s)}return o.fromArray(i)}xe.jsonID("replaceAround",Ie),ke.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,r=e.depth,s=n.before(r+1),a=i.after(r+1),l=s,u=a,d=o.empty,c=0,h=r,f=!1;h>t;h--)f||n.index(h)>0?(f=!0,d=o.from(n.node(h).copy(d)),c++):l--;for(var v=o.empty,m=0,g=r,b=!1;g>t;g--)b||i.after(g+1)<i.end(g)?(b=!0,v=o.from(i.node(g).copy(v)),m++):u++;return this.step(new Ie(l,u,s,a,new p(d.append(v),c,m),d.size-c,!0))},ke.prototype.wrap=function(e,t){for(var n=o.empty,i=t.length-1;i>=0;i--){if(n.size){var r=t[i].type.contentMatch.matchFragment(n);if(!r||!r.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=o.from(t[i].type.create(t[i].attrs,n))}var s=e.start,a=e.end;return this.step(new Ie(s,a,s,a,new p(n,0,0),t.length,!0))},ke.prototype.setBlockType=function(e,t,n,i){var r=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var s=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(r.doc,r.mapping.slice(s).map(t),n)){r.clearIncompatible(r.mapping.slice(s).map(t,1),n);var a=r.mapping.slice(s),l=a.map(t,1),u=a.map(t+e.nodeSize,1);return r.step(new Ie(l,u,l+1,u-1,new p(o.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},ke.prototype.setNodeMarkup=function(e,t,n,i){var r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");t||(t=r.type);var s=t.create(n,null,i||r.marks);if(r.isLeaf)return this.replaceWith(e,e+r.nodeSize,s);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ie(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new p(o.from(s),0,0),1,!0))},ke.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),r=o.empty,s=o.empty,a=i.depth,l=i.depth-t,u=t-1;a>l;a--,u--){r=o.from(i.node(a).copy(r));var d=n&&n[u];s=o.from(d?d.type.create(d.attrs,s):i.node(a).copy(s))}return this.step(new Oe(e,e,new p(r.append(s),t,t),!0))},ke.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Oe(e-t,e+t,p.empty,!0);return this.step(n)};var Fe=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=e.resolve(this.from),r=i.node(i.sharedDepth(this.to)),o=new p(Le(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),r),n.openStart,n.openEnd);return $e.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new ze(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);xe.jsonID("addMark",Fe);var ze=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=new p(Le(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return $e.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Fe(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);function Ke(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=p.empty),t==n&&!i.size)return null;var r=e.resolve(t),o=e.resolve(n);return _e(r,o,i)?new Oe(t,n,i):new He(r,o,i).fit()}function _e(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}xe.jsonID("removeMark",ze),ke.prototype.addMark=function(e,t,n){var i=this,r=[],o=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,u){if(i.isInline){var d=i.marks;if(!n.isInSet(d)&&u.type.allowsMarkType(n.type)){for(var c=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(d),f=0;f<d.length;f++)d[f].isInSet(h)||(s&&s.to==c&&s.mark.eq(d[f])?s.to=p:r.push(s=new ze(c,p,d[f])));a&&a.to==c?a.to=p:o.push(a=new Fe(c,p,n))}}})),r.forEach((function(e){return i.step(e)})),o.forEach((function(e){return i.step(e)})),this},ke.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var r=[],o=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){o++;var a=null;if(n instanceof Y)for(var l,u=i.marks;l=n.isInSet(u);)(a||(a=[])).push(l),u=l.removeFromSet(u);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var d=Math.min(s+i.nodeSize,t),c=0;c<a.length;c++){for(var p=a[c],h=void 0,f=0;f<r.length;f++){var v=r[f];v.step==o-1&&p.eq(r[f].style)&&(h=v)}h?(h.to=d,h.step=o):r.push({style:p,from:Math.max(s,e),to:d,step:o})}}})),r.forEach((function(e){return i.step(new ze(e.from,e.to,e.style))})),this},ke.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),r=[],s=e+1,a=0;a<i.childCount;a++){var l=i.child(a),u=s+l.nodeSize,d=n.matchType(l.type,l.attrs);if(d){n=d;for(var c=0;c<l.marks.length;c++)t.allowsMarkType(l.marks[c].type)||this.step(new ze(s,u,l.marks[c]))}else r.push(new Oe(s,u,p.empty));s=u}if(!n.validEnd){var h=n.fillBefore(o.empty,!0);this.replace(s,s,new p(h,0,0))}for(var f=r.length-1;f>=0;f--)this.step(r[f]);return this},ke.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=p.empty);var i=Ke(this.doc,e,t,n);return i&&this.step(i),this},ke.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new p(o.from(n),0,0))},ke.prototype.delete=function(e,t){return this.replace(e,t,p.empty)},ke.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var He=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var r=e.node(i);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(i))})}this.placed=o.empty;for(var s=e.depth;s>0;s--)this.placed=o.from(e.node(s).copy(this.placed))},We={depth:{configurable:!0}};function Ue(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ue(e.firstChild.content,t-1,n)))}function qe(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(qe(e.lastChild.content,t-1,n)))}function Ge(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function Je(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,Je(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(o.empty,!0)))),e.copy(i)}function Xe(e,t,n,i,r){var o=e.node(t),s=r?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;var a=i.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(var i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}(n,o.content,s)?a:null}function Ye(e,t,n,i,r){if(t<n){var s=e.firstChild;e=e.replaceChild(0,s.copy(Ye(s.content,t+1,n,i,s)))}if(t>i){var a=r.contentMatchAt(0),l=a.fillBefore(e).append(e);e=l.append(a.matchFragment(l).fillBefore(o.empty,!0))}return e}function Ze(e,t){for(var n=[],i=Math.min(e.depth,t.depth);i>=0;i--){var r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}We.depth.get=function(){return this.frontier.length-1},He.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;for(var o=this.placed,s=i.depth,a=r.depth;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;var l=new p(o,s,a);return t>-1?new Ie(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new Oe(i.pos,r.pos,l):void 0},He.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,i=(t?(n=Ge(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,r=this.depth;r>=0;r--){var s=this.frontier[r],a=s.type,l=s.match,u=void 0,d=void 0;if(1==e&&(i?l.matchType(i.type)||(d=l.fillBefore(o.from(i),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:r,parent:n,inject:d};if(2==e&&i&&(u=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:r,parent:n,wrap:u};if(n&&l.matchType(n.type))break}},He.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new p(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)},He.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);if(r.childCount<=1&&n>0){var o=t.size-n<=n+r.size;this.unplaced=new p(Ue(t,n-1,1),n-1,o?n-1:i)}else this.unplaced=new p(Ue(t,n,1),n,i)},He.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,r=e.inject,s=e.wrap;this.depth>n;)this.closeFrontierNode();if(s)for(var a=0;a<s.length;a++)this.openFrontierNode(s[a]);var l=this.unplaced,u=i?i.content:l.content,d=l.openStart-t,c=0,h=[],f=this.frontier[n],v=f.match,m=f.type;if(r){for(var g=0;g<r.childCount;g++)h.push(r.child(g));v=v.matchFragment(r)}for(var b=u.size+t-(l.content.size-l.openEnd);c<u.childCount;){var y=u.child(c),k=v.matchType(y.type);if(!k)break;(++c>1||0==d||y.content.size)&&(v=k,h.push(Je(y.mark(m.allowedMarks(y.marks)),1==c?d:0,c==u.childCount?b:-1)))}var w=c==u.childCount;w||(b=-1),this.placed=qe(this.placed,n,o.from(h)),this.frontier[n].match=v,w&&b<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,C=u;S<b;S++){var x=C.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),C=x.content}this.unplaced=w?0==t?p.empty:new p(Ue(l.content,t-1,1),t-1,b<0?l.openEnd:t-1):new p(Ue(l.content,t,c),l.openStart,l.openEnd)},He.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Xe(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,i=this.$to.after(n);n>1&&i==this.$to.end(--n);)++i;return i},He.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],i=n.match,r=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=Xe(e,t,r,i,o);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],u=l.match,d=Xe(e,a,l.type,u,!0);if(!d||d.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}},He.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=qe(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var i=e.node(n),r=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,r)}return e},He.prototype.openFrontierNode=function(e,t,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=qe(this.placed,this.depth,o.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},He.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(o.empty,!0);e.childCount&&(this.placed=qe(this.placed,this.frontier.length,e))},Object.defineProperties(He.prototype,We),ke.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),r=this.doc.resolve(t);if(_e(i,r,n))return this.step(new Oe(e,t,n));var o=Ze(i,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(i.depth+1);o.unshift(s);for(var a=i.depth,l=i.pos-1;a>0;a--,l--){var u=i.node(a).type.spec;if(u.defining||u.isolating)break;o.indexOf(a)>-1?s=a:i.before(a)==l&&o.splice(1,0,-a)}for(var d=o.indexOf(s),c=[],h=n.openStart,f=n.content,v=0;;v++){var m=f.firstChild;if(c.push(m),v==n.openStart)break;f=m.content}h>0&&c[h-1].type.spec.defining&&i.node(d).type!=c[h-1].type?h-=1:h>=2&&c[h-1].isTextblock&&c[h-2].type.spec.defining&&i.node(d).type!=c[h-2].type&&(h-=2);for(var g=n.openStart;g>=0;g--){var b=(g+h+1)%(n.openStart+1),y=c[b];if(y)for(var k=0;k<o.length;k++){var w=o[(k+d)%o.length],S=!0;w<0&&(S=!1,w=-w);var C=i.node(w-1),x=i.index(w-1);if(C.canReplaceWith(x,x,y.type,y.marks))return this.replace(i.before(w),S?r.after(w):t,new p(Ye(n.content,0,n.openStart,b),b,n.openEnd))}}for(var $=this.steps.length,O=o.length-1;O>=0&&(this.replace(e,t,n),!(this.steps.length>$));O--){var I=o[O];I<0||(e=i.before(I),t=r.after(I))}return this},ke.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=Ae(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new p(o.from(n),0,0))},ke.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),r=Ze(n,i),o=0;o<r.length;o++){var s=r[o],a=o==r.length-1;if(a&&0==s||n.node(s).type.contentMatch.validEnd)return this.delete(n.start(s),i.end(s));if(s>0&&(a||n.node(s-1).canReplace(n.index(s-1),i.indexAfter(s-1))))return this.delete(n.before(s),i.after(s))}for(var l=1;l<=n.depth&&l<=i.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&i.end(l)-t!=i.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var Qe=Object.create(null),et=function(e,t,n){this.ranges=n||[new nt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},tt={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};tt.anchor.get=function(){return this.$anchor.pos},tt.head.get=function(){return this.$head.pos},tt.from.get=function(){return this.$from.pos},tt.to.get=function(){return this.$to.pos},tt.$from.get=function(){return this.ranges[0].$from},tt.$to.get=function(){return this.ranges[0].$to},tt.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},et.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},et.prototype.replace=function(e,t){void 0===t&&(t=p.empty);for(var n=t.content.lastChild,i=null,r=0;r<t.openEnd;r++)i=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var l=s[a],u=l.$from,d=l.$to,c=e.mapping.slice(o);e.replaceRange(c.map(u.pos),c.map(d.pos),a?p.empty:t),0==a&&dt(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}},et.prototype.replaceWith=function(e,t){for(var n=e.steps.length,i=this.ranges,r=0;r<i.length;r++){var o=i[r],s=o.$from,a=o.$to,l=e.mapping.slice(n),u=l.map(s.pos),d=l.map(a.pos);r?e.deleteRange(u,d):(e.replaceRangeWith(u,d,t),dt(e,n,t.isInline?-1:1))}},et.findFrom=function(e,t,n){var i=e.parent.inlineContent?new it(e):ut(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(var r=e.depth-1;r>=0;r--){var o=t<0?ut(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):ut(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}},et.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new at(e.node(0))},et.atStart=function(e){return ut(e,e,0,0,1)||new at(e)},et.atEnd=function(e){return ut(e,e,e.content.size,e.childCount,-1)||new at(e)},et.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Qe[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},et.jsonID=function(e,t){if(e in Qe)throw new RangeError("Duplicate use of selection JSON ID "+e);return Qe[e]=t,t.prototype.jsonID=e,t},et.prototype.getBookmark=function(){return it.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(et.prototype,tt),et.prototype.visible=!0;var nt=function(e,t){this.$from=e,this.$to=t},it=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));if(!r.parent.inlineContent)return e.near(r);var o=n.resolve(i.map(this.anchor));return new t(o.parent.inlineContent?o:r,r)},t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),e.prototype.replace.call(this,t,n),n==p.empty){var i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new rt(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var i=e.resolve(t);return new this(i,n==t?i:e.resolve(n))},t.between=function(n,i,r){var o=n.pos-i.pos;if(r&&!o||(r=o>=0?1:-1),!i.parent.inlineContent){var s=e.findFrom(i,r,!0)||e.findFrom(i,-r,!0);if(!s)return e.near(i,r);i=s.$head}return n.parent.inlineContent||(0==o||(n=(e.findFrom(n,-r,!0)||e.findFrom(n,r,!0)).$anchor).pos<i.pos!=o<0)&&(n=i),new t(n,i)},Object.defineProperties(t.prototype,n),t}(et);et.jsonID("text",it);var rt=function(e,t){this.anchor=e,this.head=t};rt.prototype.map=function(e){return new rt(e.map(this.anchor),e.map(this.head))},rt.prototype.resolve=function(e){return it.between(e.resolve(this.anchor),e.resolve(this.head))};var ot=function(e){function t(t){var n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,i),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=i.mapResult(this.anchor),o=r.deleted,s=r.pos,a=n.resolve(s);return o?e.near(a):new t(a)},t.prototype.content=function(){return new p(o.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new st(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(et);ot.prototype.visible=!1,et.jsonID("node",ot);var st=function(e){this.anchor=e};st.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new rt(i,i):new st(i)},st.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ot.isSelectable(n)?new ot(t):et.near(t)};var at=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),n==p.empty){t.delete(0,t.doc.content.size);var i=e.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return lt},t}(et);et.jsonID("all",at);var lt={map:function(){return this},resolve:function(e){return new at(e)}};function ut(e,t,n,i,r,o){if(t.inlineContent)return it.create(e,n);for(var s=i-(r>0?0:1);r>0?s<t.childCount:s>=0;s+=r){var a=t.child(s);if(a.isAtom){if(!o&&ot.isSelectable(a))return ot.create(e,n-(r<0?a.nodeSize:0))}else{var l=ut(e,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}}function dt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var r,o=e.steps[i];if(o instanceof Oe||o instanceof Ie)e.mapping.maps[i].forEach((function(e,t,n,i){null==r&&(r=i)})),e.setSelection(et.near(e.doc.resolve(r),n))}}var ct=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return d.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||d.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var i=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var r=this.storedMarks;if(!r){var o=this.doc.resolve(t);r=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,r)),this.selection.empty||this.setSelection(et.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(ke);function pt(e,t){return t&&e?e.bind(t):e}var ht=function(e,t,n){this.name=e,this.init=pt(t.init,n),this.apply=pt(t.apply,n)},ft=[new ht("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new ht("selection",{init:function(e,t){return e.selection||et.atStart(t.doc)},apply:function(e){return e.selection}}),new ht("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new ht("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],vt=function(e,t){var n=this;this.schema=e,this.fields=ft.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new ht(e.key,e.spec.state,e))}))},mt=function(e){this.config=e},gt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};gt.schema.get=function(){return this.config.schema},gt.plugins.get=function(){return this.config.plugins},mt.prototype.apply=function(e){return this.applyTransaction(e).state},mt.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var i=this.config.plugins[n];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0},mt.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),i=null;;){for(var r=!1,o=0;o<this.config.plugins.length;o++){var s=this.config.plugins[o];if(s.spec.appendTransaction){var a=i?i[o].n:0,l=i?i[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(var d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),r=!0}i&&(i[o]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}},mt.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new mt(this.config),n=this.config.fields,i=0;i<n.length;i++){var r=n[i];t[r.name]=r.apply(e,this[r.name],this,t)}for(var o=0;o<bt.length;o++)bt[o](this,e,t);return t},gt.tr.get=function(){return new ct(this)},mt.create=function(e){for(var t=new vt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new mt(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},mt.prototype.reconfigure=function(e){for(var t=new vt(this.schema,e.plugins),n=t.fields,i=new mt(t),r=0;r<n.length;r++){var o=n[r].name;i[o]=this.hasOwnProperty(o)?this[o]:n[r].init(e,i)}return i},mt.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var i=e[n],r=i.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(i,this[i.key]))}return t},mt.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new vt(e.schema,e.plugins),r=new mt(i);return i.fields.forEach((function(i){if("doc"==i.name)r.doc=D.fromJSON(e.schema,t.doc);else if("selection"==i.name)r.selection=et.fromJSON(r.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var o in n){var s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,o))return void(r[i.name]=a.fromJSON.call(s,e,t[o],r))}r[i.name]=i.init(e,r)}})),r},mt.addApplyListener=function(e){bt.push(e)},mt.removeApplyListener=function(e){var t=bt.indexOf(e);t>-1&&bt.splice(t,1)},Object.defineProperties(mt.prototype,gt);var bt=[];var yt=function(e){this.props={},e.props&&function e(t,n,i){for(var r in t){var o=t[r];o instanceof Function?o=o.bind(n):"handleDOMEvents"==r&&(o=e(o,n,{})),i[r]=o}return i}(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:wt("plugin")};yt.prototype.getState=function(e){return e[this.key]};var kt=Object.create(null);function wt(e){return e in kt?e+"$"+ ++kt[e]:(kt[e]=0,e+"$")}var St=function(e){void 0===e&&(e="key"),this.key=wt(e)};St.prototype.get=function(e){return e.config.pluginsByKey[this.key]},St.prototype.getState=function(e){return e[this.key]};var Ct="k-parent-node",xt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],$t=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Ct)===t})).forEach((function(e){e.removeAttribute(Ct),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Ot=function(e,t){var n=t.toUpperCase();e.filter((function(e){return e.nodeName===n})).forEach((function(e){Array.from(e.children).forEach((function(n){n.setAttribute(Ct,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},It=function(e,t){void 0===t&&(t=xt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Tt=function(e){var t,n=document.createElement("template");if("content"in n)n.innerHTML=e,t=n.content;else{var i=(new DOMParser).parseFromString(e,"text/html");t=document.createDocumentFragment();for(var r=i.body;r&&r.firstChild;)t.appendChild(r.firstChild)}return t},Dt=function(e){var t=ce.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){$t(e,"thead"),$t(e,"tbody"),$t(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},Vt=function(e,t,n){return ee.fromSchema(t).parse(e,n)},Mt=function(e,t,n){var i,r=Tt(e);return i=r,Array.from(i.querySelectorAll("table")).forEach((function(e){var t=Array.from(e.children);t.some((function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName}))&&(Ot(t,"thead"),Ot(t,"tbody"),Ot(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute("k-colgroup-data",n.outerHTML),n.remove())})),Vt(r,t,n)},Nt=function(e){var t=Dt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},Rt=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(i,r){return r(i.tr.setSelection(new at(i.doc)).replaceSelectionWith(Mt(e,i.schema,n)).setMeta("commandName",t))}};var Bt=function(){return(Bt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Pt(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}var Et=function(e,t){var n=t.style,i=t.value,r=t.newValue;if(!e)return{changed:!1,style:null};var o=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),s=o.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&i.test(t[1]))}));return r&&s.push(n+": "+r),{style:s.join("; ")+(s.length?";":""),changed:Boolean(r)||s.length!==o.length}},At=function(e,t){for(var n=e.selection.$from,i=n.depth;i>=0;i--){var r=n.index(i);if(n.node(i).canReplaceWith(r,r,t))return!0}return!1},jt=function(e){return e instanceof D?e.type.name:e.name},Lt=function(e,t){return void 0===t&&(t=1),function(n){return function(e,t){return void 0===t&&(t=1),function(n){for(var i=n.$from,r=i.depth;r>0;r--){var o=i.node(r);if(e(o)&&0===(t-=1))return{depth:r,node:o}}}}((function(t){return jt(t)===jt(e)}),t)(n)}},Ft=function(e,t){return function(n,i){var r=n.tr.replaceSelectionWith(e);t&&r.scrollIntoView(),i(r)}},zt=function(e,t,n,i){var r=o.from(Mt(e,n,i)),s=o.from(Mt(t,n,i));return r.eq(s)},Kt=function(e){var t=e.selection;if(t instanceof it||t instanceof at){var n=t.content().content;return n.textBetween(0,n.size)}return""},_t=function(e){if(e.selection instanceof ot)return e.selection.node},Ht=function(e){var t="",n=!1,i=e.selection,r=e.doc,o=i.$from,s=i.$to,a=i.from,l=i.to;return o.sameParent(s)&&(r.nodesBetween(a,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Kt(e))),t},Wt=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},Ut={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},qt=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?Ut:n.applyToWord,r=null,o=e.tr,s=e.selection,a=s.$head.nodeBefore,l=s.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&l&&"text"===l.type.name&&l.text){var u=[];s.$head.parent.descendants((function(e,t){return u.push({node:e,pos:t}),!1}));for(var d=s.$head.parentOffset,c=u.findIndex((function(e){var t=e.node,n=e.pos;return n<=d&&n+t.nodeSize>=d})),p=u[c].node.text,h=!1,f=c-1;f>=0;f--){var v=u[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,d-=v.node.nodeSize)}for(f=c+1;f<u.length;f++){if(!(v=u[f])||"text"!==v.node.type.name)break;p+=v.node.text}var m=p.substring(0,d),g=p.substring(d),b=i.before.exec(m),y=i.after.exec(g);if(b&&y){var k=b[0].length,w=y[0].length,S=r=s.from;o.setSelection(it.create(e.doc,S-k,S+w));return{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(it.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},Gt=function(e,t){return function(n,i,r){var o=qt(n,i,t),s=o.state,a=o.dispatch;return e(t)(s,a)}},Jt=function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0===o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1},Xt=function(e,t,n){return function(i,r){var o=i.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(i.doc,l,e))return!1;if(r)if(a)e.isInSet(i.storedMarks||a.marks())?r(n.removeStoredMark(e)):r(n.addStoredMark(e.create(t)));else{for(var u=!1,d=0;!u&&d<l.length;d++){var c=l[d],p=c.$from,h=c.$to;u=i.doc.rangeHasMark(p.pos,h.pos,e)}for(d=0;d<l.length;d++){var f=l[d];p=f.$from,h=f.$to;u?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}r(n.scrollIntoView())}return!0}},Yt=function(e,t,n,i){void 0===i&&(i=null);var r=[],o=0;return e.doc.nodesBetween(t,n,(function(e,s){if(e.isInline){o++;var a=null;if(i instanceof Y){var l=i.isInSet(e.marks);l&&(a=[l])}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length)for(var u=Math.min(s+e.nodeSize,n),d=0;d<a.length;d++){for(var c=a[d],p=void 0,h=0;h<r.length;h++){var f=r[h];f.step===o-1&&c.eq(f.style)&&(p=f)}p?(p.to=u,p.step=o):r.push({style:c,from:Math.max(s,t),to:u,step:o})}}})),r.forEach((function(t){return e.step(new ze(t.from,t.to,t.style))})),e},Zt=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,r=e.tr;Qt(r,{except:(i=n,i instanceof Array?i:[i])}),r.docChanged&&t(r)}},Qt=function(e,t){var n=t.except,i=e.doc,r=e.selection,o=i.type.schema,s=r.empty,a=r.ranges,l=(n||[]).map((function(e){return e.name}));if(!s){var u=Object.keys(o.marks).map((function(e){return o.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));a.forEach((function(t){var n=t.$from,i=t.$to;u.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},en=function(e,t){var n,i=e.schema.marks,r=(t.altMarks||[]).filter((function(e){return i[e]})),o=t.altStyle,s=e.selection,a=s.from,l=s.$from,u=s.to,d=s.empty,c=i[t.mark],p=e.doc,h=!1;return d?(n=e.storedMarks||l.marks(),h=c&&c.isInSet(n)||r.some((function(e){return i[e].isInSet(n)}))):h=c&&p.rangeHasMark(a,u,c)||r.some((function(e){return p.rangeHasMark(a,u,i[e])})),!h&&o&&i.style?nn(e,i.style).some((function(e){return null!==tn(e,o)})):Boolean(h)},tn=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter((function(e){return Boolean(e)})),i=0;i<n.length;i++){var r=n[i].split(/\s*:\s*/);if(r[0].toLowerCase()===t.name&&t.value.test(r[1]))return r[1]}return null},nn=function(e,t){var n=e.selection,i=n.from,r=n.$from,o=n.to,s=n.empty,a=[];return s?a.push(t.isInSet(e.storedMarks||r.marks())):e.doc.nodesBetween(i,o,(function(e){e.isInline&&a.push(t.isInSet(e.marks))})),a},rn=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},on=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},sn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return Et(i,t)},an=function(e,t,n,i,r){var o=r.create({style:i.style}),s=[],a=[],l=null,u=null;return e.doc.nodesBetween(t,n,(function(e,d,c){if(e.isInline){var p=e.marks;if(!o.isInSet(p)&&c.type.allowsMarkType(o.type)){var h=Math.max(d,t),f=Math.min(d+e.nodeSize,n),v=sn(p,i);if(v.changed||i.newValue){for(var m=v.changed?{style:v.style||null}:{style:[i.style]+": "+i.newValue+";"},g=r.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,b=g?Bt({},g.attrs,m):m,y=r.create(b),k=y.addToSet(p),w=0;w<p.length;w++)p[w].isInSet(k)||(l&&l.to===h&&l.mark.eq(p[w])?l.to=f:(l=new ze(h,f,p[w]),s.push(l)));var S=u&&u.to===h,C=S&&y.attrs.style===u.mark.attrs.style;S&&C?u.to=f:Object.keys(b).some((function(e){return null!==b[e]}))&&(u=new Fe(h,f,y),a.push(u))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},ln=function(e,t){var n=e.schema.marks.style;return(n?nn(e,n):[]).map((function(e){return tn(e,t)})).filter((function(e){return null!==e}))},un=function(e,t){return function(n,i,r){var o=n.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(n.doc,l,e))return!1;var u,d,c,p,h=!1;if(i){var f=r||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=sn(v,t),g=v.find((function(e){return"style"===e.type.name})),b=Bt({},g?g.attrs:{},{style:m.style||null});if(u=g.attrs,d=b,c=Object.keys(u),p=Object.keys(d),c.length===p.length&&c.every((function(e){return u[e]===d[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(b).some((function(e){return null!==b[e]}))&&i(f.addStoredMark(e.create(b))),h=!0}}else{for(var y=0;y<l.length;y++){var k=l[y],w=k.$from,S=k.$to;h=an(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},dn=function(e,t,n){return function(i,r){var o=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,u=e.mark,d=t||i.tr,c=!1,p=!1,h=function(){return p=!0};s&&o.style&&(c=un(o.style,{style:s.name,value:s.value})(i,h,d));var f=[u].concat(l).filter((function(e){return o[e]})).map((function(e){return en(i,{mark:e})&&o[e]})).filter((function(e){return e}));return f.length?function(e,t,n,i){var r=t.selection,o=r.$cursor,s=r.ranges;if(i=i||t.tr,o)e.forEach((function(e){e.isInSet(t.storedMarks||o.marks())&&n(i.removeStoredMark(e))}));else{for(var a=function(t){var n=s[t],r=n.$from,o=n.$to;e.forEach((function(e){Yt(i,r.pos,o.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,d):c||Xt(o[u],n,d)(i,h),p&&r(d),p}},cn=function(e,t){return function(n,i){var r=n.schema.marks.style,o={style:e.style,value:/^.+$/,newValue:e.value},s=n.tr;t&&s.setMeta("commandName",t),s.setMeta("args",e);var a=n.selection,l=a.empty,u=a.$cursor,d=a.ranges;if(l&&!u||!r||!Jt(n.doc,d,r))return!1;if(u){var c=n.storedMarks||u.marks(),p=r.isInSet(c)?c.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Et(p.attrs.style,o);f.changed&&f.style&&(h.style=f.style)}else o.newValue&&(h.style=[o.style]+": "+o.newValue+";");var v=p?Bt({},p.attrs,h):h;return Object.keys(v).some((function(e){return null!==v[e]}))?i(s.addStoredMark(r.create(v))):i(s.removeStoredMark(r)),!0}return un(r,o)(n,i,s)}},pn=function(e,t){return function(n,i){var r=n.selection.$cursor;if(r){var o=r.parent,s=r.index(),a=n.schema.marks[e.mark],l=o.child(s).marks.find((function(e){return e.type===a})),u=o.childCount,d=r.pos-r.textOffset,c=o.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(o.child(p).marks);)c+=h=o.child(p).nodeSize,d-=h,p-=1;for(p=s+1;p<u&&l.isInSet(o.child(p).marks);)c+=o.child(p).nodeSize,p+=1;i(Yt(t||n.tr,d,d+c,l))}else dn(e,t)(n,i)}},hn=function(e,t){var n=e.mark,i=e.attrs;return void 0===t&&(t="link"),function(e,r){var o=e.schema.marks,s=e.tr;t&&(s.setMeta("commandName",t),s.setMeta("args",i));var a=!1,l=function(){return a=!0};if(function(e,t){var n=nn(e,t);return 1===n.length&&n[0]?n[0]:null}(e,o[n]))!function(e,t){return function(n,i){var r=n.selection,o=r.$cursor,s=r.from,a=r.to,l=n.schema.marks[e.mark];if(o){var u=o.parent,d=o.index(),c=u.child(d).marks.find((function(e){return e.type===l})),p=u.childCount,h=o.pos-o.textOffset,f=u.child(d).nodeSize,v=void 0,m=void 0;for(v=d-1;v>=0&&c.isInSet(u.child(v).marks);)f+=m=u.child(v).nodeSize,h-=m,v-=1;for(v=d+1;v<p&&c.isInSet(u.child(v).marks);)f+=u.child(v).nodeSize,v+=1;t.removeMark(h,h+f,l),t.addMark(h,h+f,l.create(e.attrs)),i(t)}else t.doc.nodesBetween(s,a,(function(n,r){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(r,r+n.nodeSize,l),t.addMark(r,r+n.nodeSize,l.create(e.attrs)),i(t))}))}}({mark:n,attrs:i},s)(e,l);else{var u=e;en(e,{mark:n})&&(pn({mark:n,attrs:i},s)(e,l),u=mt.create({doc:s.doc,selection:s.selection})),a?Xt(o[n],i,s)(u,l):dn({mark:n},s,i)(u,l)}return a&&r(s),a}},fn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},vn=function(e){return function(t,n){var i=t.schema.nodes.image,r=i.createAndFill(e);Ft(r)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},mn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(r){var s=e.steps.length,a=r.$from.pos,l=r.$to.pos;e.doc.nodesBetween(a,l,(function(r,a){if(r.eq(t)&&r.isTextblock&&!r.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(s).map(a),n)){e.clearIncompatible(e.mapping.slice(s).map(a,1),n);var l=e.mapping.slice(s),u=l.map(a,1),d=l.map(a+r.nodeSize,1),c=new p(o.from(n.create(i,null,r.marks)),0,0);return e.step(new Ie(u,d,u+1,d-1,c,1,!0)),!1}}))}))},gn=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,i=e.selection,r=i.$from,o=i.ranges,s=t.blocksInSelection,a=[],l=i instanceof ot?i.node:void 0;return l?l.isBlock?(a.push(l),l.nodesBetween(0,l.content.size,(function(e){e.isBlock&&a.push(e)}))):!s&&r.parent&&r.parent.isBlock&&a.push(r.parent):o.forEach((function(e){var t=e.$from.pos,i=e.$to.pos;n.nodesBetween(t,i,(function(e,n,r,o){e.isBlock&&(!s||n>=t&&n+e.content.size+2<=i)&&a.push(e)}))})),a},bn=function(e,t){return function(n,i){var r=gn(n),o=n.schema.nodes,s=n.tr;s.setMeta("commandName",t),s.setMeta("args",{value:e}),r.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,i=n.level,r=Pt(n,["level"]);mn(s,t,o.paragraph,r)}else if(/^h[1-6]$/i.test(e)){i=parseInt(e.substr(1),10);mn(s,t,o.heading,Bt({},t.attrs,{level:i}))}else if("blockquote"===e){var a=t.attrs;i=a.level,r=Pt(a,["level"]);mn(s,t,o.blockquote,r)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},yn=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,r=t.blocksInSelection,o=t.blockNodeType;gn({doc:n,selection:i},{blocksInSelection:r}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},i=n.style,r=void 0===i?"":i,s=n.class,a=void 0===s?"":s,l=Pt(n,["style","class"]),u=o||t.type;(r||a||u!==t.type)&&mn(e,t,u,l)}))},kn=function(e){var t=gn(e),n=e.schema.nodes,i=[];return t.forEach((function(e){e.type===n.paragraph?i.push("p"):e.type===n.heading?i.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&i.push("blockquote")})),i},wn=function(e,t){var n,i,r=e.attrs.style;r&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=Et(r,i),r=n.changed?n.style:r}));return r=r||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:r||null})},Sn=function(e,t){var n=e.selection,i=n.from,r=n.to,o=!1;return e.doc.nodesBetween(i,r,(function(e){return!(o=o||e.type===t)})),o},Cn=function(e){var t=kn(e);return 1===new Set(t).size?t[0]:null},xn=function(e){return{tag:Cn(e)||""}},$n=function(e,t){return function(n,i){var r=gn(n),o=n.tr;o.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var n={},i=e.find((function(e){return e.node===t.type.name}));i&&(n=wn(t,i.style)),mn(o,t,t.type,n)}}));var s=o.docChanged;return s&&i(o.scrollIntoView()),s}},On=function(e,t){var n=gn(e),i=!1;return n.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));n&&(i=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i},In=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var i=t.tr,r=e.blocksInSelection,o=e.blockNodeType,s=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);Qt(i,{except:s}),yn(i,{blocksInSelection:r,blockNodeType:o});var a=i.docChanged;return a&&n&&n(i),a}},Tn=["ol",0],Dn=["ul",0],Vn=["li",0],Mn={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?Tn:["ol",{start:e.attrs.order},0]}},Nn={parseDOM:[{tag:"ul"}],toDOM:function(){return Dn}},Rn={parseDOM:[{tag:"li"}],toDOM:function(){return Vn},defining:!0};function Bn(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)n[r]=t[r];return n}function Pn(e,t,n){return e.append({ordered_list:Bn(Mn,{content:"list_item+",group:n}),bullet_list:Bn(Nn,{content:"list_item+",group:n}),list_item:Bn(Rn,{content:t})})}function En(e,t){return function(n,i){var r=n.selection,s=r.$from,a=r.$to,l=s.blockRange(a),u=!1,d=l;if(!l)return!1;if(l.depth>=2&&s.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==s.index(l.depth-1))return!1;var c=n.doc.resolve(l.start-2);d=new O(c,c,l.depth),l.endIndex<l.parent.childCount&&(l=new O(s,n.doc.resolve(a.end(l.depth)),l.depth)),u=!0}var h=Me(d,e,t,l);return!!h&&(i&&i(function(e,t,n,i,r){for(var s=o.empty,a=n.length-1;a>=0;a--)s=o.from(n[a].type.create(n[a].attrs,s));e.step(new Ie(t.start-(i?2:0),t.end,t.start,t.end,new p(s,0,0),n.length,!0));for(var l=0,u=0;u<n.length;u++)n[u].type==r&&(l=u+1);for(var d=n.length-l,c=t.start+n.length-(i?2:0),h=t.parent,f=t.startIndex,v=t.endIndex,m=!0;f<v;f++,m=!1)!m&&Re(e.doc,c,d)&&(e.split(c,d),c+=2*d),c+=h.child(f).nodeSize;return e}(n.tr,l,h,u,e).scrollIntoView()),!0)}}function An(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=i.node;if(a&&a.isBlock||r.depth<2||!r.sameParent(s))return!1;var l=r.node(-1);if(l.type!=e)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(2==r.depth||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){for(var u=o.empty,d=r.index(-1)?1:r.index(-2)?2:3,c=r.depth-d;c>=r.depth-3;c--)u=o.from(r.node(c).copy(u));var h=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;u=u.append(o.from(e.createAndFill()));var f=r.before(r.depth-(d-1)),v=t.tr.replace(f,r.after(-h),new p(u,4-d,0)),m=-1;v.doc.nodesBetween(f,v.doc.content.size,(function(e,t){if(m>-1)return!1;e.isTextblock&&0==e.content.size&&(m=t+1)})),m>-1&&v.setSelection(t.selection.constructor.near(v.doc.resolve(m))),n(v.scrollIntoView())}return!0}var g=s.pos==r.end()?l.contentMatchAt(0).defaultType:null,b=t.tr.delete(r.pos,s.pos),y=g&&[null,{type:g}];return!!Re(b.doc,r.pos,2,y)&&(n&&n(b.split(r.pos,2,y).scrollIntoView()),!0)}}function jn(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));return!!a&&(!n||(r.node(a.depth-1).type==e?function(e,t,n,i){var r=e.tr,s=i.end,a=i.$to.end(i.depth);s<a&&(r.step(new Ie(s-1,a,s,a,new p(o.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new O(r.doc.resolve(i.$from.pos),r.doc.resolve(a),i.depth));return t(r.lift(i,Ve(i)).scrollIntoView()),!0}(t,n,e,a):function(e,t,n){for(var i=e.tr,r=n.parent,s=n.end,a=n.endIndex-1,l=n.startIndex;a>l;a--)s-=r.child(a).nodeSize,i.delete(s-1,s+1);var u=i.doc.resolve(n.start),d=u.nodeAfter;if(i.mapping.map(n.end)!=n.start+u.nodeAfter.nodeSize)return!1;var c=0==n.startIndex,h=n.endIndex==r.childCount,f=u.node(-1),v=u.index(-1);if(!f.canReplace(v+(c?0:1),v+1,d.content.append(h?o.empty:o.from(r))))return!1;var m=u.pos,g=m+d.nodeSize;return i.step(new Ie(m-(c?1:0),g+(h?1:0),m+1,g-1,new p((c?o.empty:o.from(r.copy(o.empty))).append(h?o.empty:o.from(r.copy(o.empty))),c?0:1,h?0:1),c?0:1)),t(i.scrollIntoView()),!0}(t,n,a)))}}function Ln(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));if(!a)return!1;var l=a.startIndex;if(0==l)return!1;var u=a.parent,d=u.child(l-1);if(d.type!=e)return!1;if(n){var c=d.lastChild&&d.lastChild.type==u.type,h=o.from(c?e.create():null),f=new p(o.from(e.create(null,o.from(u.type.create(null,h)))),c?3:1,0),v=a.start,m=a.end;n(t.tr.step(new Ie(v-(c?3:1),m,v,m,f,1,!0)).scrollIntoView())}return!0}}var Fn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},zn={listType:Fn.orderedList,types:Bt({},Fn)},Kn={listType:Fn.bulletList,types:Bt({},Fn)},_n={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:Bt({},Fn)},Hn={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:Bt({},Fn)};function Wn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function Un(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var r=Jn(i);if(!r){var o=i.blockRange(),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}var a=r.nodeBefore;if(!a.type.spec.isolating&&ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(a,"end")||ot.isSelectable(a))){var l=Ke(e.doc,i.before(),i.after(),p.empty);if(l.slice.size<l.to-l.from){if(t){var u=e.tr.step(l);u.setSelection(qn(a,"end")?et.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):ot.create(u.doc,r.pos-a.nodeSize)),t(u.scrollIntoView())}return!0}}return!(!a.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0)}function qn(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function Gn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=Jn(r)}var s=o&&o.nodeBefore;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}function Jn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Xn(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;var r=Zn(i);if(!r)return!1;var o=r.nodeAfter;if(ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(o,"start")||ot.isSelectable(o))){var s=Ke(e.doc,i.before(),i.after(),p.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(qn(o,"start")?et.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):ot.create(a.doc,a.mapping.map(r.pos))),t(a.scrollIntoView())}return!0}}return!(!o.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),!0)}function Yn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=Zn(r)}var s=o&&o.nodeAfter;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos)).scrollIntoView()),!0)}function Zn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function Qn(e,t){var n,i=e.selection,r=i instanceof ot;if(r){if(i.node.isTextblock||!Be(e.doc,i.from))return!1;n=i.from}else if(null==(n=Ee(e.doc,i.from,-1)))return!1;if(t){var o=e.tr.join(n);r&&o.setSelection(ot.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0}function ei(e,t){var n,i=e.selection;if(i instanceof ot){if(i.node.isTextblock||!Be(e.doc,i.to))return!1;n=i.to}else if(null==(n=Ee(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function ti(e,t){var n=e.selection,i=n.$from,r=n.$to,o=i.blockRange(r),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}function ni(e,t){var n=e.selection,i=n.$head,r=n.$anchor;return!(!i.parent.type.spec.code||!i.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function ii(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ri(e,t){var n=e.selection,i=n.$head,r=n.$anchor;if(!i.parent.type.spec.code||!i.sameParent(r))return!1;var o=i.node(-1),s=i.indexAfter(-1),a=ii(o.contentMatchAt(s));if(!o.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),u=e.tr.replaceWith(l,l,a.createAndFill());u.setSelection(et.near(u.doc.resolve(l),1)),t(u.scrollIntoView())}return!0}function oi(e,t){var n=e.selection,i=n.$from,r=n.$to;if(n instanceof at||i.parent.inlineContent||r.parent.inlineContent)return!1;var o=ii(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){var s=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,a=e.tr.insert(s,o.createAndFill());a.setSelection(it.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function si(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var i=n.before();if(Re(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var r=n.blockRange(),o=r&&Ve(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}function ai(e,t){var n=e.selection,i=n.$from,r=n.$to;if(e.selection instanceof ot&&e.selection.node.isBlock)return!(!i.parentOffset||!Re(e.doc,i.pos))&&(t&&t(e.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(t){var o=r.parentOffset==r.parent.content.size,s=e.tr;(e.selection instanceof it||e.selection instanceof at)&&s.deleteSelection();var a=0==i.depth?null:ii(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=o&&a?[{type:a}]:null,u=Re(s.doc,s.mapping.map(i.pos),1,l);if(l||u||!Re(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],u=!0),u&&(s.split(s.mapping.map(i.pos),1,l),!o&&!i.parentOffset&&i.parent.type!=a)){var d=s.mapping.map(i.before()),c=s.doc.resolve(d);i.node(-1).canReplaceWith(c.index(),c.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function li(e,t){return ai(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function ui(e,t){var n,i=e.selection,r=i.$from,o=i.to,s=r.sharedDepth(o);return 0!=s&&(n=r.before(s),t&&t(e.tr.setSelection(ot.create(e.doc,n))),!0)}function di(e,t){return t&&t(e.tr.setSelection(new at(e.doc))),!0}function ci(e,t,n){var i,r,s=t.nodeBefore,a=t.nodeAfter;if(s.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,n){var i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!!(i&&r&&i.type.compatibleContent(r.type))&&(!i.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Be(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;var l=t.parent.canReplace(t.index(),t.index()+1);if(l&&(i=(r=s.contentMatchAt(s.childCount)).findWrapping(a.type))&&r.matchType(i[0]||a.type).validEnd){if(n){for(var u=t.pos+a.nodeSize,d=o.empty,c=i.length-1;c>=0;c--)d=o.from(i[c].create(null,d));d=o.from(s.copy(d));var h=e.tr.step(new Ie(t.pos-1,u,t.pos,u,new p(d,1,0),i.length,!0)),f=u+2*i.length;Be(h.doc,f)&&h.join(f),n(h.scrollIntoView())}return!0}var v=et.findFrom(t,1),m=v&&v.$from.blockRange(v.$to),g=m&&Ve(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(l&&qn(a,"start",!0)&&qn(s,"end")){for(var b=s,y=[];y.push(b),!b.isTextblock;)b=b.lastChild;for(var k=a,w=1;!k.isTextblock;k=k.firstChild)w++;if(b.canReplace(b.childCount,b.childCount,k.content)){if(n){for(var S=o.empty,C=y.length-1;C>=0;C--)S=o.from(y[C].copy(S));n(e.tr.step(new Ie(t.pos-y.length,t.pos+a.nodeSize,t.pos+w,t.pos+a.nodeSize-w,new p(S,y.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function pi(e){return function(t,n){for(var i=t.selection,r=e<0?i.$from:i.$to,o=r.depth;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(n&&n(t.tr.setSelection(it.create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}var hi=pi(-1),fi=pi(1);function vi(e,t){return function(n,i){var r=n.selection,o=r.$from,s=r.$to,a=o.blockRange(s),l=a&&Me(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function mi(e,t){return function(n,i){var r=n.selection,o=r.from,s=r.to,a=!1;return n.doc.nodesBetween(o,s,(function(i,r){if(a)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)a=!0;else{var o=n.doc.resolve(r),s=o.index();a=o.parent.canReplaceWith(s,s+1,e)}})),!!a&&(i&&i(n.tr.setBlockType(o,s,e,t).scrollIntoView()),!0)}}function gi(e,t){return function(n,i){var r=n.selection,o=r.empty,s=r.$cursor,a=r.ranges;if(o&&!s||!function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1}(n.doc,a,e))return!1;if(i)if(s)e.isInSet(n.storedMarks||s.marks())?i(n.tr.removeStoredMark(e)):i(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,u=n.tr,d=0;!l&&d<a.length;d++){var c=a[d],p=c.$from,h=c.$to;l=n.doc.rangeHasMark(p.pos,h.pos,e)}for(var f=0;f<a.length;f++){var v=a[f],m=v.$from,g=v.$to;if(l)u.removeMark(m.pos,g.pos,e);else{var b=m.pos,y=g.pos,k=m.nodeAfter,w=g.nodeBefore,S=k&&k.isText?/^\s*/.exec(k.text)[0].length:0,C=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;b+S<y&&(b+=S,y-=C),u.addMark(b,y,e.create(t))}}i(u.scrollIntoView())}return!0}}function bi(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,i,r){return e(n,i&&function(e,t){return function(n){if(!n.isGeneric)return e(n);for(var i=[],r=0;r<n.mapping.maps.length;r++){for(var o=n.mapping.maps[r],s=0;s<i.length;s++)i[s]=o.map(i[s]);o.forEach((function(e,t,n,r){return i.push(n,r)}))}for(var a=[],l=0;l<i.length;l+=2)for(var u=i[l],d=i[l+1],c=n.doc.resolve(u),p=c.sharedDepth(d),h=c.node(p),f=c.indexAfter(p),v=c.after(p+1);v<=d;++f){var m=h.maybeChild(f);if(!m)break;if(f&&-1==a.indexOf(v)){var g=h.child(f-1);g.type==m.type&&t(g,m)&&a.push(v)}v+=m.nodeSize}a.sort((function(e,t){return e-t}));for(var b=a.length-1;b>=0;b--)Be(n.doc,a[b])&&n.join(a[b]);e(n)}}(i,t),r)}}function yi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,i){for(var r=0;r<e.length;r++)if(e[r](t,n,i))return!0;return!1}}var ki=yi(Wn,Un,Gn),wi=yi(Wn,Xn,Yn),Si={Enter:yi(ni,oi,si,ai),"Mod-Enter":ri,Backspace:ki,"Mod-Backspace":ki,"Shift-Backspace":ki,Delete:wi,"Mod-Delete":wi,"Mod-a":di},Ci={"Ctrl-h":Si.Backspace,"Alt-Backspace":Si["Mod-Backspace"],"Ctrl-d":Si.Delete,"Ctrl-Alt-Backspace":Si["Mod-Delete"],"Alt-Delete":Si["Mod-Delete"],"Alt-d":Si["Mod-Delete"],"Ctrl-a":hi,"Ctrl-e":fi};for(var xi in Si)Ci[xi]=Si[xi];Si.Home=hi,Si.End=fi;var $i=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Ci:Si,Oi=function(e,t){return vi(e.schema.nodes.blockquote)(e,t)},Ii=function(e,t){var n=e.selection,i=n.$from,r=n.$to,o=e.schema.nodes.blockquote,s=e.doc,a=-1,l=i.blockRange(r);l&&s.nodesBetween(l.start,l.end,(function(e,t,n,i){e.type===o&&(a=t)}));var u=-1!==a;return t&&u&&t(e.tr.lift(l,s.resolve(a).depth)),u},Ti=function(e,t,n){return function(i,r){var o=gn(i),s=i.tr;s.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var i=void 0,r=e.find((function(e){return e.node===t.type.name}));if(r){var o="rtl"===n?r.rtlStyle:r.style,a={name:o,value:r.step>0?""+r.step+r.unit:""};if(t.attrs.style){var l=new RegExp(o+":\\s?(\\d+)"+r.unit,"i"),u=t.attrs.style.match(l);if(u){var d=parseFloat(u[1])+r.step;d=d<=0?"":d,a.value=""+d+(d?r.unit:"")}}i=wn(t,[a])}i&&mn(s,t,t.type,i)}}));var a=s.docChanged;return a&&r(s.scrollIntoView()),a}},Di=function(e,t,n){var i=gn(e),r=!1;return i.forEach((function(e){if(!r&&e.type.isTextblock&&e.attrs.style){var i=t.find((function(t){return t.node===e.type.name}));if(i){var o="rtl"===n?i.rtlStyle:i.style,s=new RegExp(o+":\\s?\\d+"+i.unit,"i");r=s.test(e.attrs.style)}}})),r},Vi=function(e,t){return Ln(t)(e)},Mi=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],r=e.schema.nodes[t.listsTypes.bulletList],o=!!Lt(i,2)(e.selection),s=!!Lt(r,2)(e.selection);return(o||s)&&jn(n)(e)},Ni=function(e,t){var n=e.schema.nodes,i=n[_n.listsTypes.listItem];return(Di(e,t.nodes)||_n.nodes.some((function(t){return n[t.node]&&Sn(e,n[t.node])})))&&!Sn(e,i)},Ri=function(e,t){var n=e.schema.nodes[_n.listsTypes.listItem],i=Ni(e,_n);Vi(e,n)?Ln(n)(e,t):i&&Ti(_n.nodes)(e,t)},Bi=function(e,t){var n=e.schema.nodes,i=n[Hn.listsTypes.listItem],r=Ni(e,Hn);Sn(e,n.blockquote)?Ii(e,t):Mi(e,Hn)?jn(i)(e,t):r&&Ti(Hn.nodes)(e,t)},Pi=function(e,t,n){for(var i=t.depth,r=e.nodes[n.bulletList],o=e.nodes[n.orderedList],s=e.nodes[n.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==r&&l.type!==o||(i=a),l.type!==r&&l.type!==o&&l.type!==s)break}return i-1};function Ei(e){return function(t,n,i){if(!i)return!1;var r=(t=i.state).schema.nodes[e.listType],o=t.selection,s=o.$from,a=o.$to,l=s.node(-2),u=s.node(-3),d=function(e,t,n,i){return 0===function(e,t,n){var i=Array(),r=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;var i=t.node(t.depth),r=t;for(;t.depth>=1;)t=e.resolve(t.before(t.depth)),(i=t.node(t.depth))&&-1!==n.indexOf(i.type.name)&&(r=t);return r}(e,t).depth,o=e.resolve(t.start(r));for(;o.pos<=n.start(n.depth);){var s=Math.min(o.depth,r),a=o.node(s);if(a&&i.push(a),0===s)break;var l=e.resolve(o.after(s));if(l.start(s)>=e.nodeSize-2)break;l.depth!==o.depth&&(l=e.resolve(l.pos+2)),o=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return i}(e,t,n).filter((function(e){return e.type!==i})).length}(t.doc,s,a,r);return(l&&l.type===r||u&&u.type===r)&&d?ji(e)(t,n):(d||(ji(e)(t,n),t=i.state),function(e,t){void 0===t&&(t={});return bi(En(e,t),(function(t,n){return t.type===n.type&&t.type===e}))}(r,e.listAttrs)(t,n))}}function Ai(e,t,n,i){var r=i||e.schema.nodes.listItem,s=t.$from,a=t.$to,l=s.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||s.node(l.depth-1).type!==r)return n;var u=l.end,d=a.end(l.depth);return u<d&&(n.step(new Ie(u-1,d,u,d,new p(o.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new O(n.doc.resolve(s.pos),n.doc.resolve(d),l.depth)),n.lift(l,Ve(l)).scrollIntoView()}function ji(e){return function(t,n){var i=t.tr,r=t.selection,o=r.$from,s=r.$to;return i.doc.nodesBetween(o.pos,s.pos,(function(n,r){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var o=new ot(i.doc.resolve(i.mapping.map(r))),s=o.$from.blockRange(o.$to);if(!s||o.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var a=s&&Ve(s);if(null==a)return!1;i.lift(s,a)}})),n&&n(i),!0}}var Li=/list\-style\-type:\s?([\w-]+)/,Fi=function(e){var t=e.style||"",n=Li.exec(t);return n&&n[1]||""},zi=function(e,t,n,i,r){var o=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,u=l.$from.node(l.$from.depth-2),d=l.$to.node(l.$to.depth-2);if(u&&u.type.name===o&&Fi(u.attrs)===Fi(a)&&d&&d.type.name===o&&Fi(d.attrs)===Fi(a)){var c=n.state.schema.nodes,p={bulletList:c[i.bulletList],orderedList:c[i.orderedList],listItem:c[i.listItem]},h=function(e,t){for(var n,i=t.bulletList,r=t.orderedList,o=t.listItem,s=e.depth-1;s>0;s--){var a=e.node(s);if(a.type!==i&&a.type!==r||(n=s),a.type!==i&&a.type!==r&&a.type!==o)break}return n}(l.$to,p),f=function(e,t,n,i,r,o){o||(o=e.schema.nodes.listItem);var s=!1;return r.doc.nodesBetween(t,n,(function(n,a){if(!s&&n.type===o&&a>t){s=!0;for(var l=i+3;l>i+2;){var u=r.doc.resolve(r.mapping.map(a));l=u.depth;var d=r.doc.resolve(r.mapping.map(a+n.textContent.length)),c=new it(u,d);r=Ai(e,c,r,o)}}})),r}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return(f=function(e,t,n){var i=e.selection,r=i.from,o=i.to,s=e.schema.nodes,a=s.paragraph,l=s.heading,u=[];t.doc.nodesBetween(r,o,(function(e,t){e.type!==a&&e.type!==l||u.push({node:e,pos:t})}));for(var d=u.length-1;d>=0;d--){var c=u[d],p=t.doc.resolve(t.mapping.map(c.pos));if(p.depth>0){var h=void 0;h=c.node.textContent&&c.node.textContent.length>0?t.doc.resolve(t.mapping.map(c.pos+c.node.textContent.length)):t.doc.resolve(t.mapping.map(c.pos+1));var f=p.blockRange(h);f&&t.lift(f,Pi(e.schema,p,n))}}return t}(e,f,i)).setMeta("commandName",r),t(f),!0}return Ei(i)(e,t,n)};function Ki(e,t,n){return zi(e,t,n,Bt({listType:Kn.listType},Kn.types))}function _i(e,t,n){return zi(e,t,n,Bt({listType:zn.listType},zn.types))}for(var Hi=function(e,t){return{name:e,value:t}},Wi=[{node:"paragraph",style:[Hi("text-align","left")]},{node:"heading",style:[Hi("text-align","left")]}],Ui=[{node:"paragraph",style:[Hi("text-align","right")]},{node:"heading",style:[Hi("text-align","right")]}],qi=[{node:"paragraph",style:[Hi("text-align","center")]},{node:"heading",style:[Hi("text-align","center")]}],Gi=[{node:"paragraph",style:[Hi("text-align","justify")]},{node:"heading",style:[Hi("text-align","justify")]}],Ji=[{node:"paragraph",style:[Hi("text-align","")]},{node:"heading",style:[Hi("text-align","")]}],Xi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},Yi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},Zi="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),Qi="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),er="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),tr="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),nr="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ir=Zi&&(tr||+Zi[1]<57)||er&&tr,rr=0;rr<10;rr++)Xi[48+rr]=Xi[96+rr]=String(rr);for(rr=1;rr<=24;rr++)Xi[rr+111]="F"+rr;for(rr=65;rr<=90;rr++)Xi[rr]=String.fromCharCode(rr+32),Yi[rr]=String.fromCharCode(rr);for(var or in Xi)Yi.hasOwnProperty(or)||(Yi[or]=Xi[or]);var sr="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function ar(e){var t,n,i,r,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))r=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);sr?r=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),r&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function lr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function ur(e){return new yt({props:{handleKeyDown:dr(e)}})}function dr(e){var t=function(e){var t=Object.create(null);for(var n in e)t[ar(n)]=e[n];return t}(e);return function(e,n){var i,r=function(e){var t=!(ir&&(e.ctrlKey||e.altKey||e.metaKey)||(Qi||nr)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?Yi:Xi)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),o=1==r.length&&" "!=r,s=t[lr(r,n,!o)];if(s&&s(e.state,e.dispatch,e))return!0;if(o&&(n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=Xi[n.keyCode])&&i!=r){var a=t[lr(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(o&&n.shiftKey){var l=t[lr(r,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var cr={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var pr=/Edge\/(\d+)/.exec(navigator.userAgent),hr=/MSIE \d/.test(navigator.userAgent),fr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),vr=cr.ie=!!(hr||fr||pr);cr.ie_version=hr?document.documentMode||6:fr?+fr[1]:pr?+pr[1]:null,cr.gecko=!vr&&/gecko\/(\d+)/i.test(navigator.userAgent),cr.gecko_version=cr.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var mr=!vr&&/Chrome\/(\d+)/.exec(navigator.userAgent);cr.chrome=!!mr,cr.chrome_version=mr&&+mr[1],cr.safari=!vr&&/Apple Computer/.test(navigator.vendor),cr.ios=cr.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),cr.mac=cr.ios||/Mac/.test(navigator.platform),cr.android=/Android \d/.test(navigator.userAgent),cr.webkit="webkitFontSmoothing"in document.documentElement.style,cr.webkit_version=cr.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var gr=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},br=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},yr=null,kr=function(e,t,n){var i=yr||(yr=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},wr=function(e,t,n,i){return n&&(Cr(e,t,n,i,-1)||Cr(e,t,n,i,1))},Sr=/^(img|br|input|textarea|hr)$/i;function Cr(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:xr(e))){var o=e.parentNode;if(1!=o.nodeType||$r(e)||Sr.test(e.nodeName)||"false"==e.contentEditable)return!1;t=gr(e)+(r<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?xr(e):0}}}function xr(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function $r(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Or=function(e){var t=e.isCollapsed;return t&&cr.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Ir(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Tr(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Dr(e,t){return"number"==typeof e?e:e[t]}function Vr(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Mr(e,t,n){for(var i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,s=n||e.dom;s;s=br(s))if(1==s.nodeType){var a=s==o.body||1!=s.nodeType,l=a?Tr(o):Vr(s),u=0,d=0;if(t.top<l.top+Dr(i,"top")?d=-(l.top-t.top+Dr(r,"top")):t.bottom>l.bottom-Dr(i,"bottom")&&(d=t.bottom-l.bottom+Dr(r,"bottom")),t.left<l.left+Dr(i,"left")?u=-(l.left-t.left+Dr(r,"left")):t.right>l.right-Dr(i,"right")&&(u=t.right-l.right+Dr(r,"right")),u||d)if(a)o.defaultView.scrollBy(u,d);else{var c=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);var h=s.scrollLeft-c,f=s.scrollTop-p;t={left:t.left-h,top:t.top-f,right:t.right-h,bottom:t.bottom-f}}if(a)break}}function Nr(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=br(e));return t}function Rr(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.dom,o=i.top,s=i.left;r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=s&&(r.scrollLeft=s)}}var Br=null;function Pr(e,t){for(var n,i,r=2e8,o=0,s=t.top,a=t.top,l=e.firstChild,u=0;l;l=l.nextSibling,u++){var d=void 0;if(1==l.nodeType)d=l.getClientRects();else{if(3!=l.nodeType)continue;d=kr(l).getClientRects()}for(var c=0;c<d.length;c++){var p=d[c];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var h=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(h<r){n=l,r=h,i=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&h&&(o=u+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=u+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,i=document.createRange(),r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);var o=jr(i,1);if(o.top!=o.bottom&&Er(t,o))return{node:e,offset:r+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||r&&1==n.nodeType?{node:e,offset:o}:Pr(n,i)}function Er(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Ar(e,t){var n,i,r,o,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(t.left,t.top);a&&(r=(n=a).offsetNode,o=n.offset)}catch(e){}if(!r&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(r=(i=l).startContainer,o=i.startOffset)}var u,d=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var c=e.dom.getBoundingClientRect();if(!Er(t,c))return null;if(!(d=function e(t,n,i){var r=t.childNodes.length;if(r&&i.top<i.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(n.top-i.top)/(i.bottom-i.top))-2)),s=o;;){var a=t.childNodes[s];if(1==a.nodeType)for(var l=a.getClientRects(),u=0;u<l.length;u++){var d=l[u];if(Er(n,d))return e(a,n,d)}if((s=(s+1)%r)==o)break}return t}(e.dom,t,c)))return null}if(cr.safari)for(var p=d;r&&p;p=br(p))p.draggable&&(r=o=null);if(d=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(d,t),r){if(cr.gecko&&1==r.nodeType&&(o=Math.min(o,r.childNodes.length))<r.childNodes.length){var h,f=r.childNodes[o];"IMG"==f.nodeName&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&o++}r==e.dom&&o==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=o&&1==r.nodeType&&"BR"==r.childNodes[o-1].nodeName||(u=function(e,t,n,i){for(var r=-1,o=t;o!=e.dom;){var s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right<i.left||a.bottom<i.top))break;r=s.posAfter}}o=s.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n)}(e,r,o,t))}null==u&&(u=function(e,t,n){var i=Pr(t,n),r=i.node,o=i.offset,s=-1;if(1==r.nodeType&&!r.firstChild){var a=r.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,o,s)}(e,d,t));var v=e.docView.nearestDesc(d,!0);return{pos:u,inside:v?v.posAtStart-v.border:-1}}function jr(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Lr=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fr(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),r=i.node,o=i.offset,s=cr.webkit||cr.gecko;if(3==r.nodeType){if(!s||!Lr.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){var a=o,l=o,u=n<0?1:-1;return n<0&&!o?(l++,u=-1):n>=0&&o==r.nodeValue.length?(a--,u=1):n<0?a--:l++,zr(jr(kr(r,a,l),u),u<0)}var d=jr(kr(r,o,o),n);if(cr.gecko&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){var c=jr(kr(r,o-1,o-1),-1);if(c.top==d.top){var p=jr(kr(r,o,o+1),-1);if(p.top!=d.top)return zr(p,p.left<c.left)}}return d}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==xr(r))){var h=r.childNodes[o-1];if(1==h.nodeType)return Kr(h.getBoundingClientRect(),!1)}if(o<xr(r)){var f=r.childNodes[o];if(1==f.nodeType)return Kr(f.getBoundingClientRect(),!0)}return Kr(r.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==xr(r))){var v=r.childNodes[o-1],m=3==v.nodeType?kr(v,xr(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return zr(jr(m,1),!1)}if(o<xr(r)){for(var g=r.childNodes[o];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var b=g?3==g.nodeType?kr(g,0,s?0:1):1==g.nodeType?g:null:null;if(b)return zr(jr(b,-1),!0)}return zr(jr(3==r.nodeType?kr(r):r,-n),n>=0)}function zr(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Kr(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function _r(e,t,n){var i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}var Hr=/[\u0590-\u08ac]/;var Wr=null,Ur=null,qr=!1;function Gr(e,t,n){return Wr==t&&Ur==n?qr:(Wr=t,Ur=n,qr="up"==n||"down"==n?function(e,t,n){var i=t.selection,r="up"==n?i.$from:i.$to;return _r(e,t,(function(){for(var t=e.docView.domFromPos(r.pos,"up"==n?-1:1).node;;){var i=e.docView.nearestDesc(t,!0);if(!i)break;if(i.node.isBlock){t=i.dom;break}t=i.dom.parentNode}for(var o=Fr(e,r.pos,1),s=t.firstChild;s;s=s.nextSibling){var a=void 0;if(1==s.nodeType)a=s.getClientRects();else{if(3!=s.nodeType)continue;a=kr(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var u=a[l];if(u.bottom>u.top+1&&("up"==n?o.top-u.top>2*(u.bottom-o.top):u.bottom-o.bottom>2*(o.bottom-u.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var i=t.selection.$head;if(!i.parent.isTextblock)return!1;var r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=e.root.getSelection();return Hr.test(i.parent.textContent)&&a.modify?_r(e,t,(function(){var t=a.getRangeAt(0),r=a.focusNode,o=a.focusOffset,s=a.caretBidiLevel;a.modify("move",n,"character");var l=!(i.depth?e.docView.domAfterPos(i.before()):e.dom).contains(1==a.focusNode.nodeType?a.focusNode:a.focusNode.parentNode)||r==a.focusNode&&o==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?o:s}(e,t,n))}var Jr=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},Xr={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};Jr.prototype.matchesWidget=function(){return!1},Jr.prototype.matchesMark=function(){return!1},Jr.prototype.matchesNode=function(){return!1},Jr.prototype.matchesHack=function(e){return!1},Jr.prototype.parseRule=function(){return null},Jr.prototype.stopEvent=function(){return!1},Xr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},Xr.border.get=function(){return 0},Jr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},Jr.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var i=this.children[t];if(i==e)return n;n+=i.size}},Xr.posBefore.get=function(){return this.parent.posBeforeChild(this)},Xr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},Xr.posAfter.get=function(){return this.posBefore+this.size},Xr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},Jr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var i,r;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&(!(r=i.pmViewDesc)||r.parent!=this);)i=i.previousSibling;return i?this.posBeforeChild(r)+r.size:this.posAtStart}var o,s;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&(!(s=o.pmViewDesc)||s.parent!=this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}var a;if(e==this.dom&&this.contentDOM)a=t>gr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){a=!1;break}if(l.parentNode.firstChild!=l)break}if(null==a&&t==e.childNodes.length)for(var u=e;;u=u.parentNode){if(u==this.dom){a=!0;break}if(u.parentNode.lastChild!=u)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},Jr.prototype.nearestDesc=function(e,t){for(var n=!0,i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r&&(!t||r.node)){if(!n||!r.nodeDOM||(1==r.nodeDOM.nodeType?r.nodeDOM.contains(1==e.nodeType?e:e.parentNode):r.nodeDOM==e))return r;n=!1}}},Jr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},Jr.prototype.posFromDOM=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r)return r.localPosFromDOM(e,t,n)}return-1},Jr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var i=this.children[t],r=n+i.size;if(n==e&&r!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<r)return i.descAt(e-n-i.border);n=r}},Jr.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,r=0;n<this.children.length;n++){var o=this.children[n],s=r+o.size;if(s>e||o instanceof ro){i=e-r;break}r=s}if(i)return this.children[n].domFromPos(i-this.children[n].border,t);for(var a=void 0;n&&!(a=this.children[n-1]).size&&a instanceof Zr&&a.widget.type.side>=0;n--);if(t<=0){for(var l,u=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,u=!1);return l&&t&&u&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?gr(l.dom)+1:0}}for(var d,c=!0;(d=n<this.children.length?this.children[n]:null)&&d.dom.parentNode!=this.contentDOM;n++,c=!1);return d&&c&&!d.border&&!d.domAtom?d.domFromPos(0,t):{node:this.contentDOM,offset:d?gr(d.dom):this.contentDOM.childNodes.length}},Jr.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var i=-1,r=-1,o=n,s=0;;s++){var a=this.children[s],l=o+a.size;if(-1==i&&e<=l){var u=o+a.border;if(e>=u&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=o;for(var d=s;d>0;d--){var c=this.children[d-1];if(c.size&&c.dom.parentNode==this.contentDOM&&!c.emptyChildAt(1)){i=gr(c.dom)+1;break}e-=c.size}-1==i&&(i=0)}if(i>-1&&(l>t||s==this.children.length-1)){t=l;for(var p=s+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){r=gr(h.dom);break}t+=h.size}-1==r&&(r=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:r}},Jr.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},Jr.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,i=t.offset;if(1!=n.nodeType||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]},Jr.prototype.setSelection=function(e,t,n,i){for(var r=Math.min(e,t),o=Math.max(e,t),s=0,a=0;s<this.children.length;s++){var l=this.children[s],u=a+l.size;if(r>a&&o<u)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=u}var d=this.domFromPos(e,e?-1:1),c=t==e?d:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((cr.gecko||cr.safari)&&e==t){var f=d.node,v=d.offset;if(3==f.nodeType){if((h=v&&"\n"==f.nodeValue[v-1])&&v==f.nodeValue.length)for(var m=f,g=void 0;m;m=m.parentNode){if(g=m.nextSibling){"BR"==g.nodeName&&(d=c={node:g.parentNode,offset:gr(g)+1});break}var b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{var y=f.childNodes[v-1];h=y&&("BR"==y.nodeName||"false"==y.contentEditable)}}if(cr.gecko&&p.focusNode&&p.focusNode!=c.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&cr.safari||!wr(d.node,d.offset,p.anchorNode,p.anchorOffset)||!wr(c.node,c.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(d.node,d.offset);try{e!=t&&p.extend(c.node,c.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=d;d=c,c=S}var C=document.createRange();C.setEnd(c.node,c.offset),C.setStart(d.node,d.offset),p.removeAllRanges(),p.addRange(C)}}},Jr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},Xr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},Jr.prototype.markDirty=function(e,t){for(var n=0,i=0;i<this.children.length;i++){var r=this.children[i],o=n+r.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var s=n+r.border,a=o-r.border;if(e>=s&&t<=a)return this.dirty=e==n||t==o?2:1,void(e!=s||t!=a||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-s,t-s):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=o}this.dirty=2},Jr.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},Xr.domAtom.get=function(){return!1},Xr.ignoreForCoords.get=function(){return!1},Object.defineProperties(Jr.prototype,Xr);var Yr=[],Zr=function(e){function t(t,n,i,r){var o,s=n.type.toDOM;if("function"==typeof s&&(s=s(i,(function(){return o?o.parent?o.parent.posBeforeChild(o):void 0:r}))),!n.type.spec.raw){if(1!=s.nodeType){var a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable=!1,s.classList.add("ProseMirror-widget")}e.call(this,t,Yr,s,null),this.widget=n,o=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(Jr),Qr=function(e){function t(t,n,i,r){e.call(this,t,Yr,n,null),this.textDOM=i,this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(Jr),eo=function(e){function t(t,n,i,r){e.call(this,t,[],i,r),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,i,r){var o=r.nodeViews[n.type.name],s=o&&o(n,r,i);return s&&s.dom||(s=ce.renderSpec(document,n.type.spec.toDOM(n,i))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var i=this.parent;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,i){var r=t.create(this.parent,this.mark,!0,i),o=this.children,s=this.size;n<s&&(o=go(o,n,s,i)),e>0&&(o=go(o,0,e,i));for(var a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r},t}(Jr),to=function(e){function t(t,n,i,r,o,s,a,l,u){e.call(this,t,n.isLeaf?Yr:[],o,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=r,s&&this.updateChildren(l,u)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,i,r,o,s){var a,l,u=o.nodeViews[n.type.name],d=u&&u(n,o,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,r),c=d&&d.dom,p=d&&d.contentDOM;if(n.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(n.text);else c||(c=(a=ce.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable=!1),n.type.spec.draggable&&(c.draggable=!0));var h=c;return c=po(c,i,n),d?l=new oo(e,n,i,r,c,p,h,d,o,s+1):n.isText?new io(e,n,i,r,c,h,o):new t(e,n,i,r,c,p,h,o,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?o.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&ho(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,i=this.node.inlineContent,r=t,o=e.composing&&this.localCompositionInfo(e,t),s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new vo(this,s&&s.node);!function(e,t,n,i){var r=t.locals(e),o=0;if(0==r.length){for(var s=0;s<e.childCount;s++){var a=e.child(s);i(a,r,t.forChild(o,a),s),o+=a.nodeSize}return}for(var l=0,u=[],d=null,c=0;;){if(l<r.length&&r[l].to==o){for(var p=r[l++],h=void 0;l<r.length&&r[l].to==o;)(h||(h=[p])).push(r[l++]);if(h){h.sort(mo);for(var f=0;f<h.length;f++)n(h[f],c,!!d)}else n(p,c,!!d)}var v=void 0,m=void 0;if(d)m=-1,v=d,d=null;else{if(!(c<e.childCount))break;m=c,v=e.child(c++)}for(var g=0;g<u.length;g++)u[g].to<=o&&u.splice(g--,1);for(;l<r.length&&r[l].from<=o&&r[l].to>o;)u.push(r[l++]);var b=o+v.nodeSize;if(v.isText){var y=b;l<r.length&&r[l].from<y&&(y=r[l].from);for(var k=0;k<u.length;k++)u[k].to<y&&(y=u[k].to);y<b&&(d=v.cut(y-o),v=v.cut(0,y-o),b=y,m=-1)}var w=u.length?v.isInline&&!v.isLeaf?u.filter((function(e){return!e.inline})):u.slice():Yr;i(v,w,t.forChild(o,v),m),o=b}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,i,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?d.none:n.node.child(o).marks,i,e),l.placeWidget(t,e,r)}),(function(t,n,s,u){var d;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,u)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(d=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,n,s,d,e)||l.updateNextNode(t,n,s,e,u)||l.addNode(t,n,s,e,r),r+=t.nodeSize})),l.syncToMarks(Yr,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),function e(t,n,i){for(var r=t.firstChild,o=!1,s=0;s<n.length;s++){var a=n[s],l=a.dom;if(l.parentNode==t){for(;l!=r;)r=fo(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(a instanceof eo){var u=r?r.previousSibling:t.lastChild;e(a.contentDOM,a.children,i),r=u?u.nextSibling:t.firstChild}}for(;r;)r=fo(r),o=!0;o&&i.trackWrites==t&&(i.trackWrites=null)}(this.contentDOM,this.children,e),cr.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,i=n.from,r=n.to;if(!(!(e.state.selection instanceof it)||i<t||r>t+this.node.content.size)){var o=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=xr(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,l=function(e,t,n,i){for(var r=0,o=0;r<e.childCount&&o<=i;){var s=e.child(r++),a=o;if(o+=s.nodeSize,s.isText){for(var l=s.text;r<e.childCount;){var u=e.child(r++);if(o+=u.nodeSize,!u.isText)break;l+=u.text}if(o>=n&&a<i){var d=l.lastIndexOf(t,i-a-1);if(d>=0&&d+t.length+a>=n)return a+d}}}return-1}(this.node.content,a,i-t,r-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,i=t.pos,r=t.text;if(!this.getDesc(n)){for(var o=n;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=null)}var s=new Qr(this,o,n,r);e.compositionNodes.push(s),this.children=go(this.children,i,i+r.length,e,s)}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,i),!0)},t.prototype.updateInner=function(e,t,n,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!ho(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=uo(this.dom,this.nodeDOM,lo(this.outerDeco,this.node,t),lo(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(Jr);function no(e,t,n,i,r){return po(i,t,e),new to(null,e,t,n,i,i,i,r,0)}var io=function(e){function t(t,n,i,r,o,s,a){e.call(this,t,n,i,r,o,null,s,a)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=0,!0)},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,i)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,i){var r=this.node.cut(e,n),o=document.createTextNode(r.text);return new t(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=3)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(to),ro=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return 0==this.dirty&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(Jr),oo=function(e){function t(t,n,i,r,o,s,a,l,u,d){e.call(this,t,n,i,r,o,s,a,u,d),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,i,r){if(3==this.dirty)return!1;if(this.spec.update){var o=this.spec.update(t,n,i);return o&&this.updateInner(t,n,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,i,r)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i):e.prototype.setSelection.call(this,t,n,i,r)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(to);function so(e){e&&(this.nodeName=e)}so.prototype=Object.create(null);var ao=[new so];function lo(e,t,n){if(0==e.length)return ao;for(var i=n?ao[0]:new so,r=[i],o=0;o<e.length;o++){var s=e[o].type.attrs;if(s)for(var a in s.nodeName&&r.push(i=new so(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==r.length&&r.push(i=new so(t.isInline?"span":"div")),"class"==a?i.class=(i.class?i.class+" ":"")+l:"style"==a?i.style=(i.style?i.style+";":"")+l:"nodeName"!=a&&(i[a]=l))}}return r}function uo(e,t,n,i){if(n==ao&&i==ao)return t;for(var r=t,o=0;o<i.length;o++){var s=i[o],a=n[o];if(o){var l=void 0;a&&a.nodeName==s.nodeName&&r!=e&&(l=r.parentNode)&&l.tagName.toLowerCase()==s.nodeName||((l=document.createElement(s.nodeName)).pmIsDeco=!0,l.appendChild(r),a=ao[0]),r=l}co(r,a||ao[0],s)}return r}function co(e,t,n){for(var i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(var r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):Yr,s=n.class?n.class.split(" ").filter(Boolean):Yr,a=0;a<o.length;a++)-1==s.indexOf(o[a])&&e.classList.remove(o[a]);for(var l=0;l<s.length;l++)-1==o.indexOf(s[l])&&e.classList.add(s[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var u,d=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;u=d.exec(t.style);)e.style.removeProperty(u[1]);n.style&&(e.style.cssText+=n.style)}}function po(e,t,n){return uo(e,e,ao,lo(t,n,1!=e.nodeType))}function ho(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function fo(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var vo=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=function(e,t){var n=t,i=n.children.length,r=e.childCount,o=new Map,s=[];e:for(;r>0;){for(var a=void 0;;)if(i){var l=n.children[i-1];if(!(l instanceof eo)){a=l,i--;break}n=l,i=l.children.length}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}var u=a.node;if(u){if(u!=e.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(e.node.content,e)};function mo(e,t){return e.type.side-t.type.side}function go(e,t,n,i,r){for(var o=[],s=0,a=0;s<e.length;s++){var l=e[s],u=a,d=a+=l.size;u>=n||d<=t?o.push(l):(u<t&&o.push(l.slice(0,t-u,i)),r&&(o.push(r),r=null),d>n&&o.push(l.slice(n-u,l.size,i)))}return o}function bo(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var r=e.docView.nearestDesc(n.focusNode),o=r&&0==r.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,l,u=i.resolve(s);if(Or(n)){for(a=u;r&&!r.node;)r=r.parent;if(r&&r.node.isAtom&&ot.isSelectable(r.node)&&r.parent&&(!r.node.isInline||!function(e,t,n){for(var i=0==t,r=t==xr(e);i||r;){if(e==n)return!0;var o=gr(e);if(!(e=e.parentNode))return!1;i=i&&0==o,r=r&&o==xr(e)}}(n.focusNode,n.focusOffset,r.dom))){var d=r.posBefore;l=new ot(s==d?u:i.resolve(d))}}else{var c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(c<0)return null;a=i.resolve(c)}l||(l=Io(e,a,u,"pointer"==t||e.state.selection.head<u.pos&&!o?1:-1));return l}function yo(e){return e.editable?e.hasFocus():To(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ko(e,t){var n=e.state.selection;if($o(e,n),yo(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&cr.chrome){var i=e.root.getSelection(),r=e.domObserver.currentSelection;if(i.anchorNode&&wr(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),i=e.cursorWrapper.dom,r="IMG"==i.nodeName;r?n.setEnd(i.parentNode,gr(i)+1):n.setEnd(i,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&cr.ie&&cr.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var o,s,a=n.anchor,l=n.head;!wo||n instanceof it||(n.$from.parent.inlineContent||(o=So(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=So(e,n.to))),e.docView.setSelection(a,l,e.root,t),wo&&(o&&xo(o),s&&xo(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==i&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){yo(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}vo.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},vo.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},vo.prototype.syncToMarks=function(e,t,n){for(var i=0,r=this.stack.length>>1,o=Math.min(r,e.length);i<o&&(i==r-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<r;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<e.length;){this.stack.push(this.top,this.index+1);for(var s=-1,a=this.index;a<Math.min(this.index+3,this.top.children.length);a++)if(this.top.children[a].matchesMark(e[r])){s=a;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var l=eo.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}},vo.prototype.findNodeMatch=function(e,t,n,i){var r,o=-1;if(i>=this.preMatch.index&&(r=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&r.matchesNode(e,t,n))o=this.top.children.indexOf(r,this.index);else for(var s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){var l=this.top.children[s];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){o=s;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)},vo.prototype.updateNodeAt=function(e,t,n,i,r){return!!this.top.children[i].update(e,t,n,r)&&(this.destroyBetween(this.index,i),this.index=i+1,!0)},vo.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==n)return i;return-1}e=t}},vo.prototype.updateNextNode=function(e,t,n,i,r){for(var o=this.index;o<this.top.children.length;o++){var s=this.top.children[o];if(s instanceof to){var a=this.preMatch.matched.get(s);if(null!=a&&a!=r)return!1;var l=s.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&ho(t,s.outerDeco)))&&s.update(e,t,n,i))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},vo.prototype.addNode=function(e,t,n,i,r){this.top.children.splice(this.index++,0,to.create(this.top,e,t,n,i,r)),this.changed=!0},vo.prototype.placeWidget=function(e,t,n){var i=this.index<this.top.children.length?this.top.children[this.index]:null;if(!i||!i.matchesWidget(e)||e!=i.widget&&i.widget.type.toDOM.parentNode){var r=new Zr(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++},vo.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof eo;)e=e.children[e.children.length-1];e&&e instanceof io&&!/\n$/.test(e.node.text)||((cr.safari||cr.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},vo.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator"),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new ro(this.top,Yr,t,null)),this.changed=!0}};var wo=cr.safari||cr.chrome&&cr.chrome_version<63;function So(e,t){var n=e.docView.domFromPos(t,0),i=n.node,r=n.offset,o=r<i.childNodes.length?i.childNodes[r]:null,s=r?i.childNodes[r-1]:null;if(cr.safari&&o&&"false"==o.contentEditable)return Co(o);if(!(o&&"false"!=o.contentEditable||s&&"false"!=s.contentEditable)){if(o)return Co(o);if(s)return Co(s)}}function Co(e){return e.contentEditable="true",cr.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xo(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function $o(e,t){if(t instanceof ot){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Oo(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Oo(e)}function Oo(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Io(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||it.between(t,n,i)}function To(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Do(e,t){var n=e.selection,i=n.$anchor,r=n.$head,o=t>0?i.max(r):i.min(r),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&et.findFrom(s,t)}function Vo(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Mo(e,t,n){var i=e.state.selection;if(!(i instanceof it)){if(i instanceof ot&&i.node.isInline)return Vo(e,new it(t>0?i.$to:i.$from));var r=Do(e.state,t);return!!r&&Vo(e,r)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var o=Do(e.state,t);return!!(o&&o instanceof ot)&&Vo(e,o)}if(!(cr.mac&&n.indexOf("m")>-1)){var s,a=i.$head,l=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!l||l.isText)return!1;var u=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(u))&&!s.contentDOM)&&(ot.isSelectable(l)?Vo(e,new ot(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!cr.webkit&&Vo(e,new it(e.state.doc.resolve(t<0?u:u+l.nodeSize))))}}function No(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ro(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Bo(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var r,o,s=!1;for(cr.gecko&&1==n.nodeType&&i<No(n)&&Ro(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(Ro(a))r=n,o=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(Eo(n))break;for(var l=n.previousSibling;l&&Ro(l);)r=n.parentNode,o=gr(l),l=l.previousSibling;if(l)i=No(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?Ao(e,t,n,i):r&&Ao(e,t,r,o)}}function Po(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var r,o,s=No(n);;)if(i<s){if(1!=n.nodeType)break;if(!Ro(n.childNodes[i]))break;r=n,o=++i}else{if(Eo(n))break;for(var a=n.nextSibling;a&&Ro(a);)r=a.parentNode,o=gr(a)+1,a=a.nextSibling;if(a)i=0,s=No(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}r&&Ao(e,t,r,o)}}function Eo(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ao(e,t,n,i){if(Or(t)){var r=document.createRange();r.setEnd(n,i),r.setStart(n,i),t.removeAllRanges(),t.addRange(r)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();var o=e.state;setTimeout((function(){e.state==o&&ko(e)}),50)}function jo(e,t,n){var i=e.state.selection;if(i instanceof it&&!i.empty||n.indexOf("s")>-1)return!1;if(cr.mac&&n.indexOf("m")>-1)return!1;var r=i.$from,o=i.$to;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var s=Do(e.state,t);if(s&&s instanceof ot)return Vo(e,s)}if(!r.parent.inlineContent){var a=t<0?r:o,l=i instanceof at?et.near(a,t):et.findFrom(a,t);return!!l&&Vo(e,l)}return!1}function Lo(e,t){if(!(e.state.selection instanceof it))return!0;var n=e.state.selection,i=n.$head,r=n.$anchor,o=n.empty;if(!i.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(s&&!s.isText){var a=e.state.tr;return t<0?a.delete(i.pos-s.nodeSize,i.pos):a.delete(i.pos,i.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Fo(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zo(e,t){var n=t.keyCode,i=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||cr.mac&&72==n&&"c"==i?Lo(e,-1)||Bo(e):46==n||cr.mac&&68==n&&"c"==i?Lo(e,1)||Po(e):13==n||27==n||(37==n?Mo(e,-1,i)||Bo(e):39==n?Mo(e,1,i)||Po(e):38==n?jo(e,-1,i)||Bo(e):40==n?function(e){if(cr.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n&&1==n.nodeType&&0==i&&n.firstChild&&"false"==n.firstChild.contentEditable){var r=n.firstChild;Fo(e,r,!0),setTimeout((function(){return Fo(e,r,!1)}),20)}}}(e)||jo(e,1,i)||Po(e):i==(cr.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Ko(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(cr.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||cr.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function _o(e,t,n,i,r){if(t<0){var s=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,a=bo(e,s);if(a&&!e.state.selection.eq(a)){var l=e.state.tr.setSelection(a);"pointer"==s?l.setMeta("pointer",!0):"key"==s&&l.scrollIntoView(),e.dispatch(l)}}else{var u=e.state.doc.resolve(t),d=u.sharedDepth(n);t=u.before(d+1),n=e.state.doc.resolve(n).after(d+1);var c=e.state.selection,p=function(e,t,n){var i=e.docView.parseRange(t,n),r=i.node,o=i.fromOffset,s=i.toOffset,a=i.from,l=i.to,u=e.root.getSelection(),d=null,c=u.anchorNode;if(c&&e.dom.contains(1==c.nodeType?c:c.parentNode)&&(d=[{node:c,offset:u.anchorOffset}],Or(u)||d.push({node:u.focusNode,offset:u.focusOffset})),cr.chrome&&8===e.lastKeyCode)for(var p=s;p>o;p--){var h=r.childNodes[p-1],f=h.pmViewDesc;if("BR"==h.nodeName&&!f){s=p;break}if(!f||f.size)break}var v=e.state.doc,m=e.someProp("domParser")||ee.fromSchema(e.state.schema),g=v.resolve(a),b=null,y=m.parse(r,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:o,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:d,ruleFromNode:Ko,context:g});if(d&&null!=d[0].pos){var k=d[0].pos,w=d[1]&&d[1].pos;null==w&&(w=k),b={anchor:k+a,head:w+a}}return{doc:y,sel:b,from:a,to:l}}(e,t,n);if(cr.chrome&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from){var h=e.cursorWrapper.deco.type.toDOM.nextSibling,f=h&&h.nodeValue?h.nodeValue.length:1;p.sel={anchor:p.sel.anchor+f,head:p.sel.anchor+f}}var v,m,g=e.state.doc,b=g.slice(p.from,p.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,m="end"):(v=e.state.selection.from,m="start"),e.lastKeyCode=null;var y=function(e,t,n,i,r){var o=e.findDiffStart(t,n);if(null==o)return null;var s=e.findDiffEnd(t,n+e.size,n+t.size),a=s.a,l=s.b;if("end"==r){var u=Math.max(0,o-Math.min(a,l));i-=a+u-o}if(a<o&&e.size<t.size){l=(o-=i<=o&&i>=a?o-i:0)+(l-a),a=o}else if(l<o){a=(o-=i<=o&&i>=l?o-i:0)+(a-l),l=o}return{start:o,endA:a,endB:l}}(b.content,p.doc.content,p.from,v,m);if(!y){if(!(i&&c instanceof it&&!c.empty&&c.$head.sameParent(c.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((cr.ios&&e.lastIOSEnter>Date.now()-225||cr.android)&&r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=Ho(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}y={start:c.from,endA:c.to,endB:c.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof it&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),cr.ie&&cr.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>p.from&&" "==p.doc.textBetween(y.start-p.from-1,y.start-p.from+1)&&(y.start--,y.endA--,y.endB--);var w,S=p.doc.resolveNoCache(y.start-p.from),C=p.doc.resolveNoCache(y.endB-p.from),x=S.sameParent(C)&&S.parent.inlineContent;if((cr.ios&&e.lastIOSEnter>Date.now()-225&&(!x||r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!x&&S.pos<p.doc.content.size&&(w=et.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==C.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,i,r){if(!i.parent.isTextblock||n-t<=r.pos-i.pos||Wo(i,!0,!1)<r.pos)return!1;var o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var s=e.resolve(Wo(o,!0,!0));if(!s.parent.isTextblock||s.pos>n||Wo(s,!0,!1)<n)return!1;return i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,y.start,y.endA,S,C)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))cr.android&&cr.chrome&&e.domObserver.suppressSelectionUpdates();else{cr.chrome&&cr.android&&y.toB==y.from&&(e.lastAndroidDelete=Date.now()),cr.android&&!x&&S.start()!=C.start()&&0==C.parentOffset&&S.depth==C.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==y.endA&&(y.endB-=2,C=p.doc.resolveNoCache(y.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))}))}),20));var $,O,I,T,D=y.start,V=y.endA;if(x)if(S.pos==C.pos)cr.ie&&cr.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return ko(e)}),20)),$=e.state.tr.delete(D,V),O=g.resolve(y.start).marksAcross(g.resolve(y.endA));else if(y.endA==y.endB&&(T=g.resolve(y.start))&&(I=function(e,t){for(var n,i,r,s=e.firstChild.marks,a=t.firstChild.marks,l=s,u=a,d=0;d<a.length;d++)l=a[d].removeFromSet(l);for(var c=0;c<s.length;c++)u=s[c].removeFromSet(u);if(1==l.length&&0==u.length)i=l[0],n="add",r=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=u.length)return null;i=u[0],n="remove",r=function(e){return e.mark(i.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(r(t.child(h)));if(o.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,C.parentOffset),T.parent.content.cut(T.parentOffset,y.endA-T.start()))))$=e.state.tr,"add"==I.type?$.addMark(D,V,I.mark):$.removeMark(D,V,I.mark);else if(S.parent.child(S.index()).isText&&S.index()==C.index()-(C.textOffset?0:1)){var M=S.parent.textBetween(S.parentOffset,C.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,D,V,M)})))return;$=e.state.tr.insertText(M,D,V)}if($||($=e.state.tr.replace(D,V,p.doc.slice(y.start-p.from,y.endB-p.from))),p.sel){var N=Ho(e,$.doc,p.sel);N&&!(cr.chrome&&cr.android&&e.composing&&N.empty&&(y.start!=y.endB||e.lastAndroidDelete<Date.now()-100)&&(N.head==D||N.head==$.mapping.map(V)-1)||cr.ie&&N.empty&&N.head==D)&&$.setSelection(N)}O&&$.ensureMarks(O),e.dispatch($.scrollIntoView())}}}function Ho(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Io(e,t.resolve(n.anchor),t.resolve(n.head))}function Wo(e,t,n){for(var i=e.depth,r=t?e.end():e.pos;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n)for(var o=e.node(i).maybeChild(e.indexAfter(i));o&&!o.isLeaf;)o=o.firstChild,r++;return r}function Uo(e,t){for(var n=[],i=t.content,r=t.openStart,o=t.openEnd;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;var s=i.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),i=s.content}var a=e.someProp("clipboardSerializer")||ce.fromSchema(e.state.schema),l=es(),u=l.createElement("div");u.appendChild(a.serializeFragment(i,{document:l}));for(var d,c=u.firstChild;c&&1==c.nodeType&&(d=Zo[c.nodeName.toLowerCase()]);){for(var p=d.length-1;p>=0;p--){for(var h=l.createElement(d[p]);u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h),"tbody"!=d[p]&&(r++,o++)}c=u.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",r+" "+o+" "+JSON.stringify(n)),{dom:u,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function qo(e,t,n,i,r){var s,a,l=r.parent.type.spec.code;if(!n&&!t)return null;var u=t&&(i||l||!n);if(u){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new p(o.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):p.empty;var d=e.someProp("clipboardTextParser",(function(e){return e(t,r,i)}));if(d)a=d;else{var c=r.marks(),h=e.state.schema,f=ce.fromSchema(h);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=s.appendChild(document.createElement("p"));e&&t.appendChild(f.serializeNode(h.text(e,c)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),s=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=es().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);(n=r&&Zo[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""));if(i.innerHTML=e,n)for(var o=0;o<n.length;o++)i=i.querySelector(n[o])||i;return i}(n),cr.webkit&&function(e){for(var t=e.querySelectorAll(cr.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var i=t[n];1==i.childNodes.length&&" "==i.textContent&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}(s);var v=s&&s.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!a){var g=e.someProp("clipboardParser")||e.someProp("domParser")||ee.fromSchema(e.state.schema);a=g.parseSlice(s,{preserveWhitespace:!(!u&&!m),context:r,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Go.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)a=function(e,t){if(!e.size)return e;var n,i=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var r=e.content,s=e.openStart,a=e.openEnd,l=n.length-2;l>=0;l-=2){var u=i.nodes[n[l]];if(!u||u.hasRequiredAttrs())break;r=o.from(u.create(n[l+1],r)),s++,a++}return new p(r,s,a)}(Yo(a,+m[1],+m[2]),m[3]);else if((a=p.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var i=t.node(n).contentMatchAt(t.index(n)),r=void 0,s=[];if(e.forEach((function(e){if(s){var t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&function e(t,n,i,r,s){if(s<t.length&&s<n.length&&t[s]==n[s]){var a=e(t,n,i,r.lastChild,s+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(s==t.length-1?i.type:t[s+1]))return r.copy(r.content.append(o.from(Jo(i,t,s+1))))}}(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=function e(t,n){if(0==n)return t;var i=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),r=t.contentMatchAt(t.childCount).fillBefore(o.empty,!0);return t.copy(i.append(r))}(s[s.length-1],r.length));var a=Jo(e,n);s.push(a),i=i.matchType(a.type,a.attrs),r=n}}})),s)return{v:o.from(s)}},i=t.depth;i>=0;i--){var r=n(i);if(r)return r.v}return e}(a.content,r),!0)).openStart||a.openEnd){for(var b=0,y=0,k=a.content.firstChild;b<a.openStart&&!k.type.spec.isolating;b++,k=k.firstChild);for(var w=a.content.lastChild;y<a.openEnd&&!w.type.spec.isolating;y++,w=w.lastChild);a=Yo(a,b,y)}return e.someProp("transformPasted",(function(e){a=e(a)})),a}var Go=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Jo(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,o.from(e));return e}function Xo(e,t,n,i,r,s){var a=t<0?e.firstChild:e.lastChild,l=a.content;return r<i-1&&(l=Xo(l,t,n,i,r+1,s)),r>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,e.childCount>1||s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(o.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function Yo(e,t,n){return t<e.openStart&&(e=new p(Xo(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new p(Xo(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Zo={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Qo=null;function es(){return Qo||(Qo=document.implementation.createHTMLDocument("title"))}var ts={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ns=cr.ie&&cr.ie_version<=11,is=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};is.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},is.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var rs=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);cr.ie&&cr.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new is,ns&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};rs.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},rs.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},rs.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ts),ns&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},rs.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}ns&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},rs.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},rs.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},rs.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},rs.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&To(e)){var e;if(this.suppressingSelectionUpdates)return ko(this.view);if(cr.ie&&cr.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&wr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},rs.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},rs.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},rs.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&To(this.view)&&!this.ignoreSelectionChange(t),i=-1,r=-1,o=!1,s=[];if(this.view.editable)for(var a=0;a<e.length;a++){var l=this.registerMutation(e[a],s);l&&(i=i<0?l.from:Math.min(l.from,i),r=r<0?l.to:Math.max(l.to,r),l.typeOver&&(o=!0))}if(cr.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],c=u[1];d.parentNode&&d.parentNode.parentNode==c.parentNode?c.remove():d.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,r),function(e){if(ss)return;ss=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.")}(this.view)),this.handleDOMChange(i,r,o,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||ko(this.view),this.currentSelection.set(t))}},rs.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var i=0;i<e.addedNodes.length;i++)t.push(e.addedNodes[i]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var r=e.previousSibling,o=e.nextSibling;if(cr.ie&&cr.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,u=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(o=u)}var d=r&&r.parentNode==e.target?gr(r)+1:0,c=n.localPosFromDOM(e.target,d,-1),p=o&&o.parentNode==e.target?gr(o):e.target.childNodes.length;return{from:c,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var ss=!1;var as={},ls={};function us(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ds(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return cs(e,t)})}))}function cs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ps(e){return{left:e.clientX,top:e.clientY}}function hs(e,t,n,i,r){if(-1==i)return!1;for(var o=e.state.doc.resolve(i),s=function(i){if(e.someProp(t,(function(t){return i>o.depth?t(e,n,o.nodeAfter,o.before(i),r,!0):t(e,n,o.node(i),o.before(i),r,!1)})))return{v:!0}},a=o.depth+1;a>0;a--){var l=s(a);if(l)return l.v}return!1}function fs(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function vs(e,t,n,i,r){return hs(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(function(n){return n(e,t,i)}))||(r?function(e,t){if(-1==t)return!1;var n,i,r=e.state.selection;r instanceof ot&&(n=r.node);for(var o=e.state.doc.resolve(t),s=o.depth+1;s>0;s--){var a=s>o.depth?o.nodeAfter:o.node(s);if(ot.isSelectable(a)){i=n&&r.$from.depth>0&&s>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(s);break}}return null!=i&&(fs(e,ot.create(e.state.doc,i),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&ot.isSelectable(i))&&(fs(e,new ot(n),"pointer"),!0)}(e,n))}function ms(e,t,n,i){return hs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function gs(e,t,n,i){return hs(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",(function(n){return n(e,t,i)}))||function(e,t,n){if(0!=n.button)return!1;var i=e.state.doc;if(-1==t)return!!i.inlineContent&&(fs(e,it.create(i,0,i.content.size),"pointer"),!0);for(var r=i.resolve(t),o=r.depth+1;o>0;o--){var s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)fs(e,it.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ot.isSelectable(s))continue;fs(e,ot.create(i,a),"pointer")}return!0}}(e,n,i)}function bs(e){return $s(e)}ls.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!ws(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!cr.android||!cr.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!cr.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||zo(e,t)?t.preventDefault():us(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},ls.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},ls.keypress=function(e,t){if(!(ws(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||cr.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof it&&n.$from.sameParent(n.$to))){var i=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,i)}))||e.dispatch(e.state.tr.insertText(i).scrollIntoView()),t.preventDefault()}}};var ys=cr.mac?"metaKey":"ctrlKey";as.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=bs(e),i=Date.now(),r="singleClick";i-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}(t,e.lastClick)&&!t[ys]&&("singleClick"==e.lastClick.type?r="doubleClick":"doubleClick"==e.lastClick.type&&(r="tripleClick")),e.lastClick={time:i,x:t.clientX,y:t.clientY,type:r};var o=e.posAtCoords(ps(t));o&&("singleClick"==r?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new ks(e,o,t,n)):("doubleClick"==r?ms:gs)(e,o.pos,o.inside,t)?t.preventDefault():us(e,"pointer"))};var ks=function(e,t,n,i){var r,o,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[ys],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)r=e.state.doc.nodeAt(t.inside),o=t.inside;else{var a=e.state.doc.resolve(t.pos);r=a.parent,o=a.depth?a.before():0}this.mightDrag=null;var l=i?null:n.target,u=l?e.docView.nearestDesc(l,!0):null;this.target=u?u.dom:null;var d=e.state.selection;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||d instanceof ot&&d.from<=o&&d.to>o)&&(this.mightDrag={node:r,pos:o,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&cr.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),us(e,"pointer")};function ws(e,t){return!!e.composing||!!(cr.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ks.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return ko(e.view)})),this.view.mouseDown=null},ks.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ps(e))),this.allowDefault||!t?us(this.view,"pointer"):vs(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||cr.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||cr.chrome&&!(this.view.state.selection instanceof it)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(fs(this.view,et.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):us(this.view,"pointer")}},ks.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),us(this.view,"pointer"),0==e.buttons&&this.done()},as.touchdown=function(e){bs(e),us(e,"pointer")},as.contextmenu=function(e){return bs(e)};var Ss=cr.android?5e3:-1;function Cs(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return $s(e)}),t))}function xs(e){var t;for(e.composing&&(e.composing=!1,e.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function $s(e,t){if(!(cr.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),xs(e),t||e.docView.dirty){var n=bo(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}ls.compositionstart=ls.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),$s(e,!0),e.markCursor=null;else if($s(e),cr.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var i=e.root.getSelection(),r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){var s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){i.collapse(s,s.nodeValue.length);break}r=s,o=-1}e.composing=!0}Cs(e,Ss)},ls.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Cs(e,20))};var Os=cr.ie&&cr.ie_version<15||cr.ios&&cr.webkit_version<604;function Is(e,t,n,i){var r=qo(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,r||p.empty)})))return!0;if(!r)return!1;var o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(r),s=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(r);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}as.copy=ls.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var r=Os?null:t.clipboardData,o=Uo(e,n.content()),s=o.dom,a=o.text;r?(t.preventDefault(),r.clearData(),r.setData("text/html",s.innerHTML),r.setData("text/plain",a)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},ls.paste=function(e,t){if(!e.composing||cr.android){var n=Os?null:t.clipboardData;n&&Is(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((function(){e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Is(e,i.value,null,t):Is(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Ts=function(e,t){this.slice=e,this.move=t},Ds=cr.mac?"altKey":"ctrlKey";for(var Vs in as.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,r=i.empty?null:e.posAtCoords(ps(t));if(r&&r.pos>=i.from&&r.pos<=(i instanceof ot?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var o=e.docView.nearestDesc(t.target,!0);o&&o.node.type.spec.draggable&&o!=e.docView&&e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),a=Uo(e,s),l=a.dom,u=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Os?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Os||t.dataTransfer.setData("text/plain",u),e.dragging=new Ts(s,!t[Ds])}},as.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},ls.dragover=ls.dragenter=function(e,t){return t.preventDefault()},ls.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ps(t));if(i){var r=e.state.doc.resolve(i.pos);if(r){var o=n&&n.slice;o?e.someProp("transformPasted",(function(e){o=e(o)})):o=qo(e,t.dataTransfer.getData(Os?"Text":"text/plain"),Os?null:t.dataTransfer.getData("text/html"),!1,r);var s=n&&!t[Ds];if(e.someProp("handleDrop",(function(n){return n(e,t,o||p.empty,s)})))t.preventDefault();else if(o){t.preventDefault();var a=o?je(e.state.doc,r.pos,o):r.pos;null==a&&(a=r.pos);var l=e.state.tr;s&&l.deleteSelection();var u=l.mapping.map(a),d=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,c=l.doc;if(d?l.replaceRangeWith(u,u,o.content.firstChild):l.replaceRange(u,u,o),!l.doc.eq(c)){var h=l.doc.resolve(u);if(d&&ot.isSelectable(o.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new ot(h));else{var f=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return f=i})),l.setSelection(Io(e,h,l.doc.resolve(f)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},as.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&ko(e)}),20))},as.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},as.beforeinput=function(e,t){if(cr.chrome&&cr.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},ls)as[Vs]=ls[Vs];function Ms(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var i in t)if(!(i in e))return!1;return!0}var Ns=function(e,t){this.spec=t||js,this.side=this.spec.side||0,this.toDOM=e};Ns.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,this.side<0?-1:1),o=r.pos;return r.deleted?null:new Ps(o-n,o-n,this)},Ns.prototype.valid=function(){return!0},Ns.prototype.eq=function(e){return this==e||e instanceof Ns&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))},Ns.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var Rs=function(e,t){this.spec=t||js,this.attrs=e};Rs.prototype.map=function(e,t,n,i){var r=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return r>=o?null:new Ps(r,o,this)},Rs.prototype.valid=function(e,t){return t.from<t.to},Rs.prototype.eq=function(e){return this==e||e instanceof Rs&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)},Rs.is=function(e){return e.type instanceof Rs};var Bs=function(e,t){this.spec=t||js,this.attrs=e};Bs.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,1);if(r.deleted)return null;var o=e.mapResult(t.to+i,-1);return o.deleted||o.pos<=r.pos?null:new Ps(r.pos-n,o.pos-n,this)},Bs.prototype.valid=function(e,t){var n,i=e.content.findIndex(t.from),r=i.index,o=i.offset;return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to},Bs.prototype.eq=function(e){return this==e||e instanceof Bs&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)};var Ps=function(e,t,n){this.from=e,this.to=t,this.type=n},Es={spec:{configurable:!0},inline:{configurable:!0}};Ps.prototype.copy=function(e,t){return new Ps(e,t,this.type)},Ps.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},Ps.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Ps.widget=function(e,t,n){return new Ps(e,e,new Ns(t,n))},Ps.inline=function(e,t,n,i){return new Ps(e,t,new Rs(n,i))},Ps.node=function(e,t,n,i){return new Ps(e,t,new Bs(n,i))},Es.spec.get=function(){return this.type.spec},Es.inline.get=function(){return this.type instanceof Rs},Object.defineProperties(Ps.prototype,Es);var As=[],js={},Ls=function(e,t){this.local=e&&e.length?e:As,this.children=t&&t.length?t:As};Ls.create=function(e,t){return t.length?Ws(t,e,0,js):Fs},Ls.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Ls.prototype.findInner=function(e,t,n,i,r){for(var o=0;o<this.local.length;o++){var s=this.local[o];s.from<=t&&s.to>=e&&(!r||r(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(var a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){var l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,n,i+l,r)}},Ls.prototype.map=function(e,t,n){return this==Fs||0==e.maps.length?this:this.mapInner(e,t,0,0,n||js)},Ls.prototype.mapInner=function(e,t,n,i,r){for(var o,s=0;s<this.local.length;s++){var a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(o||(o=[])).push(a):r.onRemove&&r.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,r,o,s){for(var a=e.slice(),l=function(e,t,n,i){for(var s=0;s<a.length;s+=3){var l=a[s+1],u=void 0;-1==l||e>l+o||(t>=a[s]+o?a[s+1]=-1:n>=r&&(u=i-n-(t-e))&&(a[s]+=u,a[s+1]+=u))}},u=0;u<n.maps.length;u++)n.maps[u].forEach(l);for(var d=!1,c=0;c<a.length;c+=3)if(-1==a[c+1]){var p=n.map(e[c]+o),h=p-r;if(h<0||h>=i.content.size){d=!0;continue}var f=n.map(e[c+1]+o,-1)-r,v=i.content.findIndex(h),m=v.index,g=v.offset,b=i.maybeChild(m);if(b&&g==h&&g+b.nodeSize==f){var y=a[c+2].mapInner(n,b,p+1,e[c]+o+1,s);y!=Fs?(a[c]=h,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,d=!0)}else d=!0}if(d){var k=Ws(function(e,t,n,i,r,o,s){function a(e,t){for(var o=0;o<e.local.length;o++){var l=e.local[o].map(i,r,t);l?n.push(l):s.onRemove&&s.onRemove(e.local[o].spec)}for(var u=0;u<e.children.length;u+=3)a(e.children[u+2],e.children[u]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+o+1);return n}(a,e,t||[],n,r,o,s),i,0,s);t=k.local;for(var w=0;w<a.length;w+=3)a[w+1]<0&&(a.splice(w,3),w-=3);for(var S=0,C=0;S<k.children.length;S+=3){for(var x=k.children[S];C<a.length&&a[C]<x;)C+=3;a.splice(C,0,k.children[S],k.children[S+1],k.children[S+2])}}return new Ls(t&&t.sort(Us),a)}(this.children,o,e,t,n,i,r):o?new Ls(o.sort(Us)):Fs},Ls.prototype.add=function(e,t){return t.length?this==Fs?Ls.create(e,t):this.addInner(e,t,0):this},Ls.prototype.addInner=function(e,t,n){var i,r=this,o=0;e.forEach((function(e,s){var a,l=s+n;if(a=_s(t,e,l)){for(i||(i=r.children.slice());o<i.length&&i[o]<s;)o+=3;i[o]==s?i[o+2]=i[o+2].addInner(e,a,l+1):i.splice(o,0,s,s+e.nodeSize,Ws(a,e,l+1,js)),o+=3}}));for(var s=Ks(o?Hs(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Ls(s.length?this.local.concat(s).sort(Us):this.local,i||this.children)},Ls.prototype.remove=function(e){return 0==e.length||this==Fs?this:this.removeInner(e,0)},Ls.prototype.removeInner=function(e,t){for(var n=this.children,i=this.local,r=0;r<n.length;r+=3){for(var o=void 0,s=n[r]+t,a=n[r+1]+t,l=0,u=void 0;l<e.length;l++)(u=e[l])&&u.from>s&&u.to<a&&(e[l]=null,(o||(o=[])).push(u));if(o){n==this.children&&(n=this.children.slice());var d=n[r+2].removeInner(o,s+1);d!=Fs?n[r+2]=d:(n.splice(r,3),r-=3)}}if(i.length)for(var c=0,p=void 0;c<e.length;c++)if(p=e[c])for(var h=0;h<i.length;h++)i[h].eq(p,t)&&(i==this.local&&(i=this.local.slice()),i.splice(h--,1));return n==this.children&&i==this.local?this:i.length||n.length?new Ls(i,n):Fs},Ls.prototype.forChild=function(e,t){if(this==Fs)return this;if(t.isLeaf)return Ls.empty;for(var n,i,r=0;r<this.children.length;r+=3)if(this.children[r]>=e){this.children[r]==e&&(n=this.children[r+2]);break}for(var o=e+1,s=o+t.content.size,a=0;a<this.local.length;a++){var l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof Rs){var u=Math.max(o,l.from)-o,d=Math.min(s,l.to)-o;u<d&&(i||(i=[])).push(l.copy(u,d))}}if(i){var c=new Ls(i.sort(Us));return n?new zs([c,n]):c}return n||Fs},Ls.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Ls)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},Ls.prototype.locals=function(e){return qs(this.localsInner(e))},Ls.prototype.localsInner=function(e){if(this==Fs)return As;if(e.inlineContent||!this.local.some(Rs.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Rs||t.push(this.local[n]);return t};var Fs=new Ls;Ls.empty=Fs,Ls.removeOverlap=qs;var zs=function(e){this.members=e};function Ks(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(new Ps(r.from+t,r.to+t,r.type))}return n}function _s(e,t,n){if(t.isLeaf)return null;for(var i=n+t.nodeSize,r=null,o=0,s=void 0;o<e.length;o++)(s=e[o])&&s.from>n&&s.to<i&&((r||(r=[])).push(s),e[o]=null);return r}function Hs(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Ws(e,t,n,i){var r=[],o=!1;t.forEach((function(t,s){var a=_s(e,t,s+n);if(a){o=!0;var l=Ws(a,t,n+s+1,i);l!=Fs&&r.push(s,s+t.nodeSize,l)}}));for(var s=Ks(o?Hs(e):e,-n).sort(Us),a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(i.onRemove&&i.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new Ls(s,r):Fs}function Us(e,t){return e.from-t.from||e.to-t.to}function qs(e){for(var t=e,n=0;n<t.length-1;n++){var i=t[n];if(i.from!=i.to)for(var r=n+1;r<t.length;r++){var o=t[r];if(o.from!=i.from){o.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,o.from),Gs(t,r,i.copy(o.from,i.to)));break}o.to!=i.to&&(t==e&&(t=e.slice()),t[r]=o.copy(o.from,i.to),Gs(t,r+1,o.copy(i.to,o.to)))}}return t}function Gs(e,t,n){for(;t<e.length&&Us(n,e[t])>0;)t++;e.splice(t,0,n)}function Js(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Fs&&t.push(i)})),e.cursorWrapper&&t.push(Ls.create(e.state.doc,[e.cursorWrapper.deco])),zs.from(t)}zs.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,js)}));return zs.from(n)},zs.prototype.forChild=function(e,t){if(t.isLeaf)return Ls.empty;for(var n=[],i=0;i<this.members.length;i++){var r=this.members[i].forChild(e,t);r!=Fs&&(r instanceof zs?n=n.concat(r.members):n.push(r))}return zs.from(n)},zs.prototype.eq=function(e){if(!(e instanceof zs)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},zs.prototype.locals=function(e){for(var t,n=!0,i=0;i<this.members.length;i++){var r=this.members[i].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<r.length;o++)t.push(r[o])}else t=r}return t?qs(n?t:t.sort(Us)):As},zs.from=function(e){switch(e.length){case 0:return Fs;case 1:return e[0];default:return new zs(e)}};var Xs,Ys,Zs=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ra),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=na(this),this.markCursor=null,this.cursorWrapper=null,ta(this),this.nodeViews=ia(this),this.docView=no(this.state.doc,ea(this),Js(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new rs(e,(function(t,n,i,r){return _o(e,t,n,i,r)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=as[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||cs(e,t)||!e.editable&&t.type in ls||n(e,t)})};for(var n in as)t(n);cr.safari&&e.dom.addEventListener("input",(function(){return null})),ds(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},Qs={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function ea(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var i in n)"class"==i&&(t.class+=" "+n[i]),"style"==i?t.style=(t.style?t.style+";":"")+n[i]:t[i]||"contenteditable"==i||"nodeName"==i||(t[i]=String(n[i]))})),[Ps.node(0,e.state.doc.content.size,t)]}function ta(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Ps.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function na(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function ia(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function ra(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}if(Qs.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},Zs.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ds(this),this._props=e,e.plugins&&(e.plugins.forEach(ra),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},Zs.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var i in t.state=this.state,e)t[i]=e[i];this.update(t)},Zs.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Zs.prototype.updateStateInner=function(e,t){var n=this,i=this.state,r=!1,o=!1;if(e.storedMarks&&this.composing&&(xs(this),o=!0),this.state=e,t){var s=ia(this);(function(e,t){var n=0,i=0;for(var r in e){if(e[r]!=t[r])return!0;n++}for(var o in t)i++;return n!=i})(s,this.nodeViews)&&(this.nodeViews=s,r=!0),ds(this)}this.editable=na(this),ta(this);var a=Js(this),l=ea(this),u=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(e.doc,l,a);!d&&e.selection.eq(i.selection)||(o=!0);var c,p,h,f,v,m,g,b,y,k,w,S="preserve"==u&&o&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,i=e.dom.getBoundingClientRect(),r=Math.max(0,i.top),o=(i.left+i.right)/2,s=r+1;s<Math.min(innerHeight,i.bottom);s+=5){var a=e.root.elementFromPoint(o,s);if(a!=e.dom&&e.dom.contains(a)){var l=a.getBoundingClientRect();if(l.top>=r-20){t=a,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Nr(e.dom)}}(this);if(o){this.domObserver.stop();var C=d&&(cr.ie||cr.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&(f=i.selection,v=e.selection,m=Math.min(f.$anchor.sharedDepth(f.head),v.$anchor.sharedDepth(v.head)),f.$anchor.start(m)!=v.$anchor.start(m));if(d){var x=cr.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!r&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=no(e.doc,l,a,this.dom,this)),x&&!this.trackWrites&&(C=!0)}C||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(c=this,p=c.docView.domFromPos(c.state.selection.anchor,0),h=c.root.getSelection(),wr(p.node,p.offset,h.anchorNode,h.anchorOffset)))?ko(this,C):($o(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){var $=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ot?Mr(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),$):Mr(this,this.coordsAtPos(e.selection.head,1),$))}else S&&(b=(g=S).refDOM,y=g.refTop,k=g.stack,w=b?b.getBoundingClientRect().top:0,Rr(k,0==w?0:w-y))},Zs.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},Zs.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var i=0;i<this.directPlugins.length;i++){var r=this.directPlugins[i];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(var o=0;o<this.state.plugins.length;o++){var s=this.state.plugins[o];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},Zs.prototype.someProp=function(e,t){var n,i=this._props&&this._props[e];if(null!=i&&(n=t?t(i):i))return n;for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}var s=this.state.plugins;if(s)for(var a=0;a<s.length;a++){var l=s[a].props[e];if(null!=l&&(n=t?t(l):l))return n}},Zs.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Zs.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Br)return e.focus(Br);var t=Nr(e);e.focus(null==Br?{get preventScroll(){return Br={preventScroll:!0},!0}}:void 0),Br||(Br=!1,Rr(t,0))}(this.dom),ko(this),this.domObserver.start()},Qs.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},Zs.prototype.posAtCoords=function(e){return Ar(this,e)},Zs.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Fr(this,e,t)},Zs.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},Zs.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Zs.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var i=this.docView.posFromDOM(e,t,n);if(null==i)throw new RangeError("DOM position not inside the editor");return i},Zs.prototype.endOfTextblock=function(e,t){return Gr(this,t||this.state,e)},Zs.prototype.destroy=function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Js(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Qs.isDestroyed.get=function(){return null==this.docView},Zs.prototype.dispatchEvent=function(e){return function(e,t){cs(e,t)||!as[t.type]||!e.editable&&t.type in ls||as[t.type](e,t)}(this,e)},Zs.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Zs.prototype,Qs),"undefined"!=typeof WeakMap){var oa=new WeakMap;Xs=function(e){return oa.get(e)},Ys=function(e,t){return oa.set(e,t),t}}else{var sa=[],aa=0;Xs=function(e){for(var t=0;t<sa.length;t+=2)if(sa[t]==e)return sa[t+1]},Ys=function(e,t){return 10==aa&&(aa=0),sa[aa++]=e,sa[aa++]=t}}var la=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},ua=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function da(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ca(e,t){var n=e.getAttribute("data-colwidth"),i=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,r=Number(e.getAttribute("colspan")||1),o={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:i&&i.length==r?i:null};for(var s in t){var a=t[s].getFromDOM,l=a&&a(e);null!=l&&(o[s]=l)}return o}function pa(e,t){var n={};for(var i in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var r=t[i].setDOMAttr;r&&r(e.attrs[i],n)}return n}function ha(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var i in t)n[i]={default:t[i].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["td",pa(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["th",pa(e,t),0]}}}}function fa(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var i=e.nodes[n],r=i.spec.tableRole;r&&(t[r]=i)}return t}ua.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var i=t%this.width,r=t/this.width|0,o=i+1,s=r+1,a=1;o<this.width&&this.map[t+a]==n;a++)o++;for(var l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return new la(i,r,o,s)}}throw new RangeError("No cell with offset "+e+" found")},ua.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},ua.prototype.nextCell=function(e,t,n){var i=this.findCell(e),r=i.left,o=i.right,s=i.top,a=i.bottom;return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[s*this.width+(n<0?r-1:o)]:(n<0?0==s:a==this.height)?null:this.map[r+this.width*(n<0?s-1:a)]},ua.prototype.rectBetween=function(e,t){var n=this.findCell(e),i=n.left,r=n.right,o=n.top,s=n.bottom,a=this.findCell(t),l=a.left,u=a.right,d=a.top,c=a.bottom;return new la(Math.min(i,l),Math.min(o,d),Math.max(r,u),Math.max(s,c))},ua.prototype.cellsInRect=function(e){for(var t=[],n={},i=e.top;i<e.bottom;i++)for(var r=e.left;r<e.right;r++){var o=i*this.width+r,s=this.map[o];n[s]||(n[s]=!0,r==e.left&&r&&this.map[o-1]==s||i==e.top&&i&&this.map[o-this.width]==s||t.push(s))}return t},ua.prototype.positionAt=function(e,t,n){for(var i=0,r=0;;i++){var o=r+n.child(i).nodeSize;if(i==e){for(var s=t+e*this.width,a=(e+1)*this.width;s<a&&this.map[s]<r;)s++;return s==a?o-1:this.map[s]}r=o}},ua.get=function(e){return Xs(e)||Ys(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,i=0;i<e.childCount;i++){var r=e.child(i),o=0;if(n)for(var s=0;s<i;s++)for(var a=e.child(s),l=0;l<a.childCount;l++){var u=a.child(l);s+u.attrs.rowspan>i&&(o+=u.attrs.colspan)}for(var d=0;d<r.childCount;d++){var c=r.child(d);o+=c.attrs.colspan,c.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,i=[],r=0,o=null,s=[],a=0,l=t*n;a<l;a++)i[a]=0;for(var u=0,d=0;u<n;u++){var c=e.child(u);d++;for(var p=0;;p++){for(;r<i.length&&0!=i[r];)r++;if(p==c.childCount)break;for(var h=c.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,b=0;b<m;b++){if(b+u>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:d,n:m-b});break}for(var y=r+b*t,k=0;k<v;k++){0==i[y+k]?i[y+k]=d:(o||(o=[])).push({type:"collision",row:u,pos:d,n:v-k});var w=g&&g[k];if(w){var S=(y+k)%t*2,C=s[S];null==C||C!=w&&1==s[S+1]?(s[S]=w,s[S+1]=1):C==w&&s[S+1]++}}}r+=v,d+=h.nodeSize}for(var x=(u+1)*t,$=0;r<x;)0==i[r++]&&$++;$&&(o||(o=[])).push({type:"missing",row:u,n:$}),d++}for(var O=new ua(t,n,i,o),I=!1,T=0;!I&&T<s.length;T+=2)null!=s[T]&&s[T+1]<n&&(I=!0);I&&function(e,t,n){e.problems||(e.problems=[]);for(var i=0,r={};i<e.map.length;i++){var o=e.map[i];if(!r[o]){r[o]=!0;for(var s=n.nodeAt(o),a=null,l=0;l<s.attrs.colspan;l++){var u=(i+l)%e.width,d=t[2*u];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=da(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}}(O,s,e);return O}(e))};var va=new St("selectingCells");function ma(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function ga(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function ba(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:ma(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return e.doc.resolve(n)}for(var r=e.nodeBefore,o=e.pos;r;r=r.lastChild,o--){var s=r.type.spec.tableRole;if("cell"==s||"header_cell"==s)return e.doc.resolve(o-r.nodeSize)}}(t.$head)}function ya(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function ka(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function wa(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Sa(e){return ua.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Ca(e){return ua.get(e.node(-1)).colCount(e.pos-e.start(-1))}function xa(e,t,n){var i=e.start(-1),r=ua.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==r?null:e.node(0).resolve(i+r)}function $a(e,t,n){var i={};for(var r in e)i[r]=e[r];return i[t]=n,i}function Oa(e,t,n){void 0===n&&(n=1);var i=$a(e,"colspan",e.colspan-n);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,n),i.colwidth.some((function(e){return e>0}))||(i.colwidth=null)),i}function Ia(e,t,n){void 0===n&&(n=1);var i=$a(e,"colspan",e.colspan+n);if(i.colwidth){i.colwidth=i.colwidth.slice();for(var r=0;r<n;r++)i.colwidth.splice(t,0,0)}return i}function Ta(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=i)return!1;return!0}var Da=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),r=ua.get(i),o=t.start(-1),s=r.rectBetween(t.pos-o,n.pos-o),a=t.node(0),l=r.cellsInRect(s).filter((function(e){return e!=n.pos-o}));l.unshift(n.pos-o);var u=l.map((function(e){var t=i.nodeAt(e),n=e+o+1;return new nt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var i=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(ya(i)&&ya(r)&&wa(i,r)){var o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?t.rowSelection(i,r):o&&this.isColSelection()?t.colSelection(i,r):new t(i,r)}return it.between(i,r)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=ua.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},s=[],a=i.top;a<i.bottom;a++){for(var l=[],u=a*t.width+i.left,d=i.left;d<i.right;d++,u++){var c=t.map[u];if(!r[c]){r[c]=!0;var h=t.findCell(c),f=e.nodeAt(c),v=i.left-h.left,m=h.right-i.right;if(v>0||m>0){var g=f.attrs;v>0&&(g=Oa(g,0,v)),m>0&&(g=Oa(g,g.colspan-m,m)),f=h.left<i.left?f.type.createAndFill(g):f.type.create(g,f.content)}if(h.top<i.top||h.bottom>i.bottom){var b=$a(f.attrs,"rowspan",Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top));f=h.top<i.top?f.type.createAndFill(b):f.type.create(b,f.content)}l.push(f)}}s.push(e.child(a).copy(o.from(l)))}var y=this.isColSelection()&&this.isRowSelection()?e:s;return new p(o.from(y),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=p.empty);for(var i=t.steps.length,r=this.ranges,o=0;o<r.length;o++){var s=r[o],a=s.$from,l=s.$to,u=t.mapping.slice(i);t.replace(u.map(a.pos),u.map(l.pos),o?p.empty:n)}var d=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);d&&t.setSelection(d)},t.prototype.replaceWith=function(e,t){this.replace(e,new p(o.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=ua.get(t),i=this.$anchorCell.start(-1),r=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i)),o=0;o<r.length;o++)e(t.nodeAt(r[o]),i+r[o])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,i)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.top<=s.top?(o.top>0&&(e=a.resolve(r+i.map[o.left])),s.bottom<i.height&&(n=a.resolve(r+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(r+i.map[s.left])),o.bottom<i.height&&(e=a.resolve(r+i.map[i.width*(i.height-1)+o.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=ua.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),i=e.colCount(this.$headCell.pos-t);if(Math.min(n,i)>0)return!1;var r=n+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,o)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.left<=s.left?(o.left>0&&(e=a.resolve(r+i.map[o.top*i.width])),s.right<i.width&&(n=a.resolve(r+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(r+i.map[s.top*i.width])),o.right<i.width&&(e=a.resolve(r+i.map[i.width*(o.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,i){return void 0===i&&(i=n),new t(e.resolve(n),e.resolve(i))},t.prototype.getBookmark=function(){return new Va(this.$anchorCell.pos,this.$headCell.pos)},t}(et);Da.prototype.visible=!1,et.jsonID("cell",Da);var Va=function(e,t){this.anchor=e,this.head=t};function Ma(e){if(!(e.selection instanceof Da))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(Ps.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Ls.create(e.doc,t)}function Na(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,i=e.openEnd;1==t.childCount&&(n>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)n--,i--,t=t.firstChild.content;var r=t.firstChild,s=r.type.spec.tableRole,a=r.type.schema,l=[];if("row"==s)for(var u=0;u<t.childCount;u++){var d=t.child(u).content,c=u?0:Math.max(0,n-1),h=u<t.childCount-1?0:Math.max(0,i-1);(c||h)&&(d=Ra(fa(a).row,new p(d,c,h)).content),l.push(d)}else{if("cell"!=s&&"header_cell"!=s)return null;l.push(n||i?Ra(fa(a).row,new p(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var r=t[i],s=r.childCount-1;s>=0;s--)for(var a=r.child(s).attrs,l=a.rowspan,u=a.colspan,d=i;d<i+l;d++)n[d]=(n[d]||0)+u;for(var c=0,p=0;p<n.length;p++)c=Math.max(c,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(o.empty),n[h]<c){for(var f=fa(e).cell.createAndFill(),v=[],m=n[h];m<c;m++)v.push(f);t[h]=t[h].append(o.from(v))}return{height:t.length,width:c,rows:t}}(a,l)}function Ra(e,t){var n=e.createAndFill();return new ke(n).replace(0,n.content.size,t).doc}function Ba(e,t,n){var i=e.width,r=e.height,s=e.rows;if(i!=t){for(var a=[],l=[],u=0;u<s.length;u++){for(var d=s[u],c=[],p=a[u]||0,h=0;p<t;h++){var f=d.child(h%d.childCount);p+f.attrs.colspan>t&&(f=f.type.create(Oa(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),c.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)a[u+v]=(a[u+v]||0)+f.attrs.colspan}l.push(o.from(c))}s=l,i=t}if(r!=n){for(var m=[],g=0,b=0;g<n;g++,b++){for(var y=[],k=s[b%r],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create($a(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),y.push(S)}m.push(o.from(y))}s=m,r=n}return{width:i,height:r,rows:s}}function Pa(e,t,n,i,r,o,s,a){if(0==s||s==t.height)return!1;for(var l=!1,u=r;u<o;u++){var d=s*t.width+u,c=t.map[d];if(t.map[d-t.width]==c){l=!0;var p=n.nodeAt(c),h=t.findCell(c),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(c+i),null,$a(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill($a(p.attrs,"rowspan",f+p.attrs.rowspan-s))),u+=p.attrs.colspan-1}}return l}function Ea(e,t,n,i,r,o,s,a){if(0==s||s==t.width)return!1;for(var l=!1,u=r;u<o;u++){var d=u*t.width+s,c=t.map[d];if(t.map[d-1]==c){l=!0;var p=n.nodeAt(c),h=t.colCount(c),f=e.mapping.slice(a).map(c+i);e.setNodeMarkup(f,null,Oa(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill(Oa(p.attrs,0,s-h))),u+=p.attrs.rowspan-1}}return l}function Aa(e,t,n,i,r){var s=n?e.doc.nodeAt(n-1):e.doc,a=ua.get(s),l=i.top,u=i.left,d=u+r.width,c=l+r.height,h=e.tr,f=0;function v(){s=n?h.doc.nodeAt(n-1):h.doc,a=ua.get(s),f=h.mapping.maps.length}(function(e,t,n,i,r,s,a){var l,u,d=fa(e.doc.type.schema);if(r>t.width)for(var c=0,p=0;c<t.height;c++){var h=n.child(c);p+=h.nodeSize;var f=[],v=void 0;v=null==h.lastChild||h.lastChild.type==d.cell?l||(l=d.cell.createAndFill()):u||(u=d.header_cell.createAndFill());for(var m=t.width;m<r;m++)f.push(v);e.insert(e.mapping.slice(a).map(p-1+i),f)}if(s>t.height){for(var g=[],b=0,y=(t.height-1)*t.width;b<Math.max(t.width,r);b++){var k=!(b>=t.width)&&n.nodeAt(t.map[y+b]).type==d.header_cell;g.push(k?u||(u=d.header_cell.createAndFill()):l||(l=d.cell.createAndFill()))}for(var w=d.row.create(null,o.from(g)),S=[],C=t.height;C<s;C++)S.push(w);e.insert(e.mapping.slice(a).map(i+n.nodeSize-2),S)}return!(!l&&!u)})(h,a,s,n,d,c,f)&&v(),Pa(h,a,s,n,u,d,l,f)&&v(),Pa(h,a,s,n,u,d,c,f)&&v(),Ea(h,a,s,n,l,c,u,f)&&v(),Ea(h,a,s,n,l,c,d,f)&&v();for(var m=l;m<c;m++){var g=a.positionAt(m,u,s),b=a.positionAt(m,d,s);h.replace(h.mapping.slice(f).map(g+n),h.mapping.slice(f).map(b+n),new p(r.rows[m-l],0,0))}v(),h.setSelection(new Da(h.doc.resolve(n+a.positionAt(l,u,s)),h.doc.resolve(n+a.positionAt(c-1,d-1,s)))),t(h)}Va.prototype.map=function(e){return new Va(e.map(this.anchor),e.map(this.head))},Va.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&wa(t,n)?new Da(t,n):et.near(n,1)};var ja=dr({ArrowLeft:Fa("horiz",-1),ArrowRight:Fa("horiz",1),ArrowUp:Fa("vert",-1),ArrowDown:Fa("vert",1),"Shift-ArrowLeft":za("horiz",-1),"Shift-ArrowRight":za("horiz",1),"Shift-ArrowUp":za("vert",-1),"Shift-ArrowDown":za("vert",1),Backspace:Ka,"Mod-Backspace":Ka,Delete:Ka,"Mod-Delete":Ka});function La(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Fa(e,t){return function(n,i,r){var o=n.selection;if(o instanceof Da)return La(n,i,et.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=Ua(r,e,t);if(null==s)return!1;if("horiz"==e)return La(n,i,et.near(n.doc.resolve(o.head+t),t));var a,l=n.doc.resolve(s),u=xa(l,e,t);return a=u?et.near(u,1):t<0?et.near(n.doc.resolve(l.before(-1)),-1):et.near(n.doc.resolve(l.after(-1)),1),La(n,i,a)}}function za(e,t){return function(n,i,r){var o=n.selection;if(!(o instanceof Da)){var s=Ua(r,e,t);if(null==s)return!1;o=new Da(n.doc.resolve(s))}var a=xa(o.$headCell,e,t);return!!a&&La(n,i,new Da(o.$anchorCell,a))}}function Ka(e,t){var n=e.selection;if(!(n instanceof Da))return!1;if(t){var i=e.tr,r=fa(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(r)||i.replace(i.mapping.map(t+1),i.mapping.map(t+e.nodeSize-1),new p(r,0,0))})),i.docChanged&&t(i)}return!0}function _a(e,t){var n=ma(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Da(n))),!0)}function Ha(e,t,n){if(!ga(e.state))return!1;var i=Na(n),r=e.state.selection;if(r instanceof Da){i||(i={width:1,height:1,rows:[o.from(Ra(fa(e.state.schema).cell,n))]});var s=r.$anchorCell.node(-1),a=r.$anchorCell.start(-1),l=ua.get(s).rectBetween(r.$anchorCell.pos-a,r.$headCell.pos-a);return i=Ba(i,l.right-l.left,l.bottom-l.top),Aa(e.state,e.dispatch,a,l,i),!0}if(i){var u=ba(e.state),d=u.start(-1);return Aa(e.state,e.dispatch,d,ua.get(u.node(-1)).findCell(u.pos-d),i),!0}return!1}function Wa(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=qa(e,t.target);if(t.shiftKey&&e.state.selection instanceof Da)r(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=ma(e.state.selection.$anchor))&&Ga(e,t).pos!=n.pos)r(n,t),t.preventDefault();else if(!i)return;e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function r(t,n){var i=Ga(e,n),r=null==va.getState(e.state);if(!i||!wa(t,i)){if(!r)return;i=t}var o=new Da(t,i);if(r||!e.state.selection.eq(o)){var s=e.state.tr.setSelection(o);r&&s.setMeta(va,t.pos),e.dispatch(s)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=va.getState(e.state)&&e.dispatch(e.state.tr.setMeta(va,-1))}function s(n){var s,a=va.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(qa(e,n.target)!=i&&!(s=Ga(e,t)))return o();s&&r(s,n)}}function Ua(e,t,n){if(!(e.state.selection instanceof it))return null;for(var i=e.state.selection.$head,r=i.depth-1;r>=0;r--){var o=i.node(r);if((n<0?i.index(r):i.indexAfter(r))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=i.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function qa(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Ga(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?ma(e.state.doc.resolve(n.pos)):null}var Ja=new St("fix-tables");function Xa(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var r=ua.get(t);if(!r.problems)return i;i||(i=e.tr);for(var o,s,a=[],l=0;l<r.height;l++)a.push(0);for(var u=0;u<r.problems.length;u++){var d=r.problems[u];if("collision"==d.type){for(var c=t.nodeAt(d.pos),p=0;p<c.attrs.rowspan;p++)a[d.row+p]+=d.n;i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,Oa(c.attrs,c.attrs.colspan-d.n,d.n))}else if("missing"==d.type)a[d.row]+=d.n;else if("overlong_rowspan"==d.type){var h=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,$a(h.attrs,"rowspan",h.attrs.rowspan-d.n))}else if("colwidth mismatch"==d.type){var f=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,$a(f.attrs,"colwidth",d.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==o&&(o=v),s=v);for(var m=0,g=n+1;m<r.height;m++){var b=t.child(m),y=g+b.nodeSize,k=a[m];if(k>0){var w="cell";b.firstChild&&(w=b.firstChild.type.spec.tableRole);for(var S=[],C=0;C<k;C++)S.push(fa(e.schema)[w].createAndFill());var x=0!=m&&o!=m-1||s!=m?y-1:g+1;i.insert(i.mapping.map(x),S)}g=y}return i.setMeta(Ja,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&function e(t,n,i,r){var o=t.childCount,s=n.childCount;e:for(var a=0,l=0;a<s;a++){for(var u=n.child(a),d=l,c=Math.min(o,a+3);d<c;d++)if(t.child(d)==u){l=d+1,i+=u.nodeSize;continue e}r(u,i),l<o&&t.child(l).sameMarkup(u)?e(t.child(l),u,i+1,r):u.nodesBetween(0,u.content.size,r,i+1),i+=u.nodeSize}}(t.doc,e.doc,0,i):e.doc.descendants(i),n}function Ya(e){var t,n=e.selection,i=ba(e),r=i.node(-1),o=i.start(-1),s=ua.get(r);return(t=n instanceof Da?s.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):s.findCell(i.pos-o)).tableStart=o,t.map=s,t.table=r,t}function Za(e,t,n){var i=t.map,r=t.tableStart,o=t.table,s=n>0?-1:0;Ta(i,o,n+s)&&(s=0==n||n==i.width?null:0);for(var a=0;a<i.height;a++){var l=a*i.width+n;if(n>0&&n<i.width&&i.map[l-1]==i.map[l]){var u=i.map[l],d=o.nodeAt(u);e.setNodeMarkup(e.mapping.map(r+u),null,Ia(d.attrs,n-i.colCount(u))),a+=d.attrs.rowspan-1}else{var c=null==s?fa(o.type.schema).cell:o.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,o);e.insert(e.mapping.map(r+p),c.createAndFill())}}return e}function Qa(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.left))}return!0}function el(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.right))}return!0}function tl(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=e.mapping.maps.length,a=0;a<i.height;){var l=a*i.width+n,u=i.map[l],d=r.nodeAt(u);if(n>0&&i.map[l-1]==u||n<i.width-1&&i.map[l+1]==u)e.setNodeMarkup(e.mapping.slice(s).map(o+u),null,Oa(d.attrs,n-i.colCount(u)));else{var c=e.mapping.slice(s).map(o+u);e.delete(c,c+d.nodeSize)}a+=d.attrs.rowspan}}function nl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var r=n.right-1;tl(i,n,r),r!=n.left;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function il(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.width;r++)if(t.nodeAt(e.map[r+n*e.width]).type!=i)return!1;return!0}function rl(e,t,n){for(var i=t.map,r=t.tableStart,o=t.table,s=r,a=0;a<n;a++)s+=o.child(a).nodeSize;var l=[],u=n>0?-1:0;il(i,o,n+u)&&(u=0==n||n==i.height?null:0);for(var d=0,c=i.width*n;d<i.width;d++,c++)if(n>0&&n<i.height&&i.map[c]==i.map[c-i.width]){var p=i.map[c],h=o.nodeAt(p).attrs;e.setNodeMarkup(r+p,null,$a(h,"rowspan",h.rowspan+1)),d+=h.colspan-1}else{var f=null==u?fa(o.type.schema).cell:o.nodeAt(i.map[c+u*i.width]).type;l.push(f.createAndFill())}return e.insert(s,fa(o.type.schema).row.create(null,l)),e}function ol(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.top))}return!0}function sl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.bottom))}return!0}function al(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=0,a=0;a<n;a++)s+=r.child(a).nodeSize;var l=s+r.child(n).nodeSize,u=e.mapping.maps.length;e.delete(s+o,l+o);for(var d=0,c=n*i.width;d<i.width;d++,c++){var p=i.map[c];if(n>0&&p==i.map[c-i.width]){var h=r.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(u).map(p+o),null,$a(h,"rowspan",h.rowspan-1)),d+=h.colspan-1}else if(n<i.width&&p==i.map[c+i.width]){var f=r.nodeAt(p),v=f.type.create($a(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,d,r);e.insert(e.mapping.slice(u).map(o+m),v),d+=f.attrs.colspan-1}}}function ll(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var r=n.bottom-1;al(i,n,r),r!=n.top;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function ul(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function dl(e,t){var n=e.selection;if(!(n instanceof Da)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=Ya(e),r=i.map;if(function(e,t){for(var n=e.width,i=e.height,r=e.map,o=t.top*n+t.left,s=o,a=(t.bottom-1)*n+t.left,l=o+(t.right-t.left-1),u=t.top;u<t.bottom;u++){if(t.left>0&&r[s]==r[s-1]||t.right<n&&r[l]==r[l+1])return!0;s+=n,l+=n}for(var d=t.left;d<t.right;d++){if(t.top>0&&r[o]==r[o-n]||t.bottom<i&&r[a]==r[a+n])return!0;o++,a++}return!1}(r,i))return!1;if(t){for(var s,a,l=e.tr,u={},d=o.empty,c=i.top;c<i.bottom;c++)for(var p=i.left;p<i.right;p++){var h=r.map[c*r.width+p],f=i.table.nodeAt(h);if(!u[h])if(u[h]=!0,null==s)s=h,a=f;else{ul(f)||(d=d.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(s+i.tableStart,null,$a(Ia(a.attrs,a.attrs.colspan,i.right-i.left-a.attrs.colspan),"rowspan",i.bottom-i.top)),d.size){var m=s+1+a.content.size,g=ul(a)?s+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,d)}l.setSelection(new Da(l.doc.resolve(s+i.tableStart))),t(l)}return!0}function cl(e,t){var n=fa(e.schema);return pl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function pl(e){return function(t,n){var i,r,o=t.selection;if(o instanceof Da){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,r=o.$anchorCell.pos}else{if(!(i=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;r=ma(o.$from).pos}if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(n){var s=i.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=$a(s,"rowspan",1)),s.colspan>1&&(s=$a(s,"colspan",1));for(var u,d=Ya(t),c=t.tr,p=0;p<d.right-d.left;p++)a.push(l?$a(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=d.top;h<d.bottom;h++){var f=d.map.positionAt(h,d.left,d.table);h==d.top&&(f+=i.nodeSize);for(var v=d.left,m=0;v<d.right;v++,m++)v==d.left&&h==d.top||c.insert(u=c.mapping.map(f+d.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}c.setNodeMarkup(r,e({node:i,row:d.top,col:d.left}),a[0]),o instanceof Da&&c.setSelection(new Da(c.doc.resolve(o.$anchorCell.pos),u&&c.doc.resolve(u))),n(c)}return!0}}function hl(e,t){return function(n,i){if(!ga(n))return!1;var r=ba(n);if(r.nodeAfter.attrs[e]===t)return!1;if(i){var o=n.tr;n.selection instanceof Da?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&o.setNodeMarkup(i,null,$a(n.attrs,e,t))})):o.setNodeMarkup(r.pos,null,$a(r.nodeAfter.attrs,e,t)),i(o)}return!0}}function fl(e,t,n){for(var i=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),r=0;r<i.length;r++){var o=t.table.nodeAt(i[r]);if(o&&o.type!==n.header_cell)return!1}return!0}function vl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!ga(t))return!1;if(n){for(var i=fa(t.schema),r=Ya(t),o=t.tr,s=r.map.cellsInRect("column"==e?new la(r.left,0,r.right,r.map.height):"row"==e?new la(0,r.top,r.map.width,r.bottom):r),a=s.map((function(e){return r.table.nodeAt(e)})),l=0;l<s.length;l++)a[l].type==i.header_cell&&o.setNodeMarkup(r.tableStart+s[l],i.cell,a[l].attrs);if(0==o.steps.length)for(var u=0;u<s.length;u++)o.setNodeMarkup(r.tableStart+s[u],i.header_cell,a[u].attrs);n(o)}return!0}}(e):function(t,n){if(!ga(t))return!1;if(n){var i=fa(t.schema),r=Ya(t),o=t.tr,s=fl("row",r,i),a=fl("column",r,i),l=("column"===e?s:"row"===e&&a)?1:0,u="column"==e?new la(0,l,1,r.map.height):"row"==e?new la(l,0,r.map.width,1):r,d="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;r.map.cellsInRect(u).forEach((function(e){var t=e+r.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,d,n.attrs)})),n(o)}return!0}}var ml=vl("row",{useDeprecatedLogic:!0}),gl=vl("column",{useDeprecatedLogic:!0}),bl=vl("cell",{useDeprecatedLogic:!0});function yl(e){return function(t,n){if(!ga(t))return!1;var i=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var i=e.index(-1)-1,r=e.before();i>=0;i--){var o=e.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var s=e.node(-1),a=e.indexAfter(-1),l=e.after();a<s.childCount;a++){var u=s.child(a);if(u.childCount)return l+1;l+=u.nodeSize}}}(ba(t),e);if(null!=i){if(n){var r=t.doc.resolve(i);n(t.tr.setSelection(it.between(r,ka(r))).scrollIntoView())}return!0}}}function kl(e,t){for(var n=e.selection.$anchor,i=n.depth;i>0;i--){if("table"==n.node(i).type.spec.tableRole)return t&&t(e.tr.delete(n.before(i),n.after(i)).scrollIntoView()),!0}return!1}var wl=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Sl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Sl(e,t,n,i,r,o){for(var s=0,a=!0,l=t.firstChild,u=e.firstChild,d=0,c=0;d<u.childCount;d++)for(var p=u.child(d).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,c++){var m=r==c?o:f&&f[v],g=m?m+"px":"";s+=m||i,m||(a=!1),l?(l.style.width!=g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var b=l.nextSibling;l.parentNode.removeChild(l),l=b}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}wl.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Sl(e,this.colgroup,this.table,this.cellMinWidth),!0)},wl.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Cl=new St("tableColumnResizing");function xl(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var i=e.View;void 0===i&&(i=wl);var r=e.lastColumnResizable;return void 0===r&&(r=!0),new yt({key:Cl,state:{init:function(e,t){return this.spec.props.nodeViews[fa(t.schema).table.name]=function(e,t){return new i(e,n,t)},new $l(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Cl.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,r){var o=Cl.getState(e.state);if(!o.dragging){var s=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),a=-1;if(s){var l=s.getBoundingClientRect(),u=l.left,d=l.right;t.clientX-u<=n?a=Ol(e,t,"left"):d-t.clientX<=n&&(a=Ol(e,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){var c=e.state.doc.resolve(a),p=c.node(-1),h=ua.get(p),f=c.start(-1);if(h.colCount(c.pos-f)+c.nodeAfter.attrs.colspan-1==h.width-1)return}Tl(e,a)}}}(e,n,t,0,r)},mouseleave:function(e){!function(e){var t=Cl.getState(e.state);t.activeHandle>-1&&!t.dragging&&Tl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Cl.getState(e.state);if(-1==i.activeHandle||i.dragging)return!1;var r=e.state.doc.nodeAt(i.activeHandle),o=function(e,t,n){var i=n.colspan,r=n.colwidth,o=r&&r[r.length-1];if(o)return o;var s=e.domAtPos(t),a=s.node.childNodes[s.offset].offsetWidth,l=i;if(r)for(var u=0;u<i;u++)r[u]&&(a-=r[u],l--);return a/l}(e,i.activeHandle,r.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Cl.getState(e.state);i.dragging&&(!function(e,t,n){for(var i=e.state.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,u=0;u<o.height;u++){var d=u*o.width+a;if(!u||o.map[d]!=o.map[d-o.width]){var c=o.map[d],p=r.nodeAt(c).attrs,h=1==p.colspan?0:a-o.colCount(c);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():Dl(p.colspan);f[h]=n,l.setNodeMarkup(s+c,null,$a(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,Il(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Cl,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Cl.getState(e.state),r=Il(i.dragging,t,n);!function(e,t,n,i){var r=e.state.doc.resolve(t),o=r.node(-1),s=r.start(-1),a=ua.get(o).colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;Sl(o,l.firstChild,l,i,a,n)}(e,i.activeHandle,r,n)}e.dispatch(e.state.tr.setMeta(Cl,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Cl.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<o.height;l++){var u=a+l*o.width-1;if(!(a!=o.width&&o.map[u]==o.map[u+1]||0!=l&&o.map[u-1]==o.map[u-1-o.width])){var d=o.map[u],c=s+d+r.nodeAt(d).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Ps.widget(c,p))}}return Ls.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}var $l=function(e,t){this.activeHandle=e,this.dragging=t};function Ol(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var r=i.pos,o=ma(e.state.doc.resolve(r));if(!o)return-1;if("right"==n)return o.pos;var s=ua.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Il(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Tl(e,t){e.dispatch(e.state.tr.setMeta(Cl,{setHandle:t}))}function Dl(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Vl(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new yt({key:va,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(va);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var i=e.mapping.mapResult(t),r=i.deleted,o=i.pos;return r?null:o}},props:{decorations:Ma,handleDOMEvents:{mousedown:Wa},createSelectionBetween:function(e){if(null!=va.getState(e.state))return e.state.selection},handleTripleClick:_a,handleKeyDown:ja,handlePaste:Ha},appendTransaction:function(e,n,i){return function(e,t,n){var i,r,o=(t||e).selection,s=(t||e).doc;if(o instanceof ot&&(r=o.node.type.spec.tableRole)){if("cell"==r||"header_cell"==r)i=Da.create(s,o.from);else if("row"==r){var a=s.resolve(o.from+1);i=Da.rowSelection(a,a)}else if(!n){var l=ua.get(o.node),u=o.from+1,d=u+l.map[l.width*l.height-1];i=Da.create(s,u+1,d)}}else o instanceof it&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var i=t.pos,r=n.pos,o=t.depth;o>=0&&!(t.after(o+1)<t.end(o));o--,i++);for(var s=n.depth;s>=0&&!(n.before(s+1)>n.start(s));s--,r--);return i==r&&/row|table/.test(t.node(o).type.spec.tableRole)}(o)?i=it.create(s,o.from):o instanceof it&&function(e){for(var t,n,i=e.$from,r=e.$to,o=i.depth;o>0;o--){var s=i.node(o);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){t=s;break}}for(var a=r.depth;a>0;a--){var l=r.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===r.parentOffset}(o)&&(i=it.create(s,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,Xa(i,n),t)}})}$l.prototype.apply=function(e){var t=this,n=e.getMeta(Cl);if(n&&null!=n.setHandle)return new $l(n.setHandle,null);if(n&&void 0!==n.setDragging)return new $l(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);ya(e.doc.resolve(i))||(i=null),t=new $l(i,t.dragging)}return t};var Ml=["blockquote",0],Nl=["hr"],Rl=["pre",["code",0]],Bl=["ol",0],Pl=["ul",0],El=["li",0],Al=function(e){for(var t,n={},i=e.attributes,r=0;r<i.length;r++)n[(t=i[r]).name]=t.value;return n},jl=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Ll=function(){return jl(["style","class","id"])},Fl=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},zl=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},Kl=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},_l=Bt({link:{attrs:Bt({},Ll(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:Al}],toDOM:function(e){return["a",zl(e.attrs),0]}}},Kl("strong"),Kl("b"),Kl("em"),Kl("i"),Kl("u"),Kl("del"),Kl("sub"),Kl("sup"),Kl("code"),{style:{attrs:Bt({},Ll()),parseDOM:[{tag:"span",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["span",zl(e.attrs),0]:["span",0]}}}),Hl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Wl=Bt({},Hl("style"),Hl("class"),Hl("id"),Hl("headers")),Ul={doc:{content:"colgroup*"},col:{attrs:jl(["id","class","style","span"]),parseDOM:[{getAttrs:Al,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:jl(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:Al,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},ql=new Z({nodes:Ul,marks:{}}),Gl=ha({tableGroup:"block",cellContent:"block+",cellAttributes:Wl});Gl.table_row.attrs=Bt({},Gl.table_row.attrs,jl([Ct,"style","class","id"])),Gl.table_row.toDOM=function(e){return["tr",zl(e.attrs),0]},Gl.table_row.parseDOM=[{tag:"tr",getAttrs:Al}],Gl.table.attrs=Bt({},Gl.table.attrs,jl(["style","class","id","k-colgroup-data"])),Gl.table.toDOM=function(e){var t=Fl(e.attrs)?zl(e.attrs,"k-colgroup-data"):{},n=null;if(e.attrs["k-colgroup-data"]&&!function(e){for(var t=!1,n=e.child(0),i=0;i<n.childCount;i++){if(n.child(i).attrs.colwidth){t=!0;break}}return t}(e)){var i=Vt(Tt(e.attrs["k-colgroup-data"]),ql,{preserveWhitespace:!1}),r=Dt(i).firstChild;if(r){var o=Array.from(r.children).map((function(e){return["col",Al(e)]}));n=["colgroup",Al(r)].concat(o)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},Gl.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=Al(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t["k-colgroup-data"]=n.outerHTML),t}}];var Jl=Bt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"p",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["p",zl(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"div",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["div",zl(e.attrs),0]:["div",0]}},blockquote:{attrs:Bt({},Ll()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["blockquote",zl(e.attrs),0]:Ml}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Nl}},heading:{attrs:Bt({},Ll(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return Bt({},Al(e),{level:1})}},{tag:"h2",getAttrs:function(e){return Bt({},Al(e),{level:2})}},{tag:"h3",getAttrs:function(e){return Bt({},Al(e),{level:3})}},{tag:"h4",getAttrs:function(e){return Bt({},Al(e),{level:4})}},{tag:"h5",getAttrs:function(e){return Bt({},Al(e),{level:5})}},{tag:"h6",getAttrs:function(e){return Bt({},Al(e),{level:6})}}],toDOM:function(e){return Fl(e.attrs,"level")?["h"+e.attrs.level,zl(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return Rl}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Bt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Ll()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["img",zl(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:Bt({},Ll()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["br",zl(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:Bt({},Ll(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return Bt({},Al(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Fl(e.attrs,"order")?["ol",zl(e.attrs,"order"),0]:Bl:["ol",Bt({},zl(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:Bt({},Ll()),parseDOM:[{tag:"ul",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["ul",zl(e.attrs),0]:Pl}},list_item:{content:"(paragraph | heading) block*",attrs:Bt({},Ll()),parseDOM:[{tag:"li",getAttrs:Al}],toDOM:function(e){return Fl(e.attrs)?["li",zl(e.attrs),0]:El},defining:!0}},Gl),Xl=function(){};Xl.prototype.append=function(e){return e.length?(e=Xl.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Xl.prototype.prepend=function(e){return e.length?Xl.from(e).append(this):this},Xl.prototype.appendInner=function(e){return new Zl(this,e)},Xl.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Xl.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Xl.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Xl.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Xl.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var i=[];return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},Xl.from=function(e){return e instanceof Xl?e:e&&e.length?new Yl(e):Xl.empty};var Yl=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var r=t;r<n;r++)if(!1===e(this.values[r],i+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],i+r))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Xl);Xl.empty=new Yl([]);var Zl=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),i))&&(!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,i+r))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,i){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,i+r))&&(!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,i))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(Xl),Ql=Xl,eu=function(e,t){this.items=e,this.eventCount=t};eu.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var i,r,o=this.items.length;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(i=this.remapping(o,this.items.length),r=i.maps.length);var s,a,l=e.tr,u=[],d=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(o,t+1),r=i.maps.length),r--,void d.push(e);if(i){d.push(new tu(e.map));var c,p=e.step.map(i.slice(r));p&&l.maybeStep(p).doc&&(c=l.mapping.maps[l.mapping.maps.length-1],u.push(new tu(c,null,null,u.length+d.length))),r--,c&&i.appendMap(c,r)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(r)):e.selection,a=new eu(n.items.slice(0,o).append(d.reverse().concat(u)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},eu.prototype.addTransform=function(e,t,n,i){for(var r=[],o=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null,l=0;l<e.steps.length;l++){var u,d=e.steps[l].invert(e.docs[l]),c=new tu(e.mapping.maps[l],d,t);(u=a&&a.merge(c))&&(c=u,l?r.pop():s=s.slice(0,s.length-1)),r.push(c),t&&(o++,t=null),i||(a=c)}var p,h,f,v=o-n.depth;return v>iu&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),o-=v),new eu(s.append(r),o)},eu.prototype.remapping=function(e,t){var n=new be;return this.items.forEach((function(t,i){var r=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,r)}),e,t),n},eu.prototype.addMaps=function(e){return 0==this.eventCount?this:new eu(this.items.append(e.map((function(e){return new tu(e)}))),this.eventCount)},eu.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-t),r=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach((function(e){e.selection&&s--}),i);var a=t;this.items.forEach((function(t){var i=r.getMirror(--a);if(null!=i){o=Math.min(o,i);var l=r.maps[i];if(t.step){var u=e.steps[i].invert(e.docs[i]),d=t.selection&&t.selection.map(r.slice(a+1,i));d&&s++,n.push(new tu(l,u,d))}else n.push(new tu(l))}}),i);for(var l=[],u=t;u<o;u++)l.push(new tu(r.maps[u]));var d=this.items.slice(0,i).append(l).append(n),c=new eu(d,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c},eu.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},eu.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,i=[],r=0;return this.items.forEach((function(o,s){if(s>=e)i.push(o),o.selection&&r++;else if(o.step){var a=o.step.map(t.slice(n)),l=a&&a.getMap();if(n--,l&&t.appendMap(l,n),a){var u=o.selection&&o.selection.map(t.slice(n));u&&r++;var d,c=new tu(l.invert(),a,u),p=i.length-1;(d=i.length&&i[p].merge(c))?i[p]=d:i.push(c)}}else o.map&&n--}),this.items.length,0),new eu(Ql.from(i.reverse()),r)},eu.empty=new eu(Ql.empty,0);var tu=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};tu.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new tu(t.getMap().invert(),t,this.selection)}};var nu=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},iu=20;function ru(e){var t=[];return e.forEach((function(e,n,i,r){return t.push(i,r)})),t}function ou(e,t){if(!e)return null;for(var n=[],i=0;i<e.length;i+=2){var r=t.map(e[i],1),o=t.map(e[i+1],-1);r<=o&&n.push(r,o)}return n}function su(e,t,n,i){var r=uu(t),o=cu.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,r);if(s){var a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),o,r),u=new nu(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(cu,{redo:i,historyState:u}).scrollIntoView())}}var au=!1,lu=null;function uu(e){var t=e.plugins;if(lu!=t){au=!1,lu=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){au=!0;break}}return au}function du(e){return e.setMeta(pu,!0)}var cu=new St("history"),pu=new St("closeHistory");function hu(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new yt({key:cu,state:{init:function(){return new nu(eu.empty,eu.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var r,o=n.getMeta(cu);if(o)return o.historyState;n.getMeta(pu)&&(e=new nu(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(cu))return s.getMeta(cu).redo?new nu(e.done.addTransform(n,null,i,uu(t)),e.undone,ru(n.mapping.maps[n.steps.length-1]),e.prevTime):new nu(e.done,e.undone.addTransform(n,null,i,uu(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new nu(e.done.rebased(n,r),e.undone.rebased(n,r),ou(e.prevRanges,n.mapping),e.prevTime):new nu(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),ou(e.prevRanges,n.mapping),e.prevTime);var a=0==e.prevTime||!s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,i){for(var r=0;r<t.length;r+=2)e<=t[r+1]&&i>=t[r]&&(n=!0)})),n}(n,e.prevRanges)),l=s?ou(e.prevRanges,n.mapping):ru(n.mapping.maps[n.steps.length-1]);return new nu(e.done.addTransform(n,a?t.selection.getBookmark():null,i,uu(t)),eu.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?fu(e.state,e.dispatch):"historyRedo"==t.inputType&&vu(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function fu(e,t){var n=cu.getState(e);return!(!n||0==n.done.eventCount)&&(t&&su(n,e,t,!1),!0)}function vu(e,t){var n=cu.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&su(n,e,t,!0),!0)}function mu(e){var t=cu.getState(e);return t?t.done.eventCount:0}function gu(e){var t=cu.getState(e);return t?t.undone.eventCount:0}var bu=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,i,r){var o=n;if(t[1]){var s=t[0].lastIndexOf(t[1]);o+=t[0].slice(s+t[1].length);var a=(i+=s)-r;a>0&&(o=t[0].slice(s-a,s)+o,i=r)}return e.tr.insertText(o,i,r)}):t};function yu(e){var t=e.rules,n=new yt({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,r,o){return ku(e,i,r,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&ku(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function ku(e,t,n,i,r,o){if(e.composing)return!1;var s=e.state,a=s.doc.resolve(t);if(a.parent.type.spec.code)return!1;for(var l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,null,"")+i,u=0;u<r.length;u++){var d=r[u].match.exec(l),c=d&&r[u].handler(s,d,t-(d[0].length-i.length),n);if(c)return e.dispatch(c.setMeta(o,{transform:c,from:t,to:n,text:i})),!0}return!1}function wu(e,t){for(var n=e.plugins,i=0;i<n.length;i++){var r=n[i],o=void 0;if(r.spec.isInputRules&&(o=r.getState(e))){if(t){for(var s=e.tr,a=o.transform,l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(o.text){var u=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,u))}else s.delete(o.from,o.to);t(s)}return!0}}return!1}var Su=new bu(/--$/,"—"),Cu=new bu(/\.\.\.$/,"…"),xu=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),$u=new bu(/"$/,"”"),Ou=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Iu=new bu(/'$/,"’"),Tu=[xu,$u,Ou,Iu];function Du(e,t,n,i){return new bu(e,(function(e,r,o,s){var a=n instanceof Function?n(r):n,l=e.tr.delete(o,s),u=l.doc.resolve(o).blockRange(),d=u&&Me(u,t,a);if(!d)return null;l.wrap(u,d);var c=l.doc.resolve(o-1).nodeBefore;return c&&c.type==t&&Be(l.doc,o-1)&&(!i||i(r,c))&&l.join(o-1),l}))}function Vu(e,t,n){return new bu(e,(function(e,i,r,o){var s=e.doc.resolve(r),a=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(r,o).setBlockType(r,r,t,a):null}))}var Mu={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},Nu={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},Ru={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},Bu={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},Pu={mark:"sub"},Eu={mark:"sup"},Au={mark:"link"},ju="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Lu=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=fu,n["Shift-Mod-z"]=vu,n.Backspace=yi(wu,Wn,Un,Gn),n.Enter=yi(ni,oi,si,li),ju||(n["Mod-y"]=vu),e.marks.strong&&(n["Mod-b"]=Gt(dn,Bt({},Mu,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=Gt(dn,Bt({},Nu,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=Gt(dn,Bt({},Ru,{applyToWord:i}))),e.nodes.hard_break){var r=e.nodes.hard_break,o=yi(ri,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));n["Shift-Enter"]=o}return n},Fu=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return An(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},zu=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Ku=function(e){return/^MsoListParagraph/.test(e.className)},_u=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Hu=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Wu=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Uu=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i.getAttribute("datalist")?(n.push(e),t.add(n)):Ku(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Uu(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Uu(e.children,t)})))}}))},qu=function(e){var t,n=e.innerHTML,i=function(e){return e.replace(/^(?: |[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=i(_u(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Wu(i(_u(e)))}:void 0},Gu=function(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?_u(e):e.firstChild.innerHTML.replace(/^\w+[\.\)]( )+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^( |\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var i=document.createElement("li");return i.innerHTML=t,i},Ju=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(zu,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Uu(t.children,n),n.forEach((function(e){return function(e){var t,n,i,r,o,s,a,l,u,d,c,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(u=e[l]).getAttribute("datalist"),datalevel:u.getAttribute("datalevel")}).datalist,g=qu(u);if(d=g&&g.tag){if(c=h.datalevel||parseFloat(u.style.marginLeft||0),h.datalevel||u.style.marginLeft){var b=d+m;v[c]||(v[c]={}),(!n||n<0)&&(n=c,i=m,r=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Hu(d,g&&g.style),u.parentNode.insertBefore(s,u),f=c,v[c][b]=s),o=r===u,p=v[c][b],(c>f||!p)&&(p=Hu(d,g&&g.style),v[c][b]=p,t.appendChild(p)),t=Gu(u),p.appendChild(t),o?n=f=-1:f=c}}else!t||o&&!Ku(u)||(u.style.marginLeft&&(u.style.marginLeft=""),u.style.marginLeft&&(u.style.margin=""),t.appendChild(u))}}(e)})),t.innerHTML},Xu=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},Yu=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},Zu=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},Qu=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ed=function(e){/^Mso/.test(e.value)&&Qu(e)},td=/\s*;\s*/,nd=/\s*:\s*/,id=function(e){var t,n,i=e.value.split(td).filter((function(e){return Boolean(e)})),r=e.ownerElement.style,o="";i.forEach((function(e){var i;i=e.split(nd),t=i[0],n=i[1],void 0!==r[t]&&(o+=t+": "+n+"; ")})),(o=o.trim())?e.value=o:Qu(e)},rd=function(e,t){var n=e;if(t.convertMsLists&&(n=Ju(n)),t.stripTags&&(n=Zu(n,t.stripTags)),t.attributes){var i=document.createElement("div");i.innerHTML=n,Array.from(i.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;n>=0;n--){var i=e.attributes[n];t[i.name]?t[i.name](i):t["*"]&&t["*"](i)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,t.attributes)})),n=i.innerHTML}return n};function od(e){for(var t=e.length,n=new Array(t/2),i=0;i<t;i+=2)n[i]=String.fromCharCode(parseInt(e.substring(i,i+2),16));return btoa(n.join(""))}var sd=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,ad=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,ld=new RegExp("(?:("+ad.source+"))([\\da-fA-F\\s]+)\\}","g"),ud=/[^\da-fA-F]/g,dd=/file:\/[^'"]+\.(jpg|png|gif)/i,cd=/\\(png|jpeg)blip\\/,pd=function(e,t){var n=e.match(sd);if(!n||-1===t.types.indexOf("text/rtf"))return e;var i=t.getData("text/rtf"),r=[],o=i.match(ld);if(!i||!o)return e;for(var s=0,a=o;s<a.length;s++){var l=a[s],u=cd.exec(l);if(u){var d=l.replace(ad,"").replace(ud,"");r.push("data:image/"+u[1]+";base64,"+od(d))}}return n.length!==r.length?e:e.replace(sd,(function(e){var t=r.shift()||"";return e.replace(dd,t)}))},hd=function(e,t,n,i,r){var o,s,a,l,u,d,c=[],p=[],h=t.matchCase,f=t.matchWord,v=t.useRegExp,m=t.text;if(v&&(/^\\$/.test(m)||/[^\\]\\$/.test(m))&&(m=m.substring(0,m.length-1)),!m)return c;var g=h?"g":"gi",b=v?new RegExp(m,g):kd(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(r(c))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,v,m,g){if(r(c))return!1;var y=1+h+v;if(t.isText&&y+t.nodeSize>=n){if(u=t.text||"",d=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=y?{text:u,start:y}:{text:u.slice(n-y),start:n}),d&&d.isText)return;for(s=p.map((function(e){return e.text})).join(""),o=b.exec(s);null!==o&&(a=p[0].start+o.index,l=a+o[0].length,n<=a&&i>=l&&yd(o,f)&&c.push(it.create(e,a,l)),!r(c));)o=b.exec(s)}else p.length=0})))})),c},fd=function(e,t){var n=t.backward,i=t.matchCyclic,r=Pt(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=hd(s,r,0,a.from,o)).length&&i&&(l=hd(s,r,a.from,s.content.size,o)):!(l=hd(s,r,a.to,s.content.size,o)).length&&i&&(l=hd(s,r,0,a.to,o)),l.length?l[l.length-1]:null},vd=function(e,t){return hd(e,t,0,e.content.size,(function(){return!1}))},md=function(e,t,n){var i=e.from,r=e.to;return n.insertText(t,i,r).setSelection(it.create(n.doc,i,i+t.length)),n},gd=function(e,t,n){var i=vd(e.doc,n);if(0===i.length)return null;for(var r=e.tr,o=i.length-1;o>=0;o--)r.insertText(t,i[o].from,i[o].to);return r},bd=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,yd=function(e,t){if(t){if(!0===t){var n=e.input,i=n.charAt(e.index-1),r=n.charAt(e.index+e[0].length);return bd.test(i)&&bd.test(r)}return t(e)}return!0},kd=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function wd(e){var t={class:"k-placeholder","data-placeholder":e};return new yt({key:new St("placeholder"),props:{decorations:function(e){var n=e.doc,i=n.content.firstChild;if(!(0===n.childCount||1===n.childCount&&i.inlineContent&&0===i.childCount))return Ls.empty;var r=[];return n.descendants((function(e,n){r.push(Ps.node(n,n+e.nodeSize,t))})),Ls.create(n,r)}}})}var Sd=/\s+/g,Cd=/text-align/,xd=function(){return new yt({key:new St("spaces-fix"),props:{decorations:function(e){var t,n,i,r,o=[],s=e.doc;return s.nodesBetween(0,s.content.size,(function(e,s,a){if(e.type.isText&&function(e){return Cd.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Sd.exec(e.text||"");null!==n;){if(t=s+n.index,i=n[0].length,n.index+i<n.input.length)for(r=0;r<=i-1;r+=2)o.push(Ps.inline(t+r,t+r+1,{style:"white-space: normal"}));n=Sd.exec(e.text||"")}})),Ls.create(s,o)}}})},$d=new St("highlight");function Od(e){return void 0===e&&(e=$d),new yt({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map((function(e){return Ps.inline(e.from,e.to,e.attrs)}));return Ls.create(e.doc,t)}}})}var Id=new St("image-resize"),Td={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},Dd=Object.keys(Td),Vd=function(e,t,n){e.style[t]=n+"px"},Md=/[^\-]width:|[^\-]height:/,Nd=/^.+$/,Rd=function(){function e(e,t,n,i){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=i}return e.prototype.apply=function(t){var n=t.getMeta(Id);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),Bd=function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var r=Id.getState(e.state);t.preventDefault();var o=e.state.tr;function s(t){!function(e,t,n){var i=Id.getState(e.state),r=i.rect,o=i.dragging,s=i.nodePosition,a=i.activeHandle;if(o&&r){var l=e.nodeDOM(s),u=Td[a],d=(t.clientX-o.startX)*u.x,c=(t.clientY-o.startY)*u.y,p=u.x?d+l.width:r.width,h=u.y?c+l.height:r.height;if(n.lockRatio&&u.x&&u.y){var f=Math.min(p/l.width,h/l.height),v=l.width*f,m=l.height*f;o.startX=t.clientX-(p-v)*u.x,o.startY=t.clientY-(h-m)*u.y,p=v,h=m}else o.startX=u.x?t.clientX:o.startX,o.startY=u.y?t.clientY:o.startY;Vd(l,"width",p),Vd(l,"height",h),r.top=l.offsetTop,r.left=l.offsetLeft,r.width=l.offsetWidth,r.height=l.offsetHeight;var g=l.nextElementSibling;g.style.width=r.width+"px",g.style.height=r.height+"px",g.style.top=r.top+"px",g.style.left=r.left+"px"}}(e,t,n)}return o.setMeta(Id,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:i,rect:r.rect,nodePosition:r.nodePosition}),o.setMeta("addToHistory",!1),e.dispatch(o),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",s),function(e){var t=Id.getState(e.state),n=t.rect,i=t.dragging,r=t.nodePosition;if(i&&n){var o=e.state.selection;if(o instanceof ot){var s=o.node.attrs,a=n.width,l=n.height,u=void 0;if(Md.test(s.style||"")){var d=Et(s.style,{style:"width",value:Nd,newValue:a+"px"}),c=Et(d.style||"",{style:"height",value:Nd,newValue:l+"px"}).style;u=Bt({},s,{style:c})}else u=Bt({},s,{width:a,height:l});var p=o.node.type.createAndFill(u);if(p){var h=e.state.tr;h.replaceWith(r,r+1,p),h.setSelection(ot.create(h.doc,r)),h.setMeta("commandName","image-resize"),h.setMeta("args",u),h.setMeta(Id,{setDragging:null,activeHandle:null,rect:n,nodePosition:r}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0},Pd=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new yt({key:Id,view:function(t){return{resize:function(){Id.getState(t.state).rect&&t.dispatch(t.state.tr.setMeta("resize",!0))},get window(){return t.dom.ownerDocument&&t.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(t,n){var i=t.state,r=i.selection,o=i.schema.nodes[e.node],s=Id.getState(i),a=s.rect;if(r instanceof ot&&o===r.node.type){var l=t.nodeDOM(r.from),u={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(r)||a&&(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.left!==u.left)){var d=i.tr;d.setMeta(Id,{rect:u,nodePosition:r.from}),t.dispatch(d),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new Rd("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return Bd(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],r=Id.getState(t).rect;if(r&&n instanceof ot&&i===n.node.type){var o=document.createElement("div");o.className="k-editor-resize-handles-wrapper",o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.top=r.top+"px",o.style.left=r.left+"px";for(var s=0;s<Dd.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Dd[s],a.setAttribute("data-direction",Dd[s]),o.appendChild(a)}return Ls.create(t.doc,[Ps.widget(t.selection.from+1,o)])}return Ls.empty}}})},Ed=new St("caret-color");function Ad(){return new yt({key:Ed,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Ls.empty;var r=tn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!r)return Ls.empty;var o=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(o)&&s.push(Ps.node(t,t+e.nodeSize,{style:"caret-color: "+r}))})),Ls.create(t,s)}}})}function jd(e){return void 0===e&&(e={}),new yt({view:function(t){return new Ld(t,e)}})}var Ld=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var i=function(e){return n[t](e)};return e.dom.addEventListener(t,i),{name:t,handler:i}}))};Ld.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,i=t.handler;return e.editorView.dom.removeEventListener(n,i)}))},Ld.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())},Ld.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Ld.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,i=t.nodeAfter;if(n||i){var r=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),o=n?r.bottom:r.top;n&&i&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}if(!e){var s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}var a,l,u=this.editorView.dom.offsetParent;if(this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!u||u==document.body&&"static"==getComputedStyle(u).position)a=-pageXOffset,l=-pageYOffset;else{var d=u.getBoundingClientRect();a=d.left-u.scrollLeft,l=d.top-u.scrollTop}this.element.style.left=e.left-a+"px",this.element.style.top=e.top-l+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},Ld.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Ld.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=n&&n.type.spec.disableDropCursor,r="function"==typeof i?i(this.editorView,t):i;if(t&&!r){var o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(o=je(this.editorView.state.doc,o,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(o),this.scheduleRemoval(5e3)}}},Ld.prototype.dragend=function(){this.scheduleRemoval(20)},Ld.prototype.drop=function(){this.scheduleRemoval(20)},Ld.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var Fd=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));return t.valid(r)?new t(r):e.near(r)},t.prototype.content=function(){return p.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new zd(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),i=e.node(t);if(0!=n)for(var r=i.child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),i=e.node(t);if(n!=i.childCount)for(var r=i.child(n);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock},t.findFrom=function(e,n,i){e:for(;;){if(!i&&t.valid(e))return e;for(var r=e.pos,o=null,s=e.depth;;s--){var a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;r+=n;var l=e.doc.resolve(r);if(t.valid(l))return l}for(;;){var u=n>0?o.firstChild:o.lastChild;if(!u){if(o.isAtom&&!o.isText&&!ot.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),i=!1;continue e}break}o=u,r+=n;var d=e.doc.resolve(r);if(t.valid(d))return d}return null}},t}(et);Fd.prototype.visible=!1,et.jsonID("gapcursor",Fd);var zd=function(e){this.pos=e};zd.prototype.map=function(e){return new zd(e.map(this.pos))},zd.prototype.resolve=function(e){var t=e.resolve(this.pos);return Fd.valid(t)?new Fd(t):et.near(t)};var Kd=function(){return new yt({props:{decorations:Ud,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&Fd.valid(n))return new Fd(n)},handleClick:Wd,handleKeyDown:_d}})},_d=dr({ArrowLeft:Hd("horiz",-1),ArrowRight:Hd("horiz",1),ArrowUp:Hd("vert",-1),ArrowDown:Hd("vert",1)});function Hd(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,r){var o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof it){if(!r.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=Fd.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new Fd(l))),!0)}}function Wd(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!Fd.valid(i))return!1;var r=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(r>-1&&ot.isSelectable(e.state.doc.nodeAt(r)))&&(e.dispatch(e.state.tr.setSelection(new Fd(i))),!0)}function Ud(e){if(!(e.selection instanceof Fd))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ls.create(e.doc,[Ps.widget(e.selection.head,t,{key:"gapcursor"})])}var qd=function(e,t,n){for(var i,r=e.table,o=e.table_row,s=e.table_cell,a=[],l=0;l<t+1;l++){i=[];for(var u=0;u<n+1;u++)i.push(s.createAndFill());a.push(o.createAndFill(void 0,i))}return r.createAndFill(void 0,a)},Gd=function(e,t){for(var n=e.$head,i=n.depth;i>0;i--){var r=n.node(i);if(r.type.name===t)return{pos:n.before(i),node:r}}return null},Jd=function(e,t){return ol(e,t&&function(e){var n,i=Gd(e.selection,"table_row"),r=Gd(e.selection,"table");if(i&&r&&i.node.attrs[Ct]){for(var o=0,s=0;s<r.node.nodeSize;s++)if(r.node.child(s).eq(i.node)){o=s;break}var a=r.node.child(o-1),l=i.pos-a.nodeSize;e.setNodeMarkup(l,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})},Xd=function(e,t){return sl(e,t&&function(e){var n,i=Gd(e.selection,"table_row");if(i&&i.node.attrs[Ct]){var r=i.pos+i.node.nodeSize;e.setNodeMarkup(r,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701030,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var r="editor.pdf";t.messages=((i={})["editor.bold"]="Bold",i["editor.italic"]="Italic",i["editor.underline"]="Underline",i["editor.strikethrough"]="Strikethrough",i["editor.subscript"]="Subscript",i["editor.superscript"]="Superscript",i["editor.unlink"]="Remove hyperlink",i["editor.undo"]="Undo",i["editor.redo"]="Redo",i["editor.fontSize"]="Font Size",i["editor.fontName"]="Font Name",i["editor.format"]="Format",i["editor.alignLeft"]="Align text left",i["editor.alignRight"]="Align text right",i["editor.alignCenter"]="Center text",i["editor.alignJustify"]="Justify",i["editor.indent"]="Indent",i["editor.outdent"]="Outdent",i["editor.orderedList"]="Insert ordered list",i["editor.bulletList"]="Insert unordered list",i["editor.print"]="Print",i["editor.selectAll"]="Select All",i["editor.cleanFormatting"]="Clean formatting",i[r]="Export as PDF",i["editor.foregroundColor"]="Color",i["editor.backgroundColor"]="Background color",i["editor.createTable"]="Create a table",i["editor.insertTableHint"]="Create a {0} x {1} table",i["editor.addRowBefore"]="Add row above",i["editor.addRowAfter"]="Add row below",i["editor.addColumnBefore"]="Add column on the left",i["editor.addColumnAfter"]="Add column on the right",i["editor.deleteRow"]="Delete row",i["editor.deleteColumn"]="Delete column",i["editor.deleteTable"]="Delete table",i["editor.mergeCells"]="Merge cells",i["editor.splitCell"]="Split cell",i["editor.hyperlink"]="Insert hyperlink",i["editor.hyperlink-dialog-title"]="Insert hyperlink",i["editor.hyperlink-dialog-content-address"]="Web address",i["editor.hyperlink-dialog-content-title"]="Title",i["editor.hyperlink-dialog-content-newwindow"]="Open link in new window",i["editor.hyperlink-dialog-cancel"]="Cancel",i["editor.hyperlink-dialog-insert"]="Insert",i["editor.insertFile"]="Insert file",i["editor.insertfile-dialog-title"]="Insert file",i["editor.insertfile-dialog-content-address"]="Web address",i["editor.insertfile-dialog-content-title"]="Title",i["editor.insertfile-dialog-cancel"]="Cancel",i["editor.insertfile-dialog-insert"]="Insert",i["editor.image"]="Insert image",i["editor.image-dialog-title"]="Insert image",i["editor.image-address"]="Web address",i["editor.image-title"]="Title",i["editor.image-altText"]="Alternate text",i["editor.image-width"]="Width (px)",i["editor.image-height"]="Height (px)",i["editor.image-cancel"]="Cancel",i["editor.image-insert"]="Insert",i["editor.viewHtml"]="View HTML",i["editor.viewHtml-dialog-title"]="View HTML",i["editor.viewHtml-cancel"]="Cancel",i["editor.viewHtml-update"]="Update",i["editor.findReplace-tool-title"]="Find and Replace",i["editor.findReplace-dialog-title"]="Find and Replace",i["editor.findReplace-tab-find"]="Find",i["editor.findReplace-tab-replace"]="Replace",i["editor.findReplace-findWhat"]="Find What:",i["editor.findReplace-replaceWith"]="Replace With",i["editor.findReplace-replace"]="Replace",i["editor.findReplace-replaceAll"]="Replace All",i["editor.findReplace-matchCase"]="Match Case",i["editor.findReplace-matchWord"]="Match whole word only",i["editor.findReplace-matchCyclic"]="Match cyclic (Wrap around)",i["editor.findReplace-useRegExp"]="Regular Expression",i["editor.findReplace-prevMatch"]="Prev",i["editor.findReplace-nextMatch"]="Next",i["editor.findReplace-matches"]="{0} of {1} matches",i),t.keys={bold:"editor.bold",italic:"editor.italic",underline:"editor.underline",strikethrough:"editor.strikethrough",subscript:"editor.subscript",superscript:"editor.superscript",unlink:"editor.unlink",undo:"editor.undo",redo:"editor.redo",fontSize:"editor.fontSize",fontName:"editor.fontName",format:"editor.format",alignLeft:"editor.alignLeft",alignRight:"editor.alignRight",alignCenter:"editor.alignCenter",alignJustify:"editor.alignJustify",indent:"editor.indent",outdent:"editor.outdent",orderedList:"editor.orderedList",bulletList:"editor.bulletList",print:"editor.print",selectAll:"editor.selectAll",cleanFormatting:"editor.cleanFormatting",pdf:r,foregroundColor:"editor.foregroundColor",backgroundColor:"editor.backgroundColor",createTable:"editor.createTable",createTableHint:"editor.insertTableHint",addRowBefore:"editor.addRowBefore",addRowAfter:"editor.addRowAfter",addColumnBefore:"editor.addColumnBefore",addColumnAfter:"editor.addColumnAfter",deleteRow:"editor.deleteRow",deleteColumn:"editor.deleteColumn",deleteTable:"editor.deleteTable",mergeCells:"editor.mergeCells",splitCell:"editor.splitCell",insertHyperlink:"editor.hyperlink",insertHyperlinkDialogTitle:"editor.hyperlink-dialog-title",insertHyperlinkAddress:"editor.hyperlink-dialog-content-address",insertHyperlinkTitle:"editor.hyperlink-dialog-content-title",insertHyperlinkNewWindow:"editor.hyperlink-dialog-content-newwindow",insertHyperlinkCancel:"editor.hyperlink-dialog-cancel",insertHyperlinkInsert:"editor.hyperlink-dialog-insert",insertFile:"editor.insertFile",insertFileDialogTitle:"editor.insertfile-dialog-title",insertFileAddress:"editor.insertfile-dialog-content-address",insertFileTitle:"editor.insertfile-dialog-content-title",insertFileCancel:"editor.insertfile-dialog-cancel",insertFileInsert:"editor.insertfile-dialog-insert",insertImage:"editor.image",insertImageDialogTitle:"editor.image-dialog-title",insertImageAddress:"editor.image-address",insertImageTitle:"editor.image-title",insertImageAltText:"editor.image-altText",insertImageWidth:"editor.image-width",insertImageHeight:"editor.image-height",insertImageCancel:"editor.image-cancel",insertImageInsert:"editor.image-insert",viewHtml:"editor.viewHtml",viewHtmlDialogTitle:"editor.viewHtml-dialog-title",viewHtmlCancel:"editor.viewHtml-cancel",viewHtmlUpdate:"editor.viewHtml-update",findReplaceToolTitle:"editor.findReplace-tool-title",findReplaceDialogTitle:"editor.findReplace-dialog-title",findReplaceTabFind:"editor.findReplace-tab-find",findReplaceTabReplace:"editor.findReplace-tab-replace",findReplaceFindWhat:"editor.findReplace-findWhat",findReplaceReplaceWith:"editor.findReplace-replaceWith",findReplaceReplace:"editor.findReplace-replace",findReplaceReplaceAll:"editor.findReplace-replaceAll",findReplaceMatchCase:"editor.findReplace-matchCase",findReplaceMatchWord:"editor.findReplace-matchWord",findReplaceMatchCyclic:"editor.findReplace-matchCyclic",findReplaceUseRegExp:"editor.findReplace-useRegExp",findReplacePrevMatch:"editor.findReplace-prevMatch",findReplaceNextMatch:"editor.findReplace-nextMatch",findReplaceMatches:"editor.findReplace-matches"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655700955,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701070,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return se})),n.d(t,"PopupVue2",(function(){return oe}));var i=n(1),r=n(15),o="bottom",s="center",a="middle",l="left",u="right",d="top",c=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,l=e.margin;void 0===l&&(l={});var d=n.horizontal,c=n.vertical,p=r.horizontal,h=r.vertical,f=l.horizontal||0,v=l.vertical||0,m=t.top,g=t.left;return c===o&&(m+=t.height),c!==s&&c!==a||(m+=Math.round(t.height/2)),h===o&&(m-=i.height,v*=-1),h!==s&&h!==a||(m-=Math.round(i.height/2),v*=-1),d===u&&(g+=t.width),d!==s&&d!==a||(g+=Math.round(t.width/2)),p===u&&(g-=i.width,f*=-1),p!==s&&p!==a||(g-=Math.round(i.width/2),f*=-1),{top:m+v,left:g+f}};function p(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=g()),i}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},w=function(e){return k(e)===e.ownerDocument.body},S=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=r,o}(e)),{top:i,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function x(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var $=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var O=function(e,t){var n=f(e),i=n.getComputedStyle(e),r=S(e),o=t||k(e),s=e.ownerDocument,a=o!==s.body&&o!==s.documentElement,l={top:0,left:0};if("fixed"!==i.position&&a){var u=n.getComputedStyle(o);(l=S(o)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},I=function(e,t){return e?$(e):function(e){var t=k(e);return t?$(t):{x:0,y:0}}(t)},T=function(e,t,n){void 0===n&&(n=1);var i=t?k(t):null,r=O(e,i),o=r.top,s=r.left,a=r.height,l=r.width,u=I(i,e),d=u.x,c=u.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:o+c*h,left:s+d*h,height:a,width:l}};function D(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var V="fit",M="flip",N=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},R=function(e){var t=e.offset,n=e.size,i=e.anchorSize,r=e.viewPortSize,o=e.anchorAlignPoint,u=e.elementAlignPoint,c=0,p=2*e.margin;if(u!==o&&!(u===s||u===a)&&!(o===s||o===a)){var h=o===d||o===l;t<0&&h?t+(c=n+i+p)+n>r&&(c=0):t>=0&&!h&&(t+n>r&&(c+=-(i+n+p)),t+c<0&&(c=0))}return c},B=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var l=i.top,u=i.left,d=i.height,c=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=o.vertical===V,y=o.horizontal===V,k=o.vertical===M,w=o.horizontal===M;b&&(g+=N(l,d,p)),y&&(m+=N(u,c,h)),k&&(g+=R({margin:v,offset:l,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=R({margin:f,offset:u,size:c,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=k&&0!==g,C=w&&0!==m,x=b&&0!==g,$=y&&0!==m;return{flipped:C||S,fitted:x||$,flip:{horizontal:C,vertical:S},fit:{horizontal:$,vertical:x},offset:{left:m,top:g}}},P=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},E=function(e,t){for(var n,i,r=C(e),o=t;o&&(n=P(o),!(i=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)o=o.parentElement;return i};A=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},L=!1;var A,j,L,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},z=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},K=function(){return"undefined"!=typeof document&&!!document.body},_=function(){return"undefined"!=typeof window},H=/auto|scroll/,W=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},U=function(){if(!K())return!1;var e=document.createElement("div");if(e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML="<div>child</div>",document.body.appendChild(e),e&&e.firstChild){var t=e.firstChild;t.style.position="fixed",t.style.top="10px"}var n=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),n}(),q="fit",G="flip",J="left",X="bottom",Y="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,r=e.elementAlign,o=e.offset,s=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,o):this.relativeRect(t,n,o);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(z(i.offset(e),n),i.stackingElementOffset(t)),o=i.stackingElementScroll(t),s=i.addScroll(r,o),a=this.elementScrollPosition(e,t),l=i.removeScroll(s,a);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return z(this._dom.position(e,t),n)},e}(),Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return c(e)},e.prototype.boundingOffset=function(e){return y(e)},e.prototype.getWindow=function(){return _()?window:null},e.prototype.isBodyOffset=function(e){return w(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?S(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var r=S(e);return e.style.left=n,e.style.top=i,r},e.prototype.position=function(e,t){if(!e||!t)return null;var n=E(e,t);return T(e,n)},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,r=this.isBodyOffset(e),o=n.top,s=n.left,r&&(s=0,o=0),{top:o+i.top,left:s+i.left,height:n.height,width:n.width};var n,i,r,o,s},e.prototype.addScroll=function(e,t){return p(e,t)},e.prototype.removeScroll=function(e,t){return D(e,t)},e.prototype.restrictToView=function(e){return B(e)},e.prototype.scrollPosition=function(e){return x(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!K()||!_())return t;for(var n=e.parentElement;n;)H.test(W(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?S(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!U)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!K()||!_())return null;var n=E(e,t);if(!n)return null;var i=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return K()&&_()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ee=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,r=e.currentLocation,o=e.element,s=e.anchorAlign,a=e.elementAlign,l=e.collisions,u=this._dom,d=e.viewPort||u.stackingElementViewPort(o)||u.windowViewPort(o),c=z(u.offset(i),r),p=(t=u.staticOffset(o),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(o,p),f=u.restrictToView({anchorAlign:s,anchorRect:c,collisions:l,elementAlign:a,elementRect:h,viewPort:d});return{flipped:f.flipped,offset:u.addOffset(p,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),te=n(0),ne={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655700881,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},ie=i.h,re={left:-1e3,top:0},oe={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:q,vertical:G}}},anchorAlign:{type:Object,default:function(){return{horizontal:J,vertical:X}}},popupAlign:{type:Object,default:function(){return{horizontal:J,vertical:Y}}},offset:{type:Object,default:function(){return re}},show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}},inject:{kCurrentZIndex:{default:null}},data:function(){return{hasMounted:!1}},created:function(){Object(te.validatePackage)(ne),this.mountedAppendTo=void 0,this.mountedAnchor=void 0,this._initiallyMountedContent=void 0,this._flipped=!1,this._offsetTop=0,this._offsetLeft=-1e3,this._exitingAnimation=!1,this._prevShow=!1,this._prevShow=this.$props.show,this._domService=new Q,this._alignService=new Z(this._domService),this._positionService=new ee(this._domService),this.reposition=function(e,t,n){var i,r,o,s;void 0===n&&(n={});var a=0;n=n||{};var l=function(){a=!1===n.leading?0:(new Date).getTime(),i=null,s=e.apply(r,o),i||(r=o=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var d=t-(u-a);return r=this,o=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),a=u,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,d)),s}}(this.reposition.bind(this),1e3/60)},setup:ie?function(){return{v3:!!ie}}:void 0,mounted:function(){te.canUseDOM&&(this.mountedAppendTo=this.$props.appendTo?this.getParentRef(this.$props.appendTo):document.body,this.mountedAnchor=this.$props.anchor?this.getParentRef(this.$props.anchor):document.body),this._parentElement=this.$el.parentElement,this._initiallyMountedContent=this.$el.cloneNode(!0),this.hasMounted=!0,this.mountedAppendTo.appendChild(this.$el)},updated:function(){this._prevShow=this.$props.show},destroyed:ie?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:ie?void 0:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},unmounted:function(){this.detachRepositionHandlers()},beforeUnmount:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},methods:{onOpened:function(){var e=this.$el;this.$props.show&&e.classList.add("k-animation-container-shown"),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove("k-animation-container-shown");this.detachRepositionHandlers()},onClosed:function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$emit("close",{target:this})},transitionDuration:function(){var e=this.$props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},getParentRef:function(e){for(var t=this.$parent;!t.$refs[e];){if(t&&t.kendoAnchorRef)return t.kendoAnchorRef;if(!(t=t.$parent)&&te.canUseDOM)return document.body}return t.$refs[e].$el||t.$refs[e]},position:function(e,t,n){var i=e.anchorAlign,r=e.popupAlign,o=e.collision,s=e.offset,a=n?this.v3?this.mountedAnchor:this.getParentRef(n):document.body,l=this._alignService.alignElement({anchor:n?a:void 0,element:t,elementAlign:r,anchorAlign:i,offset:s});return this._positionService.positionElement({anchor:a,anchorAlign:i,collisions:o,element:t,currentLocation:l,elementAlign:r})},calculatePosition:function(e,t){if(!t||!_()||!te.canUseDOM)return{flipped:!1,offset:e.offset};var n=Object(te.getDefaultSlots)(this),i=document.createElement("div"),r=this.$el&&this.$el.firstChild&&this.$el.firstChild.firstChild?this.$el.firstChild.firstChild.cloneNode(!0):null,o=r&&r.getBoundingClientRect?r:this._initiallyMountedContent;if(o)i.appendChild(o);else{var s=this.v3?n&&n[0].props?n[0].props.class:"":n&&n[0].data?n[0].data.staticClass:"",a=this.v3?this.$props.popupClass?this.$props.popupClass:"":n&&n[0].data?n[0].data.class:"";i.innerHTML='<div class="k-animation-container k-animation-container-relative">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'+s+" "+a+'" >\n </div>\t\n </div>\t\n </div>'}if(t.appendChild(i),i&&i.firstChild){var l=i.firstChild;l.style.position="absolute",l.style.visibility="hidden",l.style.display="block",l.style.left="-1000",l.style.top="0";var u=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(u)for(var d=0,c=Object.entries(u);d<c.length;d++){var p=c[d],h=p[0],f=p[1];l.style[h]=f}}var v=this.position(e,i.firstChild,this.$props.anchor);return i.parentNode.removeChild(i),v},attachRepositionHandlers:function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.mountedAnchor:e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},detachRepositionHandlers:function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},reposition:function(){this.$forceUpdate()},getCurrentZIndex:function(){return this.kCurrentZIndex?this.kCurrentZIndex+1:100}},render:function(e){var t=ie||e,n=this.$props,i=n.className,o=n.popupClass,s=n.show,a=n.id,l=Object(te.getDefaultSlots)(this),u=this.v3||s?l:null,d=_()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var c=this.calculatePosition(this.$props,d);this._offsetLeft=c.offset.left,this._offsetTop=c.offset.top,this._flipped=!!c.flipped}var p=this._flipped?"up":"down",h=this.transitionDuration(),f=h.transitionEnterDuration,v=h.transitionExitDuration,m=this.getCurrentZIndex();return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!s,this.hasMounted?s||this._exitingAnimation&&d?t(r.c,{id:a,attrs:this.v3?void 0:{id:a,componentChildClassName:[o,"k-popup"],className:i,direction:p,transitionEnterDuration:f,transitionExitDuration:v,appear:s},componentChildClassName:[o,"k-popup"],className:i,onEntered:this.onOpened,on:this.v3?void 0:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},onExiting:this.onClosing,onExited:this.onClosed,direction:p,style:{zIndex:m,position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"},transitionEnterDuration:f,transitionExitDuration:v,appear:s},this.v3?function(){return[u]}:[u]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[o,"k-popup"]},[l])])}},se=oe},function(e,t,n){"use strict";var i,r,o,s,a;n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return a})),function(e){e.CIRCLE="circle",e.SQUARE="square",e.ROUNDED="rounded",e.RECTANGLE="rectangle"}(i||(i={})),function(e){e.TEXT="text",e.IMAGE="image",e.ICON="icon"}(r||(r={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(o||(o={})),function(e){e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(s||(s={})),function(e){e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return h}));var i={vertical:"top",horizontal:"left"},r={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},s={vertical:"fit",horizontal:"flip"},a={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:r,collision:o},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:r,collision:s}},l={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:i,collision:o},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:i,collision:s}},u=n(3);function d(e,t,n){var i=c(e,t,n);return n?"downward"===i?a.downward:a.leftward:"downward"===i?l.downward:l.rightward}function c(e,t,n){return Object(u.m)(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function p(e){return e?"rtl":"ltr"}function h(e,t){return e+"_"+t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return D})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return A}));var i=n(1),r=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},o=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},s={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},a=n(0),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},d=i,c=d.h,p=d.ref,h=d.Transition,f=s,v={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:c?function(){return{v3:!!c,elementRef:p(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(e){this.$emit("beforeenter",{animatedElement:e,target:this})},onEnter:function(e){this.animationStep="entering",this.$emit("entering",{animatedElement:e,target:this})},onAfterEnter:function(e){this.animationStep="entered",this.$emit("entered",{animatedElement:e,target:this})},onBeforeLeave:function(e){this.$emit("exit",{animatedElement:e,target:this})},onLeave:function(e){this.animationStep="exiting",this.$emit("exiting",{animatedElement:e,target:this})},onAfterLeave:function(e){this.animationStep="exited",this.$emit("exited",{animatedElement:e,target:this})}},render:function(e){var t=this,n=c||e,i=this.$props,r=i.appear,o=i.enter,s=i.exit,d=i.transitionName,p=i.transitionEnterDuration,v=i.transitionExitDuration,m=(i.className,i.componentChildClassName),g=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),b=i.animationEnteredStyle,y=i.animationExitingStyle,k=i.animationExitedStyle,w=(u(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),Object(a.getDefaultSlots)(this)),S=this.v3?r:!!w,C=this.v3?h:"transition",x=[m,f["child-animation-container"]],$=o?p:0,O=s?v:0,I=[l({transitionDelay:"0ms",transitionDuration:S?$+"ms":O+"ms"},this.$props.transitionStyle),{entering:l({transitionDuration:$+"ms"},g),entered:l({},b),exiting:l({transitionDuration:O+"ms"},y),exited:l({},k)}[this.animationStep]],T={enter:$,leave:O},D=[S?n("div",{style:I,class:x,ref:this.v3?function(e){t.elementRef=e}:"element"},[w]):null];return n(C,{duration:T,attrs:this.v3?null:{duration:T,name:d,appear:r,appearClass:f[d+"-appear"]||d+"-appear",appearToClass:f[d+"-appear-active"]||d+"-appear-active",enterClass:f[d+"-enter"]||d+"-enter",enterToClass:f[d+"-enter-active"]||d+"-enter-active",leaveClass:f[d+"-exit"]||d+"-exit",leaveToClass:f[d+"-exit-active"]||d+"-exit-active"},name:d,appear:r,appearFromClass:f[d+"-appear"]||d+"-appear",enterFromClass:f[d+"-enter"]||d+"-enter",leaveFromClass:f[d+"-exit"]||d+"-exit",appearToClass:f[d+"-appear-active"]||d+"-appear-active",enterToClass:f[d+"-enter-active"]||d+"-enter-active",leaveToClass:f[d+"-exit-active"]||d+"-exit-active",onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return D}:D)}},m={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655700862,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},g=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},b=i.h,y=s,k={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:b?function(){return{v3:!!b}}:void 0,created:function(){Object(a.validatePackage)(m)},render:function(e){var t=b||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.id,i.tag,i.className),o=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,g(i,["id","tag","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[y["animation-container"],y["animation-container-relative"],r]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id},class:o},[t(v,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},w=i.h,S={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:w?function(){return{v3:!!w}}:void 0,render:function(e){var t=w||e,n=Object(a.getDefaultSlots)(this);return t(k,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},x=i.h,$=(Boolean,Boolean,Boolean,i.h),O={position:"absolute",top:"0",left:"0"},I=(Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),T=i.h,D={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:T?function(){return{v3:!!T}}:void 0,render:function(e){var t=T||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.id),o=(I(i,["direction","id"]),"slide-"+this.$props.direction);return t(k,{id:r,attrs:this.v3?void 0:{id:r,transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},V=i.h,M={position:"absolute",top:"0",left:"0"},N=(Boolean,Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),R=i.h,B=function(){},P={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(e){var t=this.$props.onEnter;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentIsEntering:function(e){var t=this.$props.onEntering;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentWillExit:function(e){var t=this.$props.onExit;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},updateContainerDimensions:function(e,t){void 0===t&&(t=B);var n=e?e.firstElementChild:null;if(n){var i=r(n),s=o(n);this.$data.maxHeight=i,this.$data.maxWidth=s,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?this.maxHeight+"px":null}:{maxWidth:this.maxWidth?this.maxWidth+"px":null}).maxHeight,maxWidth:e.maxWidth}}}},setup:R?function(){return{v3:!!R}}:void 0,render:function(e){var t=R||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.childFactory,N(i,["direction","childFactory"]),"reveal-"+this.$props.direction);return t(k,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},this.v3?function(){return[n]}:[n])}},E=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,r=e.duration,o=t&&1-t;e.onStart&&e.onStart();return n=window.requestAnimationFrame((function s(a){i||(i=a);var l=(a-i+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),n=window.requestAnimationFrame(s),t=l):(e.onEnd&&e.onEnd(1),t=0)}))},A=function(e){e&&window.cancelAnimationFrame(e)}},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var o=n(8),s=n(6),a=i({},s.indentRules.listsTypes);!function(e){var t={type:"button"};e.bold=i(i({},s.bold),{props:i({icon:"bold"},t),messages:{title:o.keys.bold},commandName:"Bold"}),e.italic=i(i({},s.italic),{props:i({icon:"italic"},t),messages:{title:o.keys.italic},commandName:"Italic"}),e.underline=i(i({},s.underline),{props:i({icon:"underline"},t),messages:{title:o.keys.underline},commandName:"Underline"}),e.strikethrough=i(i({},s.strikethrough),{props:i({icon:"strikethrough"},t),messages:{title:o.keys.strikethrough},commandName:"Strikethrough"}),e.subscript=i(i({},s.subscript),{props:i({icon:"subscript"},t),messages:{title:o.keys.subscript},commandName:"Subscript"}),e.superscript=i(i({},s.superscript),{props:i({icon:"superscript"},t),messages:{title:o.keys.superscript},commandName:"Superscript"}),e.link=i(i({},s.link),{props:i({icon:"link-horizontal"},t),messages:{insertHyperlink:o.keys.insertHyperlink,insertHyperlinkDialogTitle:o.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:o.keys.insertHyperlinkAddress,insertHyperlinkTitle:o.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:o.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:o.keys.insertHyperlinkCancel,insertHyperlinkInsert:o.keys.insertHyperlinkInsert},commandName:"Link"}),e.insertFile=i(i({},s.link),{props:i({icon:"file-add"},t),messages:{insertHyperlink:o.keys.insertFile,insertHyperlinkDialogTitle:o.keys.insertFileDialogTitle,insertHyperlinkAddress:o.keys.insertFileAddress,insertHyperlinkTitle:o.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:o.keys.insertFileCancel,insertHyperlinkInsert:o.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),e.insertTable={props:i({icon:"table-insert"},t),messages:{createTable:o.keys.createTable,createTableHint:o.keys.createTableHint},commandName:"InsertTable"},e.addRowBefore={command:s.addRowBefore,props:i({icon:"table-row-insert-above"},t),messages:{title:o.keys.addRowBefore},commandName:"AddRowBefore"},e.addRowAfter={command:s.addRowAfter,props:i({icon:"table-row-insert-below"},t),messages:{title:o.keys.addRowAfter},commandName:"AddRowAfter"},e.addColumnBefore={command:s.addColumnBefore,props:i({icon:"table-column-insert-left"},t),messages:{title:o.keys.addColumnBefore},commandName:"AddColumnBefore"},e.addColumnAfter={command:s.addColumnAfter,props:i({icon:"table-column-insert-right"},t),messages:{title:o.keys.addColumnAfter},commandName:"AddColumnAfter"},e.deleteRow={command:s.deleteRow,props:i({icon:"table-row-delete"},t),messages:{title:o.keys.deleteRow},commandName:"DeleteRow"},e.deleteColumn={command:s.deleteColumn,props:i({icon:"table-column-delete"},t),messages:{title:o.keys.deleteColumn},commandName:"DeleteColumn"},e.deleteTable={command:s.deleteTable,props:i({icon:"table-delete"},t),messages:{title:o.keys.deleteTable},commandName:"DeleteTable"},e.mergeCells={command:s.mergeCells,props:i({icon:"cells-merge"},t),messages:{title:o.keys.mergeCells},commandName:"MergeCells"},e.splitCell={command:s.splitCell,props:i({icon:"cell-split-horizontally"},t),messages:{title:o.keys.splitCell},commandName:"SplitCell"},e.print={props:i({icon:"print"},t),messages:{title:o.keys.print}},e.selectAll={props:i({icon:"select-all"},t),messages:{title:o.keys.selectAll}},e.pdf={props:i({icon:"pdf"},t),messages:{title:o.keys.pdf}},e.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},e.cleanFormatting={props:i({icon:"clear-css"},t),messages:{title:o.keys.cleanFormatting},commandName:"CleanFormatting"},e.image={node:"image",props:i({icon:"image"},t),messages:{insertImage:o.keys.insertImage,insertImageDialogTitle:o.keys.insertImageDialogTitle,insertImageAddress:o.keys.insertImageAddress,insertImageTitle:o.keys.insertImageTitle,insertImageAltText:o.keys.insertImageAltText,insertImageWidth:o.keys.insertImageWidth,insertImageHeight:o.keys.insertImageHeight,insertImageCancel:o.keys.insertImageCancel,insertImageInsert:o.keys.insertImageInsert},commandName:"InsertImage"},e.viewHtml={props:i({icon:"html"},t),messages:{viewHtml:o.keys.viewHtml,viewHtmlDialogTitle:o.keys.viewHtmlDialogTitle,viewHtmlCancel:o.keys.viewHtmlCancel,viewHtmlUpdate:o.keys.viewHtmlUpdate},commandName:"SetContent"},e.findAndReplace={props:i({icon:"find"},t),messages:{findReplaceToolTitle:o.keys.findReplaceToolTitle,findReplaceDialogTitle:o.keys.findReplaceDialogTitle,findReplaceTabFind:o.keys.findReplaceTabFind,findReplaceTabReplace:o.keys.findReplaceTabReplace,findReplaceFindWhat:o.keys.findReplaceFindWhat,findReplaceReplaceWith:o.keys.findReplaceReplaceWith,findReplaceReplace:o.keys.findReplaceReplace,findReplaceReplaceAll:o.keys.findReplaceReplaceAll,findReplaceMatchCase:o.keys.findReplaceMatchCase,findReplaceMatchWord:o.keys.findReplaceMatchWord,findReplaceMatchCyclic:o.keys.findReplaceMatchCyclic,findReplaceUseRegExp:o.keys.findReplaceUseRegExp,findReplacePrevMatch:o.keys.findReplacePrevMatch,findReplaceNextMatch:o.keys.findReplaceNextMatch,findReplaceMatches:o.keys.findReplaceMatches}},e.unlink=i(i({},s.link),{props:i({icon:"unlink-horizontal"},t),messages:{title:o.keys.unlink},commandName:"Unlink"}),e.undo={command:s.undo,props:i({icon:"undo"},t),messages:{title:o.keys.undo},commandName:"Undo"},e.redo={command:s.redo,props:i({icon:"redo"},t),messages:{title:o.keys.redo},commandName:"Redo"},e.fontSize={style:"font-size",defaultItem:{text:o.messages[o.keys.fontSize],value:"",localizationKey:o.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},e.fontName={style:"font-family",defaultItem:{text:o.messages[o.keys.fontName],value:"",localizationKey:o.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},e.formatBlock={defaultItem:{text:o.messages[o.keys.format],value:"",localizationKey:o.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},e.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:o.keys.foregroundColor},commandName:"ForeColor"},e.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:o.keys.backgroundColor},commandName:"BackColor"},e.alignLeft={actions:r(s.alignLeftRules),props:i({icon:"align-left"},t),messages:{title:o.keys.alignLeft},commandName:"AlignLeft"},e.alignRight={actions:r(s.alignRightRules),props:i({icon:"align-right"},t),messages:{title:o.keys.alignRight},commandName:"AlignRight"},e.alignCenter={actions:r(s.alignCenterRules),props:i({icon:"align-center"},t),messages:{title:o.keys.alignCenter},commandName:"AlignCenter"},e.alignJustify={actions:r(s.alignJustifyRules),props:i({icon:"align-justify"},t),messages:{title:o.keys.alignJustify},commandName:"AlignJustify"},e.alignRemove={actions:r(s.alignRemoveRules),props:i({icon:"align-remove"},t),messages:{},commandName:"AlignRemove"},e.indent={actions:s.indentRules.nodes,listsTypes:a,props:i({icon:"indent-increase"},t),messages:{title:o.keys.indent},commandName:"Indent"},e.outdent={actions:s.outdentRules.nodes,listsTypes:a,props:i({icon:"indent-decrease"},t),messages:{title:o.keys.outdent},commandName:"Outdent"},e.orderedList={listType:a.orderedList,props:i({icon:"list-ordered"},t),messages:{title:o.keys.orderedList},commandName:"OrderedList",types:i({},a)},e.bulletList={listType:a.bulletList,props:i({icon:"list-unordered"},t),messages:{title:o.keys.bulletList},commandName:"UnorderedList",types:i({},a)}}(t.EditorToolsSettings||(t.EditorToolsSettings={}))},function(e,t,n){"use strict";function i(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function r(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return f}));var i=n(0),r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},s=function e(t,n){var s=n.animation,a=void 0===s||s,l=n.keepItemsMounted,d=void 0!==l&&l,c=n.state,p=n.expanded,h=n.handleSelect,f=n.parentExpanded,v=void 0===f||f,m=n.level,g=void 0===m?0:m,b=n.parentPrivateKey,y=void 0===b?[]:b;return t.map((function(t,n){var s,l=u(t,y,n),f=i.templateRendering.call(this,t.content,i.getListeners.call(this)),m=i.templateRendering.call(this,t.header,i.getListeners.call(this));if(t.items){var b={animation:a,keepItemsMounted:d,state:c,expanded:p,handleSelect:h,parentExpanded:(p||[]).indexOf(l)>-1,level:g+1,parentPrivateKey:o(y,[l])};s=e.call(this,t.items,b)}return r(r({},t),{animation:void 0!==t.animation?t.animation:a,keepItemsMounted:d,id:t.id||"k-panelbar-item-default-"+l,uniquePrivateKey:l,parentUniquePrivateKey:y,parentExpanded:v,level:g,expanded:(p||[]).indexOf(l)>-1,focused:c.currentFocused===l&&c.wrapperFocused,selected:c.currentSelected===l,items:s,content:f,header:m})}),this)},a=function(e){var t=e.items[0];return t?u(t,[],0):""},l=function e(t,n,i,r,s){return void 0===i&&(i={currentExpanded:t.expanded||[],currentSelected:t.selected||"",currentFocused:t.focused||"",wrapperFocused:!1}),void 0===r&&(r=!0),void 0===s&&(s=[]),t.items.forEach((function(t,a){var l=u(t,s,a);!t.disabled&&r&&(t.selected&&(i.currentSelected=l),t.focused&&(i.currentFocused=l),t.expanded&&("multiple"===n?i.currentExpanded.push(l):"single"===n&&(i.currentExpanded=[l])),t.items&&(i=e(t,n,i,!!t.expanded,o(s,[l]))))})),i},u=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+"."+n:"."+n};function d(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&d(e.children,t))})),t}function c(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&e&&!e.disabled&&(t.push(e),e.items&&c(e.items,t))})),t}function p(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&(e.expanded||e.parentExpanded)&&(t.push(e),e.items&&p(e.items,t))})),t}var h=function(e){return null!=e},f=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(9),s=n(20),a=i.h,l=s.a.styles,u={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null},props:{dir:String,selected:{type:Boolean,default:void 0},togglable:{type:Boolean,default:!1},icon:{type:String,default:function(){}},iconClass:{type:String,default:function(){}},imageUrl:{type:String,default:function(){}},imageAlt:String,disabled:{type:Boolean,default:void 0},size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid"},themeColor:{type:String,default:"base"}},created:function(){Object(r.validatePackage)(o.a),this.currentActive=!0===this.$props.togglable&&!0===this.$props.selected,this._activeTemp=void 0},data:function(){return{currentActive:null}},computed:{computedSelected:function(){return void 0!==this._activeTemp?this._activeTemp:void 0!==this.$props.selected?this.$props.selected:this.currentActive},buttonClasses:function(){var e,t=this.$props,n=t.disabled,i=t.icon,o=t.iconClass,s=t.imageUrl,a=t.dir,u=t.size,d=t.shape,c=t.rounded,p=t.fillMode,h=t.themeColor,f=void 0!==i||void 0!==o||void 0!==s,v=Object(r.getDefaultSlots)(this);return(e={})[l.button]=!0,e["k-button-"+(r.kendoThemeMaps.sizeMap[u]||u)]=u,e["k-button-"+d]=d&&"rectangle"!==d,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[c]||c)]=c,e["k-icon-button"]=!v&&f,e["k-disabled"]=n,e["k-selected"]=this.computedSelected,e["k-rtl"]="rtl"===a,e["k-button-"+p]=p,e["k-button-"+p+"-"+h]=p&&h,e}},updated:function(){this.$props.togglable&&void 0!==this.$props.selected&&this.$props.selected!==this.currentActive&&(this.currentActive=this.$props.selected)},methods:{focus:function(e){this.$el.focus(e)},toggleIfApplicable:function(){if(!this.disabled&&this.$props.togglable&&void 0===this.$props.selected){var e=!this.currentActive;this._activeTemp=e,this.currentActive=e,this._activeTemp=void 0}},handleClick:function(e){this.toggleIfApplicable(),this.disabled||this.$emit("click",e)},handleMouseDown:function(e){this.disabled||this.$emit("mousedown",e)},handlePointerDown:function(e){this.disabled||this.$emit("pointerdown",e)},handleMouseUp:function(e){this.disabled||this.$emit("mouseup",e)},handlePointerUp:function(e){this.disabled||this.$emit("pointerup",e)},handleFocus:function(e){this.disabled||this.$emit("focus",e)},handleBlur:function(e){this.disabled||this.$emit("blur",e)},handleKeypress:function(e){this.disabled||this.$emit("keypress",e)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,i=n.togglable,o=n.icon,s=n.iconClass,l=n.imageUrl,u=n.imageAlt,d=Object(r.getDefaultSlots)(this);return t("button",{class:this.buttonClasses,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,pointerdown:this.handlePointerDown,pointerup:this.handlePointerUp,focus:this.handleFocus,blur:this.handleBlur,keypress:this.handleKeypress},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-disabled":this.$props.disabled||void 0,"aria-checked":i?this.currentActive:void 0},"aria-disabled":this.$props.disabled||void 0,"aria-checked":i?this.currentActive:void 0},[function(){if(l)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:u,src:l},class:"k-image",alt:u,src:l});if(o){var e=Object(r.classNames)("k-icon","k-button-icon","k-i-"+o);return t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return s?t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:s}):null}.call(this),d])}},d=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r}));var i=".k-dropdownlist > .k-button,.k-colorpicker > .k-button",r=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"];t.a={styles:{button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f}));var i=n(1),r=function(e){return null!=e},o=n(11),s=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(r(e)){var n=e?Object(o.parseColor)(e,!0):e,i=[e];r(n)&&i.push(n.toCss(),n.toCssRgba());for(var s=function(e){for(var n=function(n){if(i.some((function(i){return i===t.colorRows[e][n]})))return{value:{row:e,col:n}}},r=0;r<a.colorRows[e].length;r++){var o=n(r);if("object"==typeof o)return o}},a=this,l=0;l<this.colorRows.length;l++){var u=s(l);if("object"==typeof u)return u.value}}},e.prototype.getColorAt=function(e){if(r(e)&&r(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r(e)&&r(e.row)&&r(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),a=n(0),l=n(7),u={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},d=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(r(e)){var i=Object(o.parseColor)(e.trim(),n);if(r(i))return"hex"===t?i.toCss():i.toCssRgba()}},c=i.h,p=24,h="office",f={name:"KendoColorPalette",emits:{keydown:null,focus:null,blur:null,change:null},props:{palette:{type:[String,Array],default:h},columns:Number,tileSize:{type:[Number,Object],default:p},defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){Object(a.validatePackage)(l.a),this.guid=Object(a.guid)()},mounted:function(){this.wrapper=this.v3?this.wrapperRef:this.$refs.wrapper},updated:function(){this.wrapper=this.v3?this.wrapperRef:this.$refs.wrapper},computed:{focusedColorCooridanates:function(){return this.focusedColor?this.paletteService.getCellCoordsFor(this.focusedColor):void 0},isUncontrolled:function(){return void 0===this.$props.value},selectedColor:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:void 0,currentValue:void 0,isFirstRender:!0}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=this,n=c||e,i=this.getPaletteInfo(),r=this.paletteService=new s;r.setColorMatrix(i.colors,i.columns);var o=r.getCellCoordsFor(this.selectedColor),l=r.getCellCoordsFor(this.focusedColor),u=Object(a.classNames)("k-colorpalette",{"k-state-disabled":this.$props.disabled}),d=function(e,t,i,r){var o=void 0!==i&&i.row===t,s=i&&i.col,l=void 0!==r&&r.row===t,u=r&&r.col,d="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},c=d.width+"px",p=d.height+"px";return e.map((function(e,i){var r=this,d=o&&s===i,h=Object(a.classNames)("k-colorpalette-tile",{"k-state-selected":d,"k-state-focus":l&&u===i});return n("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!d||!!this.$props.disabled&&void 0,id:this.createCellId({row:t,col:i})},"aria-selected":!!d||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:c,height:p,minWidth:c},onClick:function(t){return r.onColorClick(e,t)},on:this.v3?void 0:{click:function(t){return r.onColorClick(e,t)}},id:this.createCellId({row:t,col:i}),key:i})}),this)};return i.colors.length?n("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:u,onFocusin:this.onFocus,on:this.v3?void 0:{focusin:this.onFocus,focusout:this.onBlur,keydown:this.onKeyDown},onFocusout:this.onBlur,onKeydown:this.onKeyDown,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:this.v3?function(e){t.wrapperRef=e}:"wrapper"},[n("div",{class:"k-colorpalette-table-wrap",role:"grid",attrs:this.v3?void 0:{role:"grid"}},[n("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n("tbody",[function(e,t,i){return e.map((function(e,r){return n("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:r},[d.call(this,e,r,t,i)])}),this)}.call(this,r.colorRows,o,l)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},getDerivedStateFromProps:function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(0,1);break;case a.Keys.up:this.handleCellNavigation(0,-1);break;case a.Keys.right:this.handleCellNavigation(1,0);break;case a.Keys.left:this.handleCellNavigation(-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}e.preventDefault(),this.$emit("keydown",e)},onColorClick:function(e,t){this.isUncontrolled?(this.currentValue=e,this.focusedColor=e):this.focusedColor=e,this.dispatchChangeEvent(e,t)},onFocus:function(e){this.focusedColor=this.selectedColor||this.paletteService.colorRows[0][0],this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.focusedColor=void 0,this.$emit("blur",{event:e,target:this})},handleCellNavigation:function(e,t){if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.focusedColor=this.paletteService.getColorAt(n)}else this.focusedColor=this.paletteService.colorRows[0][0]},handleEnter:function(e){this.isUncontrolled&&(this.currentValue=this.focusedColor),this.dispatchChangeEvent(this.focusedColor,e)},dispatchChangeEvent:function(e,t){this.$emit("change",{event:t,component:this,value:e,rgbaValue:d(e,"rgba")})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=u[this.$props.palette];return r(e)?{colors:e.colors,columns:this.$props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.$props.palette||[],columns:this.$props.columns||10}},createCellId:function(e){return this.guid+"_"+e.row+"_"+e.col}}}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(i||(i={}));var r=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case i.next:return n===t.items.length-1?e:t.items[n+1];case i.prev:return 0===n?e:t.items[n-1];case i.current:return t.payload;case i.reset:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i,r,o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(i||(i={})),function(e){e.toggle="toggle",e.remove="remove"}(r||(r={}));var s=function(e,t){switch(t.selection){case i.single:switch(t.type){case r.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case r.remove:return t.payload===e?null:e;default:return e}case i.multiple:switch(t.type){case r.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case r.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]):e;default:return e}case i.none:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=400,r=0},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(0),o=n(22),s=n(43),a=n(23),l=n(9),u=i,d=u.h,c=u.ref,p={name:"KendoVueChip",props:{id:String,text:String,value:[String,Object],type:String,dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"k-i-close-circle"}},disabled:{type:Boolean,default:!1},icon:String,selectedIcon:{type:String,default:function(){return"k-i-check"}},look:{type:String,default:function(){return"solid"}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String},emits:{click:null,keydown:null,blur:null,focus:null,remove:null},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:r.noop},handleDispatchSelection:{default:r.noop},handleDispatchFocus:{default:r.noop}},created:function(){this.currentDir=void 0,Object(r.validatePackage)(l.a)},mounted:function(){this.chip=this.v3?this.chipRef:this.$refs.chip,this.currentDir=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1},updated:function(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected:function(){var e=this;return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some((function(t){return t===e.$props.value})):this.kendoSelection.value===this.$props.value)}},methods:{computedFocused:function(){return this.kendoFocused.value===this.$props.value},handleClick:function(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove:function(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:s.a.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:o.a.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:a.a.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case r.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.prev,payload:this.$props.value,event:e});break;case r.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.next,payload:this.$props.value,event:e});break;case r.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e});break;case r.Keys.delete:this.handleRemove(e)}this.$emit("keydown",{target:this.target,event:e})},handleFocus:function(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:o.a.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:d?function(){return{v3:!!d,chipRef:c(null)}}:void 0,render:function(e){var t,n=this,i=d||e,o=this.$props,s=o.size,a=o.rounded,l=o.themeColor,u=o.fillMode,c=o.look,p=o.type;return i("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.value,ref:this.v3?function(e){n.chipRef=e}:"chip",dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip",(t={"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused()},t["k-chip-"+(r.kendoThemeMaps.sizeMap[s]||s)]=s,t["k-rounded-"+(r.kendoThemeMaps.roundedMap[a]||a)]=a,t["k-chip-"+u]=u,t["k-chip-"+u+"-"+l]=Boolean(u&&l),t["k-chip-success"]="success"===p,t["k-chip-warning"]="warning"===p,t["k-chip-error"]="error"===p,t["k-chip-info"]="info"===p,t["k-chip-outline"]="outline"===c||"outlined"===c,t["k-chip-solid"]="solid"===c||"filled"===c,t)),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,on:this.v3?void 0:{focus:this.handleFocus,blur:this.handleBlur,click:this.handleClick,keydown:this.handleKeyDown},onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown},[this.currentSelected&&this.$props.selectedIcon&&i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.icon)}),i("span",{class:"k-chip-content"},[this.$props.text&&i("span",{"aria-label":this.$props.text,attrs:this.v3?void 0:{"aria-label":this.$props.text},class:"k-chip-label"},[this.$props.text])]),this.$props.removable&&i("span",{class:"k-chip-actions"},[i("span",{class:"k-chip-action k-chip-remove-action"},[i("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.ref,l={name:"KendoVueFloatingActionButtonItem",props:{disabled:Boolean,focused:Boolean,index:Number,icon:String,item:[String,Function,Object],dataItem:Object,text:String,tabIndex:Number,customProp:[String,Function,Object]},emits:{click:null,down:null},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element},computed:{itemClassNames:function(){return Object(r.classNames)("k-fab-item",{"k-state-focus":this.focused,"k-state-disabled":this.disabled})}},methods:{handleClick:function(e){void 0===this.$props.index||this.$props.disabled||this.$emit("click",e,this.$props.index)},focusElement:function(){this.$el&&this.$el.focus()},onDown:function(e){this.$emit("down",e)}},setup:s?function(){return{v3:!!s,elementRef:a(null)}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.disabled,a=i.id,l=i.tabIndex,u=i.dataItem,d=i.customProp,c=u.text,p=u.icon,h=n("li",{ref:this.v3?function(e){t.elementRef=e}:"element",id:a,attrs:this.v3?void 0:{id:a,role:"menuitem",tabIndex:Object(r.getTabIndex)(l,o),"aria-disabled":o,"aria-label":(c||"")+" floatingactionbutton item",customProp:d},class:this.itemClassNames,role:"menuitem",tabIndex:Object(r.getTabIndex)(l,o),"aria-disabled":o,"aria-label":(c||"")+" floatingactionbutton item",onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,customProp:d},[c&&n("span",{class:"k-fab-item-text"},[c]),p&&n("span",{class:Object(r.classNames)("k-fab-item-icon k-icon k-i-"+p)})]);return r.getTemplate.call(this,{h:n,template:this.$props.item,defaultRendering:h,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("span",[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(32),o=i,s=o.h,a=(o.ref,o.inject,{name:"KendoTabStripNavigation",emits:{select:null,keydown:null},props:{tabs:Array,selected:Number,tabIndex:Number,tabPosition:String},computed:{wrapperNavClasses:{get:function(){return{"k-tabstrip-items-wrapper":!0,"k-hstack":"top"===this.$props.tabPosition||"bottom"===this.$props.tabPosition,"k-vstack":"left"===this.$props.tabPosition||"right"===this.$props.tabPosition}}},navClasses:{get:function(){return{"k-tabstrip-items":!0,"k-reset":!0}}}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=this.$props,i=n.tabs,o=n.selected,a=i.length;return t("div",{class:this.wrapperNavClasses},[t("ul",{class:this.navClasses,role:"tablist",attrs:this.v3?void 0:{role:"tablist",tabIndex:this.$props.tabIndex},tabIndex:this.$props.tabIndex,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[function(){return(e=a,Array.apply(null,Array(e))).map((function(e,n,s){return t(r.a,{key:n,active:o===n,attrs:this.v3?void 0:{active:o===n,disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect}})}),this);var e}.call(this)])])},methods:{onKeyDown:function(e){this.$emit("keydown",e)},onSelect:function(e){this.$emit("select",e)}}}),l=a},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.formatString=t.onDownPreventDefault=void 0;t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}};t.userSelectNone={userSelect:"none"};t.formatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t,n){e=e.replace("{"+n+"}",String(t))})),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Dialog",(function(){return p})),n.d(t,"DialogVue2",(function(){return c})),n.d(t,"DialogActionsBar",(function(){return v})),n.d(t,"DialogActionsBarVue2",(function(){return f})),n.d(t,"Window",(function(){return x})),n.d(t,"WindowVue2",(function(){return C}));var i,r=n(1),o=n(0),s=n(5),a=r.h,l={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:a?function(){return{v3:!!a}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=a||e,i=this.$props,r=i.id,l=i.closeIcon,u=i.titleRender,d=i.title;return t=o.getTemplate.call(this,{h:n,template:u,defaultRendering:d}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:r,attrs:this.v3?void 0:{id:r}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[l&&n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",fillMode:"flat","aria-label":"Close",icon:"x"},fillMode:"flat","aria-label":"Close",icon:"x",onClick:this.onCloseButtonClick,on:this.v3?void 0:{click:this.onCloseButtonClick}})])])}},u={name:"@progress/kendo-vue-dialogs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655700975,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},d=r.h,c={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:o.templateDefinition,id:String,wrapperId:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]},provide:function(){return{kCurrentZIndex:10002}},created:function(){Object(o.validatePackage)(u),this.titleId=this.generateTitleId()},setup:d?function(){return{v3:!!d}}:void 0,mounted:function(){if(this.$props.appendTo){var e=document.querySelector(this.$props.appendTo);this.windowElement=this.$refs.wrapper,e.append(this.windowElement)}},beforeDestroy:d?void 0:function(){this.$props.appendTo&&this.windowElement.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowElement.remove()},methods:{handleCloseDialog:function(e){e.preventDefault(),this.$emit("close",{event:e,target:this})},handleKeyDown:function(e){e.keyCode===o.Keys.esc&&o.hasListener.call(this,"close")&&(e.preventDefault(),this.handleCloseDialog(e))},transformDimesion:function(e){return"string"==typeof e&&(e.endsWith("px")||e.endsWith("%"))?e:e+"px"},getActionBarIndex:function(e){return e.findIndex((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("dialogactionsbar")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("actions-bar")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("dialogactionsbar")}))},generateTitleId:function(){return"dialog-title"+Object(o.guid)()}},render:function(e){var t=d||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,r=i.title,s=i.width,a=i.height,u=i.minWidth,c=i.dir,p=i.contentStyle,h=i.wrapperId,f=this.$props.titleRender?o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)):null,v=Object(o.getDefaultSlots)(this)||[];s=this.transformDimesion(s),a=this.transformDimesion(a),u=this.transformDimesion(u);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var b=void 0===this.$props.closeIcon||this.$props.closeIcon,y=t("div",{ref:"wrapper",class:"k-dialog-wrapper",onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown},tabIndex:0,attrs:this.v3?void 0:{tabIndex:0,id:h,dir:c},id:h,dir:c},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":r||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":r||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:a,minWidth:u}},[(r||f)&&t(l,{closeIcon:b,attrs:this.v3?void 0:{closeIcon:b,id:n,title:r,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:r,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:p},[v]),m])]);return this.$props.appendTo?t("div",[y]):y}},p=c,h=r.h,f={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:h?function(){return{v3:!!h}}:void 0,computed:{wrapperClasses:function(){var e=this.$props.layout;return{"k-dialog-buttongroup":this.buttonGroupClass,"k-actions":!0,"k-hstack":!0,"k-justify-content-start":"start"===e,"k-justify-content-center":"center"===e,"k-justify-content-end":"end"===e,"k-justify-content-stretch":"stretched"===e}}},render:function(e){var t=h||e,n=Object(o.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}},v=f;!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(i||(i={}));var m=r.h,g={props:{id:String,stage:String,closeButton:[String,Function,Object,Boolean],minimizeButton:[String,Function,Object,Boolean],maximizeButton:[String,Function,Object,Boolean],restoreButton:[String,Function,Object,Boolean],title:String,titleRender:[String,Function,Object,Boolean]},setup:m?function(){return{v3:!!m}}:void 0,methods:{onDoubleClick:function(e){this.$emit("doubleclick",e)},onMinimizeClick:function(e){this.$emit("minimizeclick",e)},onFullScreenClick:function(e){this.$emit("fullscreenclick",e)},onRestoreClick:function(e){this.$emit("restoreclick",e)},onCloseClick:function(e){this.$emit("closeclick",e)}},render:function(e){var t=m||e,n=this.$props,r=n.stage,a=n.title,l=n.titleRender,u=n.minimizeButton,d=n.maximizeButton,c=n.restoreButton,p=n.closeButton,h=o.getTemplate.call(this,{h:t,template:l,defaultRendering:a}),f=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-minimize",fillMode:"flat"},icon:"window-minimize",fillMode:"flat",onClick:this.onMinimizeClick,on:this.v3?void 0:{click:this.onMinimizeClick}}),v=o.getTemplate.call(this,{h:t,template:u,defaultRendering:f}),g=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-maximize",fillMode:"flat"},icon:"window-maximize",fillMode:"flat",onClick:this.onFullScreenClick,on:this.v3?void 0:{click:this.onFullScreenClick}}),b=o.getTemplate.call(this,{h:t,template:d,defaultRendering:g}),y=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-restore",fillMode:"flat"},icon:"window-restore",fillMode:"flat",onClick:this.onRestoreClick,on:this.v3?void 0:{click:this.onRestoreClick}}),k=o.getTemplate.call(this,{h:t,template:c,defaultRendering:y}),w=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"x",fillMode:"flat"},icon:"x",fillMode:"flat",onClick:this.onCloseClick,on:this.v3?void 0:{click:this.onCloseClick}}),S=o.getTemplate.call(this,{h:t,template:p,defaultRendering:w});return t("div",{class:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},onDblclick:this.onDoubleClick,on:this.v3?void 0:{dblclick:this.onDoubleClick}},[t("div",{class:"k-window-title"},[h]),t("div",{class:"k-window-actions"},[r===i.DEFAULT&&v,r===i.DEFAULT&&b,r!==i.DEFAULT&&k]),S])}},b=r.h,y=["n","e","s","w","se","sw","ne","nw"],k={name:"ResizeHandlers",emits:{resize:null},setup:b?function(){return{v3:!!b}}:void 0,methods:{onDrag:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!1,direction:t})},onRelease:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!0,direction:t})}},render:function(e){var t=b||e;return t("div",[y.map((function(e,n){var i=this;return t(o.Draggable,{key:n,onDrag:function(t){return i.onDrag(t,e)},on:this.v3?void 0:{drag:function(t){return i.onDrag(t,e)},release:function(t){return i.onRelease(t,e)}},onRelease:function(t){return i.onRelease(t,e)}},this.v3?function(){return[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})]}:[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})])}),this)])}},w=function(){return(w=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},S=r.h,C={name:"KendoWindow",emits:{resize:null,move:null,close:null,stagechange:null},provide:function(){return{kCurrentZIndex:10002}},props:{id:String,appendTo:String,width:{type:[Number],default:void 0},height:{type:[Number],default:void 0},left:{type:[Number],default:void 0},windowStyle:Object,windowClass:String,top:{type:[Number],default:void 0},initialWidth:[Number],initialHeight:[Number],initialLeft:[Number],initialTop:[Number],minWidth:{type:[Number],default:120},minHeight:{type:[Number],default:100},resizable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},modal:{type:Boolean,default:!1},doubleClickStageChange:{type:Boolean,default:!0},title:String,titleRender:o.templateDefinition,closeButton:o.templateDefinition,minimizeButton:o.templateDefinition,maximizeButton:o.templateDefinition,restoreButton:o.templateDefinition,shouldUpdateOnDrag:Boolean,stage:{type:String,validator:function(e){return-1!==["DEFAULT","MINIMIZED","FULLSCREEN"].indexOf(e)}}},setup:S?function(){return{v3:!!S}}:void 0,created:function(){Object(o.validatePackage)(u),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()}},beforeDestroy:S?void 0:function(){this.$props.appendTo&&this.windowWrapper.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowWrapper.remove()},data:function(){return{currentStage:this.$props.stage||i.DEFAULT,isDragging:!1,currentTop:this.getInitialTop(),currentLeft:this.getInitialLeft(),currentWidth:this.getInitialWidth(),currentHeight:this.getInitialHeight()}},mounted:function(){if(window&&(window.addEventListener("resize",this.handleBrowserWindowResize),this.$props.appendTo)){var e=document.querySelector(this.$props.appendTo);this.windowWrapper=this.$refs.wrapper,e.append(this.windowWrapper)}this.$el&&(this.windowElement=this.$refs.windowElement)},destroyed:S?void 0:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},unmounted:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},computed:{computedTop:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.top||this.currentTop,0):0},computedLeft:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.left||this.currentLeft,0):0},computedWidth:function(){var e=this.$props.width||this.currentWidth;return this.windowStage===i.FULLSCREEN&&(e=window.innerWidth),e},computedHeight:function(){var e=this.$props.height||this.currentHeight;return this.windowStage===i.FULLSCREEN?e=window.innerHeight:this.windowStage===i.MINIMIZED&&(e=0),e},windowStage:function(){return this.$props.stage||this.currentStage}},methods:{onPress:function(e){var t=e;this.windowCoordinatesState.differenceLeft=t.pageX-this.computedLeft,this.windowCoordinatesState.differenceTop=t.pageY-this.computedTop},onDrag:function(e){var t=e;t.originalEvent.preventDefault(),this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&(this.currentTop=Math.max(t.pageY-this.windowCoordinatesState.differenceTop,0),this.currentLeft=t.pageX-this.windowCoordinatesState.differenceLeft,this.isDragging=!0,this.dispatchMoveEvent("move",t,!0,!1))},onRelease:function(e){var t=e;this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&this.dispatchMoveEvent("move",t,!0,!0),this.isDragging=!1},handleKeyDown:function(e){if(e.target===e.currentTarget){var t=this.$props.minWidth||120,n=this.$props.minHeight||100;if(e.ctrlKey&&this.$props.resizable){switch(e.keyCode){case o.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case o.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case o.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case o.Keys.right:this.currentWidth=this.currentWidth+5;break;default:return}this.dispatchMoveEvent("resize",e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case o.Keys.up:this.windowStage===i.MINIMIZED?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleFullscreen(e),this.$emit("stagechange",e,this,{state:i.FULLSCREEN}));break;case o.Keys.down:this.windowStage===i.FULLSCREEN?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleMinimize(e),this.$emit("stagechange",e,this,{state:i.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case o.Keys.esc:return void this.handleCloseWindow(e);case o.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case o.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case o.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case o.Keys.right:e.preventDefault(),this.currentLeft=this.currentLeft+5;break;default:return}this.dispatchMoveEvent("move",e,!1,void 0)}}},getInitialTop:function(){if(void 0!==this.$props.top)return this.$props.top;if(void 0!==this.$props.initialTop)return this.$props.initialTop;var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),window.innerHeight/2-e/2},getInitialLeft:function(){if(void 0!==this.$props.left)return this.$props.left;if(void 0!==this.$props.initialLeft)return this.$props.initialLeft;var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),window.innerWidth/2-e/2},getInitialWidth:function(){var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),e},getInitialHeight:function(){var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),e},handleMinimize:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentStage=i.MINIMIZED,this.currentHeight=0,this.$emit("stagechange",e,this,{state:i.MINIMIZED})},handleFullscreen:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentLeft=0,this.currentTop=0,this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight,this.currentStage=i.FULLSCREEN,this.$emit("stagechange",e,this,{state:i.FULLSCREEN})},handleRestore:function(e){e.preventDefault(),this.windowStage===i.FULLSCREEN?(this.currentStage=i.DEFAULT,this.currentLeft=this.windowCoordinatesState.leftBeforeAction,this.currentTop=this.windowCoordinatesState.topBeforeAction,this.currentWidth=this.windowCoordinatesState.widthBeforeAction,this.currentHeight=this.windowCoordinatesState.heightBeforeAction):this.windowStage===i.MINIMIZED&&(this.currentStage=i.DEFAULT,this.currentHeight=this.windowCoordinatesState.heightBeforeAction),this.$emit("stagechange",e,this,{state:i.DEFAULT})},handleCloseWindow:function(e){e.preventDefault(),this.$emit("close",e,this,{state:void 0})},handleDoubleClick:function(e){this.$props.doubleClickStageChange&&(this.windowStage===i.FULLSCREEN||this.windowStage===i.MINIMIZED?this.handleRestore(e):this.handleFullscreen(e))},handleResize:function(e,t){var n=this.computedWidth,i=this.computedHeight,r=this.$props.minWidth||120,o=this.$props.minHeight||100,s=this.computedTop-e.pageY,a=this.computedLeft-e.pageX,l=e.pageX-this.computedLeft,u=e.pageY-this.computedTop;this.isDragging=!t.end,t.direction.indexOf("n")>=0&&o-(i+s)<0&&(this.currentTop=e.pageY,this.currentHeight=i+s),t.direction.indexOf("s")>=0&&o-u<0&&(this.currentHeight=u),t.direction.indexOf("w")>=0&&r-(n+a)<0&&(this.currentLeft=e.pageX,this.currentWidth=n+a),t.direction.indexOf("e")>=0&&r-l<0&&(this.currentWidth=l),this.dispatchMoveEvent("resize",e,!0,t.end)},dispatchMoveEvent:function(e,t,n,i){this.$emit(e,{event:t.event,drag:n,end:i,target:this,left:this.currentLeft,top:this.currentTop,width:this.currentWidth,height:this.currentHeight})},handleBrowserWindowResize:function(){this.windowStage===i.FULLSCREEN&&(this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight)}},render:function(e){var t=this,n=S||e,r=Object(o.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)),a=o.templateRendering.call(this,this.$props.closeButton,o.getListeners.call(this)),l=o.templateRendering.call(this,this.$props.minimizeButton,o.getListeners.call(this)),u=o.templateRendering.call(this,this.$props.maximizeButton,o.getListeners.call(this)),d=o.templateRendering.call(this,this.$props.restoreButton,o.getListeners.call(this)),c=Object(o.getDefaultSlots)(this),p=n("div",{ref:"wrapper"},[this.$props.modal&&n("div",{class:"k-overlay"}),n("div",{tabIndex:0,attrs:this.v3?void 0:{tabIndex:0},onFocus:function(e){return e.target.classList.add("k-state-focused")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-state-focused")},blur:function(e){return e.target.classList.remove("k-state-focused")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-state-focused")},onKeydown:this.handleKeyDown,ref:"windowElement",class:r,style:w({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||!1},this.$props.windowStyle)},[n(o.Draggable,{onPress:this.onPress,on:this.v3?void 0:{press:this.onPress,drag:this.onDrag,release:this.onRelease},onDrag:this.onDrag,onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[n(g,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]}:[n(g,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]),this.windowStage!==i.MINIMIZED?n("div",{class:"k-content k-window-content"},[c]):null,this.windowStage===i.DEFAULT&&this.$props.resizable?n(k,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[p]):p}},x=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(0),r=n(1),o=r.h,s={name:"KendoTabStripNavigationItem",emits:{select:null},props:{active:Boolean,disabled:Boolean,index:Number,title:{type:String,default:"Untitled"},titleRender:[String,Function,Object],first:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0}},computed:{itemClasses:{get:function(){var e,t=this.$props,n=t.active,i=t.disabled,r=t.first,o=t.last;return(e={})["k-first"]=r,e["k-last"]=o,e["k-item"]=!0,e["k-state-disabled"]=i,e["k-state-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=this.$props,r=n.active,s=n.title,a=void 0===s?"Untitled":s,l=this.$props.titleRender,u=i.getTemplate.call(this,{h:t,template:l,defaultRendering:a,additionalProps:this.$props,additionalListeners:{select:this.onClick}});return t("li",{"aria-selected":r,attrs:this.v3?void 0:{"aria-selected":r,role:"tab"},role:"tab",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick},class:this.itemClasses},[t("span",{class:"k-link"},[u])])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(34),o=n(0),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={type:"slide",duration:200},u={type:"slide",duration:0},d={name:"KendoDrawerNavigation",props:{item:[Object],tabIndex:Number},inject:{kendoDrawer:{default:null}},computed:{navigationClassNames:function(){var e=this.kendoDrawer.position;return{"k-widget k-drawer":!0,"k-drawer-start":"start"===e,"k-drawer-end":"end"===e}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=Object(o.getDefaultSlots)(this),i=this.kendoDrawer,d=i.animation,c=i.expanded,p=i.mode,h=i.position,f=i.mini,v=i.dir,m=i.width,g=i.miniWidth,b=i.items,y="boolean"!=typeof d?d:!1===d?u:l,k=m||240,w=g||50,S={opacity:1,flexBasis:k+"px",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},C={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},x={opacity:f?1:0,flexBasis:f?w+"px":0,WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},$={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},O={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},I={transform:"translateX(0%)",WebkitTransitionDuration:(y&&y.duration)+"ms",transitionDuration:(y&&y.duration)+"ms"},T=c?"push"===p?S:C:"push"===p?x:"ltr"===v&&"start"===h||"rtl"===v&&"end"===h?f?I:$:f?I:O,D=b&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":c},title:"drawer-list","aria-expanded":c},[b.map((function(e,n){var i=this.$props.item;!i||i.type||i.render||(i=o.templateRendering.call(this,this.$props.item,o.getListeners.call(this)));var a=t(r.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem},onClick:this.onSelect,on:this.v3?void 0:{click:this.onSelect},text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem});return o.getTemplate.call(this,{h:t,template:i,defaultRendering:a,additionalProps:s(s({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:T,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!c&&f&&"overlay"===p?{width:w+"px"}:{width:k+"px"}},[D||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}},c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i.h,a={name:"KendoDrawerItem",emits:{click:null},props:{index:Number,text:String,icon:String,separator:Boolean,selected:Boolean,disabled:Boolean,targetItem:[Object,Array]},inject:{kendoDrawer:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.disabled;return{"k-drawer-item":!0,"k-state-selected":e.selected,"k-state-disabled":t}}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=Object(r.getDefaultSlots)(this),i=this.$props,o=i.text,a=i.icon,l=i.separator,u=i.disabled,d=i.selected,c=i.tabIndex,p=this.kendoDrawer,h=p.expanded,f=p.mini,v=p.item;return l?t("li",{class:"k-drawer-item k-drawer-separator",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}):t("li",{class:this.itemClassNames,role:"option",attrs:this.v3?void 0:{role:"option","aria-selected":d,"aria-disabled":u,tabIndex:Object(r.getTabIndex)(c,u)},"aria-selected":d,"aria-disabled":u,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabIndex:Object(r.getTabIndex)(c,u)},[v?n:[a&&t("span",{class:"k-icon "+a}),!h&&f?null:t("span",{class:"k-item-text"},[o])]])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},handleClick:function(){if(!this.disabled){var e={element:this.$el,focus:this.focus,props:o(o({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}},l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoMenuItemLink",props:{opened:Boolean,focused:Boolean,url:String},computed:{menuItemClassName:function(){return{"k-link":!0,"k-menu-link":!0,"k-active":this.$props.opened,"k-focus":this.$props.focused}}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=Object(r.getDefaultSlots)(this);return this.$props.url?t("a",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation",href:this.$props.url,tabIndex:-1},href:this.$props.url,tabIndex:-1},[n]):t("span",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n])}},a=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(14),o=i.h,s="k-i-arrow-60-down",a="k-i-arrow-60-right",l="k-i-arrow-60-left",u={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e;return t("span",{class:"k-menu-expand-arrow"},[t("span",{class:this.getArrowClassName(),role:"presentation",attrs:this.v3?void 0:{role:"presentation"}})])},methods:{getArrowClassName:function(){var e,t=Object(r.b)(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[s]="downward"===t,e[a]="rightward"===t,e[l]="leftward"===t,e}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoSplitterPane",props:{orientation:{type:String,default:function(){},validator:function(e){return["vertical","horizontal"].includes(e)}},overlay:Boolean,containsSplitter:Boolean,size:String,min:String,max:String,resizable:Boolean,collapsible:Boolean,collapsed:Boolean,scrollable:Boolean,keepMounted:Boolean,content:[Object,Function,String]},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t,n=o||e,i=this.$props,s=i.size,a=i.collapsed,l=i.overlay,u=i.containsSplitter,d=i.collapsible,c=i.resizable,p=i.scrollable,h=i.keepMounted,f=s&&s.length>0,v={flexBasis:s},m=Object(r.classNames)("k-pane",((t={})["k-state-hidden"]=a,t.hidden=a,t["k-pane-flex"]=u,t["k-pane-static"]=!c&&!d||f,t["k-scrollable"]=p,t)),g=r.getTemplate.call(this,{h:n,template:this.$props.content,defaultRendering:null});return n("div",{style:v,class:m},[!a||h?g:void 0,l?n("div",{class:"k-splitter-overlay k-overlay"}):void 0])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i,a=s.h,l=(s.ref,"data-slider-label"),u={name:"KendoSliderLabel",emits:{click:null},props:{position:Number,title:String,vertical:Boolean},data:function(){return{currentDir:"ltr"}},inject:["kendoMax","kendoMin","kendoVertical"],mounted:function(){if(this.sliderLabelRef=this.$refs.sliderLabelRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t,n=a||e,i=this.currentDir,s=Object(r.getDefaultSlots)(this),l=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),u=this.kendoVertical?{bottom:l+"%",height:"1px",width:"100%"}:((t={})["rtl"===i?"right":"left"]=l+"%",t.width="1px",t.height="100%",t);return n("li",{ref:"sliderLabelRef",role:"presentation",attrs:this.v3?void 0:{role:"presentation",title:this.$props.title},class:"k-tick k-tick-large",title:this.$props.title,style:o({zIndex:1,position:"absolute"},u)},[n("span",{"data-slider-label":!0,attrs:this.v3?void 0:{"data-slider-label":!0},class:"k-label",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick}},[s])])},methods:{onClick:function(e){this.$emit("click",e)}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(7),s=i,a=s.h,l=s.ref,u=(s.inject,{name:"KendoRadioButton",props:{ariaDescribedBy:String,checked:Boolean,disabled:Boolean,className:String,content:[String,Number,Boolean,Object],id:String,label:String,labelRender:[String,Number,Boolean,Object],item:[String,Number,Boolean,Object],labelPlacement:String,name:String,tag:{type:String,default:"div"},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{change:null,focus:null,blur:null},created:function(){this.calculatedId=Object(r.guid)(),Object(r.validatePackage)(o.a)},mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-state-invalid"]=!1===this.$props.valid,e["k-invalid"]=!1===this.$props.valid,e[this.$props.className]=this.$props.className,e}},methods:{focusElement:function(){this.input&&this.input.focus()},handleChange:function(e){this.$emit("change",{event:e,value:this.$props.value})},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e,void 0)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e,void 0)}},setup:a?function(){return{v3:!!a,inputRef:l(null)}}:void 0,render:function(e){var t=this,n=a||e,i=Object(r.getDefaultSlots)(this),o=this.$props,s=o.ariaDescribedBy,l=o.checked,u=o.disabled,d=o.id,c=o.label,p=o.labelRender,h=o.labelPlacement,f=o.name,v=o.tabIndex,m=o.value,g=o.tag,b=c;if(p){var y=p?r.templateRendering.call(this,p,r.getListeners.call(this)):null;b=r.getTemplate.call(this,{h:n,template:y})}var k=r.getTemplate.call(this,{h:n,template:this.$props.content}),w=void 0!==b?n("label",{class:"k-radio-label",for:d||this.calculatedId,attrs:this.v3?void 0:{for:d||this.calculatedId,"aria-label":c},style:{userSelect:"none"},"aria-label":c},[b]):null,S=n("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:d||this.calculatedId,name:f,disabled:u,tabIndex:Object(r.getTabIndex)(v,u),"aria-describedby":s},id:d||this.calculatedId,name:f,class:this.inputClassName,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:u,tabIndex:Object(r.getTabIndex)(v,u),checked:this.v3?l:null,domProps:this.v3?void 0:{checked:l,value:m},style:this.$attrs.style,"aria-describedby":s,value:this.v3?m:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),C=n(g,"before"===h?[w,S,k,i]:[S,w,k,i]);return r.getTemplate.call(this,{h:n,template:this.$props.item,defaultRendering:C,defaultSlots:i,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}}),d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(15),o=n(0),s=function(e,t){var n=this,i=[];return t.forEach((function(t){n.v3&&t.children&&t.children.length&&(i=s.call(n,e,t.children)),(t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("tab")||t.type&&t.type.name&&-1!==t.type.name.toLowerCase().indexOf("kendotabstriptab"))&&i.push(t)})),i},a=i,l=a.h,u=(a.ref,a.inject,{name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=Object(o.guid)()},setup:l?function(){return{v3:!!l}}:void 0,data:function(){return{midAnimation:!1}},computed:{animationClass:function(){var e=this;return this.tabs.map((function(t,n){var i=n===e.$props.selected;return{"k-fade-appear":e.animation&&!i,"k-fade-enter-active":e.animation&&i}}))}},render:function(e){var t=l||e,n=this.$props,i=n.tabs,a=n.selected,u=(n.showAll,n.hasTabs),d=i&&"number"==typeof a&&i[a],c=Object(o.getDefaultSlots)(this),p=u?i:s.call(this,[],c||[]),h=a<p.length&&a>-1,f=Object(o.classNames)({"k-content":h},{"k-state-active":h},d&&d.contentClassName),v=function(e,n){var i=this,s=n===this.$props.selected,a={position:"initial",height:s?void 0:"0px",width:s?void 0:"0px"},l=u?o.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(r.a,{appear:!!this.v3||s,attrs:this.v3?void 0:{appear:!!this.v3||s,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:a},this.v3?function(){return[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])]}:[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])])};return t("div",{class:f,style:this.$props.style},[function(){return p.map((function(e,t){return v.call(this,e,t)}),this)}.call(this)])}}),d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i,r=n(1),o=n(0),s=n(4),a=n(24),l=((i={})["stepper.optionalText"]="(Optional)",i),u=r,d=u.h,c=u.inject,p={name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,index:Number,isValid:Boolean,focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,errorIcon:String},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.current,n=e.disabled,i=e.focused,r=e.index,o=e.isValid,s=e.optional;return{"k-step":!0,"k-step-first":0===r,"k-step-last":this.numOfSteps&&r===this.numOfSteps-1,"k-step-done":r<this.value,"k-step-current":t,"k-step-optional":s,"k-step-disabled":n,"k-step-focus":i,"k-step-error":void 0!==o&&!o,"k-step-success":o}},itemStyles:function(){var e=this.$props.index,t=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:"calc(100% / "+this.numOfSteps+")",pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:d?function(){return{v3:!!d,kendoLocalizationService:c("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=d||e,i=Object(o.getDefaultSlots)(this),r=this.$props,u=r.current,c=r.disabled,p=r.focused,h=r.icon,f=r.index,v=r.isValid,m=r.label,g=r.optional,b=r.tabIndex,y=r.text,k=r.animationDuration,w=r.item,S=r.linear,C=r.mode,x=r.value,$=r.successIcon,O=r.errorIcon,I=!S||f===x-1||f===x||f===x+1,T="labels"===C||Boolean(h)&&Boolean(m),D=Object(s.provideLocalizationService)(this),V=(t="stepper.optionalText",D.toLanguageString(t,l[t])),M="number"==typeof k?k:!1!==k?a.a:a.b,N=n("span",{class:"k-step-indicator-icon "+(v?$?""+$:"k-icon k-i-check":O?""+O:"k-icon k-i-warning"),"aria-hidden":"true",attrs:this.v3?void 0:{"aria-hidden":"true"}});return n("li",{class:this.itemClassNames,style:this.itemStyles},[n("a",{ref:"aElement",class:"k-step-link",title:m||void 0,attrs:this.v3?void 0:{title:m||void 0,tabIndex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,focusin:this.handleFocus},onFocusin:this.handleFocus,tabIndex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},[w?i:[function(){return"labels"!==C?n("span",{class:"k-step-indicator","aria-hidden":!0,attrs:this.v3?void 0:{"aria-hidden":!0},style:{transitionDuration:M+"ms"}},[h?T||void 0===v?n("span",{class:"k-step-indicator-icon k-icon "+h}):N:void 0!==v?N:n("span",{class:"k-step-indicator-text"},[y||f+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[m&&n("span",{class:"k-step-text"},[m]),T&&void 0!==v&&N,g&&n("span",{class:"k-step-label-optional"},[V])])}.call(this)]])])},methods:{focus:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleClick:function(e){this.disabled||this.$emit("change",{event:e,value:this.index,component:this})},handleFocus:function(e){this.disabled||this.$emit("focus",e)}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(15),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={name:"KendoPanelBarGroup",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],content:Object},data:function(){return{show:this.$props.expanded}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,i=n.item,l=n.items,u=n.uniquePrivateKey,d=n.disabled,c=n.expanded,h=n.animation,f=n.keepItemsMounted,v=r.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:s(s({},this.$props),{show:this.show})}),m=!d&&c,g=m||f?l?t("ul",{role:"group",attrs:this.v3?void 0:{role:"group"},class:"k-panelbar-group k-panel k-group",style:{display:f?this.$data.show?"block":"none":"block"}},[l.map((function(e){return t(p,s(s({props:this.v3?void 0:s(s({},e),{item:i})},e),{item:i}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[v]):null:null;return void 0!==h&&!h||d?g:t(o.b,{appear:m,attrs:this.v3?void 0:{appear:m,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!f},transitionEnterDuration:200,transitionExitDuration:200,key:u+"_animation",style:{display:"block"},unmountOnExit:!f,onEntering:this.handleEntering,on:this.v3?void 0:{entering:this.handleEntering,exited:this.handleExited},onExited:this.handleExited},this.v3?function(){return[g]}:[g])},methods:{handleEntering:function(){this.keepItemsMounted&&(this.show=!0)},handleExited:function(){this.keepItemsMounted&&(this.show=!1)}}},u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={name:"KendoPanelBarItem",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,selected:Boolean,level:Number,title:{type:[String,Object,Function],default:function(){return"Untitled"}},id:[String,Number],focused:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],parentUniquePrivateKey:Array,parentExpanded:Boolean,headerClassName:String,iconClass:String,imageUrl:String,icon:String,content:Object,header:Object},inject:{dispatchItemSelect:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t,n=d||e,i=this.$props,o=i.id,s=i.item,a=i.icon,c=i.items,p=i.content,h=i.title,f=i.uniquePrivateKey,v=i.disabled,m=i.selected,g=i.focused,b=i.expanded,y=i.className,k=i.level,w=i.headerClassName,S=i.animation,C=i.keepItemsMounted,x=!!c||p,$=Object(r.classNames)("k-item",{"k-panelbar-header":0===k,"k-panelbar-item":0!==k,"k-state-expanded":b&&x},"k-level-"+k,y),O=Object(r.classNames)("k-link",{"k-state-selected":!v&&m,"k-state-focus":g,"k-state-disabled":v},w),I=Object(r.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=b&&x,t["k-panelbar-collapse"]=b&&x,t["k-i-arrow-chevron-down"]=!b&&x,t["k-panelbar-expand"]=!b&&x,t)),T=function(){if(this.imageUrl)return n("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",src:this.imageUrl},class:"k-panelbar-item-icon k-image",src:this.imageUrl});if(a){var e=Object(r.classNames)("k-panelbar-item-icon","k-icon","k-i-"+a);return n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return this.iconClass?n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:"k-panelbar-item-icon "+this.iconClass}):null}.call(this),D=v||!c&&!p?null:n("span",{class:I}),V=c||p?n(l,{items:c,attrs:this.v3?void 0:{items:c,item:s,content:p,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C},item:s,content:p,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C}):null,M=r.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:u({},this.$props)});return n("li",{id:o,attrs:this.v3?void 0:{id:o,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},class:$,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},[n("span",{class:O,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[T,this.$props.header?M:n("span",{class:"k-panelbar-item-text"},[h]),D]),V])},methods:{handleItemClick:function(){var e=this.$props,t=e.disabled,n=e.id;t||this.dispatchItemSelect({uniquePrivateKey:this.$props.uniquePrivateKey,id:n,target:this})},childFactory:function(e){return e}}},p=c},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(i||(i={}));var r=function(e,t){switch(t.type){case i.add:break;case i.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case i.reorder:break;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoButtonItem",emits:{click:null,down:null},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String},computed:{wrapperClass:function(){return{"k-item":!0,"k-focus":this.$props.focused}},innerClass:function(){var e=this.$props.dataItem;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick:function(e){this.$emit("click",e,this.$props.index)},onDown:function(e){this.$emit("down",e,this.$props.index)}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e,n=this.$props,i=n.dataItem,s=n.id,a=n.render;return t("li",{id:s,attrs:this.v3?void 0:{id:s,role:"menuitem","aria-disabled":i.disabled||void 0},class:this.wrapperClass,onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":i.disabled||void 0},[function(){var e=this.$props,n=e.textField,o=e.index,s=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-"+i.icon:i.iconClass,u=t("span",{tabIndex:-1,attrs:this.v3?void 0:{tabIndex:-1},class:this.innerClass,key:"icon"},[l&&t("span",{class:l,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}),i.imageUrl&&t("img",{class:"k-icon",alt:"",attrs:this.v3?void 0:{alt:"",src:i.imageUrl,role:"presentation"},src:i.imageUrl,role:"presentation",key:"image"}),s&&t("span",{class:"k-menu-link-text"},[s])]);return r.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||a,defaultRendering:u,additionalProps:{item:i,itemIndex:o,innerClass:this.innerClass,focused:this.focused}})}.call(this)])}}},function(e,t,n){"use strict";var i=n(0);t.a=function(e,t,n,r){if(n)return e;switch(t){case i.Keys.enter:case i.Keys.space:case i.Keys.esc:return-1;case i.Keys.up:case i.Keys.left:return Math.max(0,e-1);case i.Keys.down:case i.Keys.right:return Math.min(r-1,e+1);default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(0),o=n(23),s=n(22),a=n(43),l=n(25),u=n(9),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=i,p=c.h,h=c.ref,f={name:"KendoVueChipList",props:{id:String,tabIndex:Number,dataItems:Array,defaultDataItems:{type:Array,default:function(){return[]}},value:[Object,Array,String,Number],defaultValue:{type:[Object,Array,String,Number],default:function(){return null}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},selection:{type:String,default:function(){return"none"}},textField:{type:String,default:function(){return"text"}},valueField:{type:String,default:function(){return"value"}},disabled:{type:Boolean,default:!1},dir:{type:String,default:function(){return"ltr"}},chip:[String,Function,Object],ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoSelection:this.currentValue,kendoFocused:this.currentFocused,kendoDataItems:this.computedDataItems,handleDispatchDataItems:this.handleDispatchDataItems,handleDispatchSelection:this.handleDispatchSelection,handleDispatchFocus:this.handleDispatchFocus}},created:function(){Object(r.validatePackage)(u.a),this.currentDataItems=this.$props.dataItems||this.$props.defaultDataItems,this.currentValue.value=this.$props.value||this.$props.defaultValue},data:function(){return{currentDataItems:[],currentDir:"ltr",isRtl:!1,currentFocused:{value:!1},currentValue:{value:null}}},mounted:function(){this.chipList=this.v3?this.chipListRef:this.$refs.chipList,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir},computed:{computedDataItems:function(){return this.$props.dataItems||this.currentDataItems},computedValue:function(){return this.$props.value||this.currentValue.value},items:function(){return this.computedDataItems.reduce(this.itemsReducer,[])}},methods:{handleDispatchSelection:function(e){var t=Object(o.b)(this.computedValue,d(d({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=Object(s.b)(e.payload,d(d({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=Object(a.b)(this.computedDataItems,d(d({},e),{state:this.computedDataItems,valueField:this.$props.valueField}));this.handleDataChange(t,e.event),this.currentDataItems=t},handleChange:function(e,t){this.$el&&this.$emit("change",{value:e,target:this.$el,event:t})},handleDataChange:function(e,t){this.$el&&this.$emit("datachange",{value:e,target:this.$el,event:t})},itemsReducer:function(e,t){return e.push(t[this.$props.valueField||this.$props.valueField]),e}},setup:p?function(){return{v3:!!p,chipListRef:h(null)}}:void 0,render:function(e){var t,n=this,i=p||e,o=this.$props.size;return i("div",{ref:this.v3?function(e){n.chipListRef=e}:"chipList",role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.id,dir:this.currentDir,style:this.$props.style,tabIndex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip-list",(t={},t["k-chip-list-"+(r.kendoThemeMaps.sizeMap[o]||o)]=o,t["k-rtl"]="rtl"===this.currentDir,t["k-selection-single"]="single"===this.$props.selection,t["k-selection-multiple"]="multiple"===this.$props.selection,t["k-disabled"]=this.$props.disabled,t)),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[this.computedDataItems.map((function(e){var t=r.templateRendering.call(this,this.$props.chip,r.getListeners.call(this)),n=i(l.a,{role:"option",attrs:this.v3?void 0:{role:"option",dataItem:e,text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode});return r.getTemplate.call(this,{h:i,template:t,defaultRendering:n,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}},v=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(19),o=n(0),s=n(44),a=n(45),l=n(12),u=n(17),d=n(9),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.ref,v={name:"KendoSplitButton",emits:{focus:null,blur:null,buttonclick:null,itemclick:null,open:null,close:null},props:{accessKey:String,text:String,items:{type:Array,default:function(){return[]}},textField:String,tabIndex:Number,disabled:Boolean,icon:String,size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Function,Object],item:[String,Function,Object],look:String,className:String,buttonClass:String,dir:String},data:function(){return{focused:!1,focusedIndex:-1,currentOpened:!1}},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-split-button":!0,"k-button-group":!0,"k-focus":this.focused}}},setup:h?function(){return{v3:!!h,kendoAnchorRef:f(null)}}:void 0,render:function(e){var t=this,n=this,i=h||e;this.buttonsData=this.$props.items;var a=this.isRtl(),d=a?"rtl":void 0,p=this.$props,f=p.tabIndex,v=p.disabled,m=Object(o.getDefaultSlots)(this),g=function(){var e=this.$props,t=e.item,n=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,a){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return i(s.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===a,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,index:a,id:this.guid+"-"+a},textField:r,focused:this.focusedIndex===a,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,key:a,index:a,id:this.guid+"-"+a})}),this):null};return i("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:d,attrs:this.v3?void 0:{dir:d}},[i(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:function(e){return n.onItemClick(e,-1)},on:this.v3?void 0:{click:function(e){return n.onItemClick(e,-1)}},disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,class:this.$props.buttonClass,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,ref:this._anchor,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,m]}:[t.$props.text,m]),i(r.a,{class:"k-split-button-arrow",size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,dir:d,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,onClick:this.onSplitPartClick,on:this.v3?void 0:{click:this.onSplitPartClick,mousedown:this.onDownSplitPart,pointerdown:this.onDownSplitPart},onMousedown:this.onDownSplitPart,onPointerdown:this.onDownSplitPart,dir:d,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,r=void 0===n?{}:n,s=t.size;return i(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a)},show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a),style:a?{direction:"rtl"}:void 0},this.v3?function(){return[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])]}:[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else{var t=void 0;if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(e.preventDefault(),this.dispatchClickEvent(e,this.focusedIndex),void 0!==this.focusedIndex&&this.focusedIndex>=0&&(t={focusedIndex:this.computedOpened?-1:0,currentOpened:!this.computedOpened},this.dispatchPopupEvent(e,t.currentOpened))):this.computedOpened&&e.keyCode===o.Keys.esc&&(t={focusedIndex:-1,currentOpened:!1},this.dispatchPopupEvent(e,t.currentOpened)),this.computedOpened){var n=Object(a.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);n!==this.focusedIndex&&((t=t||{}).focusedIndex=n);var i=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&i&&e.preventDefault()}t&&(this.focusedIndex=t.focusedIndex,this.focused=t.focused,void 0!==t.currentOpened&&(this.currentOpened=t.currentOpened))}},onFocus:function(e){this.focused||(this.$emit("focus",e,this,void 0),this.focused=!0),this.focusedIndex=-1,clearTimeout(this._blurTimeout)},onItemClick:function(e,t){var n=this.computedOpened;n&&(this.focusedIndex=0,this.currentOpened=!1),this.dispatchClickEvent(e,t),n&&this.dispatchPopupEvent(e,!1)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this,n=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==n.mainButton&&(n.focused=!1,n.focusedIndex=-1,n.$emit("blur",e,t,void 0),n.computedOpened&&(n.currentOpened=!1,n.dispatchPopupEvent(e,!1)))}),200)},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||(-1===t?this.$emit("buttonclick",e,this,void 0):this.$emit("itemclick",{event:e,component:this,item:this.buttonsData[t],itemIndex:t}))},onSplitPartClick:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.dispatchPopupEvent(e,t),this.focusedIndex=t?0:-1,this.currentOpened=t,this.focused=!0}},onDownSplitPart:function(e){e.preventDefault(),this.element()&&document.activeElement!==this.element()&&this.element().focus()},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(19),o=n(0),s=n(45),a=n(44),l=n(12),u=n(17),d=n(9),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.ref,v={name:"KendoDropDownButton",emits:{focus:null,blur:null,itemclick:null,open:null,close:null},props:{accessKey:String,primary:Boolean,items:{type:Array,default:function(){return[]}},text:String,textField:String,tabIndex:Number,disabled:Boolean,icon:String,iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Object,Function],item:Function,size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},look:{type:String,validator:function(e){return["default","flat","outline"].includes(e)}},buttonClass:String,dir:String},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.wrapper=null,this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},data:function(){return{currentOpened:!1,focused:!1,focusedIndex:-1}},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-dropdown-button":!0,"k-focus":this.focused}}},setup:h?function(){return{v3:!!h,kendoAnchorRef:f(null)}}:void 0,render:function(e){var t=this,n=h||e,i=this.isRtl(),s=i?"rtl":void 0,d=this.$props,p=d.tabIndex,f=d.disabled,v=Object(o.getDefaultSlots)(this);this.buttonsData=this.$props.items;var m=function(){var e=this.$props,t=e.item,i=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return n(a.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,id:this.guid+"-"+s},textField:r,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,key:s,id:this.guid+"-"+s})}),this):null};return n("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:s,attrs:this.v3?void 0:{dir:s}},[n(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:this.onClickMainButton,on:this.v3?void 0:{click:this.onClickMainButton,mousedown:this.mouseDown},onMousedown:this.mouseDown,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,class:this.$props.buttonClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,ref:this._anchor,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,v]}:[t.$props.text,v]),function(){var e=this,t=this.$props,r=t.popupSettings,s=void 0===r?{}:r,a=t.size;return n(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i)},show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i),style:i?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(void 0!==this.focusedIndex&&this.focusedIndex>=0&&this.dispatchClickEvent(e,this.focusedIndex),e.preventDefault(),this.focusedIndex=this.computedOpened?-1:0,this.currentOpened=!this.computedOpened,this.dispatchPopupEvent(e,this.currentOpened)):this.computedOpened&&e.keyCode===o.Keys.esc&&(this.focusedIndex=-1,this.currentOpened=!1,this.dispatchPopupEvent(e,this.currentOpened)),this.computedOpened){var t=Object(s.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);this.focusedIndex=t;var n=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&n&&e.preventDefault()}},onFocus:function(e){this.focused||(this.focused=!0,this.$emit("focus",e,this,void 0)),this.focusedIndex=this.computedOpened?0:-1,clearTimeout(this._blurTimeout)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==t.$el&&(t.focused=!1,t.focusedIndex=-1,t.$emit("blur",e,t,void 0),t.computedOpened&&(t.currentOpened=!1,t.dispatchPopupEvent(e,!1)))}),200)},onItemClick:function(e,t){this.focusedIndex=-1,this.currentOpened=!1,this.dispatchClickEvent(e,t),this.dispatchPopupEvent(e,!1)},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},mouseDown:function(e){e.preventDefault()},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||this.$emit("itemclick",{event:e,item:this.buttonsData[t],itemIndex:t})},onClickMainButton:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.currentOpened=t,this.focused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,t)}},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(20),s=n(9),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=i.h,u={name:"KendoToolbar",props:{tabIndex:{type:Number,default:0},dir:String,keyboardNavigation:{type:Boolean,default:!0},buttons:{type:Array,default:function(){}}},created:function(){this.offsetHeight=0,this.offsetWidth=0,this.currentButtons=[],this.focusedSelector=this.selectors.map((function(e){return e+":focus"})).join(","),Object(r.validatePackage)(s.a)},computed:{selectors:function(){return this.$props.buttons||o.c}},mounted:function(){window.addEventListener("resize",this.onWindowResize);var e=this.$el;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(0)))},updated:function(){this.$el&&!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(this.focusedIndex()))},destroyed:l?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:"k-widget k-toolbar",role:"toolbar",attrs:this.v3?void 0:{role:"toolbar",dir:this.$props.dir},dir:this.$props.dir,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[n])},methods:{getCurrentButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(this.selectors.join(","))):[]},getInternalButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(o.b)):[]},focusedIndex:function(){var e=this.$el&&this.$el.querySelector(this.focusedSelector);return Math.max(0,this.currentButtons.findIndex((function(t){return t===e})))},setTabIndex:function(e){var t=this.$props.tabIndex;this.currentButtons.forEach((function(n,i){n.tabIndex=i===e?t:-1})),this.getInternalButtons().forEach((function(e){e.tabIndex=-1}))},onKeyDown:function(e){if(!1!==this.$props.keyboardNavigation){var t=e.target;if((e.keyCode===r.Keys.left||e.keyCode===r.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===r.Keys.left?this.focusButton(n,n-1):this.focusButton(n,n+1)}}},focusButton:function(e,t){var n=this.$props.tabIndex,i=this.currentButtons[t];if(i){i.tabIndex=n,i.focus();var r=this.currentButtons[e];r&&(r.tabIndex=-1)}},onWindowResize:function(e){var t=this.$el;if(t){var n=t.offsetWidth,i=t.offsetHeight;if(this.offsetWidth!==n||this.offsetHeight!==i){this.offsetWidth=n,this.offsetHeight=i;var r={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",a(a({target:this},r),{nativeEvent:e}))}}}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(27),o=i.h,s={name:"KendoToolbarItem",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)(r.a,{class:"k-separator"})}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o}));var i=n(1),r=i.h,o={name:"KendoToolbarItem",setup:r?function(){return{v3:!!r}}:void 0,render:function(e){return(r||e)("span",{class:"k-spacer"})}},s=o},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var a=s(n(158)),l=n(58),u=n(6),d=n(53);!function(e){e.alignBlocks=function(e,t,n){return Boolean(u.alignBlocks(t,n)(e.state,e.dispatch))},e.applyInlineStyle=function(e,t,n){return u.applyInlineStyle(t,n)(e.state,e.dispatch)},e.applyLink=function(e,t,n){return u.applyLink(t,n)(e.state,e.dispatch)},e.canIndentList=function(e,t){return u.canIndentAsListItem(e,t)},e.canInsert=function(e,t){return u.canInsert(e,t)},e.canOutdentList=function(e,t){return u.canOutdentAsListItem(e,{listsTypes:t,nodes:[]})},e.convertMsLists=function(e){return u.convertMsLists(e)},e.createDocument=function(e,t,n){return u.parseContent(u.trimWhitespace(t),e,void 0!==n?n:{preserveWhitespace:"full"})},e.createTable=function(e,t,n){return u.createTable(e,t,n)},e.formatBlockElements=function(e,t,n){return u.formatBlockElements(t,n)(e.state,e.dispatch)},e.getBlockFormats=function(e){return u.getBlockFormats(e)},e.getHtml=function(e){return u.getHtml(e)},e.getInlineStyles=function(e,t){return u.getInlineStyles(e,t)},e.getMark=function(e,t){return u.getMark(e,t)},e.hasMark=function(e,t){return u.hasMark(e,t)},e.hasNode=function(e,t){return u.hasNode(e,t)},e.indentBlocks=function(e,t,n,i){return Boolean(u.indentBlocks(t,n,i)(e.state,e.dispatch))},e.indentHtml=function(e){return u.indentHtml(e)},e.insertNode=function(e,t,n){u.insertNode(t,n)(e.state,e.dispatch)},e.isAligned=function(e,t){return u.isAligned(e,t)},e.isIndented=function(e,t,n){return u.isIndented(e,t,n)},e.removeComments=function(e){return u.removeComments(e)},e.removeTag=function(e,t){return u.removeTag(e,t)},e.pasteCleanup=function(e,t){return u.pasteCleanup(e,t)},e.sanitizeClassAttr=function(e){u.sanitizeClassAttr(e)},e.sanitizeStyleAttr=function(e){u.sanitizeStyleAttr(e)},e.removeAttribute=function(e){u.removeAttribute(e)},e.sanitize=function(e){return u.sanitize(e)},e.replaceImageSourcesFromRtf=function(e,t){return u.replaceImageSourcesFromRtf(e,t)},e.textHighlight=function(e){return u.textHighlight(e)},e.imageResizing=function(e){return u.imageResizing(e)},e.setHtml=function(e,t,n,i){var r=u.trimWhitespace(t);u.setHtml(r,n,i)(e.state,e.dispatch)},e.toggleInlineFormat=function(e,t,n,i){return u.toggleInlineFormat(t,n,i)(e.state,e.dispatch)},e.toggleList=function(e,t,n){return u.toggleList(e.state,e.dispatch,e,t,n)},e.getShortcuts=function(e){return a.getShortcuts(e)},e.propsKey=d.editorPropsKey,e.imageResizeKey=u.imageResizeKey,e.marks=i({},l.marks),e.nodes=i({},l.nodes)}(t.EditorUtils||(t.EditorUtils={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(6);t.editorPropsKey=new i.PluginKey("editor-props")},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(4),s=n(2),a=n(7),l=i.h,u={name:"KendoSwitch",model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{name:String,accessKey:String,checked:{type:Boolean,default:void 0},className:String,disabled:{type:Boolean,default:!1},defaultChecked:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},trackRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},thumbRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,offLabel:{type:String,default:"OFF"},onLabel:{type:String,default:"ON"},required:{type:Boolean,default:!1},tabIndex:Number,valid:Boolean,validityStyles:{type:Boolean,default:!1},validationMessage:String,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:void 0}},created:function(){Object(r.validatePackage)(a.a),this._id=Object(r.guid)(),this.defaultValidationMessage=Object(o.provideLocalizationService)(this)},data:function(){return{currentChecked:this.$props.defaultChecked,valueDuringOnChange:void 0,focused:!1,currentDir:void 0}},computed:{computedValue:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentChecked},switchClassName:function(){var e,t=!this.validityStyles||this.validity().valid,n=this.$props.trackRounded;return(e={"k-switch":!0})["k-switch-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[n]||n)]=n,e["k-switch-on"]=this.computedValue,e["k-switch-off"]=!this.computedValue,e["k-focus"]=this.focused,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=!t,e},switchTrackClass:function(){var e,t=this.$props.trackRounded;return(e={"k-switch-track":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=this.v3?this.elementRef:this.$refs.element,this.input=this.v3?this.inputRef:this.$refs.input,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=l||e,i=this.$props,o=i.disabled,s=i.id,a=i.offLabel,u=i.onLabel,d=i.tabIndex,c=i.required;return n("span",{class:this.switchClassName,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir},onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,click:this.handleClick,focusout:this.handleWrapperBlur,focusin:this.handleWrapperFocus},onClick:this.handleClick,onFocusout:this.handleWrapperBlur,onFocusin:this.handleWrapperFocus},[n("span",{class:this.switchTrackClass,id:s||this._id,attrs:this.v3?void 0:{id:s||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":o||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(r.getTabIndex)(d,o,void 0),accessKey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":o||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.v3?function(e){t.elementRef=e}:"element",tabIndex:Object(r.getTabIndex)(d,o,void 0),accessKey:this.$props.accessKey},[n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",tabIndex:-1,name:this.$props.name,required:void 0!==c&&c,"aria-hidden":!0},checked:this.v3?this.$props.checked:null,domProps:this.v3?void 0:{checked:this.$props.checked,value:this.computedValue},ref:this.v3?function(e){t.inputRef=e}:"input",tabIndex:-1,name:this.$props.name,required:void 0!==c&&c,"aria-hidden":!0,value:this.v3?this.computedValue:null,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:r.noop,on:this.v3?void 0:{change:r.noop}}),n("span",{class:"k-switch-label-on"},[u]),n("span",{class:"k-switch-label-off"},[a]),n("span",{class:"k-switch-thumb-wrap"},[n("span",{class:this.switchThumbClass})])])])},methods:{focus:function(){this._element&&this._element.focus()},element:function(){return this._element},validity:function(){var e=void 0!==this.$props.validationMessage,t=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedValue;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||this.defaultValidationMessage.toLanguageString(s.i,s.c[s.i]))},limit:function(e,t,n){var i=n.offsetWidth,r=t.offsetWidth;return e<0?0:e>i-r?i-r:e},toggle:function(e,t){this.currentChecked=e,this.valueDuringOnChange=e,this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("change",{event:t,component:this,target:{value:e},name:this.$props.name,value:e,validity:this.validity()}),this.valueDuringOnChange=void 0},handleClick:function(e){this.eventTimeStamp!==e.timeStamp&&(this.eventTimeStamp=e.timeStamp,this.toggle(!this.computedValue,e))},handleKeyDown:function(e){if(!this.$props.disabled){var t=e.keyCode;t!==r.Keys.space&&t!==r.Keys.enter||this.toggle(!this.computedValue,e)}},handleWrapperFocus:function(e){this.$props.disabled||(this.focused=!0,this.$emit("focus",e))},handleWrapperBlur:function(e){this.$props.disabled||(this.focused=!1,this.$emit("blur",e))}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=i.h,s={name:"KendoButtonWrap",props:{},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return Object(r.getDefaultSlots)(this)[0]}},a=n(9),l=n(20),u=i.h,d=l.a.styles,c={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){Object(r.validatePackage)(a.a)},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t,n=u||e,i=Object(r.getDefaultSlots)(this),o=function(e,t,i,o){var a,l=Object(r.classNames)(((a={})[d["state-disabled"]]=this.$props.disabled,a[d["group-start"]]=o?i:0===t,a[d["group-end"]]=o?0===t:i,a));return n(s,{class:l,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},a=Object(r.classNames)([d["button-group"]],((t={})["k-disabled"]=this.$props.disabled,t[d["button-group-stretched"]]=!!this.$props.width,t));return n("div",{style:{width:this.width},width:this.$props.width,attrs:this.v3?void 0:{width:this.$props.width,dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:a},[function(e){var t=this,n=e.length,i=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1;return e.map((function(e,r){return t.isValidButton(e)?o.call(t,e,r,r===n-1,i):e}))}.call(this,i)])},methods:{isValidButton:function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("button")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("button")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("kendobutton")}}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var i=n(1),r=n(0),o=n(26),s=n(9),a=function(e){return"number"==typeof e?e+"px":e},l=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},u=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},d=function(e,t,n,i){var r=t.horizontal,o=t.vertical;if(e){var s=n&&void 0!==n.x?a(n.x):"16px",l=n&&void 0!==n.x?"calc(50% + "+a(n.x)+")":"50%",u=n&&void 0!==n.y?a(n.y):"16px",d=n&&void 0!==n.y?"calc(50% + "+a(n.y)+")":"50%";e.style.setProperty(c(t,i),"center"===r?l:s),e.style.setProperty(p(t),"middle"===o?d:u),i&&("top"!==o&&"bottom"!==o||"start"!==r||e.style.setProperty("left","unset"),"middle"===o&&"end"===r&&e.style.setProperty("right","unset"),"middle"===o&&"start"===r&&e.style.setProperty("left","unset"))}},c=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},p=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},h=n(12),f=i,v=f.h,m=f.ref,g={name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:Boolean,icon:String,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:function(){return"fixed"}},popupSettings:{type:Object,default:function(){return{}}},shape:{type:String,default:function(){return"rectangle"}},rounded:{type:String,default:"full"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},size:{type:String,default:function(){return"medium"}},themeColor:{type:String,default:function(){return"primary"}}},emits:{click:null,mousedown:null,mouseup:null,open:null,close:null,itemclick:null,focus:null,blur:null,keydown:null},data:function(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created:function(){Object(r.validatePackage)(s.a),this.element=void 0,this._anchor=Object(r.guid)(),this.listId=Object(r.guid)(),this.buttonId=Object(r.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=this.v3?this.listRef:this.$refs.list,this.popup=this.v3?this.popupRef:this.$refs.popup,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir,void 0!==this.opened&&d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames:function(){var e,t=this.$props,n=t.size,i=(t.icon,t.shape),o=t.themeColor,s=t.fillMode,a=t.rounded;return(e={"k-fab":!0})["k-fab-"+(i||"rectangle")]=null!==i,e["k-fab-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[a]||a)]=a,e["k-fab-"+s]=s,e["k-fab-"+s+"-"+o]=s&&o,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-"+this.$props.align.vertical+"-"+this.$props.align.horizontal]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return Object(r.classNames)({"k-pos-absolute":"absolute"===this.$props.positionMode,"k-pos-fixed":"fixed"===this.$props.positionMode})}},methods:{dispatchPopupEvent:function(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick:function(e){if(e.target&&!this.$props.disabled)if(this.$props.items){var t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}else this.$emit("click",e,void 0)},handleFocus:function(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",e,void 0)},handleBlur:function(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",e,void 0),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown:function(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp:function(e){this.$emit("mouseup",e)},dispatchItemClickEvent:function(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick:function(e,t){e.target&&this.$props.items&&(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown:function(e){r.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown:function(e){var t=this.focusedIndex,n=this.$props.items?this.$props.items.length-1:-1,i="bottom"===this.$props.align.vertical;switch(e.keyCode){case r.Keys.enter:case r.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case r.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case r.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case r.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case r.Keys.down:case r.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case r.Keys.up:case r.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<n&&i&&(this.focusedIndex=t+1)}this.$emit("keydown",e,void 0)}},setup:v?function(){return{v3:!!v,chipRef:m(null),kendoAnchorRef:m(null)}}:void 0,render:function(e){var t=this,n=this,i=v||e,s=this.$props,a=s.align,d=s.disabled,c=s.icon,p=s.iconClass,f=s.id,m=s.items,g=s.text,b=s.tabIndex,y=s.accessKey,k=s.popupSettings,w=r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)),S=function(){return m&&m.map((function(e,t){return i(o.a,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w},id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w,class:Object(r.classNames)(e.className,(n=this.currentDir||"ltr",s=a.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===s?"end":"start"])),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown});var n,s}),this)},C=c&&!g,x=(this.element?this.element.offsetWidth:0)/2-16;return i("div",{class:this.rootClassNames},[i("button",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this._anchor,id:f||this.buttonId,attrs:this.v3?void 0:{id:f||this.buttonId,role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabIndex:Object(r.getTabIndex)(b,d),accessKey:y,dir:this.currentDir,disabled:d},role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabIndex:Object(r.getTabIndex)(b,d),accessKey:y,dir:this.currentDir,disabled:d,class:this.buttonClassNames,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,focusin:this.handleFocus,blur:this.handleBlur,keydown:this.handleKeyDown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[c?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:Object(r.classNames)("k-fab-icon k-icon k-i-"+c)}):p?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:p}):null,g&&i("span",{class:"k-fab-text"},[g])]),i(h.Popup,{ref:this.v3?function(e){n.popupRef=e}:"popup",show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl)},anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:t.v3?function(e){n.listRef=e}:"list",role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])]}:[i("ul",{ref:t.v3?function(e){n.listRef=e}:"list",role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])])])}},b=g},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var r=n(6);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return r.marks}});var o=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},s=function(e){var t={};return Array.from(e.attributes).forEach((function(e){t[e.nodeName]=e.nodeValue})),t},a=i(i(i({},o("style")),o("class")),o("id")),l=r.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:a});l.table_row.attrs=l.table_row.attrs||{},l.table_row.attrs.style={default:null},l.table_row.attrs.class={default:null},l.table_row.attrs.id={default:null},l.table_row.toDOM=function(e){return["tr",e.attrs,0]},l.table_row.parseDOM=[{tag:"tr",getAttrs:s}],l.table.attrs=l.table.attrs||{},l.table.attrs.style={default:null},l.table.attrs.class={default:null},l.table.attrs.id={default:null},l.table.toDOM=function(e){return["table",e.attrs,["tbody",0]]},l.table.parseDOM=[{tag:"table",getAttrs:s}];var u=i(i({},r.nodes),l);t.nodes=u},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:s?function(){return{v3:!!s}}:void 0,mounted:function(){this.href=this.v3?this.hrefRef:this.$refs.href,this.title=this.v3?this.titleRef:this.$refs.title,this.target=this.v3?this.targetRef:this.$refs.target,this.href&&this.href.focus()},render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=d.provideLocalizationService(this),v=p.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,b=v.insertHyperlinkTitle,y=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!o&&u.getMark(o.state,o.state.schema.marks[p.mark]),C=i("div",{class:"k-edit-form-container"},[i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[f.toLanguageString(g,c.messages[g])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:this.v3?function(e){n.hrefRef=e}:"href",id:"k-editor-link-url",value:this.v3?S&&S.attrs.href||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.href||void 0}})])]),i("div",{class:"k-edit-label k-editor-link-text-row"},[i("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[f.toLanguageString(b,c.messages[b])])]),i("div",{class:"k-edit-field k-editor-link-text-row"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-text"},class:"k-input-inner",id:"k-editor-link-text",ref:this.v3?function(e){n.titleRef=e}:"title",value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==p.linkTarget&&i("div",{class:"k-edit-field"},[i("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"k-editor-link-target"},class:"k-checkbox k-checkbox-md k-rounded-md",id:"k-editor-link-target",ref:this.v3?function(e){n.targetRef=e}:"target",checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),i("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[f.toLanguageString(y,c.messages[y])])])]);return i(a.Dialog,{title:f.toLanguageString(m,c.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,c.messages[m]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[C,i(a.DialogActionsBar,t.v3?function(){return[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])]}:[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])])]}:[C,i(a.DialogActionsBar,t.v3?function(){return[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])]}:[i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:h},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:h,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,c.messages[k])]}:[f.toLanguageString(k,c.messages[k])]),i(l.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:h,key:"insert"},t.v3?function(){return[f.toLanguageString(w,c.messages[w])]}:[f.toLanguageString(w,c.messages[w])])])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.href.value:void 0,title:this.title?this.title.value:void 0,target:this.target&&this.target.checked?"_blank":void 0};u.applyLink({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=p;var h=p;t.InsertLinkDialog=h},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var l=s(n(1)).h,u=n(5),d=n(16),c=n(6),p=n(4),h=n(8),f=d.EditorToolsSettings.alignRemove,v={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=r&&r.state,f=!!d&&c.isAligned(d,o.actions),v=p.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:f,togglable:!0,title:v.toLanguageString(m,h.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,r=!!i&&c.isAligned(i,n.actions),o=r?f.actions:n.actions,s=r?f.commandName:n.commandName;return t&&c.alignBlocks(o,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=v;var m=v;t.Align=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f=h&&h.schema.nodes,v=f&&f[o.listsTypes.listItem],m=o.actions,g=!!h&&(d.isIndented(h,m,s.dir)||m.some((function(e){return f[e.node]&&d.hasNode(h,f[e.node])})))&&!d.hasNode(h,v),b=!!h&&d.canIndentAsListItem(h,v),y=g||b,k=c.provideLocalizationService(this),w=o.messages.title,S=i(i(i({},s),{disabled:!y,title:k.toLanguageString(w,p.messages[w])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],i=this.settings.actions,r=!!e&&(d.isIndented(e,i,this.dir)||i.some((function(n){return t[n.node]&&d.hasNode(e,t[n.node])})))&&!d.hasNode(e,n),o=!!e&&d.canIndentAsListItem(e,n);this.view&&o?d.sinkListItem(n)(this.view.state,this.view.dispatch):this.view&&r&&d.indentBlocks(i,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.IndentVue2=h;var f=h;t.Indent=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=!1,f=c.provideLocalizationService(this),v=o.messages.title,m=o.types,g=o.listType;if(r){var b=r.state,y=b.schema.nodes,k=d.hasNode(b,y[m.orderedList]),w=d.hasNode(b,y[m.bulletList]);h=g===m.orderedList?k&&!w:!k&&w}var S=i(i(i({},s),{selected:h,togglable:!0,title:f.toLanguageString(v,p.messages[v])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,r=n.types,o=n.listType;this.view&&d.toggleList(t.state,t.dispatch,t,i({listType:o},r),n.commandName)},preventDefault:function(e){e.preventDefault()}}};t.ListVue2=h;var f=h;t.List=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f=!!h&&d.isIndented(h,o.actions,s.dir),v=(h&&h.schema.nodes[o.listsTypes.listItem],!!h&&d.canOutdentAsListItem(h,{nodes:o.actions,listsTypes:o.listsTypes})),m=f||v,g=c.provideLocalizationService(this),b=o.messages.title,y=i(i(i({},s),{disabled:!m,title:g.toLanguageString(b,p.messages[b])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=e.dir,r=t&&t.state,o=!!r&&d.isIndented(r,n.actions,i),s=r&&r.schema.nodes[n.listsTypes.listItem],a=!!r&&d.canOutdentAsListItem(r,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?d.liftListItem(s)(t.state,t.dispatch):t&&o&&d.indentBlocks(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=h;var f=h;t.Outdent=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),h=r&&r.state,f={mark:o.mark,altMarks:o.altMarks,altStyle:o.altStyle},v=c.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:!!h&&d.hasMark(h,f),togglable:!0,title:v.toLanguageString(m,p.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=this.settings,n={mark:t.mark,altMarks:t.altMarks,altStyle:t.altStyle};return this.view&&d.toggleInlineFormat(n,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.InlineFormatVue2=h;var f=h;t.InlineFormat=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var u=s(n(1)).h,d=n(144),c=n(6),p=n(30),h=n(4),f=n(8),v={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,v=a(n,["view","render","dataItems","settings","defaultItem"]),m=s.style,g=r?c.getInlineStyles(r.state,{name:m,value:/^.+$/}):[],b=1===new Set(g).size?g[0]:null,y=o||s.items,k=l||s.defaultItem,w=h.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,f.messages[k.localizationKey]):k.text);var S=i(i(i({},v),{value:b?y.find((function(e){return e.value===b})):b,dataItems:y,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(d.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=i.style,o=e.target.value;if(n){c.applyInlineStyle({style:r,value:o.value},i.commandName)(n.state,n.dispatch);var s=e.event;s&&"click"===s.type&&n.focus()}}}};t.FontNameVue2=v;var m=v;t.FontName=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var u=s(n(1)).h,d=n(144),c=n(6),p=n(30),h=n(4),f=n(8),v={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,v=a(n,["view","render","dataItems","settings","defaultItem"]),m=o||s.items,g=r&&r.state,b=g?c.getBlockFormats(g):[],y=1===new Set(b).size?b[0]:null,k=l||s.defaultItem,w=h.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,f.messages[k.localizationKey]):k.text);var S=i(i(i({},v),{value:y?m.find((function(e){return e.value===y})):y,dataItems:m,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(d.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=e.target.value;if(n&&c.formatBlockElements(r.value,i.commandName)(n.state,n.dispatch)){var o=e.event;o&&"click"===o.type&&n.focus()}}}};t.FormatBlockVue2=v;var m=v;t.FormatBlock=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var l=s(n(1)).h,u=n(5),d=n(0),c=n(4),p=n(8),h={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||d.noop}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=c.provideLocalizationService(this),h=o.messages.title,f=r&&r.state,v=!!f&&!this.command(f),m=i(i(i({},s),{disabled:v,title:d.toLanguageString(h,p.messages[h])}),o.props);return t(u.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this;this.view&&this.command(this.view.state,(function(t){return e.view.dispatch(t.setMeta("commandName",e.settings.commandName))}))}}};t.ProseMirrorVue2=h;var f=h;t.ProseMirror=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(59),p=n(4),h=n(8),f={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),f=r&&r.state,v=!f||f.selection.empty,m=f&&d.getMark(f,f.schema.marks[o.mark]),g=p.provideLocalizationService(this),b=o.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:v&&!m,title:g.toLanguageString(b,h.messages[b])}),o.props),k=[t(u.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y)),this.openedDialog&&r&&t(c.InsertLinkDialog,{key:"insertLinkDialog",settings:o,attrs:this.v3?void 0:{settings:o,dir:this.dir,view:r},dir:this.dir,view:r,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[k])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=f;var v=f;t.LinkTool=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var l=s(n(1)).h,u=n(5),d=n(6),c=n(4),p=n(8),h={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),h={mark:o.mark},f=!!r&&d.hasMark(r.state,h),v=c.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{disabled:!f,title:v.toLanguageString(m,p.messages[m])}),o.props);return t(u.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&d.removeLink(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=h;var f=h;t.Unlink=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(6),h=n(16).EditorToolsSettings.cleanFormatting,f=p.cleanFormatting(),v={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return h}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),p=o.messages.title,h=d.provideLocalizationService(this),v=i(i(i({},s),{disabled:!r||!f(r.state),title:h.toLanguageString(p,c.messages[p])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){var e=this;this.view&&f(this.view.state,(function(t){t.setMeta("commandName",e.settings.commandName),e.view.dispatch(t)}))},preventDefault:function(e){e.preventDefault()}}};t.CleanFormattingVue2=v;var m=v;t.CleanFormatting=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(6),h=n(16).EditorToolsSettings.selectAll,f={name:"KendoSelectAll",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=(n.view,n.settings),o=void 0===r?h:r,s=a(n,["view","settings"]),p=o.messages.title,f=d.provideLocalizationService(this),v=i(i(i({},s),{title:f.toLanguageString(p,c.messages[p])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){this.view&&(p.selectAll(this.view.state,this.view.dispatch),this.view.focus())},preventDefault:function(e){e.preventDefault()}}};t.SelectAllVue2=f;var v=f;t.SelectAll=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var l=s(n(1)).h,u=n(6),d=n(5),c=n(162),p=n(4),h=n(8),f={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),f=r&&r.state,v=f?f.schema.nodes[o.node]:void 0,m=p.provideLocalizationService(this),g=o.messages.insertImage,b=i(i(i({},s),{key:"insertImage",disabled:!v||!f||!u.canInsert(f,v),title:m.toLanguageString(g,h.messages[g])}),o.props),y=[t(d.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:b},b)),this.openedDialog&&r&&t(c.InsertImageDialog,{key:"insertImageDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:b.dir},settings:o,dir:b.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[y])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.InsertImageVue2=f;var v=f;t.InsertImage=v},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var l=s(n(1)).h,u=n(5),d=n(0),c=n(163),p=n(4),h=n(8),f=n(6),v={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},u.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=d.guid()},data:function(){return{openedPopup:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),d=r&&r.state,v=p.provideLocalizationService(this),m=o.messages,g=m.createTable,b=m.createTableHint,y=v.toLanguageString(g,h.messages[g]),k=v.toLanguageString(b,h.messages[b]),w=i(i(i({},s),{disabled:!d||!f.canInsert(d,d.schema.nodes.table),key:"InsertTable",title:y}),o.props),S=[t(u.Button,i({ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.togglePopup,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:w},w)),r&&t(c.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,on:this.v3?void 0:{close:this.closePopup,tableinsert:this.onTableInsert},onTableinsert:this.onTableInsert})||null];return t("span",[S])},methods:{togglePopup:function(){this.openedPopup=!this.openedPopup},closePopup:function(){this.openedPopup&&this.togglePopup()},onTableInsert:function(e,t){var n=this.$props.view;if(n){var i=f.createTable(n.state.schema.nodes,e,t);i&&f.insertNode(i,!0)(n.state,n.dispatch),n.focus(),this.closePopup()}},preventDefault:function(e){e.preventDefault()}}};t.InsertTableVue2=v;var m=v;t.InsertTable=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var l=s(n(1)).h,u=n(5),d=n(165),c=n(4),p=n(8),h={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),h=c.provideLocalizationService(this),f=o.messages.viewHtml,v=i(i(i({},s),{key:"viewHtml",title:h.toLanguageString(f,p.messages[f])}),o.props),m=[t(u.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v)),this.openedDialog&&r&&t(d.ViewHtmlDialog,{key:"viewHtmlDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:v.dir},settings:o,dir:v.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[m])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=h;var f=h;t.ViewHtml=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(169),p=n(8),h=n(16),f=h.EditorToolsSettings.pdf,v=h.EditorToolsSettings.savePdfOptions,m={name:"KendoPdf",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=(n.view,n.render,n.settings),o=void 0===r?f:r,s=(n.savePdfOptions,n.savePdfCallback,a(n,["view","render","settings","savePdfOptions","savePdfCallback"])),c=o.messages.title,h=d.provideLocalizationService(this),v=i(i(i({},s),{title:h.toLanguageString(c,p.messages[c])}),o.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){this.view&&c.savePDF(this.view.dom,i(i({},v),this.savePdfOptions||{}),this.savePdfCallback)},preventDefault:function(e){e.preventDefault()}}};t.PdfVue2=m;var g=m;t.Pdf=g},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var l=s(n(1)).h,u=n(5),d=n(4),c=n(8),p=n(16).EditorToolsSettings.print,h={name:"KendoPrint",props:i({view:Object,settings:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=void 0===o?p:o,h=a(n,["view","render","settings"]),f=r&&r.dom,v=f&&f.ownerDocument,m=v&&v.defaultView,g=s.messages.title,b=d.provideLocalizationService(this),y=i(i(i({},h),{disabled:!m||m===window,title:b.toLanguageString(g,c.messages[g])}),s.props);return t(u.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault:function(e){e.preventDefault()}}};t.PrintVue2=h;var f=h;t.Print=f},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var l=s(n(1)).h,u=n(5),d=n(166),c=n(8),p=n(16),h=n(4),f=p.EditorToolsSettings.findAndReplace,v={name:"KendoFindAndReplace",props:i({view:Object},u.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=a(n,["view"]),s=h.provideLocalizationService(this),p=f.messages.findReplaceToolTitle,v=i(i(i({},o),{key:"tool",disabled:!r,title:s.toLanguageString(p,c.messages[p])}),f.props),m=t(u.Button,i({onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.onOpen,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v));return t("span",[m,this.showDialog&&r&&t(d.FindAndReplaceDialog,{view:r,attrs:this.v3?void 0:{view:r,dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},dir:this.$props.dir,key:"dialog"})])},methods:{onClose:function(){this.showDialog=!1},onOpen:function(){this.showDialog=!0},preventDefault:function(e){e.preventDefault()}}};t.FindAndReplaceVue2=v;var m=v;t.FindAndReplace=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(28),o=n(40),s=n(0),a=n(10),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=i,d=u.h,c=(u.ref,u.inject,{name:"KendoTabStrip",emits:{select:null},props:{animation:{type:Boolean,default:!0},selected:Number,tabContentStyle:Object,tabPosition:{type:String,default:"top"},tabs:{type:Array,default:void 0},tabIndex:Number,dir:String},data:function(){return{currentShowAll:!0,currentTabs:[]}},computed:{compTabs:function(){return void 0!==this.tabs?this.tabs.map((function(e){var t=s.templateRendering.call(this,e.content,s.getListeners.call(this));return l(l({},e),{content:t})}),this):this.currentTabs}},provide:function(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created:function(){var e,t=this;this.keyBinding=((e={})[s.Keys.left]=function(){return t.prevNavigatableTab()},e[s.Keys.right]=function(){return t.nextNavigatableTab()},e[s.Keys.down]=function(){return t.nextNavigatableTab()},e[s.Keys.up]=function(){return t.prevNavigatableTab()},e[s.Keys.home]=function(){return 0},e[s.Keys.end]=function(){return t.compTabs.length-1},e),Object(s.validatePackage)(a.a)},watch:{selected:function(e,t){this.$props.animation&&(this.currentShowAll=!1,this.$nextTick((function(){this.currentShowAll=!0})))}},methods:{addRenderTitle:function(e,t){var n=this.compTabs.findIndex((function(t){return t.id===e}));this.v3?this.compTabs[n].titleRender=t:this.compTabs[n]=l(l({},this.compTabs[n]),{titleRender:t})},addTab:function(e){this.currentTabs.push(e)},removeTab:function(e){var t=this.currentTabs.findIndex((function(t){return t.id===e}));this.currentTabs.splice(t,1)},onSelect:function(e){this.$props.selected!==e&&this.$emit("select",{selected:e})},onKeyDown:function(e){var t;switch(e.keyCode){case s.Keys.left:t=this.keyBinding[this.invertKeys(s.Keys.left,s.Keys.right)];break;case s.Keys.right:t=this.keyBinding[this.invertKeys(s.Keys.right,s.Keys.left)];break;case s.Keys.up:t=this.keyBinding[s.Keys.up];break;case s.Keys.down:t=this.keyBinding[s.Keys.down];break;case s.Keys.home:t=this.keyBinding[s.Keys.home];break;case s.Keys.end:t=this.keyBinding[s.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1?t:e},firstNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=0;t<e;t++)if(!this.compTabs[t].disabled)return t},lastNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=e-1;t>0;t--)if(!this.compTabs[t].disabled)return t},prevNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t-1:-1;if(n<0)return this.lastNavigatableTab();if(e)for(var i=n;i>-1;i--){if(!this.compTabs[i].disabled)return i;if(0===i)return this.lastNavigatableTab()}},nextNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t+1:1;if(n>=e)return this.firstNavigatableTab();if(e)for(var i=n;i<e;i++){if(!this.compTabs[i].disabled)return i;if(i+1===e)return this.firstNavigatableTab()}}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t,n=d||e,i=this.$props,a=i.tabPosition,u=i.tabIndex,c=void 0===u?0:u,p="bottom"===a,h=Object(s.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===a,t["k-tabstrip-right"]="right"===a,t["k-tabstrip-bottom"]="bottom"===a,t["k-tabstrip-top"]="top"===a,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:h},[!p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c}),function(e){var t=e.selected,i=e.tabContentStyle,r=Object(s.getDefaultSlots)(this),a={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:i,showAll:this.currentShowAll};return n(o.a,l(l({},a),{attrs:this.v3?void 0:l({},a)}),this.v3?function(){return r}:[r])}.call(this,this.$props),p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c})])}}),p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=i,s=o.h,a=(o.ref,o.inject,{name:"KendoTabStripTab",props:{disabled:Boolean,contentClassName:String,title:String,titleRender:[String,Function,Object]},inject:{addRenderTitle:{default:null},addTab:{default:null},removeTab:{default:null}},created:function(){this.tabId=Object(r.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:s?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=s||e,n=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[Object(r.getDefaultSlots)(this)])}}),l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(13),o=n(10),s=n(0),a=i.h,l={name:"KendoCard",props:{dir:String,type:{type:String,default:r.d.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:r.c.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==r.c.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-"+this.$props.type]=this.$props.type!==r.d.DEFAULT,e["k-card-"+t]=!0,e}},render:function(e){var t=a||e,n=Object(s.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardHeader",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-header"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardTitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-title"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardBody",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-body"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=n(0),o=n(13),s=i.h,a={name:"KendoCardActions",props:{layout:{type:String,default:o.b.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:o.c.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:s?function(){return{v3:!!s}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-"+this.$props.layout]=!0,e["k-card-actions-"+(this.$props.orientation!==o.c.HORIZONTAL?"vertical":"k-card-horizontal")]=!0,e}},render:function(e){var t=s||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}},l=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardImage",props:{src:String},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=o||e;Object(r.getDefaultSlots)(this);return t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardSubtitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-subtitle"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoCardFooter",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-card-footer"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(13),o=n(10),s=n(0),a=i.h,l={name:"KendoAvatar",props:{type:{type:String,default:r.a.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse","inherit"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),r=t.rounded,o=t.fillMode,a=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-"+(s.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-avatar-"+o]=o,e["k-avatar-"+o+"-"+a]=Boolean(o&&a),e},innerClass:function(){var e;return(e={})["k-avatar-"+this.$props.type]=this.$props.type,e}},render:function(e){var t=a||e,n=Object(s.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(33),o=n(0),s=n(10),a=i.h,l={name:"KendoDrawer",props:{animation:{type:[Object,Boolean],default:!0},expanded:{type:Boolean,default:!1},dir:{type:String,default:"ltr"},item:[String,Object,Function],mode:{type:String,default:"overlay",validator:function(e){return["overlay","push"].includes(e)}},position:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}},items:Array,mini:{type:Boolean,default:!1},tabIndex:Number,width:{type:Number,default:240},miniWidth:{type:Number,default:50}},created:function(){Object(o.validatePackage)(s.a)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:r,mini:s,width:a,miniWidth:l,items:u,item:c}}},mounted:function(){this.currentDir=Object(o.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;this.drawer.expanded=t,this.drawer.mode=n,this.drawer.dir=this.currentDir,this.drawer.position=i,this.drawer.animation=r,this.drawer.mini=s,this.drawer.width=a,this.drawer.miniWidth=l,this.drawer.items=u,this.drawer.item=c},provide:function(){return{kendoDrawer:this.drawer}},computed:{drawerClassNames:function(){var e=this.$props,t=e.expanded,n=e.mode;return{"k-drawer-container":!0,"k-drawer-expanded":t,"k-drawer-overlay":"overlay"===n,"k-drawer-push":"push"===n,"k-drawer-mini":e.mini}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=Object(o.getDefaultSlots)(this),i=this.$props,s=i.items,l=i.tabIndex,u=i.mode,d=i.expanded,c=i.item,p=c?o.templateRendering.call(this,c,o.getListeners.call(this)):void 0;return t("div",{class:this.drawerClassNames,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabIndex:l},tabIndex:l},["overlay"===u&&d&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),s&&t(r.a,{onSelect:this.handleSelect,on:this.v3?void 0:{select:this.handleSelect},item:p,attrs:this.v3?void 0:{item:p}}),n])},methods:{focus:function(){this.$el&&this.$el.focus()},handleSelect:function(e,t){this.$props.items&&this.$emit("select",{itemTarget:e,itemIndex:t,component:this})},onOverlayClick:function(e){this.$emit("overlayclick",e)}}},u=l},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var i=n(1),r=n(0),o=i.h,s={name:"KendoDrawerContent",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(o||e)("div",{class:"k-drawer-content"},[Object(r.getDefaultSlots)(this)])}},a=s},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(41),s=n(154),a=n(24),l=n(10),u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={name:"KendoStepper",model:{event:"changemodel"},props:{animationDuration:{type:[Boolean,Number],default:400},dir:String,disabled:Boolean,item:{type:[String,Object,Function,Boolean],default:void 0},items:Array,linear:Boolean,mode:{type:String,default:"steps",validator:function(e){return["steps","labels"].includes(e)}},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},value:{type:Number,default:0},modelValue:Number,successIcon:String,errorIcon:String},created:function(){Object(r.validatePackage)(l.a),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr"},data:function(){return{currentDir:"ltr",focusedIdx:0,stepper:{},currentFocused:!1}},watch:{value:function(e){this.focusedIdx=e}},computed:{computedValue:function(){return void 0!==this.$props.modelValue?this.$props.modelValue:this.$props.value},isVertical:function(){return"vertical"===this.$props.orientation},numOfSteps:function(){var e=this.$props.items;return e?e.length:0},stepperClasses:function(){return{"k-stepper":!0,"k-stepper-linear":this.$props.linear}},stepperStyles:function(){return{display:"grid",gridTemplateColumns:this.isVertical?void 0:"repeat("+2*this.numOfSteps+", 1fr)",gridTemplateRows:this.isVertical?"repeat("+4*this.numOfSteps+", 1fr)":void 0}},listClasses:function(){return{"k-step-list":!0,"k-step-list-horizontal":!this.isVertical,"k-step-list-vertical":this.isVertical}},listStyles:function(){return{gridColumnStart:this.isVertical?"":1,gridColumnEnd:this.isVertical?"":-1,gridRowStart:this.isVertical?1:"",gridRowEnd:this.isVertical?-1:""}},progressbarStyles:function(){return{gridColumnStart:this.isVertical?"":2,gridColumnEnd:this.isVertical?"":2*this.numOfSteps,gridRowStart:this.isVertical?2:"",gridRowEnd:this.isVertical?4*this.numOfSteps-2:""}}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=d||e,n=Object(r.getDefaultSlots)(this),i=this.$props,l=i.animationDuration,c=i.disabled,p=i.items,h=i.orientation,f=this.computedValue,v="number"==typeof l?l:!1!==l?a.a:a.b,m=p&&p.map((function(e,n){var i=this.$props.item?r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)):void 0,s=t(o.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:c||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:c||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus},onFocus:this.handleFocus,class:e.class,style:e.style,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon});return r.getTemplate.call(this,{h:t,template:i,defaultRendering:s,additionalProps:u(u({},e),{disabled:c||e.disabled,focused:n===this.focusedIdx,current:n===f,value:f}),additionalListeners:{change:this.handleChange,focus:this.handleFocus}})}),this);return t("nav",{tabIndex:this.currentFocused?-1:0,attrs:this.v3?void 0:{tabIndex:this.currentFocused?-1:0,dir:this.currentDir},class:this.stepperClasses,style:this.stepperStyles,dir:this.currentDir,onFocusin:this.handleFocusin,on:this.v3?void 0:{focusin:this.handleFocusin,focusout:this.handleFocusout,keydown:this.handleKeyDown},onFocusout:this.handleFocusout,onKeydown:this.handleKeyDown},[t("ol",{class:this.listClasses,style:this.listStyles},[m||n]),t(s.ProgressBar,{style:this.progressbarStyles,animation:{duration:v},attrs:this.v3?void 0:{animation:{duration:v},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:c,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:c,tabIndex:-1})])},methods:{focus:function(){this.$el&&Object(r.focusFirstFocusableChild)(this.$el)},dispatchChangeEvent:function(e,t){var n=t===this.computedValue-1,i=t===this.computedValue,r=t===this.computedValue+1,o=!this.linear||n||i||r;this.computedValue!==t&&!this.disabled&&o&&(this.focusedIdx=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{component:this,event:e,value:t}))},handleChange:function(e){var t=e.value;this.dispatchChangeEvent(e,t)},handleFocus:function(e){this.disabled||this.$emit("focus",e,void 0)},handleEnter:function(e){var t={component:this,event:e,value:this.focusedIdx};this.dispatchChangeEvent(t,this.focusedIdx)},handleFocusin:function(){this.currentFocused=!0},handleFocusout:function(){this.currentFocused=!1},handleKeyDown:function(e){var t="rtl"===this.currentDir,n=this.focusedIdx,i=this.items.length-1;switch(e.keyCode){case r.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case r.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case r.Keys.space:case r.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}},p=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var a=s(n(1)).h,l=n(168),u=n(6),d=n(4),c=n(8),p={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.colorPickerProps,o=n.dir,s=r.title,u=d.provideLocalizationService(this),p=i(i({},r),{dir:o,title:s?u.toLanguageString(s,c.messages[s]):s});return t(l.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:p},p))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,r=t.colorPickerProps,o=t.commandName;if(n){u.applyInlineStyle({style:i,value:e.value},o)(n.state,n.dispatch);var s=r.view;"palette"===(void 0===s?"palette":s)&&n.focus()}}}};t.ApplyColorVue2=p;var h=p;t.ApplyColor=h},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(29),r=n(1),o=n(7),s=r,a=s.h,l=(s.ref,{created:function(){Object(i.validatePackage)(o.a)},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(a||e)("span",{class:"k-input-separator"})}}),u=l},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(5),o=n(0),s=n(4),a=n(2),l=n(38),u=n(7),d=i,c=d.h,p=d.ref,h=d.inject,f={name:"KendoSlider",model:{event:"changemodel"},props:{modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:void 0},name:String,buttons:Boolean,tabIndex:Number,disabled:Boolean,dir:String,step:Number,min:{type:Number,required:!0},max:{type:Number,required:!0},value:Number,vertical:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},data:function(){return{currentValue:void 0,currentFocused:!1,currentDir:"ltr"}},computed:{computedValue:function(){var e=void 0!==this.$props.value?this.$props.value:this.currentValue,t=this.$props,n=t.min,i=t.max;return void 0===e?e:Math.min(Math.max(e,n),i)},sliderTrack:function(){return this._sliderTrack}},created:function(){Object(o.validatePackage)(u.a),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=this.$props.min,this.currentFocused=!1,this.currentDir=this.$props.dir},mounted:function(){if(this._sliderTrack=this.$refs.sliderTrack,this.$el&&(this.draggable=this.$refs.draggable),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},updated:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:c?function(){return{v3:!!c,inputRef:p(null),kendoLocalizationService:h("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=c||e,l=Object(s.provideLocalizationService)(this),u=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,d=Object(o.getDefaultSlots)(this);return i("div",{"aria-valuemin":this.$props.min,attrs:this.v3?void 0:{"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,tabIndex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0)},"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,style:this.$props.style,tabIndex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},onBlur:this.onBlur,onKeydown:this.onKeyDown,class:Object(o.classNames)("k-slider k-widget",{"k-state-focused":this.currentFocused,"k-state-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:Object(o.classNames)("k-slider-wrap")},[this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:l.toLanguageString(a.f,a.c[a.f])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:l.toLanguageString(a.f,a.c[a.f]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(o.Draggable,{onDrag:this.dragOver,on:this.v3?void 0:{drag:this.dragOver,press:this.dragStart},onPress:this.dragStart,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.g,a.c[a.g]),attrs:n.v3?void 0:{title:l.toLanguageString(a.g,a.c[a.g])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.g,a.c[a.g]),attrs:n.v3?void 0:{title:l.toLanguageString(a.g,a.c[a.g])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:l.toLanguageString(a.h,a.c[a.h])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:l.toLanguageString(a.h,a.c[a.h]),onClick:this.increment,on:this.v3?void 0:{click:this.increment}})])])},methods:{focus:function(){this.$el&&this.$el.focus()},isLabel:function(e){for(var t=e;t;){if(Boolean(t.getAttribute(l.a)))return!0;t=t.parentElement}return!1},onFocus:function(){this.currentFocused=!0},onBlur:function(){this.currentFocused=!1},onKeyDown:function(e){var t=void 0;e.keyCode===o.Keys.left||e.keyCode===o.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===o.Keys.right||e.keyCode===o.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===o.Keys.home?t=this.$props.min:e.keyCode===o.Keys.end&&(t=this.$props.max),void 0!==t&&(e.preventDefault(),this.change(e,t))},decrement:function(e){e.preventDefault(),this.change(e,this.currentValue-(this.$props.step||0))},increment:function(e){e.preventDefault(),this.change(e,this.currentValue+(this.$props.step||0))},dragStart:function(e){this.isLabel(e.originalEvent.target)||(e.isTouch&&e.originalEvent.preventDefault(),this.drag(e))},dragOver:function(e){e.originalEvent.preventDefault(),this.drag(e)},drag:function(e){var t=this.draggable.element.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);this.change(e,this.$props.min+n*(this.$props.max-this.$props.min))},change:function(e,t){t=Math.min(Math.max(t,this.$props.min),this.$props.max),this.currentValue=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t,component:this,target:{name:this.$props.name,value:t}})}}},v=f},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(0),o=n(7),s=n(4),a=n(2),l=i,u=l.h,d=l.ref,c=l.inject,p={name:"KendoCheckbox",emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},inject:{kendoLocalizationService:{default:null}},props:{checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:void 0},defaultValue:{type:[String,Boolean],default:void 0},modelValue:{type:[String,Boolean],default:void 0},dir:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,label:String,labelRender:[String,Number,Boolean,Object],labelPlacement:String,labelOptional:Boolean,name:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:{type:[String,Boolean],default:void 0},validationMessage:String,required:Boolean,valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0}},data:function(){return{valueDuringOnChange:void 0,currentDir:"ltr",currentChecked:void 0,currentValue:void 0}},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)(),void 0!==this.$props.defaultChecked&&(this.currentChecked=this.$props.defaultChecked),void 0!==this.$props.defaultValue&&(this.currentValue=this.$props.defaultValue),this.currentDir=this.$props.dir},computed:{valueIsBooleanOrNull:function(){var e=this.$props.value;return"boolean"==typeof e||null===e},isCheckedControlled:function(){return void 0!==this.$props.checked},isValueControlled:function(){return void 0!==this.$props.value&&this.valueIsBooleanOrNull},computedValue:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue},computedChecked:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentChecked},useValueAsChecked:function(){return void 0===this.computedChecked&&this.computedValue},checkedProp:function(){return this.useValueAsChecked?this.computedValue:this.computedChecked},valueProp:function(){var e=this.$props.value;return this.useValueAsChecked||this.isValueControlled?null===e?e:void 0:e||this.computedValue},indeterminateProp:function(){return null===this.checkedProp||null===this.valueProp},isValid:function(){var e=this.$props.valid;return void 0!==e?e:!this.$props.required||!!this.computedChecked}},mounted:function(){if(this.input=this.v3?this.inputRef:this.$refs.input,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}this.setValidity()},updated:function(){this.input||(this.input=this.v3?this.inputRef:this.$refs.input),this.setValidity()},setup:u?function(){return{v3:!!u,inputRef:d(null),kendoLocalizationService:c("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=u||e,i=this.$props,o=i.ariaDescribedBy,l=i.ariaLabelledBy,d=i.disabled,c=i.id,p=i.label,h=i.labelRender,f=i.labelPlacement,v=i.name,m=i.labelOptional,g=i.tabIndex,b=i.required,y=i.validityStyles,k=i.size,w=i.rounded,S=Object(r.getDefaultSlots)(this),C=p;this.localizationService=Object(s.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(a.b),this.optionalMessage=this.localizeMessage(a.a);var x=Object(r.classNames)({"k-state-disabled":d}),$=Object(r.classNames)(((t={"k-checkbox":!0})["k-checkbox-"+r.kendoThemeMaps.sizeMap[k]]=k,t["k-rounded-"+r.kendoThemeMaps.roundedMap[w]]=w,t["k-state-indeterminate"]=this.indeterminateProp,t["k-state-invalid k-invalid"]=!(this.isValid||void 0!==y||!0===y),t)),O=function(){var e=this;return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:v,id:c||this.calculatedId,"aria-labelledby":l,"aria-describedby":o,disabled:d,tabIndex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0},class:$,name:v,id:c||this.calculatedId,ref:this.v3?function(t){e.inputRef=t}:"input","aria-labelledby":l,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:d,tabIndex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,keydown:this.onKeyDownHandler,focus:this.onFocusHandler,blur:this.onBlurHandler},onKeydown:this.onKeyDownHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler})};if(h){var I=h?r.templateRendering.call(this,h,r.getListeners.call(this)):null;C=r.getTemplate.call(this,{h:n,template:I})}var T=function(){return void 0!==C?n("label",{class:"k-checkbox-label",for:c||this.calculatedId,attrs:this.v3?void 0:{for:c||this.calculatedId},style:{userSelect:"none"}},[C,m&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null};return n("span","before"===f?{class:x,dir:"rtl",attrs:this.v3?void 0:{dir:"rtl"}}:{class:x,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir}},[O.call(this),T.call(this),S])},methods:{setValidity:function(){var e=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedChecked;this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(e?"":this.$props.validationMessage||this.defaultValidationMessage)},localizeMessage:function(e){return this.localizationService.toLanguageString(e,a.c[e])},focusElement:function(){this.input&&this.input.focus()},setValue:function(e,t){this.$data.valueDuringOnChange=t;var n=this;this.$nextTick((function(){if(n.isCheckedControlled||n.isValueControlled||n.$props.disabled||(n.currentValue=t,n.currentChecked=t),!n.$props.disabled){var i={element:n.$el,focus:null};n.$emit("changemodel",t),n.$emit("update:modelValue",t),n.$emit("change",{e:e,handle:i,value:t})}this.$data.valueDuringOnChange=void 0}))},onChangeHandler:function(e){var t=e.target.checked;this.setValue(e,t)},onKeyDownHandler:function(e){if(!this.$props.disabled){var t=e.keyCode,n=e.currentTarget.checked;t===r.Keys.space&&(e.preventDefault(),e.stopPropagation(),this.setValue(e,!n))}},onBlurHandler:function(e){this.$props.disabled||this.$emit("blur",e)},onFocusHandler:function(e){this.$props.disabled||this.$emit("focus",e)}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(39),o=n(0),s=n(7),a=i,l=a.h,u=a.ref,d=(a.inject,{name:"KendoRadioGroup",props:{ariaLabelledBy:String,ariaDescribedBy:String,dataItems:Array,defaultValue:[String,Number,Object],dir:String,disabled:Boolean,labelPlacement:String,item:{type:String,default:void 0},layout:{type:String,default:"vertical",validator:function(e){return["horizontal","vertical"].includes(e)}},name:String,modelValue:[String,Number,Object],value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},created:function(){this.radioGroupName=Object(o.guid)(),Object(o.validatePackage)(s.a),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=Object(o.isRtl)(this.$el)},computed:{radioGroupClasses:function(){var e=this.$props.layout;return{"k-radio-list":!0,"k-list-horizontal":"horizontal"===e,"k-list-vertical":"vertical"===e||void 0===e}},checkedRadioValue:function(){var e=this.$props.value;return void 0!==e?e:void 0!==this.$props.modelValue?this.$props.modelValue:this.stateChecked},currentDir:function(){var e=this.$props.dir;return e||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleChange:function(e){var t=e.value;void 0!==this.$props.value||this.$props.disabled||(this.stateChecked=t),this.$props.disabled||(this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t}))},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e)}},setup:l?function(){return{v3:!!l,inputRef:u(null)}}:void 0,render:function(e){var t=l||e,n=this.$props,i=n.ariaLabelledBy,s=n.ariaDescribedBy,a=n.dataItems,u=n.disabled,d=n.name,c=n.labelPlacement,p=n.valid,h=a&&a.map((function(e,n){var i=this.checkedRadioValue===e.value,s=null===this.checkedRadioValue||void 0===this.checkedRadioValue,a=o.templateRendering.call(this,this.$props.item||e.item,o.getListeners.call(this));return t(r.a,{class:Object(o.classNames)("k-radio-item",{"k-state-disabled":e.disabled||u}),style:e.style,key:n,item:a,attrs:this.v3?void 0:{item:a,role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName},role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur},this.v3?function(){return[e.content]}:[e.content])}),this);return t("ul",{role:"radiogroup",attrs:this.v3?void 0:{role:"radiogroup",dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},[h])}}),c=d},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=n(7),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i.h,l={name:"KendoTextArea",model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{ariaDescribedBy:String,ariaLabelledBy:String,autoSize:Boolean,modelValue:{type:[String,Array,Number],default:void 0},defaultValue:[String,Number],dir:String,disabled:Boolean,readOnly:Boolean,rows:Number,id:String,name:String,validationMessage:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:Boolean,placeholder:String,tabIndex:Number,valid:{type:Boolean,default:void 0},value:[String,Array,Number],validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,flow:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},resizable:{type:String,default:"vertical",validator:function(e){return["both","horizontal","vertical","none"].includes(e)}}},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.showLoadingIcon,l=t.resizable,u=t.autoSize,d=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=d,e["k-required"]=s,e["k-loading"]=a,e["k-resize-"+l]=u?"none":l,e["!k-flex-col"]="vertical"===this.flow,e["!k-flex-row"]="horizontal"===this.flow,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0,"!k-resize-none":!0,"k-flex":!0})[this.inputClass]=this.inputClass,e},prefixRenderClass:function(){return{"k-input-prefix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixRenderClass:function(){return{"k-input-suffix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixIconWrapClass:function(){return{"k-flex-wrap":!0,"!k-align-items-start":!0}},computedValue:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentValue},isValid:function(){return void 0!==this.valid?this.valid:!this.required||!!this.computedValue}},data:function(){return{currentValue:this.$props.defaultValue,textAreaHeight:"auto",currentDir:"ltr"}},watch:{size:function(){this.textAreaHeight="auto"}},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=a||e,i=this.$props,o=i.ariaDescribedBy,l=i.ariaLabelledBy,u=i.autoSize,d=i.disabled,c=i.readOnly,p=i.required,h=i.rows,f=i.id,v=i.name,m=i.placeholder,g=i.tabIndex,b=i.iconName,y=i.showValidationIcon,k=i.showLoadingIcon,w=i.showClearButton,S=s({id:f||this.calculatedId,name:v,disabled:d,rows:h,placeholder:m,readOnly:c,required:p,tabIndex:Object(r.getTabIndex)(g,d),"aria-labelledby":l,"aria-describedby":o,"aria-multiline":!0,"aria-disabled":d||void 0},this.$attrs),C=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),x=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),$=r.getTemplate.call(this,{h:n,template:C,additionalProps:{value:this.computedValue,valid:this.isValid}}),O=r.getTemplate.call(this,{h:n,template:x,additionalProps:{value:this.computedValue,valid:this.isValid}}),I=n("textarea",s(s({},S),{attrs:this.v3?void 0:S,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:u?{overflow:"hidden",height:this.textAreaHeight}:{},value:this.v3?this.computedValue:null,domProps:this.v3?void 0:{value:this.computedValue},onChange:this.handleChange,onInput:this.handleInput,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur,input:this.handleInput},onFocus:this.handleFocus,onBlur:this.handleBlur}));return n("span",{class:this.rootClassName,dir:"rtl"===this.currentDir?this.currentDir:"",attrs:this.v3?void 0:{dir:"rtl"===this.currentDir?this.currentDir:""},style:this.$attrs.style},[this.$props.inputPrefix&&n("span",{class:this.prefixRenderClass},[$]),n("span",{class:"k-hstack k-flex"},[b&&n("span",{class:"k-flex-wrap"},[n("span",{class:"k-input-icon k-icon k-i-"+b})]),I,y&&this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-check"})]),y&&!this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-warning"})]),k&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-loading-icon k-icon k-i-loading"})]),w&&this.computedValue&&n("span",{class:this.suffixIconWrapClass},[n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])])]),this.$props.inputSuffix&&n("span",{class:this.suffixRenderClass},[O])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight=this.element.scrollHeight+"px")},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this.element&&this.element.focus()},emitUpdate:function(e,t,n){var i=n;this.$props.disabled||(this.textAreaHeight="auto",this.currentValue=i),this.$props.disabled||(this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit(t,{event:e,component:this,name:this.element.name,value:i}))},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleFocus:function(e){this.$props.disabled||this.$emit("focus",{event:e,component:this,name:this.element.name})},handleBlur:function(e){this.$props.disabled||this.$emit("blur",{event:e,component:this,name:this.element.name})}}},u=l},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"AutoComplete",(function(){return Se})),n.d(t,"AutoCompleteVue2",(function(){return we})),n.d(t,"DropDownList",(function(){return Z})),n.d(t,"DropDownListVue2",(function(){return Y})),n.d(t,"ComboBox",(function(){return fe})),n.d(t,"ComboBoxVue2",(function(){return he})),n.d(t,"MultiSelect",(function(){return ze})),n.d(t,"MultiSelectVue2",(function(){return Fe}));var i,r,o=n(1),s=n(0),a=n(5),l=n(12),u=o.h,d={name:"list-container",emits:{mousedown:null,blur:null,open:null,close:null},props:{width:[String,Number],dir:String,itemsCount:Number,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}}},created:function(){this.kendoAnchorRef=void 0},setup:u?function(){return{v3:!!u}}:void 0,methods:{onMouseDown:function(e){this.$emit("mousedown",e)},onBlur:function(e){this.$emit("blur",e)},onOpen:function(e){this.$emit("open",e)},onClose:function(e){this.$emit("close",e)}},render:function(e){var t=this,n=u||e,i=Object(s.getDefaultSlots)(this),r=this.$props,o=(r.onMouseDown,r.onBlur,r.width),a=r.dir,d=r.popupSettings,c=d.popupClass,p=d.className,h=d.animate,f=d.anchor,v=d.show,m=(d.open,d.close,d.itemsCount);return n(l.Popup,{style:{width:o,direction:a},className:p,attrs:this.v3?void 0:{className:p,animate:h,anchor:f,show:v,contentKey:m},animate:h,anchor:f,show:v,contentKey:m,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose},this.v3?function(){return[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}},c=o,p=c.h,h=c.ref,f=s.kendoThemeMaps.sizeMap,v=s.kendoThemeMaps.roundedMap,m={name:"list-filter",emits:{keydown:null,change:null},props:{value:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{spanClass:function(){var e,t=this.$props,n=t.size,i=t.rounded,r=t.fillMode;return(e={"k-searchbox k-input":!0})["k-input-"+(f[n]||n)]=n,e["k-rounded-"+(v[i]||i)]=i,e["k-input-"+r]=r,e}},setup:p?function(){return{v3:!!p,inputRef:h(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},render:function(e){var t=this,n=p||e;return n("span",{class:"k-list-filter"},[n("span",{class:this.spanClass},[n("span",{class:"k-input-icon k-icon k-i-search"}),n("input",{ref:this.v3?function(e){t.inputRef=e}:"input",type:"text",attrs:this.v3?void 0:{type:"text"},value:this.v3?this.$props.value||"":null,domProps:this.v3?void 0:{value:this.$props.value||""},class:"k-input-inner",onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})])])}},g=function(e){return null!=e},b=function(e,t,n){if(!g(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},y=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var r=0;r<e.length;r++){var o=(w(e[r],n)||"")+"";if(o&&o.toLowerCase().startsWith(t)){i=r;break}}}return i},k=function(e,t,n,i){void 0===i&&(i=!1);var r=function(e){return i?e:e.toLowerCase()};return e.findIndex((function(e){return n?r(w(e,n))===r(t):r(t)===r(e.toString())}))},w=function(e,t){if(t&&g(e)){var n=t.split("."),i=e;return n.forEach((function(e){i=i?i[e]:void 0})),i}return e},S=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return C(e,t,n)}));-1!==i&&e.splice(i,1)}))},C=function(e,t,n){return e===t||g(e)===g(t)&&w(e,n)===w(t,n)},x=function(e,t,n){if(t){var i=k(e,t,n,!0);return-1!==i?e[i]:e[y(e,t,n)]}return e[0]},$=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},O=o.h,I={name:"list-default-item",props:{defaultItem:[Object,String],textField:String,selected:Boolean},setup:O?function(){return{v3:!!O}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClick:function(e){this.$emit("defaultitemclick",e)}},render:function(e){var t=O||e,n=this.$props,i=n.selected,r=n.defaultItem,o=n.textField;return t("div",{onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,style:{position:"unset"},class:Object(s.classNames)("k-list-optionlabel",{"k-selected":i})},[w(r,o)||""])}},T=function(){return(T=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},D=o.h,V={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:D?function(){return{v3:!!D}}:void 0,computed:{itemClass:function(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick:function(e){this.$emit("itemclick",this.$props.index,e)}},render:function(e){var t=D||e,n=this.$props.selected,i=t("li",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:"option","aria-selected":n},role:"option","aria-selected":n,class:Object(s.classNames)("k-list-item",{"k-selected":n,"k-focus":this.$props.focused}),onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},style:{position:"unset"}},[t("span",{class:"k-list-item-text"},[w(this.$props.dataItem,this.$props.textField).toString()])]);return s.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:i,additionalProps:T(T({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}},M=n(4),N="dropdowns.nodata",R="dropdowns.clear",B=((i={})[R]="clear",i[N]="NO DATA FOUND.",i),P=o,E=P.h,A=P.ref,j=P.inject,L={name:"list",emits:{listclick:null,scroll:null},props:{id:String,show:Boolean,dataItems:Array,value:[Object,String,Number,Boolean,Array],textField:String,valueField:String,optionsGuid:String,wrapperCssClass:String,wrapperStyle:Object,listStyle:Object,skip:Number,focusedIndex:Number,highlightSelected:{type:Boolean,default:!0},itemRender:[String,Function,Object],noDataRender:[String,Function,Object],scroller:Boolean},inject:{kendoLocalizationService:{default:null}},setup:E?function(){return{v3:!!E,listRef:A(null),kendoLocalizationService:j("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=this.v3?this.listRef:this.$refs.list},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=this,n=E||e,i=Object(s.getDefaultSlots)(this),r=Object(M.provideLocalizationService)(this),o=this.$props,a=o.id,l=o.show,u=o.wrapperCssClass,d=o.wrapperStyle,c=o.listStyle,p=(o.listRef,function(){var e=this.$props,t=e.textField,i=e.valueField,r=e.optionsGuid,o=e.skip,s=void 0===o?0:o,a=e.focusedIndex,l=e.highlightSelected,u=e.value,d=e.itemRender,c=Array.isArray(u);return this.$props.dataItems.map((function(e,o){var p=s+o,h=l&&(!c&&C(e,u,i)||c&&-1!==u.findIndex((function(t){return C(t,e,i)})));return n(V,{id:"option-"+r+"-"+p,attrs:this.v3?void 0:{id:"option-"+r+"-"+p,dataItem:e,selected:h,focused:a===o,index:p,textField:t,render:d},dataItem:e,selected:h,focused:a===o,index:p,key:p,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:t,render:d})}),this)}.call(this));return p.length?n("div",{class:u,style:d,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[n("ul",{id:a,attrs:this.v3?void 0:{id:a,role:"listbox","aria-hidden":!l||void 0},role:"listbox","aria-hidden":!l||void 0,class:"k-list-ul",ref:this.v3?function(e){t.listRef=e}:"list",style:c},[p]),i]):function(){var e=this.$props.noDataRender,t=n("div",{class:"k-nodata"},[n("div",[r.toLanguageString(N,B[N])])]);return s.getTemplate.call(this,{h:n,template:e,defaultRendering:t})}.call(this)}},F=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=i-r;if(!(o>n)){for(t=0;t<this.skip&&!(r+n+o<=i);t++)r-=n;if(r=this.validateTranslate(r),this.skip-t<=0&&r>=i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=this.list.children.length;for(t=0;t<o&&!(r+n>=i);t++)r+=n;r=this.validateTranslate(r),t>=o&&this.skip+t>=this.total?(this.translateTo(r),this.changePage(this.total-1,e)):r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.ScrollChange(e),this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight,e)},e}(),z=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return g(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),K={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655700993,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},_=function(){return(_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},H=function(){function e(e){var t=this;this.vs=new F,this.navigation=new z,this.handleItemClick=function(e,n){var i=t.initState();i.event=n,t.component.handleItemSelect(e,i),t.togglePopup(i),t.applyState(i)},this.handleFocus=function(e){if(!t.component.currentFocused){var n=t.initState();n.data.currentFocused=!0,n.events.push({type:"focus"}),n.event=e,t.applyState(n)}},this.filterChanged=function(e,n){var i=t.component.$props,r=i.textField;i.filterable&&n.events.push({type:"filterchange",filter:{field:r,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.$props,i=void 0!==n.opened?n.opened:t.component.currentOpened;void 0===n.opened&&(e.data.currentOpened=!i),i?e.events.push({type:"close"}):(e.events.push({type:"open"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var i=t.initState();i.event=n,t.triggerOnPageChange(i,e.skip,e.take),t.applyState(i)},this.scrollChange=function(e){t.component.$emit("scroll",e)},this.scrollToVirtualItem=function(e,n){var i=t.vs;if(i.enabled=!1,0===e.skip)i.reset();else if(e.skip+e.pageSize===e.total)i.scrollToEnd();else{var r=i.translate;0===r&&(i.calcScrollElementHeight(),r=i.itemHeight*e.skip,i.translateTo(r-i.itemHeight)),i.container&&(i.container.scrollTop=r),t.scrollToItem(n,!0)}setTimeout((function(){return i.enabled=!0}),10)},Object(s.validatePackage)(K),this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange,this.vs.ScrollChange=this.scrollChange}return e.prototype.didMount=function(){var e=this.component.$props,t=e.popupSettings||{},n=e.style||{},i=t.width,r=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),r=!0),r&&this.component.$forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list,i=n?n.children[0]:void 0;if(i&&e>=0){var r=this.vs,o=r.container||n.parentNode;if(o){var s=void 0!==t?t:r.enabled;!function(e,t,n,i,r){var o=e.offsetHeight,s=t*n+(r?i-e.scrollTop:0);if(r){var a=0;s+t>o?a=s+t-o:s<0&&(a=s),0!==a?e.scrollTop+=a:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>o+e.scrollTop?e.scrollTop=s+t-o:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,i.offsetHeight,e,r.translate,s)}}},e.prototype.initState=function(){return{data:{},events:[],event:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&Object.keys(e.data).forEach((function(n){t.component[n]=e.data[n]}));var n=this.component.primitiveValue(),i={event:e.event,component:this.component,target:{name:this.component.$props.name,value:n},value:n};e.events.forEach((function(e){var r=e.type;delete e.type,r&&("change"===r&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(r,_(_({},i),e)))}))},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.$props.virtual;if(i){var r=Math.min(Math.max(0,t),Math.max(0,i.total-n));r!==i.skip&&e.events.push({type:"pagechange",page:{skip:r,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=void 0!==n.opened?n.opened:this.component.currentOpened;e&&s&&this.vs.enabled&&(s.skip>0&&C(e,r[0],o)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!a&&s.skip+s.pageSize<s.total&&C(e,r[r.length-1],o)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}(),W=function(){return(W=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},U=o,q=U.h,G=U.ref,J=s.kendoThemeMaps.sizeMap,X=s.kendoThemeMaps.roundedMap,Y={name:"KendoDropDownList",model:{event:"changemodel"},props:{id:String,title:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},leftRightKeysNavigation:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},delay:{type:Number,default:500},ignoreCase:{type:Boolean,default:!0},iconClassName:String,defaultItem:[Object,String],valueRender:[String,Function,Object],valueMap:Function,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,valueField:String,valuePrimitive:Boolean,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.prevCurrentValue=this.computedValue(),this.currentFocused=void 0,this.currentOpened=void 0,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:q?function(){return{v3:!!q,selectRef:G(null),baseWrapperRef:G(null),kendoAnchorRef:G(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=this.v3?this.selectRef:this.$refs.select,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.filterInput,d=this.$refs.scrollElement;this.$refs.scroller;if(l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),u&&(this.filterInput=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),this.$props.popupSettings.animate||a&&this.onPopupOpened(),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return C(e,c,i)})),f=!C(p,c,i);a&&r?(this.base.scrollToVirtualItem(r,h),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):o&&s&&c&&f&&!this._navigated?this.base.scrollToItem(h):o&&s&&this._navigated&&(this._navigated&&r&&0===r.skip?this.base.vs.reset():this._navigated&&r&&r.skip===r.total-r.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.prevCurrentValue=this.computedValue(),this.setValidity()},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return C(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.base.wrapper&&this.base.wrapper.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),g(e)||void 0===this.$props.defaultItem||(e=this.$props.defaultItem),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return w(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=n.defaultItem,l=o?o.skip:0,u=-1===e&&void 0!==a?a:r[e-l],d=!C(u,this.computedValue(),s);this.triggerOnChange(u,t),d&&this.base.triggerPageChangeCornerItems(u,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.defaultItem,s=n.dataItemKey,a=n.virtual,l=void 0===a?{skip:0,total:0,pageSize:0}:a,u=this.base.vs,d=this.computedValue(),c=r.findIndex((function(e){return C(e,d,s)})),p=this.base.navigation.navigate({current:l.skip+c,max:(u.enabled?l.total:r.length)-1,min:void 0!==o?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},search:function(e){var t=this;clearTimeout(this.typingTimeout),this.$props.filterable||(this.typingTimeout=setTimeout((function(){return t.searchState.word=""}),this.$props.delay),this.selectNext(e))},selectNext:function(e){var t,n=this,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.dataItemKey,a=o.map((function(e,t){return{item:e,itemIndex:t}})),l=this.searchState.word,u=this.searchState.last,d=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),c=a.length,p=Math.max(0,o.findIndex((function(e){return C(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},c+=1,p+=1),a=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(a,p+=d?1:0,t);for(var h,f,v,m=0,g=this.$props,y=g.textField,k=g.ignoreCase;m<c;m++)if(h=w(a[m].item,y),f=d&&b(h,u,k),v=b(h,l,k),f||v){m=a[m].itemIndex;break}if(m!==c){var S=this.base.initState();S.event=e,this.handleItemSelect(m,S),this.applyState(S),this.valueDuringOnChange=void 0}},handleKeyDown:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.leftRightKeysNavigation,o=t.filterable,a=t.disabled,l=t.virtual,u=void 0===l?{skip:0,total:0,pageSize:0}:l,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=e.keyCode,p=c===s.Keys.home||c===s.Keys.end,h=c===s.Keys.up||c===s.Keys.down,f=!d&&(e.altKey&&c===s.Keys.down||c===s.Keys.enter||c===s.Keys.space),v=d&&(e.altKey&&c===s.Keys.up||c===s.Keys.esc),m=r&&(c===s.Keys.left||c===s.Keys.right),g=h||!o&&(m||p),b=this.base.initState();if(b.event=e,!a){if(p&&this.base.vs.enabled)c===s.Keys.home?0!==u.skip?(this.base.triggerOnPageChange(b,0,u.pageSize),this._navigated=!0):this.triggerOnChange(i[0],b):u.skip<u.total-u.pageSize?(this.base.triggerOnPageChange(b,u.total-u.pageSize,u.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],b);else if(d&&c===s.Keys.enter){var y=this.focusedIndex();void 0!==y&&this.handleItemSelect(y,b),this.base.togglePopup(b),e.preventDefault()}else f||v?(this.base.togglePopup(b),e.preventDefault()):g&&(this.onNavigate(b,c),e.preventDefault());this.applyState(b)}},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},handleBlur:function(e){if(!this._skipFocusEvent&&this.currentFocused){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&this.base.togglePopup(n),this.applyState(n)}},handleDefaultItemClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.triggerOnChange(this.$props.defaultItem,t),this.applyState(t)},handleWrapperClick:function(e){var t=this.base.initState();t.event=e,this.currentFocused||(t.data.currentFocused=!0),this.base.togglePopup(t),this.applyState(t)},handleKeyPress:function(e){if(!this.$props.filterable&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.$props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.searchState={word:this.searchState.word+t,last:this.searchState.last+t},this.search(e)}},handleListFilterChange:function(e){var t=this.base.initState();t.event=e,void 0===this.$props.filter&&(t.data.currentText=e.target.value),this.base.filterChanged(e.target.value,t),this.applyState(t)},onPopupOpened:function(){this.filterInput&&this.focusElement(this.filterInput.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.base.wrapper&&e.focusElement(e.base.wrapper)}))},focusedIndex:function(){var e=g(this.$props.filter)?this.$props.filter:this.currentText,t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=void 0===r?{skip:0}:r,s=t.dataItemKey,a=t.textField,l=t.focusedItemIndex,u=this.computedValue(),d=!(i.findIndex((function(e){return C(e,u,s)}))<0&&!this.$props.defaultItem);return!d&&e&&0===o.skip?l?l(i,e,a):i.indexOf(x(i,e,a)):d||0!==o.skip?void 0:0},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},setValidity:function(){this.select&&this.select.setCustomValidity&&this.select.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please select a value from the list!")},triggerOnChange:function(e,t){C(this.computedValue(),e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=this,i=q||e,r=this.$props,o=r.style,l=r.className,u=r.label,c=r.dir,p=r.virtual,h=void 0===p?{skip:0}:p,f=r.size,v=r.rounded,g=r.fillMode,b=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,y=w(this.computedValue(),this.$props.textField),k=!this.$props.validityStyles||this.validity().valid,S=this.base,x=S.vs,O=this.$props.id||this.inputId;x.enabled=void 0!==this.$props.virtual;var T=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),D=this.$props,V=D.dataItemKey,M=D.dataItems,N=void 0===M?[]:M,R=D.disabled,B=D.tabIndex,P=D.loading,E=D.iconClassName,A=s.templateRendering.call(this,this.$props.valueRender,s.getListeners.call(this)),j=this.currentFocused,F=this.primitiveValue(),z=N.findIndex((function(e){return C(e,F,V)})),K=i("span",{class:"k-input-inner"},[i("span",{class:"k-input-value-text"},[y])]),_=s.getTemplate.call(this,{h:i,template:A,defaultRendering:K,additionalProps:W({value:this.computedValue()},this.$data)}),H=function(){var e=this.$props,t=e.textField,n=e.defaultItem;return void 0!==n&&i(I,{defaultItem:n,attrs:this.v3?void 0:{defaultItem:n,textField:t,selected:C(this.computedValue(),n,V)},textField:t,selected:C(this.computedValue(),n,V),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},U=function(){var e=this,t=this.$props.textField,n=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),o=h.skip,a="translateY("+x.translate+"px)";return i(L,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:b,dataItems:N.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:V,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:x.enabled?{transform:a}:void 0,skip:o,itemRender:n,noDataRender:r},show:b,dataItems:N.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:V,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:x.enabled?{transform:a}:void 0,key:"listkey",skip:o,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:x.scrollHandler},itemRender:n,noDataRender:r,onScroll:x.scrollHandler},this.v3?function(){return[Y.call(e)]}:[Y.call(e)])},G=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&i(m,{value:e,attrs:this.v3?void 0:{value:e,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},ref:"filterInput",onChange:this.handleListFilterChange,on:this.v3?void 0:{change:this.handleListFilterChange,keydown:this.handleKeyDown},onKeydown:this.handleKeyDown,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode})},Y=function(){return x.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&(S.vs.skip=h.skip,S.vs.total=h.total,S.vs.pageSize=h.pageSize);var Z=i("span",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,class:Object(s.classNames)("k-dropdownlist k-picker",l,(t={},t["k-picker-"+(J[f]||f)]=f,t["k-rounded-"+(X[v]||v)]=v,t["k-picker-"+g]=g,t["k-focus"]=j,t["k-disabled"]=R,t["k-invalid"]=!k,t["k-loading"]=P,t["k-required"]=this.required,t)),style:u?W(W({},o),{width:void 0}):o,dir:c,attrs:this.v3?void 0:{dir:c,tabIndex:Object(s.getTabIndex)(B,R),accessKey:this.$props.accessKey,role:"listbox","aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":b||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":b?"option-"+this.base.guid+"-"+(z+(h?h.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},onMousedown:b?$:s.noop,on:this.v3?void 0:{mousedown:b?$:s.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:R?s.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabIndex:Object(s.getTabIndex)(B,R),accessKey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:R?s.noop:this.handleWrapperClick,"aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":b||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":b?"option-"+this.base.guid+"-"+(z+(h?h.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},[_,P&&i("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),i(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:f,fillMode:g,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",E)},tabIndex:-1,size:f,fillMode:g,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",E),onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}}}),function(e){var t=this;return i("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:O,tabIndex:-1,"aria-hidden":!0,title:this.$props.label},id:O,ref:this.v3?function(e){t.selectRef=e}:"select",tabIndex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[i("option",{value:this.v3?this.$props.valueMap?this.$props.valueMap.call(void 0,e):e:null,domProps:this.v3?void 0:{value:this.$props.valueMap?this.$props.valueMap.call(void 0,e):e}})])}.call(this,F),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),o=s.getTemplate.call(this,{h:i,template:n}),a=s.getTemplate.call(this,{h:i,template:r}),l=void 0!==T.width?T.width:S.popupWidth;return i(d,{onMousedown:$,on:this.v3?void 0:{mousedown:$,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==c?c:S.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==c?c:S.dirCalculated,width:l,popupSettings:{popupClass:Object(s.classNames)(T.popupClass,"k-list",(e={},e["k-list-"+(J[f]||f)]=f,e["k-virtual-list"]=this.base.vs.enabled,e)),className:T.className,animate:T.animate,anchor:this.anchor,show:b}},width:l,popupSettings:{popupClass:Object(s.classNames)(T.popupClass,"k-list",(e={},e["k-list-"+(J[f]||f)]=f,e["k-virtual-list"]=this.base.vs.enabled,e)),className:T.className,animate:T.animate,anchor:this.anchor,show:b},onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[G.call(t),H.call(t),o&&i("div",{class:"k-list-header"},[o]),U.call(t),a&&i("div",{class:"k-list-footer"},[a])]}:[G.call(t),H.call(t),o&&i("div",{class:"k-list-header"},[o]),U.call(t),a&&i("div",{class:"k-list-footer"},[a])])}.call(this)]);return u?i("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[Z,this.$props.label?O?i("label",{for:O,attrs:this.v3?void 0:{for:O},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):Z}},Z=Y,Q=o,ee=Q.h,te=Q.ref,ne={name:"search-bar",emits:{change:null,keydown:null,focus:null,blur:null},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,describedby:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String},data:function(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated:function(){var e=this.$props,t=e.value,n=e.suggestedText,i=e.focused;this.input||(this.input=this.$refs.input);var r=this.input,o=this.$data.prevValue!==t||n!==this.prevSuggestedText,a=o&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&r&&s.canUseDOM&&document.activeElement!==r&&r.focus(),n&&o&&!a&&r&&r.setSelectionRange(t.length-n.length,t.length)},setup:ee?function(){return{v3:!!ee,inputRef:te(null)}}:void 0,mounted:function(){this.input=this.v3?this.inputRef:this.$refs.input},methods:{onChange:function(e){this.$emit("change",e)},onBlur:function(e){this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)},onKeyDown:function(e){this.$emit("keydown",e)},clearButtonClick:function(e){this.$emit("clearbuttonclick",e)}},render:function(e){var t=this;return(ee||e)("input",{autoComplete:"off",attrs:this.v3?void 0:{autoComplete:"off",id:this.$props.id,type:"text",placeholder:this.$props.placeholder,tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,role:"listbox",name:this.$props.name,size:this.$props.size?this.$props.size:20,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readOnly:this.$props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-owns":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy},id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,role:"listbox",name:this.$props.name,value:this.v3?this.$props.value:null,domProps:this.v3?void 0:{value:this.$props.value},size:this.$props.size?this.$props.size:20,onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown,focusin:this.onFocus,blur:this.onBlur},ref:this.v3?function(e){t.inputRef=e}:"input",onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readOnly:this.$props.readOnly||void 0,"aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-owns":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}},ie=o,re=ie.h,oe=ie.inject,se={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:re?function(){return{v3:!!re,kendoLocalizationService:oe("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=re||e,n=Object(M.provideLocalizationService)(this).toLanguageString(R,B[R]);return t("span",{class:"k-clear-value",role:"button",attrs:this.v3?void 0:{role:"button",tabIndex:-1,title:n},onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,tabIndex:-1,title:n,key:"clearbutton"},[t("span",{class:"k-icon k-i-x"})])}},ae=function(){return(ae=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},le=o,ue=le.h,de=le.ref,ce=s.kendoThemeMaps.sizeMap,pe=s.kendoThemeMaps.roundedMap,he={name:"KendoComboBox",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},props:{id:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},iconClassName:String,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},suggest:{type:Boolean,default:!1},allowCustom:{type:Boolean,default:!1},clearButton:{type:Boolean,default:!0},ariaLabelledBy:String,ariaDescribedBy:String,valueField:String,valuePrimitive:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1,suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.prevCurrentValue=this.computedValue(),this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:ue?function(){return{v3:!!ue,inputRef:de(null),elementRef:de(null),kendoAnchorRef:de(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.scrollElement,d=this.computedValue();if(this.valueOnDidUpdate=d,l&&(this.base.vs.list=l.list,this.base.list=l.list),u&&(this.base.vs.scrollElement=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.prevCurrentValue,p=n.findIndex((function(e){return C(e,d,i)})),h=!C(c,d,i);a&&r?(this.base.scrollToVirtualItem(r,p),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):o&&s&&d&&h&&this.base.scrollToItem(p)}a&&this.input&&this.input.focus(),this.prevCurrentValue=this.computedValue(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return C(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return w(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=r[e-(o?o.skip:0)],l=!C(a,this.computedValue(),s);this.triggerOnChange(a,t),void 0!==this.currentText&&(t.data.currentText=void 0),l&&this.base.triggerPageChangeCornerItems(a,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=void 0===o?{skip:0}:o,a=this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedIndex(),u=this.base.vs,d=this.computedValue();if(this.suggested="",-1===l||g(d))if(""===a)this.handleItemSelect(0,e);else{var c=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:c,max:(u.enabled?u.total:r.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},toggleBtnClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.applyState(t)},applyValueOnEnter:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=w(this.computedValue(),s)===e?this.index:k(o,e,s),d=-1!==u,c=void 0;if(this.suggested="",d)c=o[u];else{if(!a)return this.selectFocusedItem(e,t);c=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(c,t),l&&this.base.togglePopup(t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.applyState(t)},applyValueOnRejectSuggestions:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=w(this.computedValue(),s);if(this.suggested="",e===u||""===e&&!g(u))return l&&this.base.togglePopup(t),this.applyState(t);var d=k(o,e,s,!0),c=null;-1!==d?c=o[d]:a&&(c=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(c,t),void 0!==this.currentText&&(t.data.currentText=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},selectFocusedItem:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.virtual,l=void 0===a?{skip:0}:a,u=i.focusedItemIndex,d=void 0===u?y:u,c=l.skip,p=""===e&&0===c?0:d(o,e,s);return-1!==p?this.handleItemSelect(p+c,t):(this.triggerOnChange(null,t),void 0!==this.currentText&&(t.data.currentText=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.currentFocused=!1,t.events.push({type:"blur"}),t.event=e,this.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.base.initState();if(r.event=e,!e.altKey&&(n===s.Keys.up||n===s.Keys.down))return e.preventDefault(),this.onNavigate(r,n),void this.applyState(r);var o=function(){e.preventDefault(),t.base.togglePopup(r),t.applyState(r)};i?e.altKey&&n===s.Keys.up?o():n===s.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,r)):n===s.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,r):e.altKey&&n===s.Keys.down&&o()},inputOnChange:function(e){var t=this.base.initState();t.event=e;var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=e.currentTarget,r=i.value;if(this.$props.suggest){var o=i.selectionEnd===r.length,s=void 0!==this.$props.filter?this.$props.filter:this.currentText;g(s)||(s=w(this.computedValue(),this.$props.textField)||"");var a=s&&s===r,l=s&&s.length>r.length;a||l||!o?this.suggested="":this.suggestValue(r)}void 0===this.$props.filter&&(t.data.currentText=r),void 0!==this.currentFocusedItem&&(t.data.focusedItem=void 0),n||this.base.togglePopup(t),this.base.filterChanged(r,t),this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState();t.event=e,e.stopPropagation(),this.suggested="",this.base.filterChanged("",t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.triggerOnChange(null,t),(void 0!==this.$props.opened?this.$props.opened:this.currentOpened)&&this.base.togglePopup(t),this.applyState(t)},getFocusedIndex:function(){var e=this.computedValue(),t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=t.dataItemKey,s=t.virtual,a=void 0===s?{skip:0}:s,l=t.focusedItemIndex,u=void 0===l?y:l,d=this.$props.filter?this.$props.filter:this.currentText;return g(e)&&void 0===d?i.findIndex((function(t){return C(t,e,o)})):d?u(i,d,r):0===a.skip?0:-1},suggestValue:function(e){var t=this.$props,n=t.dataItems,i=t.textField;this.suggested=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var r=t[y(t,e,n)];if(r){var o=w(r,n);e.toLowerCase()!==o.toLowerCase()&&(i=o.substring(e.length))}}return i}(e,n,i)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},triggerOnChange:function(e,t){var n=this.computedValue();!g(n)&&!g(e)||C(n,e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=this,i=ue||e,r=this.$props,o=r.dir,l=r.disabled,u=r.clearButton,c=r.label,p=r.textField,h=r.className,f=r.style,v=r.loading,m=r.iconClassName,b=r.virtual,y=r.size,k=r.fillMode,S=r.rounded,x=this.currentFocused,$=!this.$props.validityStyles||this.validity().valid,O=void 0!==this.$props.filter?this.$props.filter:this.currentText,I=w(this.computedValue(),p),T=g(O)?O:I,D=u&&(!!T||g(this.computedValue())),V=this.base,M=V.vs,N=this.$props.id||this.inputId,R=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);M.enabled=void 0!==b,void 0!==b&&(M.skip=b.skip,M.total=b.total,M.pageSize=b.pageSize);var B=function(){var e=this,t=this.$props,n=t.dataItemKey,r=t.dataItems,o=void 0===r?[]:r,a=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),l=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this));b||(b={skip:0});var u=b.skip,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c="translateY("+M.translate+"px)",h=d?this.getFocusedIndex():void 0,f=g(O)&&O!==I?null:this.computedValue();return i(L,{id:V.listBoxId,attrs:this.v3?void 0:{id:V.listBoxId,show:d,dataItems:o,focusedIndex:h,value:f,textField:p,valueField:n,optionsGuid:V.guid,wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:M.enabled?{transform:c}:void 0,skip:u,itemRender:a,noDataRender:l},show:d,dataItems:o,focusedIndex:h,value:f,textField:p,valueField:n,optionsGuid:V.guid,ref:"list",wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:M.enabled?{transform:c}:void 0,key:"listkey",skip:u,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:M.scrollHandler},itemRender:a,noDataRender:l,onScroll:M.scrollHandler},this.v3?function(){return[P.call(e)]}:[P.call(e)])},P=function(){return M.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})},E=i("span",{class:Object(s.classNames)("k-combobox k-input",(t={},t["k-input-"+(ce[y]||y)]=y,t["k-rounded-"+(pe[S]||S)]=S,t["k-input-"+k]=k,t["k-invalid"]=!$,t["k-loading"]=v,t["k-required"]=this.required,t["k-disabled"]=l,t["k-focus"]=x&&!l,t),h),ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,style:c?ae(ae({},f),{width:void 0}):f,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var n=this,r=this.$props,o=r.placeholder,s=r.tabIndex,a=r.dataItems,u=void 0===a?[]:a,d=r.dataItemKey;b||(b={skip:0});var c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,u.findIndex((function(e){return C(e,p,d)})));return this.suggested&&!C(this.valueOnDidUpdate,p,d)&&(this.suggested=""),i(ne,{id:t,attrs:this.v3?void 0:{id:t,placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,disabled:l,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+b.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,ref:this.v3?function(e){n.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.inputOnChange,focus:this.base.handleFocus,blur:this.handleBlur},onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:l,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+b.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,T||"",N),D&&!v&&i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),v&&i("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),i(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:y,fillMode:k,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",m)},tabIndex:-1,size:y,fillMode:k,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",m),onClick:this.toggleBtnClick,on:this.v3?void 0:{click:this.toggleBtnClick,mousedown:function(e){return e.preventDefault()}},onMousedown:function(e){return e.preventDefault()}}),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:i,template:n}),l=s.getTemplate.call(this,{h:i,template:r}),u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=void 0!==R.width?R.width:V.popupWidth;return i(d,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:c,attrs:this.v3?void 0:{width:c,popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(ce[y]||y)]=y,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==o?o:this.base.dirCalculated},popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(ce[y]||y)]=y,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&i("div",{class:"k-list-header"},[a]),B.call(t),l&&i("div",{class:"k-list-footer"},[l])]}:[a&&i("div",{class:"k-list-header"},[a]),B.call(t),l&&i("div",{class:"k-list-footer"},[l])])}.call(this)]);return c?i("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[E,this.$props.label?N?i("label",{for:N,attrs:this.v3?void 0:{for:N},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):E}},fe=he,ve=function(){return(ve=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},me=o,ge=me.h,be=me.ref,ye=s.kendoThemeMaps.sizeMap,ke=s.kendoThemeMaps.roundedMap,we={name:"KendoAutoComplete",model:{event:"changemodel"},props:{id:String,defaultValue:{type:[String],default:void 0},name:String,modelValue:{type:[String],default:void 0},value:{type:[String],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},readonly:Boolean,accessKey:String,dataItems:Array,textField:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],suggest:{type:[Boolean,String],default:!1},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,focusedItem:void 0,searchState:{word:"",last:""},valueDuringOnChange:{},suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:ge?function(){return{v3:!!ge,inputRef:be(null),kendoAnchorRef:be(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},dataItems:function(e,t){this.prevData=t},focusedItem:function(e,t){this.prevFocusedItem=t}},updated:function(){var e=this.$props.dataItems,t=void 0===e?[]:e,n=this.focusedIndex(),i=t[n],r=this.prevData!==t,o=void 0!==i&&this.prevFocusedItem!==i,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=!(void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened)&&s,l=this.$refs.list;l&&(this.base.vs.list=l.list,this.base.list=l.list),t.length&&(s&&(o||r)||a)&&this.base.scrollToItem(n),this.setValidity()},computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?w(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props.dataItems,i=w((void 0===n?[]:n)[e],this.$props.textField);this.triggerOnChange(i,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=r[e];C(this.$data.focusedItem,s,o)||(t.data.focusedItem=s)},togglePopup:function(e){this.base.togglePopup(e)},onNavigate:function(e,t){var n=this,i=this.computedValue(),r=this.$props,o=r.dataItems,s=void 0===o?[]:o,a=r.textField,l=r.focusedItemIndex,u=void 0!==this.$data.focusedItem?s.findIndex((function(e){return C(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf(x(s,i,a)),d=this.base.navigation.navigate({keyCode:t,current:u,max:s.length-1,min:0});void 0!==d&&this.itemFocus(d,e),this.applyState(e)},applyInputValue:function(e,t,n){var i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.$props,o=r.dataItems,a=void 0===o?[]:o,l=r.textField;if(this.suggested="",i&&n===s.Keys.enter){var u=w(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}i&&this.togglePopup(t),this.applyState(t)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},onChangeHandler:function(e){var t=this.base.initState(),n=e.target,i=n.value,r=n.selectionEnd===i.length;t.event=e;var o=this.suggested,s=this.computedValue(),a=s&&o&&s.substring(0,s.length-o.length),l=a&&a===i,u=a&&a.length>i.length,d=this.$props.suggest,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==d&&!1!==d){l||u||!r?this.suggested="":this.suggestValue(i);var p=i+this.suggested,h={userInput:i,value:this.suggested};this.triggerOnChange(p,t,{suggestion:h})}else this.suggested="",this.triggerOnChange(i,t);(!c&&i||c&&!i)&&this.togglePopup(t),t.data.focusedItem=void 0,this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState(),n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e;this.suggested="",this.triggerOnChange("",t),void 0!==this.$data.focusedItem&&(t.data.focusedItem=void 0),n&&this.togglePopup(t),this.applyState(t)},onInputKeyDown:function(e){var t=e.keyCode,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=e;var r=function(){n&&e.preventDefault()};t===s.Keys.enter||t===s.Keys.esc?(r(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):t!==s.Keys.up&&t!==s.Keys.down||(r(),this.onNavigate(i,t))},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.focused=!1,t.events.push({type:"blur"}),t.event=e,this.applyInputValue(e.currentTarget.value,t),this.currentFocused=!1}},triggerOnChange:function(e,t,n){(this.computedValue()!==e||n)&&(t.data.currentValue=e,this.valueDuringOnChange=e,t.events.push(ve({type:"change"},n||{})))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0},suggestValue:function(e){if(this.suggested="",e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=i[y(i,e,r)];if(o){var s=w(o,r);e.toLowerCase()!==s.toLowerCase()&&(this.suggested=s.substring(e.length))}}},focusedIndex:function(e){var t=this,n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=n.focusedItemIndex,a=void 0!==e?e:this.computedValue();return void 0!==this.$data.focusedItem?r.findIndex((function(e){return C(e,t.$data.focusedItem,o)})):s?s(r,a,o):Math.max(0,r.indexOf(x(r,a,o)))}},render:function(e){var t,n=this,i=ge||e,r=this.$props,o=r.dir,a=r.disabled,l=r.label,u=r.size,c=r.rounded,p=r.fillMode,h=r.style,f=r.loading,v=r.suggest,m=!this.$props.validityStyles||this.validity().valid,g=this.currentFocused,b=this.base,y=this.computedValue(),k=!f&&!!y,w=this.$props.id||this.inputId,S=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof v&&(this.suggested=v);var C=function(){var e=this.$props,t=e.textField,n=e.dataItems,r=void 0===n?[]:n,o=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),a=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return i(L,{id:b.listBoxId,attrs:this.v3?void 0:{id:b.listBoxId,show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:b.guid,wrapperStyle:{maxHeight:S.height},wrapperCssClass:"k-list-content",itemRender:o,noDataRender:a},show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:b.guid,ref:"list",wrapperStyle:{maxHeight:S.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:o,noDataRender:a})},x=i("span",{class:Object(s.classNames)("k-autocomplete k-input",(t={},t["k-input-"+(ye[u]||u)]=u,t["k-rounded-"+(ke[c]||c)]=c,t["k-input-"+p]=p,t["k-invalid"]=!m,t["k-focus"]=g&&!a,t["k-loading"]=f,t["k-required"]=this.required,t["k-disabled"]=a,t)),ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,style:l?ve(ve({},h),{width:void 0}):h,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var n=this,r=this.$props,o=r.placeholder,s=r.tabIndex,l=r.readonly,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return i(ne,{id:t,attrs:this.v3?void 0:{id:t,placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:g,name:this.$props.name,disabled:a,readOnly:l,expanded:u,owns:b.listBoxId,activedescendant:"option-"+b.guid+"-"+this.focusedIndex(),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:o,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:g,name:this.$props.name,ref:this.v3?function(e){n.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:b.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:b.handleFocus,onBlur:this.handleBlur,disabled:a,readOnly:l,expanded:u,owns:b.listBoxId,activedescendant:"option-"+b.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,y||"",w),function(e){return e?i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):i("span")}.call(this,k),function(e){return e?i("span",{class:"k-icon k-input-loading-icon k-i-loading"}):i("span")}.call(this,f),function(){var e,t=this,n=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:i,template:n}),l=s.getTemplate.call(this,{h:i,template:r}),c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=void 0!==S.width?S.width:b.popupWidth;return i(d,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:p,attrs:this.v3?void 0:{width:p,popupSettings:{animate:S.animate,anchor:this.anchor,show:c,popupClass:Object(s.classNames)(S.popupClass,"k-list",(e={},e["k-list-"+(ye[u]||u)]=u,e)),className:S.className,appendTo:S.appendTo},dir:void 0!==o?o:this.base.dirCalculated},ref:"container",popupSettings:{animate:S.animate,anchor:this.anchor,show:c,popupClass:Object(s.classNames)(S.popupClass,"k-list",(e={},e["k-list-"+(ye[u]||u)]=u,e)),className:S.className,appendTo:S.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&i("div",{class:"k-list-header"},[a]),C.call(t),l&&i("div",{class:"k-list-footer"},[l])]}:[a&&i("div",{class:"k-list-header"},[a]),C.call(t),l&&i("div",{class:"k-list-footer"},[l])])}.call(this)]);return l?i("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[x,this.$props.label?w?i("label",{for:w,attrs:this.v3?void 0:{for:w},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):x}},Se=we,Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},xe=o,$e=xe.h,Oe=(xe.ref,function(e){return e.preventDefault()}),Ie=function(e){return e.stopPropagation()},Te={name:"TagList",props:{dataItems:Array,guid:String,focused:Object,tagRender:[String,Function,Object],tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{wrapperClass:function(){var e,t=this.$props,n=t.size,i=t.disabled;return(e={"k-chip-list":!0})["k-chip-list-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-selection-single"]=!0,e["k-disabled"]=i,e},chipClass:function(){var e,t=this.$props,n=t.size,i=t.disabled,r=t.tagsRounded,o=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-chip-"+o]=o,e["k-chip-"+o+"-base"]=Boolean(o),e}},setup:$e?function(){return{v3:!!$e}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=$e||e,n=this.$props,i=n.dataItems,r=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+r},id:"tagslist-"+r},[i.map((function(e,n){var o=this,a="tag-"+r+"-"+e.text.toString().replace(/\s+/g,"-"),l=t("div",{class:Ce(Ce({},this.chipClass),{"k-focus":e===this.$props.focused}),key:a,id:a,attrs:this.v3?void 0:{id:a,"aria-selected":!0,role:"option","aria-setsize":i.length},onMousedown:Oe,on:this.v3?void 0:{mousedown:Oe,click:Ie},onClick:Ie,"aria-selected":!0,role:"option","aria-setsize":i.length},[t("span",{class:"k-chip-content"},[e.text]),t("span",{"aria-label":"delete",attrs:this.v3?void 0:{"aria-label":"delete"},class:"k-select",onClick:function(t){return o.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return o.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return s.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:l,additionalProps:Ce(Ce({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}};!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(r||(r={}));var De,Ve=function(){return(Ve=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Me=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ne=o,Re=Ne.h,Be=Ne.ref,Pe=s.kendoThemeMaps.sizeMap,Ee=s.kendoThemeMaps.roundedMap,Ae=function(e){return e.preventDefault()},je=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!C(e[i],t[i],n))return!1;return!0}(e.data,t.data,n))},Le=function(e){return e===De.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(De||(De={}));var Fe={name:"KendoMultiSelect",emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},model:{event:"changemodel"},props:{autoClose:{type:Boolean,default:!0},allowCustom:Boolean,modelValue:Array,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,label:String,loading:Boolean,name:String,value:Array,defaultValue:Array,valueField:String,valuePrimitive:Boolean,dataItemKey:String,placeholder:String,tags:Array,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},tagRender:[String,Function,Object],id:String,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,virtual:{type:Object,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},setup:Re?function(){return{v3:!!Re,inputRef:Be(null),kendoAnchorRef:Be(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||w(this.computedValue()[0],this.$props.textField);return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!(t&&0!==t),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},created:function(){this.valuesItemsDuringOnChange=null,this._tags=[],this._skipFocusEvent=!1,this.scrollToFocused=!1,this.base=new H(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:r.PopupList}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0)}},updated:function(){var e=this.$props.virtual,t=e?e.skip:0,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,r=!i&&n,o=i&&!n,s=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),a=this.$refs.list,l=this.$refs.scrollElement;if(a&&(this.base.vs.list=a.list,this.base.list=a.list),l&&(this.base.vs.scrollElement=l),a&&this.dataItems.length&&this.base.vs.scrollerRef(a.$el),!s.animate&&o&&this.onPopupClosed(),e&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.getFocusedState(),d=u.focusedItem,c=u.focusedIndex;r&&e?(this.base.scrollToVirtualItem(e,c-t),this.prevCurrentOpened=!0):r&&!e?(this.base.scrollToItem(c),this.prevCurrentOpened=!0):n&&i&&d&&this.scrollToFocused&&this.base.scrollToItem(c-t)}this.scrollToFocused=!1,this.searchBarRef(),this.setValidity()},mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.element=this.v3?this.kendoAnchorRef:this.$refs[this.anchor],this.base.didMount(),this.searchBarRef(),this.setValidity()},methods:{computedValue:function(){var e=[];return this.valuesItemsDuringOnChange?e.push.apply(e,this.valuesItemsDuringOnChange):this.$props.value?e.push.apply(e,this.$props.value):void 0!==this.$props.modelValue?e.push.apply(e,this.$props.modelValue):this.currentValue?e.push.apply(e,this.currentValue):this.$props.defaultValue&&e.push.apply(e,this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this;return t.map((function(t){var i=n.dataItems.findIndex((function(n){return w(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return w(t,e.valueField)}));return this.valuePrimitive?n:t},validity:function(){var e=void 0!==this.$props.validationMessage,t=this.computedValue(),n=!this.$props.required||null!==t&&t.length>0&&void 0!==t;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:n,valueMissing:null===t}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=this.computedValue(),l=r[e-(s?s.skip:0)],u=a.findIndex((function(e){return C(e,l,o)})),d=[];-1!==u?(d=a).splice(u,1):d=Me(a,[l]),(void 0!==this.$props.filter?this.$props.filter:this.currentText)&&(this.currentText&&(t.data.currentText=""),this.base.filterChanged("",t)),void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.triggerOnChange(d,t),this.base.triggerPageChangeCornerItems(l,t)},onTagDelete:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=t,n&&this.base.togglePopup(i),this.currentFocused||(i.data.currentFocused=!0);var r=this.computedValue();S(r,e,this.$props.dataItemKey),this.triggerOnChange(r,i),this.applyState(i)},onNavigate:function(e,t){var n=this.$props,i=n.allowCustom,r=n.dataItems,o=void 0===r?[]:r,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,u=this.getFocusedState(),d=u.focusedType,c=u.focusedIndex,p=i&&l,h=Le(d),f=this.base,v=f.vs;if(a&&t===s.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:c,max:(v.enabled?v.total:o.length)-1,min:p?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,s=n.allowCustom,a=n.virtual,l=a?a.skip:0,u=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=s&&u,p=o[e-l];p&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=r.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(p,t)},searchBarRef:function(){var e=this;this.input&&this.currentFocused&&setTimeout((function(){return e.input.focus()}),0)},onChangeHandler:function(e){var t=this.base.initState(),n=e.currentTarget.value,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e,void 0===this.$props.filter&&(t.data.currentText=n),t.data.currentFocusedIndex=void 0,i||this.base.togglePopup(t),this.base.filterChanged(n,t),this.applyState(t)},clearButtonClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,e.stopPropagation(),this.computedValue().length>0&&this.triggerOnChange([],n),void 0!==this.currentFocusedIndex&&(n.data.currentFocusedIndex=void 0),t&&this.base.togglePopup(n);var i=void 0!==this.$props.filter?this.$props.filter:this.currentText;g(i)&&""!==i&&this.base.filterChanged("",n),this.currentText&&(n.data.currentText=""),this.applyState(n)},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.filter?this.$props.filter:this.currentText,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.getFocusedState().focusedItem,a=this.base.initState();if(a.event=e,!i&&this.computedValue().length>0&&(n===s.Keys.left||n===s.Keys.right||n===s.Keys.home||n===s.Keys.end||n===s.Keys.delete||n===s.Keys.backspace))return this.onTagsNavigate(e,a);var l=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};r?e.altKey&&n===s.Keys.up?l():n===s.Keys.up||n===s.Keys.down?(e.preventDefault(),this.onNavigate(a,n)):n===s.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===o?this.customItemSelect(e):this.selectFocusedItem(e)):n===s.Keys.esc&&l():e.altKey&&n===s.Keys.down&&l()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,o=this._tags,a=this.$props.dataItemKey,l=i?o.findIndex((function(e){return je(e,i,a)})):-1,u=void 0,d=-1!==l;if(n===s.Keys.left)u=o[l=d?Math.max(0,l-1):o.length-1];else if(n===s.Keys.right)l===o.length-1?u=void 0:d&&(u=o[l=Math.min(o.length-1,l+1)]);else if(n===s.Keys.home)u=o[0];else if(n===s.Keys.end)u=o[o.length-1];else if(n===s.Keys.delete){if(d){var c=this.computedValue();S(c,o[l].data,a),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.computedValue();if(d)S(c,o[l].data,a),this.triggerOnChange(c,t);else if(!d&&o.length){var p=o.pop();S(c,p.data,a),this.triggerOnChange(c,t)}}u!==i&&(t.data.currentFocusedTag=u,t.data.activedescendant=r.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=Me(e)),this.valuesItemsDuringOnChange=[],this.setItems(e,this.valuesItemsDuringOnChange),t.events.push({type:"change"})},selectFocusedItem:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=this.getFocusedState().focusedIndex;void 0!==i[o-(r?r.skip:0)]&&this.handleItemClick(o,e)},setItems:function(e,t){t.length=0,t.push.apply(t,e)},getFocusedState:function(){var e,t=this.currentFocusedIndex,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props,r=i.allowCustom,o=i.dataItems,s=void 0===o?[]:o,a=i.dataItemKey,l=i.virtual,u=i.textField,d=i.focusedItemIndex,c=void 0===d?y:d,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:De.ListItem};var h=this.computedValue();if(r&&n)return{focusedItem:null,focusedIndex:-1,focusedType:De.CustomItem};if(n)return{focusedItem:s[e=c(s,n,u)],focusedIndex:e+p,focusedType:De.ListItem};if(h.length){var f=h[h.length-1];return e=s.findIndex((function(e){return C(e,f,a)})),void 0!==s[e]?{focusedIndex:e+p,focusedItem:s[e],focusedType:De.ListItem}:{focusedType:De.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:De.ListItem}:{focusedType:De.None,focusedIndex:-1}},customItemSelect:function(e){var t,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props.textField;if(n){var r=this.base.initState();r.event=e;var o=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(r.data.currentText=""),r.data.currentFocusedIndex=void 0,this.base.filterChanged("",r);var s=Me(this.computedValue(),[o]);this.triggerOnChange(s,r),this.base.togglePopup(r),this.applyState(r)}},handleWrapperClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.input;!t&&n&&this.focusElement(n);var i=this.base.initState();i.event=e,this.currentFocused||(i.events.push({type:"focus"}),i.data.currentFocused=!0),this.base.togglePopup(i),this.applyState(i)},handleItemClick:function(e,t){var n=this.base.initState();n.event=t,this.handleItemSelect(e,n),this.$props.autoClose&&this.base.togglePopup(n),this.applyState(n)},handleBlur:function(e){if(this.currentFocused&&!this._skipFocusEvent){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState(),i=this.$props,r=i.allowCustom,o=i.filterable;n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&(this.currentOpened&&(n.data.currentOpened=!1),n.events.push({type:"close"})),r||o||!this.currentText||(n.data.currentText=""),this.applyState(n)}},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},onPopupOpened:function(){this.input&&this.currentFocused&&this.focusElement(this.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.focusElement(e.input)}),0)},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},applyState:function(e){this.base.applyState(e),this.valuesItemsDuringOnChange=null},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},focus:function(){this.input&&this.input.focus()}},render:function(e){var t,n=this,i=Re||e,o=this.$props,a=o.style,l=o.label,u=o.dir,c=o.disabled,p=o.tags,h=o.textField,f=o.dataItemKey,v=o.virtual,m=o.loading,g=o.size,b=o.fillMode,y=o.rounded,k=o.tagsRounded,S=this.currentFocused,C=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),x=this.currentFocusedTag,O=this.computedValue(),I=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",T=!m&&(!!I||O.length>0),D=this.base.vs,V=this.$props.id||this.inputId,M=s.templateRendering.call(this,this.$props.tagRender,s.getListeners.call(this));D.enabled=void 0!==v,void 0!==v&&(D.skip=v.skip,D.total=v.total,D.pageSize=v.pageSize);var N=[];void 0===p?this.computedValue().forEach((function(e){N.push({text:w(e,h),data:[e]})})):N.push.apply(N,p),this.setItems(N,this._tags);var R=!this.$props.validityStyles||this.validity().valid,B=function(){var e=this,t=this.$props.dataItems,n=void 0===t?[]:t,r=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),o=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),a=v?v.skip:0,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=this.getFocusedState().focusedIndex,d="translateY("+D.translate+"px)";return i(L,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:l,dataItems:n.slice(),focusedIndex:u-a,value:this.computedValue(),textField:h,valueField:f,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:d}:void 0,skip:a,itemRender:r,noDataRender:o},show:l,dataItems:n.slice(),focusedIndex:u-a,value:this.computedValue(),textField:h,valueField:f,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:d}:void 0,key:"listKey",skip:a,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:D.scrollHandler},itemRender:r,noDataRender:o,onScroll:D.scrollHandler},this.v3?function(){return[P.call(e)]}:[P.call(e)])},P=function(){return D.enabled&&i("div",{ref:"scrollElement",key:"scrollElementKey"})},E=i("span",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this.anchor,class:Object(s.classNames)("k-multiselect","k-input",(t={},t["k-input-"+(Pe[g]||g)]=g,t["k-rounded-"+(Ee[y]||y)]=y,t["k-input-"+b]=b,t["k-focus"]=S&&!c,t["k-disabled"]=c,t["k-invalid"]=!R,t["k-loading"]=m,t["k-required"]=this.required,t)),style:l?Ve(Ve({},a),{width:void 0}):a,dir:u,attrs:this.v3?void 0:{dir:u},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:$},onClick:this.handleWrapperClick,onMousedown:$},[N.length>0&&i(Te,{tagsRounded:k,attrs:this.v3?void 0:{tagsRounded:k,size:g,fillMode:b,tagRender:M,dataItems:N,guid:this.base.guid,focused:x?N.find((function(e){return je(e,x,f)})):void 0},size:g,fillMode:b,tagRender:M,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:N,guid:this.base.guid,focused:x?N.find((function(e){return je(e,x,f)})):void 0}),function(e){var t=this,n=this.activedescendant,o=this.$props.placeholder,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=this.getFocusedState().focusedIndex,l=0!==O.length||I?void 0:o,u=n===r.TagsList&&void 0!==x?"tag-"+this.base.guid+"-"+x.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+a;return i(ne,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((l||"").length,I.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:I,disabled:c,expanded:s,owns:this.base.listBoxId,activedescendant:u,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((l||"").length,I.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:I,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,blur:this.handleBlur,keydown:this.onInputKeyDown},onBlur:this.handleBlur,onKeydown:this.onInputKeyDown,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:c,expanded:s,owns:this.base.listBoxId,activedescendant:u,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,V),function(e){return e?i(se,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):i("span")}.call(this,T),function(e){return e?i("span",{class:"k-icon k-input-loading-icon k-i-loading"}):i("span")}.call(this,m),function(){var e,t=this,n=this.base,r=this.$props,o=r.allowCustom,a=r.dataItems,l=void 0===a?[]:a,c=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),p=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),h=s.getTemplate.call(this,{h:i,template:c}),f=s.getTemplate.call(this,{h:i,template:p}),m=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,b=void 0!==this.$props.filter?this.$props.filter:this.currentText,y=void 0!==C.width?C.width:n.popupWidth,k=this.getFocusedState().focusedType,w=o&&b&&i("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[i("div",{class:Object(s.classNames)("k-item k-custom-item",{"k-focus":Le(k)})},[b,i("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return i(d,{ref:"container",onMousedown:Ae,on:this.v3?void 0:{mousedown:Ae,blur:this.handleBlur},dir:void 0!==u?u:n.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==u?u:n.dirCalculated,width:y,popupSettings:{animate:C.animate,anchor:this.anchor,show:m,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(Pe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,appendTo:C.appendTo},itemsCount:l.length},onBlur:this.handleBlur,width:y,popupSettings:{animate:C.animate,anchor:this.anchor,show:m,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(Pe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,appendTo:C.appendTo},itemsCount:l.length},this.v3?function(){return[h&&i("div",{class:"k-list-header"},[h]),w,B.call(t),f&&i("div",{class:"k-list-footer"},[f]),v&&h]}:[h&&i("div",{class:"k-list-header"},[h]),w,B.call(t),f&&i("div",{class:"k-list-footer"},[f]),v&&h])}.call(this)]);return l?i("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[E,this.$props.label?V?i("label",{for:V,attrs:this.v3?void 0:{for:V},class:"k-label"},[this.$props.label]):i("span",{class:"k-label"},[this.$props.label]):null]):E}},ze=Fe},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return w}));var i,r=n(1),o=n(0),s=n(7),a=((i={})["labels.optional"]="(Optional)",i),l=n(4),u={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701016,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},d=r,c=d.h,p=d.inject,h=(Boolean,Boolean,Boolean,r.h,r.h,r),f=h.h,v=h.inject,m={name:"KendoFloatingLabel",props:{label:String,editorId:String,editorValue:[String,Boolean,Number],editorPlaceholder:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,id:String,optional:Boolean},data:function(){return{focused:!1}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(u)},computed:{spanClassNames:function(){return{"k-floating-label-container":!0,"k-focus":this.focused,"k-empty":!this.$props.editorPlaceholder&&!this.$props.editorValue&&0!==this.$props.editorValue,"k-text-disabled":this.$props.editorDisabled,"k-rtl":"rtl"===this.$props.dir}},labelClassNames:function(){return{"k-label":!0,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":this.$props.editorDisabled}}},methods:{handleFocus:function(){this.focused=!0},handleBlur:function(){this.focused=!1}},setup:f?function(){return{v3:!!f,kendoLocalizationService:v("kendoLocalizationService",{})}}:void 0,render:function(e){var t=f||e,n=Object(o.getDefaultSlots)(this),i=this.$props,r=i.label,s=i.editorId,u=i.id,d=i.optional,c=Object(l.provideLocalizationService)(this),p=d?c.toLanguageString("labels.optional",a["labels.optional"]):"",h=p&&t("span",{class:"k-label-optional"},[p]);return t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[n,r?s?t("label",{id:u,attrs:this.v3?void 0:{id:u,for:s},for:s,class:this.labelClassNames},[r,h]):t("span",{id:u,attrs:this.v3?void 0:{id:u},class:this.labelClassNames},[r,h]):null])}},g=function(){return(g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},b=r,y=b.h,k=b.ref,w={model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null,keyup:null,keydown:null,keypress:null},props:{modelValue:{type:[String,Number],default:void 0},disabled:Boolean,defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:o.templateDefinition,inputSuffix:o.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){Object(o.validatePackage)(s.a),this._input=void 0,this._inputId=Object(o.guid)(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this.$data.hasMounted=!0,this.setValidity()},updated:function(){this.setValidity()},setup:y?function(){return{v3:!!y,inputRef:k(null)}}:void 0,render:function(e){var t=this,n=y||e,i=!this.$props.validityStyles||this.validity().valid,r=this.$props,s=r.label,a=r.id,l=r.required,u=r.iconName,d=r.showValidationIcon,c=r.showLoadingIcon,p=r.showClearButton,h=a||this._inputId,f=n("input",g(g({domProps:this.v3?null:g(g({},this.$attrs),{placeholder:this.$props.placeholder,id:h,required:l,value:this.computedValue}),attrs:this.v3?void 0:this.$attrs},this.$attrs),{placeholder:this.$props.placeholder,id:h,required:l,value:this.computedValue,class:this.inputInnerClass,ref:this.v3?function(e){t.inputRef=e}:"input",on:this.v3?null:{change:this.handleChange,focus:this.emitFocus,blur:this.emitBlur,keydown:this.handleKeydown,keyup:this.handleKeyup,keypress:this.handleKeypress,input:this.handleInput,animationstart:this.handleAutoFill,animationend:this.handleAutoFillEnd},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd})),v=o.templateRendering.call(this,this.$props.inputPrefix,o.getListeners.call(this)),b=o.templateRendering.call(this,this.$props.inputSuffix,o.getListeners.call(this)),k=o.getTemplate.call(this,{h:n,template:v,additionalProps:{value:this.computedValue,valid:i}}),w=o.getTemplate.call(this,{h:n,template:b,additionalProps:{value:this.computedValue,valid:i}}),S=n("span",{class:this.inputWrapperClass()},[u&&n("span",{class:"k-input-icon k-icon k-i-"+u}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[k]),f,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[w]),d&&i&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),d&&!i&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),c&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),p&&this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return s?n(m,{label:s,attrs:this.v3?void 0:{label:s,editorId:h,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:h,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[S]}:[S]):S},methods:{emitFocus:function(e){this.$emit("focus",e),this.$data.focused=!0},emitBlur:function(e){this.$emit("blur",e),this.$data.focused=!1},handleKeydown:function(e){this.$emit("keydown",e)},handleKeyup:function(e){this.$emit("keyup",e)},handleKeypress:function(e){this.$emit("keypress",e)},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this._input&&this._input.focus()},validity:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,tooShort:!!this._input&&this._input.validity.tooShort,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return g(g({},e),{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!this._input||!this.isInvalid(e)})},isInvalid:function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},emitUpdate:function(e,t,n){var i=this;this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick((function(){i.$emit("changemodel",n),i.$emit("update:modelValue",n),i.$emit(t,{event:e,value:n,component:i,target:e.target,validity:i.validity()}),i.$data.valueDuringOnChange=void 0})))},handleAutoFill:function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-empty")&&(this.$data.autofill=!0,t.classList.remove("k-empty"))}},handleAutoFillEnd:function(e){"autoFillEnd"===e.animationName&&(e.target.parentNode&&(this.$data.autofill=!1))},name:function(){return this.$props.name},inputWrapperClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,s=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-"+(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(o.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!s,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e[this.wrapperClass]=this.wrapperClass,e}},computed:{spanClassNames:{get:function(){var e=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===this.computedValue||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e},computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue}}}},S=w},function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return I}));var i=n(1),r=n(0),o=n(3);function s(e){return e&&e.length>0?{items:l.call(this,e),inputItems:e}:{items:[],inputItems:[]}}function a(e){var t={},n=e.text,i=e.url,o=e.icon,s=e.disabled,a=e.cssClass,l=e.cssStyle,u=e.render,d=e.linkRender,c=e.contentRender,p=e.data;return void 0!==n&&(t.text=n),void 0!==i&&(t.url=i),void 0!==o&&(t.icon=o),void 0!==s&&(t.disabled=s),void 0!==a&&(t.cssClass=a),void 0!==l&&(t.cssStyle=l),void 0!==u&&(t.render=r.templateRendering.call(this,u,r.getListeners.call(this))),void 0!==d&&(t.linkRender=r.templateRendering.call(this,d,r.getListeners.call(this))),void 0!==c&&(t.contentRender=r.templateRendering.call(this,c,r.getListeners.call(this))),void 0!==p&&(t.data=p),t}function l(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],s=a.call(this,r);s.id=Object(o.c)(i.toString(),t),s.isLastFromSiblings=i===e.length-1,s.items=u.call(this,r,s),n.push(s)}return n}function u(e,t){return e.contentRender?[{contentParentItemId:t.id,id:Object(o.c)(o.b,t.id),isLastFromSiblings:!0,contentRender:r.templateRendering.call(this,e.contentRender,r.getListeners.call(this)),items:[]}]:e.items?l.call(this,e.items,t.id):[]}var d=/\S/;function c(e,t,n,i,s,a){var l,u=g();switch(n){case r.Keys.left:return s?a?f():p():a?h():c();case r.Keys.right:return s?a?p():f():a?c():h();case r.Keys.up:return s?y():Object(o.m)(t)?m():y();case r.Keys.down:return s?k():Object(o.m)(t)?v():k();case r.Keys.enter:case r.Keys.space:return u.disabled?t:b()?Object(o.f)(t):Object(o.h)(t);case r.Keys.home:return w()[0].id;case r.Keys.end:return(l=w())[l.length-1].id;case r.Keys.esc:return Object(o.m)(t)?t:Object(o.d)(t);default:return 1===i.length&&d.test(i)?function(){var e=i.toLowerCase(),n=w(),r=Number(Object(o.i)(t)),s=n.slice(r+1).concat(n.slice(0,r+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return s?s.id:t}():t}function c(){return Object(o.m)(t)?y():Object(o.l)(t)?v(y(Object(o.h)(t))):Object(o.d)(t)}function p(){return Object(o.m)(t)?m():Object(o.d)(t)}function h(){return Object(o.m)(t)?k():v(b()?t:k(Object(o.h)(t)))}function f(){return v(Object(o.m)(t)||b()?t:k(Object(o.h)(t)))}function v(e){return S(!0,e)}function m(e){return S(!1,e)}function g(n,i){return void 0===n&&(n=t),void 0===i&&(i=e),Object(o.g)(n,i)}function b(e){return g(e).items.length>0}function y(e){return C(!1,e)}function k(e){return C(!0,e)}function w(){return Object(o.m)(t)?e:g(Object(o.d)(t),e).items}function S(e,n){void 0===n&&(n=t);var i=g(n);return b(n)&&!i.disabled?e?Object(o.f)(n):function(e){var t=g(e).items;return t[t.length-1].id}(n):n}function C(n,i){if(void 0===i&&(i=t),Object(o.m)(i))return Object(o.e)(n,i,e.length);var r=Object(o.d)(i),s=Object(o.i)(i),a=g(r).items.length;return Object(o.c)(Object(o.e)(n,s,a),r)}}var p=n(12),h=n(14),f=n(35),v=n(36),m=i,g=m.h,b=m.ref,y={name:"KendoMenuItemInternal",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{item:Object,focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},created:function(){this.itemElement=null,this.prevFocusedItemId=this.$props.focusedItemId,this.isFirstRender=!0,this._anchor=Object(r.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=this.v3?this.kendoAnchorRef:this.$refs[this._anchor];var e=this.$props.focusedItemId,t=this.$props.item.id;e&&e===t&&this.itemElement&&this.itemElement.focus(),this.isFirstRender=!1},watch:{focusedItemId:function(e,t){this.prevFocusedItemId=t}},updated:function(){var e=this.$props.focusedItemId,t=this.$props.item.id;e?this.prevFocusedItemId===e||e!==t||this.itemElement.contains(document.activeElement)||this.itemElement.focus():document.activeElement===this.itemElement&&this.itemElement.blur()},computed:{currentItemRender:function(){return this.$props.item.render||this.$props.itemRender},currentLinkRender:function(){return this.$props.item.linkRender||this.$props.linkRender},contentRender:function(){return this.$props.item.contentParentItemId?this.$props.item.contentRender:null},currentOpened:function(){var e=this.$props;return e.item.items.length>0&&Object(o.n)(e.item.id,e.lastItemIdToBeOpened)&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return Object(r.classNames)({"k-menu-popup":!0,"k-rtl":this.$props.isDirectionRightToLeft})},menuItemClassName:function(){var e,t=this.$props.item;return(e={"k-item":!0,"k-menu-item":!0,"k-first":Object(o.j)(t.id),"k-last":t.isLastFromSiblings,"k-disabled":t.disabled})[t.cssClass?t.cssClass:""]=t.cssClass,e}},setup:g?function(){return{v3:!!g,kendoAnchorRef:b(null)}}:void 0,render:function(e){var t=this,n=g||e,i=this.$props.item,o=i.id,s=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-"+this.$props.item.icon,role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},a=function(){return this.$props.item.items.length>0?n(v.a,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft),key:"2"}):null},l=this.$props.originalItemNeeded(i.id);return n("li",{class:this.menuItemClassName,style:i.cssStyle,tabIndex:o===this.$props.tabbableItemId?0:-1,attrs:this.v3?void 0:{tabIndex:o===this.$props.tabbableItemId?0:-1,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0},onMouseover:this.onMouseOver,on:this.v3?void 0:{mouseover:this.onMouseOver,mouseleave:this.onMouseLeave,mousedown:function(e){return t.handleMouseDown(e)},focusout:function(){return t.handleBlur(o)},focusin:function(){return t.handleFocus(o)},click:function(e){return t.handleClick(e,o)},keydown:this.handleKeyDown},onMouseleave:this.onMouseLeave,onMousedown:function(e){return t.handleMouseDown(e)},onFocusout:function(){return t.handleBlur(o)},onFocusin:function(){return t.handleFocus(o)},onClick:function(e){return t.handleClick(e,o)},onKeydown:this.handleKeyDown,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0,ref:this.v3?function(e){t.kendoAnchorRef=e}:this._anchor,key:"0"},[this.contentRender?function(){var e=this.$props.item.contentParentItemId;return n("div",{class:"k-content",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[function(e){return r.getTemplate.call(this,{h:n,template:this.contentRender,additionalProps:e})}.call(this,{item:this.handleOriginalItemNeeded(e),itemId:e})])}.call(this):function(){var e=this,t=n("span",{class:"k-menu-link-text"},[i.text]),o=r.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:l,itemId:i.id,key:"1"}}),u=n(f.a,{url:i.url,attrs:this.v3?void 0:{url:i.url,opened:this.currentOpened,focused:this.currentFocused},opened:this.currentOpened,focused:this.currentFocused},this.v3?function(){return[[s.call(e),o,a.call(e)]]}:[[s.call(e),o,a.call(e)]]);return r.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:u,additionalProps:{item:l,itemId:i.id,opened:this.currentOpened,dir:Object(h.a)(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=Object(h.d)(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(p.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1},show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1,key:"1"},this.v3?function(){return[n(w,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})]}:[n(w,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})])}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleClick:function(e,t){this.$emit("click",e,t)},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},handleMouseDown:function(e){this.$emit("mousedown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},onMouseOver:function(e){this.$emit("mouseover",this.$props.item.id),e.stopPropagation()},onMouseLeave:function(e){this.$emit("mouseleave",this.$props.item.id),e.stopPropagation()}}},k=i.h,w={name:"KendoMenuItemInternalsList",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{items:Array,parentItemId:{type:String,default:void 0},focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},setup:k?function(){return{v3:!!k}}:void 0,render:function(e){var t=k||e,n=this.$props.parentItemId;return t("ul",{role:void 0!==n?"menu":"menubar",attrs:this.v3?void 0:{role:void 0!==n?"menu":"menubar",id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(y,{item:e,attrs:this.v3?void 0:{item:e,isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,originalItemNeeded:this.handleOriginalItemNeeded},isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,onMouseover:this.handleItemMouseOver,on:this.v3?void 0:{mouseover:this.handleItemMouseOver,mouseleave:this.handleItemMouseLeave,mousedown:this.handleItemMouseDown,keydown:this.handleKeyDown,blur:this.handleItemMouseBlur,focus:this.handleItemMouseFocus,click:this.handleItemMouseClick},onMouseleave:this.handleItemMouseLeave,onMousedown:this.handleItemMouseDown,onKeydown:this.handleKeyDown,onBlur:this.handleItemMouseBlur,onFocus:this.handleItemMouseFocus,onClick:this.handleItemMouseClick,originalItemNeeded:this.handleOriginalItemNeeded,key:n})}),this):null}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseDown:function(e){this.$emit("mousedown",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleItemMouseClick:function(e,t){this.$emit("click",e,t)},onMouseOver:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseover",this.$props.parentItemId),e.stopPropagation())},onMouseLeave:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseleave",this.$props.parentItemId),e.stopPropagation())}}},S=function(){function e(){this.phase="Initialized"}return e.prototype.getIsDirectionRightToLeft=function(){return this.isDirectionRightToLeft},e.prototype.setIsDirectionRightToLeft=function(e){this.phase="NotInitialized"===this.phase?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=e},e.prototype.hasDirectionChanged=function(){return"NewValueReceived"===this.phase&&this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft},e}(),C=function(){function e(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.openOnClick=e,this.isMouseOverEnabled=!e}return Object.defineProperty(e.prototype,"OpenOnClick",{set:function(e){Boolean(e)!==Boolean(this.openOnClick)&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e},enumerable:!1,configurable:!0}),e.prototype.handleItemSelectedViaKeyboard=function(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())},Object.defineProperty(e.prototype,"IsMouseOverEnabled",{get:function(){return this.isMouseOverEnabled},enumerable:!1,configurable:!0}),e.prototype.handleItemMouseDown=function(){this.mouseDown=!0},e.prototype.handleItemFocus=function(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1},e.prototype.handleItemClick=function(e,t){this.openOnClick&&(this.isMouseOverEnabled?t&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))},e}(),x=n(10),$=function(){return($=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},O=i.h,I={name:"KendoMenu",props:{vertical:{type:Boolean,default:!1},items:Array,dir:String,hoverOpenDelay:{type:Number,default:void 0},hoverCloseDelay:{type:Number,default:void 0},openOnClick:Boolean,itemRender:[String,Object,Function],linkRender:[String,Object,Function],customCloseItemIds:Array},created:function(){Object(r.validatePackage)(x.a),this.mouseOverHandler=new C(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=Object(r.guid)(),this.directionHolder=new S,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:O?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:o.a,hoveredItemId:o.a,tabbableItemId:o.b,isFirstRender:!0}},computed:{menuClassName:function(){return{"k-widget":!0,"k-reset":!0,"k-header":!0,"k-menu":!0,"k-menu-horizontal":!this.$props.vertical,"k-menu-vertical":this.$props.vertical}}},setup:O?function(){return{v3:!!O}}:void 0,render:function(e){var t=this,n=O||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var i=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?Object(o.d)(this.focusedItemId):o.a;return n("div",{class:this.getMenuWrapperClassName(),ref:function(e){return t.menuWrapperEl=e}},[n(w,{class:this.menuClassName,"aria-orientation":this.$props.vertical?"vertical":void 0,attrs:this.v3?void 0:{"aria-orientation":this.$props.vertical?"vertical":void 0,items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,onMouseleave:this.onItemMouseLeave,on:this.v3?void 0:{mouseleave:this.onItemMouseLeave,mouseover:this.onItemMouseOver,mousedown:this.onItemMouseDown,keydown:this.onKeyDown,focus:this.onItemFocus,click:this.onItemClick,blur:this.onItemBlur},onMouseover:this.onItemMouseOver,onMousedown:this.onItemMouseDown,onKeydown:this.onKeyDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,originalItemNeeded:this.getInputItem})])},methods:{reset:function(){this.clearItemHoverAndLeaveRequestsIfApplicable(),this.focusedItemId=o.a,this.hoveredItemId=o.a,this.tabbableItemId=o.b},onKeyDown:function(e){if(this.focusedItemId!==o.a){var t=Object(o.g)(this.focusedItemId,this.currentItems),n=c(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==r.Keys.enter&&e.keyCode!==r.Keys.space||t.disabled||(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(e,t.id),!e.defaultPrevented&&0===t.items.length&&t.url&&window.location.assign(t.url))}},onItemMouseOver:function(e){if(this.mouseOverHandler.IsMouseOverEnabled){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemHoverRequest=window.setTimeout((function(){t.setHoveredItemId(e),t.itemHoverRequest=null}),void 0!==(n=$({},this.$props)).hoverOpenDelay?n.hoverOpenDelay:n.openOnClick?0:100)}var n},onItemMouseLeave:function(e){if(this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemLeaveRequest=window.setTimeout((function(){t.setHoveredItemId(o.a),t.itemLeaveRequest=null}),void 0!==(n=$({},this.$props)).hoverCloseDelay?n.hoverCloseDelay:100)}var n},onItemMouseDown:function(){this.mouseOverHandler.handleItemMouseDown()},onItemFocus:function(e){this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},onItemClick:function(e,t){var n=Object(o.g)(t,this.currentItems);n.disabled||(this.setFocusedItemId(t),this.mouseOverHandler.handleItemClick(t,this.isItemWithDefaultClose(t)),this.dispatchSelectEventIfWired(e,t),!e.defaultPrevented&&n.url&&window.location.assign(n.url))},onItemBlur:function(e){this.isItemWithDefaultClose(e)&&this.setFocusedItemId(o.a)},getInputItem:function(e){return Object(o.g)(e,this.inputItems)},setFocusedItemId:function(e){var t=e===o.a?this.tabbableItemId:Object(o.h)(e),n=e===o.a||Object(o.k)(this.hoveredItemId)&&Object(o.k)(e)?this.hoveredItemId:o.a;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){Object(o.k)(e)&&Object(o.k)(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=o.a,this.tabbableItemId=o.b)},getMenuWrapperClassName:function(){return{"k-rtl":this.directionHolder.getIsDirectionRightToLeft()}},clearItemHoverAndLeaveRequestsIfApplicable:function(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)},isItemWithDefaultClose:function(e){return!this.$props.customCloseItemIds||-1===this.$props.customCloseItemIds.indexOf(e)},checkIsDirectionRightToLeft:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction},prepareItems:function(){var e=s.call(this,this.$props.items),t=e.items,n=e.inputItems;this.currentItems=t,this.inputItems=n},dispatchSelectEventIfWired:function(e,t){this.$emit("select",{event:e,compontent:this,item:this.getInputItem(t),itemId:t})}}},T=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C}));var i,r=n(1);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i||(i={}));var o=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),s=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),a=function(e){return(e||"").split("")},l=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof s?this.parse(e):this.parse(new s(a(e),a(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.Literal},e}(),u=function(e,t){return new l((function(n){var i=n.next().char,r=e[i];return"\\"===i?(i=n.next().char,new o(t.literal(i),n)):new o(r?t.mask(r):t.literal(i),n)}))},d=function(e){var t=e.prompt,n=e.promptPlaceholder;return new l((function(e){var i=e.next().char;return new o(i===t?n:i,e)}))},c=function(e){return new l((function(t){var n=t.next().char;return new o(e?n:"",t)}))},p=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new l((function(e){return new o(t,e)}))));var t},h=function(e){return new l((function(t){for(var n=new o([],t);!t.eof();)n=n.concat(e.run(t));return n}))},f=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,s=void 0===o?" ":o,a=e.rules,l=void 0===a?{}:a,u=e.includeLiterals,d=void 0!==u&&u;this.mask=n,this.prompt=r,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return p(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(p(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(p(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",o=i,s=t.split("").slice(0,n),a=t.split("").slice(i);return p(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=s.concat(e).concat(a).join("")})),{selection:o,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",o=n,s=e.split("").slice(n),a=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return p(this.maskTokens.slice(0,l)).run(a,t).fold((function(e){o=i.adjustPosition(e,o),r=e.concat(s).join("")})),{selection:o,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",o=n,s=e.slice(0,n);return p(this.unmaskTokens).run(s,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return p(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:o,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new l((function(e){return e.peek().char===t?(e.eat(),new o(t,e,i.Literal)):new o(t,e,i.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new l((function(r){for(;!r.eof();){var s=r.peek(),a=s.char,l=s.control;if(a===l&&l===t)return r.eat(),new o(t,r,i.Mask);if(e.test(a))return r.eat(),new o(a,r,i.Mask);if(a===n)return r.eat(),new o(t,r,i.Mask);r.eat_input()}return r.eat(),new o(t,r,i.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new l((function(e){return e.eof()?new o("",e):(e.peek().char===t&&e.eat(),new o(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new l((function(t){for(;!t.eof();){var i=t.peek(),r=i.char,s=i.control;if(r===n&&s===n)return t.eat(),new o(r,t);if(e.test(r))return t.eat(),new o(r,t);t.eat_input()}return t.eat(),new o("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return c(n)},mask:function(n){return d({prompt:e,promptPlaceholder:t})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return c(!1)},mask:function(t){return d({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;h(u(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),h(u(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),h(u(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),h(u(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),v={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},m=function(){return!1},g=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var i in e)if(e[i]!==t[i]){n=!1;break}if(n)for(var i in t)if(!e.hasOwnProperty(i)){n=!1;break}return n},b=n(0),y=n(7),k=r,w=k.h,S=k.ref,C={model:{event:"changemodel"},props:{type:{type:String,default:"text"},modelValue:String,modelRawValue:String,value:String,defaultValue:String,placeholder:String,title:String,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,accessKey:String,disabled:Boolean,readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},prompt:{type:String,default:"_"},promptPlaceholder:{type:String,default:" "},includeLiterals:{type:Boolean,default:!1},maskValidation:{type:Boolean,default:!0},mask:String,rules:{type:Object,default:function(){return v}},selection:Object,name:String,label:String,validationMessage:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:b.templateDefinition,inputSuffix:b.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{currentValue:void 0,currentFocused:!1,inputValue:void 0,currentSelection:[null,null]}},created:function(){Object(b.validatePackage)(y.a),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-"+Object(b.guid)(),this.service=new f,this.isPasted=!1},setup:w?function(){return{v3:!!w,inputRef:S(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.element=this.input=this.v3?this.inputRef:this.$refs.input,this.updateService(),this.setValidity()},watch:{currentFocused:function(e,t){this.prevCurrentFocused=t},selection:function(e,t){this.prevSelection=t},includeLiterals:function(e,t){this.prevIncludeLiterals=t},mask:function(e,t){this.prevMask=t},prompt:function(e,t){this.prevPrompt=t},promptPlaceholder:function(e,t){this.prevPromptPlaceholder=t},rules:function(e,t){this.prevRules=t}},updated:function(){if(this.element&&this.currentFocused){var e=this.currentSelection,t=e[0],n=e[1],i=this.prevSelection,r=this.$props.selection;(!i&&r||i&&r&&(i.start!==r.start||i.end!==r.end))&&(t=r.start,n=r.end),null!==t&&null!==n&&this.element.setSelectionRange(t,n)}var o,s,a={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules};o=a,s=this.$props,o.includeLiterals===s.includeLiterals&&o.mask===s.mask&&o.prompt===s.prompt&&o.promptPlaceholder===s.promptPlaceholder&&g(o.rules,s.rules)||this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},v,this.$props.rules)}},spanClassNames:{get:function(){var e,t=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir,"k-loading":this.showLoadingIcon})[this.wrapperClass]=this.wrapperClass,e}},wrapperSpanClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,o=!this.$props.validityStyles||this.validity().valid;return(e={"k-maskedtextbox":!0,"k-input":!0})["k-input-"+(b.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(b.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!o,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e||""},rawValue:function(){return this.service.rawValue(this.computedValue())},validity:function(){var e=this.computedValue(),t=this.service.validationValue(e);return{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!(this.$props.required&&!t||this.$props.maskValidation&&this.$props.prompt&&-1!==e.indexOf(this.$props.prompt)),valueMissing:!t}},pasteHandler:function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.currentSelection=[n||0,i||0])},clearClick:function(e){this.triggerOnChange("",e)},onChangeHandler:function(e){var t=e.currentTarget,n=this.inputValue=t.value,i=this.currentSelection[0]||0,r=this.currentSelection[1]||0;if(!this.$props.mask)return this.isPasted=!1,this.currentSelection=[null,null],void this.triggerOnChange(n,e);var o,s=this.computedValue();if(this.isPasted){this.isPasted=!1;var a=s.length-r,l=n.length-a;o=this.service.maskInRange(n.slice(i,l),s,i,r)}else o=this.service.maskInput(n,s,t.selectionStart||0);this.currentSelection=[o.selection,o.selection],this.triggerOnChange(o.value,e),this.inputValue=void 0},focusHandler:function(e){this.currentFocused||(this.currentFocused=!0,this.$emit("focus",{target:this,event:e}))},blurHandler:function(e){this.currentFocused&&(this.currentFocused=!1,this.$emit("blur",{target:this,event:e}))},triggerOnChange:function(e,t){this.currentValue=e,this.valueDuringOnChange=e,this.$emit("change",{event:t,selectionStart:this.currentSelection[0],selectionEnd:this.currentSelection[1],value:this.computedValue(),component:this,target:{name:this.$props.name,value:this.computedValue(),rawValue:this.rawValue()},validity:this.validity()}),this.$emit("update:modelValue",this.computedValue()),this.$emit("update:modelRawValue",this.rawValue()),this.$emit("changemodel",this.computedValue()),this.valueDuringOnChange=void 0},updateService:function(e){var t=Object.assign({includeLiterals:this.$props.includeLiterals,mask:this.$props.mask,prompt:this.$props.prompt,promptPlaceholder:this.$props.promptPlaceholder,rules:this.$props.rules},e);this.service.update(t)},setValidity:function(){this.element&&this.element.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")}},render:function(e){var t=this,n=w||e,i=this.$props.id||this.inputId,r=this.$props,o=r.iconName,s=r.showValidationIcon,a=r.showLoadingIcon,l=r.showClearButton,u=!this.$props.validityStyles||this.validity().valid,d=this.computedValue(),c=(this.inputValue,b.templateRendering.call(this,this.$props.inputPrefix,b.getListeners.call(this))),p=b.templateRendering.call(this,this.$props.inputSuffix,b.getListeners.call(this)),h=b.getTemplate.call(this,{h:n,template:c,additionalProps:{value:d,valid:u}}),f=b.getTemplate.call(this,{h:n,template:p,additionalProps:{value:d,valid:u}}),v=n("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperSpanClass,style:this.$props.label?void 0:{width:this.$props.width}},[o&&n("span",{class:"k-input-icon k-icon k-i-"+o}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[h]),n("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,id:i,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabIndex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accessKey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readOnly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required},autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,class:this.inputInnerClass,value:this.v3?d:null,domProps:this.v3?void 0:{value:d},id:i,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabIndex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accessKey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readOnly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required,ref:this.v3?function(e){t.inputRef=e}:"input",onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragStart:m,drop:m},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:m,onDrop:m}),this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[f]),s&&u&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),s&&!u&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),a&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),l&&d&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return this.$props.label?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[v,this.$props.label?i?n("label",{for:i,attrs:this.v3?void 0:{for:i},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):v}},x=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(1),r=n(15),o=n(0),s=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},a=function(e,t,n,i){var r=Math.max(n,.01),o=100/r*100;e&&t&&(e.style.width=i?"100%":r+"%",t.style.width=i?"100%":o+"%",e.style.height=i?r+"%":"100%",t.style.height=i?o+"%":"100%")},l={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701055,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},u=i.h,d={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(e){return["start","center","end"].includes(e)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){Object(o.validatePackage)(l),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=this.v3?this.progressStatusRef:this.$refs.progressStatus,this._progressStatusWrap=this.v3?this.progressStatusWrapRef:this.$refs.progressStatusWrap,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(o.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:u?void 0:function(){Object(r.e)(this.animationFrame)},unmounted:function(){Object(r.e)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var e=this.$props,t=e.disabled,n=e.reverse,i="vertical"===e.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===e.value,"k-state-disabled":t}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var e=this.$props.animation;return"boolean"!=typeof e&&void 0!==e?e.duration:e?400:0}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=this,n=u||e,i=this.$props,r=i.disabled,s=i.labelVisible,a=i.labelPlacement,l=i.max,d=i.min,c=i.tabIndex,p=i.emptyStyle,h=i.emptyClassName,f=i.progressStyle,v=i.progressClassName,m=this.$props.value||0,g=null===this.$props.value,b=function(e){var t=e.toString().split(".");return 1===t.length?""+t[0]:t[0]+"."+t[1].substr(0,3)}(m),y={value:m},k=this.$props.labelRender?o.templateRendering.call(this,this.$props.labelRender,o.getListeners.call(this)):void 0,w=n("span",{class:"k-progress-status"},b),S=o.getTemplate.call(this,{h:n,template:k,defaultRendering:w,additionalProps:y}),C=s?this.$props.label?n("span",{class:"k-progress-status"},[this.$props.label]):S:void 0,x=Object(o.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===a,"k-progress-center":"center"===a,"k-progress-end":"end"===a||void 0===a});return n("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:Object(o.getTabIndex)(c,r),role:"progressbar","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":g?void 0:m,"aria-disabled":r},tabindex:Object(o.getTabIndex)(c,r),role:"progressbar","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":g?void 0:m,"aria-disabled":r},[n("span",{class:x+(h?" "+h:""),style:p},[C]),n("div",{class:"k-state-selected",style:f,ref:this.v3?function(e){t.progressStatusRef=e}:"progressStatus"},[n("span",{class:x+(v?" "+v:""),ref:this.v3?function(e){t.progressStatusWrapRef=e}:"progressStatusWrap"},[C])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=s(this.min,this.max,this.prevValue);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=s(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);a(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=s(this.min,this.max,this.value);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(5),o=n(0),s=n(7),a=n(12),l=i.h,u={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String},computed:{horizontalAlign:function(){return"rtl"===this.$props.dir?"right":"left"},anchorAlign:function(){return{horizontal:this.horizontalAlign,vertical:"bottom"}},popupAlign:function(){return{horizontal:this.horizontalAlign,vertical:"top"}}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=l||e,n=Object(o.getDefaultSlots)(this),i=this.$props.popupSettings||{};return t(a.Popup,{anchor:this.$props.popupAnchor,attrs:this.v3?void 0:{anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open},anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose,class:Object(o.classNames)("k-reset",i.className)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}},d=n(21),c=i.h,p={palette:d.b,tileSize:d.c},h=function(e){return void 0!==e},f={name:"KendoColorPicker",props:{value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,paletteSettings:{type:Object,default:function(){return p}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:Object,open:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}}},data:function(){return{focused:!1,stateValue:"",stateOpen:!1}},computed:{isValueControlled:function(){return h(this.$props.value)},isOpenControlled:function(){return h(this.$props.open)},computedValue:function(){return this.isValueControlled?this.$props.value:this.stateValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.stateOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-"+e},wrapperClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded;return(e={"k-picker":!0,"k-colorpicker":!0})["k-picker-"+(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-"+i]=i,e["k-rounded-"+(o.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){Object(o.validatePackage)(s.a),this.focusableElementGuid=Object(o.guid)()},mounted:function(){this.focusableElement=this.$refs[this.focusableElementGuid],this.button=this.v3?this.buttonRef:this.$refs.button,this.palette=this.v3?this.paletteRef:this.$refs.palette},updated:function(){this.button=this.v3?this.buttonRef:this.$refs.button,this.palette=this.v3?this.paletteRef:this.$refs.palette},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t,n=this,i=this,s=c||e,a=this.$props,l=a.disabled,p=a.tabIndex,h=a.dir;return s("span",{class:this.wrapperClassName,dir:h,attrs:this.v3?void 0:{dir:h,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabIndex:Object(o.getTabIndex)(p,l),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabIndex:Object(o.getTabIndex)(p,l),title:this.$props.title,onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,focusin:this.onFocusHandler,focusout:this.onBlurHandler},onFocusin:this.onFocusHandler,onFocusout:this.onBlurHandler},[s("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[s("span",{class:Object(o.classNames)("k-value-icon","k-color-preview",{"k-no-color":!this.computedValue,"k-icon-color-preview":this.icon||this.iconClassName})},[(this.iconClassName||this.icon)&&s("span",{class:Object(o.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-"+this.icon]=this.icon&&!this.iconClassName,t))}),s("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),s(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",rounded:null,icon:"arrow-s"},ref:this.v3?function(e){i.buttonRef=e}:"button",onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler},rounded:null,class:"k-input-button",icon:"arrow-s"}),s(u,{dir:h,attrs:this.v3?void 0:{dir:h,open:this.computedOpen,popupAnchor:this.focusableElementGuid},open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid},this.v3?function(){return[s(d.a,{onKeydown:n.onKeyDownHandler,on:n.v3?void 0:{keydown:n.onKeyDownHandler,change:n.onPaletteChangeHandler,blur:n.onBlurHandler},ref:n.v3?function(e){i.paletteRef=e}:"palette",value:n.computedValue||void 0,attrs:n.v3?void 0:{value:n.computedValue||void 0},onChange:n.onPaletteChangeHandler,onBlur:n.onBlurHandler})]}:[s(d.a,{onKeydown:n.onKeyDownHandler,on:n.v3?void 0:{keydown:n.onKeyDownHandler,change:n.onPaletteChangeHandler,blur:n.onBlurHandler},ref:n.v3?function(e){i.paletteRef=e}:"palette",value:n.computedValue||void 0,attrs:n.v3?void 0:{value:n.computedValue||void 0},onChange:n.onPaletteChangeHandler,onBlur:n.onBlurHandler})])])},methods:{focusElement:function(){this.focusableElement&&this.focusableElement.focus()},setOpen:function(e,t){this.isOpenControlled||(e||t||!this.focusableElement||this.focusableElement.focus(),this.stateOpen=e)},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;if(n!==o.Keys.esc)return n!==o.Keys.enter||this.isOpenControlled?void(!t||n!==o.Keys.up&&n!==o.Keys.down||(e.preventDefault(),e.stopPropagation(),n===o.Keys.up&&this.focusableElement&&(this.focusableElement.focus(),this.setOpen(!1)),n===o.Keys.down&&this.setOpen(!0))):(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen));this.setOpen(!1)},onOpenHandler:function(){this.isOpenControlled||this.palette&&this.palette.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.palette&&document.activeElement===this.palette.$el;e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(e){clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=window.setTimeout(this.onBlurTimeout,200),this.$emit("blur",{event:e})},onChangeHandler:function(e,t){var n=t?e.rgbaValue:e.value;this.isValueControlled||(this.stateValue=n),t&&this.setOpen(!1),this.$emit("change",{value:n,event:e})},onPaletteChangeHandler:function(e){this.onChangeHandler(e,!0)}}},v=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return P}));var i=n(1),r=n(0),o=n(4),s=n(5),a=n(2),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=/\d/,d=function(e,t){return void 0!==e?e:t},c=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},p=function(e){return(String(e).split(".")[1]||"").length},h=function(e,t){return Math.max(p(e),p(t))},f=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},v=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)+(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},m=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)-(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},g=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},b=function(e,t,n){var i=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var i=t[n][1];return e.length-i.length}(e,t);if(-1!==i&&n.selectionStart>i)n.selectionStart=n.selectionEnd=i;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var r=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==r&&n.selectionStart<r&&(n.selectionStart=n.selectionEnd=r),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},y=function(e,t,n,i){e.selectionStart=e.selectionEnd=t,b(n,i,e)},k=function(e,t,n,i){e.eventValue=i.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,y(e,e.selectionStart,e.currentLooseValue,n)},w=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:C(e,u)},S=function(e){return e.split("").reverse().join("")},C=function(e,t){return e.length-S(e).search(t)},x=function(e){return e.split(e[e.search(u)])[0]},$=function(e){var t=S(e);return S(t.split(t[t.search(u)])[0])},O=function(e,t){return e.search(t)},I=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},T=function(e,t,n,i,r){var o="0"===e.replace(r,"")[0],s="0"===t.replace(r,"")[0];if(o&&!s)return n-1;if(s&&i)return n+1;for(var a=0,l=0;l<n;l++)u.test(e.charAt(l))&&a++;for(var d=0;a>0&&t.length>d;)u.test(t.charAt(d))&&a--,d++;return d},D=function(e,t,n){var i=l({},e),r=i.prevLooseValue,o=n.numberSymbols(),s=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=t.numberSymbols(),a=new RegExp("[\\d\\"+s.decimal+s.group+"]","g");return[n,i,r,o].map((function(e){return e.replace(a,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),a=String(i.currentLooseValue),d=String(r),p=new RegExp("[^\\d\\"+o.decimal+"]","g"),h=new RegExp("[^\\d\\"+o.decimal+"\\"+o.group+"]","g"),f=new RegExp("[\\d\\"+o.decimal+"\\"+o.group+"]"),v=a.replace(p,""),m=O(a,u),g=-1===m?-1:C(a,u),b=a.indexOf(o.decimal),S=(a.substring(0,m)+a.substring(m,g).replace(h,"")+a.substring(g,a.length)).split("").filter((function(e){return-1!==s.indexOf(e)||-1!==e.search(f)})).join(""),D=n.formatNumber(.31111111111111117,t).replace(p,""),V=D.indexOf(o.decimal),M=V>-1?D.length-V-1:0,N=n.formatNumber(1,t).replace(p,""),R=N.indexOf(o.decimal),B=R>-1?N.length-R-1:0,P=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=x(n),a=x(i),l=x(r),u=x(o);return{positiveInfo:[s,$(n)],negativeInfo:[a,$(i)],zeroInfo:[l,$(r)],oneInfo:[u,$(o)]}}(t,n),E=[P.positiveInfo,P.negativeInfo,P.zeroInfo,P.oneInfo],A=1!==E.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),j=a.length>0&&a.length<d.length,L=t&&"p"===t[0]&&a&&-1===a.indexOf(o.percentSign);if(!i.isPaste){if(""===a)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===o.minusSign&&n.formatNumber(-0,t)!==d)return i.eventValue=-0,i.currentLooseValue=c(i.eventValue,t,n),y(i,w(i.currentLooseValue,o),i.currentLooseValue,E),i;if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return n.split(t.minusSign).length!==i.split(t.minusSign).length&&n.length===i.length+t.minusSign.length}(i,o)){var F=n.parseNumber(r,t);i.eventValue=-(null!==F?F:0),i.currentLooseValue=c(i.eventValue,t,n);var z=O(i.currentLooseValue,u),K=O(d,u);return y(i,i.selectionEnd-1+(z-K),i.currentLooseValue,E),i}if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==i.indexOf(t.minusSign)}(i,o))return i.eventValue=n.parseNumber(i.currentLooseValue,t),y(i,i.selectionStart,i.currentLooseValue,E),i;if(i.currentLooseValue===o.decimal){i.eventValue=0;var _=c(i.eventValue,t,n);if(0===B&&M>0){var H=C(_,u);i.currentLooseValue=_.substring(0,H)+o.decimal+_.substring(H)}else i.currentLooseValue=_;return y(i,w(i.currentLooseValue,o)+1,i.currentLooseValue,E),i}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(i,o))return k(i,t,E,n),i;if(L)return i.eventValue=n.parseNumber(a,t)/100,i.currentLooseValue=c(i.eventValue,t,n),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return k(i,t,E,n),i;if(v!==a&&a&&A)if(-1===E.findIndex((function(e){var t=e[0],n=e[1],i=a.indexOf(t),r=a.indexOf(n),s=0===i,l=r===a.length-n.length,u=i+t.length!==m&&-1!==m&&a[i+t.length]!==o.decimal,d=r!==g&&-1!==g&&a[r-1]!==o.decimal;return t&&n?!u&&!d&&(s&&l):t?!u&&s:!!n&&(!d&&l)})))return k(i,t,E,n),i;if(v[v.length-1]===o.decimal&&M>0)return i.eventValue=n.parseNumber(a,t),i.currentLooseValue=S,i;if(i.currentLooseValue&&r)if((s+o.decimal+o.group).split("").findIndex((function(e){return a.split("").filter((function(t){return t===e})).length<d.split("").filter((function(t){return t===e})).length&&a.length+1===d.length&&(e!==o.decimal||0!==I(d.replace(p,""),o.decimal))}))>-1)return i.eventValue=n.parseNumber(e.prevLooseValue,t),i.currentLooseValue=e.prevLooseValue,i;var W=I(v,o.decimal),U="0"===v[v.length-1];if(j&&U&&W<B)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i;if(W>0){var q=a.substring(0,b);if(U&&(!q||0!==d.indexOf(q))){i.eventValue=n.parseNumber(i.currentLooseValue,t);var G=c(i.eventValue,t,n);return y(i,T(a,G,i.selectionEnd,j,p),G,E),i.currentLooseValue=G,i}if(W>M){var J=a.indexOf(o.decimal),X=a.substring(0,J)+a.substring(J,J+1+M)+a.substring(g,String(i.currentLooseValue).length);return i.eventValue=n.parseNumber(X,t),i.currentLooseValue=X,y(i,i.selectionStart,X,E),i}if(B!==M&&W<=M&&U)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=S,i;if(W<B)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i}}if(i.eventValue=n.parseNumber(i.currentLooseValue,t),L&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue){G=c(i.eventValue,t,n);1===a.length?y(i,w(G,o),G,E):y(i,T(a,G,i.selectionEnd,j,p),G,E),i.currentLooseValue=G}else i.currentLooseValue=c(n.parseNumber(v),t,n);return i},V=n(7),M=i,N=M.h,R=M.ref,B=M.inject,P={model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{modelValue:Number,value:Number,defaultValue:Number,step:{type:Number,default:1},format:[String,Object],tabIndex:Number,accessKey:String,title:String,placeholder:String,min:Number,max:Number,spinners:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},dir:String,name:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:{type:Boolean,default:!1},id:String,iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,isInvalid:!1,isEmpty:!1,currentValue:0,valueDuringOnChange:0,currentLooseValue:"",selectionStart:0,selectionEnd:0,decimalSelect:!1,focused:!1,forceUpdate:!1}},created:function(){Object(r.validatePackage)(V.a),this._textBeforeInput="",this._inputId=Object(r.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=Object(o.provideIntlService)(this),this._symbols=this._intl.numberSymbols(),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=null},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this._elementWrapper=this.v3?this.elementWrapperRef:this.$refs.elementWrapper,this.$data.hasMounted=!0,this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},updated:function(){r.canUseDOM&&document.activeElement!==this._input||!this._input||null===this.$data.currentLooseValue||this.$data.forceUpdate&&(this._input.selectionStart=this.$data.selectionStart,this._input.selectionEnd=this.$data.selectionEnd,this.$data.forceUpdate=!1),this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},computed:{computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:this.$data.currentValue}},looseValue:{get:function(){return c(this.$data.focused?this.$data.currentLooseValue:d(this.$props.value,this.$data.currentValue),this.$props.format,this._intl)}},spanClassNames:{get:function(){var e,t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid,n=this.computedValue;return(e={"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===n||(n||this.$props.placeholder)),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir})[this.inputClass]=this.inputClass,e}},wrapperClassNames:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.disabled,l=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!l,e["k-required"]=s,e["k-disabled"]=a,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{validity:function(){var e=void 0!==this.$props.validationMessage,t=!(this.$data.valueIsOutOfRange||this.$props.required&&null===this.computedValue);return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},clearClick:function(e){void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=null,this.$emit("changemodel",null),this.$emit("update:modelValue",null),this.$emit("change",{event:e,value:null,component:this,target:{name:this.$props.name,value:null},validity:this.validity()})},focus:function(){this._input&&this._input.focus()},emitFocus:function(e){this.$data.currentLooseValue=this._prevLooseValue,this.$data.focused=!0,this.$emit("focus",e),this.$data.forceUpdate=!0},emitBlur:function(e){this.$data.eventValue=null,this.$data.prevLooseValue="",this.$data.currentLooseValue="",this.$data.focused=!1,this.$data.selectionStart=void 0,this.$data.selectionEnd=void 0,this.$data.decimalSelect=!1,this.$data.valueIsCorrected=!1,this.$data.valueIsOutOfRange=!1,this.$emit("blur",e),this.$data.forceUpdate=!0},handleFocus:function(e){this.$data.focused=!0},handleBlur:function(e){this.$data.focused=!1},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},getCurrentState:function(){return{eventValue:d(this.$props.value,this.$data.currentValue),prevLooseValue:this._prevLooseValue,currentLooseValue:this._input.value,selectionStart:this._input.selectionStart,selectionEnd:this._input.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:this._isPaste,focused:this.$data.focused}},parseNumber:function(e){return this._intl.parseNumber(e,this.$props.format)},elementChange:function(e){var t=this.getCurrentState();this._isPaste=!1,this.triggerChange(e,D(t,this.$props.format,this._intl))},triggerChange:function(e,t){var n=this;if(!this.$props.disabled){this.$data.valueDuringOnChange=t.eventValue,this.$data.currentValue=t.eventValue;var i=c(g(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);if(r!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=r,this.$data.valueDuringOnChange=r,this.$data.currentValue=r),t.valueIsCorrected){var o=this._elementWrapper;o&&-1===o.className.indexOf("k-invalid")&&(this.$data.isInvalid=!0,setTimeout((function(){n.$data.isInvalid=!1}),50))}var s=this.$props.value!==t.eventValue;void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=this.$data.valueDuringOnChange,this.$data.prevLooseValue=t.prevLooseValue,this.$data.currentLooseValue=t.currentLooseValue,this.$data.selectionStart=t.selectionStart,this.$data.selectionEnd=t.selectionEnd,this.$data.decimalSelect=t.decimalSelect,this.$data.valueIsCorrected=t.valueIsCorrected,this.$data.valueIsOutOfRange=t.valueIsOutOfRange,this.$data.focused=t.focused,this.$data.isPaste=t.isPaste,this.$data.forceUpdate=!this.$data.forceUpdate,s&&(this.$emit("changemodel",this.$data.valueDuringOnChange),this.$emit("update:modelValue",this.$data.valueDuringOnChange),this.$emit("change",{event:e,value:this.$data.valueDuringOnChange,component:this,target:{name:this.$props.name,value:this.$data.valueDuringOnChange},validity:this.validity()})),this.$data.valueDuringOnChange=void 0}},onPasteHandler:function(e){this._isPaste=!0},increase:function(e){var t=this.getCurrentState();v(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},decrease:function(e){var t=this.getCurrentState();m(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},wheel:function(e){r.canUseDOM&&document.activeElement===this._input&&this._input&&(e.deltaY<0&&(e.preventDefault(),this.increase(e)),e.deltaY>0&&(e.preventDefault(),this.decrease(e)))},keyDown:function(e){var t=this.getCurrentState(),n=this.parseNumber(String(t.currentLooseValue));if(!(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)){switch(e.keyCode){case 38:v(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:m(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=c(g(n,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=r,t.currentLooseValue=c(r,this.$props.format,this._intl),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var o=this._input,s=this._intl.numberSymbols();o&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=D(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){r.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:N?function(){return{v3:!!N,inputRef:R(null),elementWrapperRef:R(null),kendoLocalizationService:B("kendoLocalizationService",{}),kendoIntlService:B("kendoIntlService",{})}}:void 0,render:function(e){var t=this,n=N||e,i=this.$props,l=i.iconName,u=i.showValidationIcon,d=i.showLoadingIcon,c=i.showClearButton,p=this.$props.id||this._inputId,h=Object(r.getDefaultSlots)(this),f=Object(o.provideLocalizationService)(this),v=this.validity().valid;void 0!==this.$props.value&&this.$props.value!==this.$data.currentValue?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue&&this.$props.modelValue!==this.$data.currentValue&&(this.$data.currentValue=this.$props.modelValue),this._prevLooseValue=this.looseValue;var m=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),g=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),b=r.getTemplate.call(this,{h:n,template:m,additionalProps:{value:this.computedValue,valid:v}}),y=r.getTemplate.call(this,{h:n,template:g,additionalProps:{value:this.computedValue,valid:v}}),k=n("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,"aria-disabled":this.$props.disabled?"true":void 0},class:this.wrapperClassNames,"aria-disabled":this.$props.disabled?"true":void 0,style:this.$attrs.style},[l&&n("span",{class:"k-input-icon k-icon k-i-"+l}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[b]),n("input",{tabIndex:this.$props.tabIndex,attrs:this.v3?void 0:{tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellCheck:!1,autoComplete:"off",autoCorrect:"off",id:p,"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name},accessKey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellCheck:!1,autoComplete:"off",autoCorrect:"off",class:this.inputInnerClass,id:p,value:this.v3?this.looseValue:null,domProps:this.v3?void 0:{value:this.looseValue},"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name,onWheel:this.wheel,on:this.v3?void 0:{wheel:this.wheel,keydown:this.keyDown,input:this.elementChange,focus:this.emitFocus,blur:this.emitBlur,paste:this.onPasteHandler},onKeydown:this.keyDown,onInput:this.elementChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onPaste:this.onPasteHandler,ref:this.v3?function(e){t.inputRef=e}:"input"}),this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[y]),u&&v&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),u&&!v&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),d&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),c&&void 0!==this.computedValue&&null!==this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})]),h,this.$props.spinners&&n("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":f.toLanguageString(a.e,a.c[a.e]),title:f.toLanguageString(a.e,a.c[a.e])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":f.toLanguageString(a.e,a.c[a.e]),title:f.toLanguageString(a.e,a.c[a.e]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":f.toLanguageString(a.d,a.c[a.d]),title:f.toLanguageString(a.d,a.c[a.d])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":f.toLanguageString(a.d,a.c[a.d]),title:f.toLanguageString(a.d,a.c[a.d]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[k,this.$props.label?p?n("label",{for:p,attrs:this.v3?void 0:{for:p},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):k}},E=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i,r=n(1),o=n(0),s=n(2),a=n(4),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(i||(i={}));var u=n(7),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=r,p=c.h,h=c.ref,f=c.inject,v={name:"KendoRangeSlider",model:{event:"changemodel"},props:{id:String,value:{type:Object,validator:function(e){return e.start<=e.end}},defaultValue:{type:Object,default:function(){return{start:0,end:0}},validator:function(e){return e.start<=e.end}},step:{type:Number,default:1},min:{type:Number,required:!0},max:{type:Number,required:!0},vertical:Boolean,disabled:Boolean,dir:{type:String,default:"ltr",validator:function(e){return[null,"ltr","rtl"].includes(e)}},startTabIndex:Number,endTabIndex:Number},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(u.a)},data:function(){return{currentValue:this.defaultValue,currentDrag:"",currentDir:"ltr"}},computed:{computedValue:function(){return void 0!==this.$props.value?this.$props.value:this.currentValue},percentStart:function(){return(this.computedValue.start-this.min)/(this.max-this.min)*100},percentEnd:function(){return(this.computedValue.end-this.min)/(this.max-this.min)*100},sliderItemsStyle:function(){return this.vertical?{paddingTop:0,height:"100%"}:{}},trackStyles:function(){return this.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}},mounted:function(){if(this.sliderRef=this.$refs.sliderRef,this.sliderSelectionRef=this.$refs.sliderSelectionRef,this.startHandle=this.$refs.startHandle,this.endHandle=this.$refs.endHandle,this.sliderTrackRef=this.$refs.sliderTrackRef,this.sliderTrackWrapRef=this.$refs.sliderTrackWrapRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:p?function(){return{v3:!!p,inputRef:h(null),kendoLocalizationService:f("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,i=this,r=p||e,l=Object(a.provideLocalizationService)(this),u=Object(o.getDefaultSlots)(this),c=this.$props,h=c.id;c.dir;return r("div",{role:"slider",attrs:this.v3?void 0:{role:"slider",id:h,dir:this.currentDir,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:h,dir:this.currentDir,class:Object(o.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-state-disabled":this.$props.disabled,"k-slider-vertical":this.$props.vertical,"k-slider-horizontal":!this.$props.vertical},this.$props.class),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[r(o.Draggable,{onDrag:this.handleTrackPress,on:this.v3?void 0:{drag:this.handleTrackPress,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])]}:[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.g,s.c[s.g])},tabIndex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.g,s.c[s.g]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])])])},methods:{dispatchStateValue:function(e){var t=function(e,t){var n,r;switch(t.type){case i.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case i.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case i.min:n="start"===t.key?l(l({},e),{start:t.min}):l(l({},e),{end:Math.max(t.min,e.start)});break;case i.max:n="start"===t.key?l(l({},e),{start:Math.min(t.max,e.end)}):l(l({},e),{end:t.max});break;case i.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;case i.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;default:n=e}return n}({start:this.computedValue.start,end:this.computedValue.end},d(d({},e),{min:this.min,max:this.max,step:this.step}));this.currentValue.start=t.start,this.currentValue.end=t.end,this.$emit("change",{min:this.min,max:this.max,step:this.step,value:{start:t.start,end:t.end}})},focus:function(){this.startHandle&&this.startHandle.focus()},handleChange:function(e,t){this.$emit("change",{value:e,event:t})},calcNewDistance:function(e){if(this.sliderTrackWrapRef){e.originalEvent.preventDefault();var t=this.sliderTrackWrapRef.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);return this.min+n*(this.max-this.min)}},calcKey:function(e){return e<=this.computedValue.start?"start":e>=this.computedValue.end?"end":2*e<this.computedValue.end+this.computedValue.start?"start":"end"},handleStartKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"start",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"start",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"start",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"start",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"start",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"end",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"end",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"end",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"end",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"end",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"end",event:e})}},handleTrackPress:function(e){var t=this.calcNewDistance(e),n=this.calcKey(t);this.currentDrag=n,"end"===n?this.endHandle.focus():this.startHandle.focus();var r="end"===n?i.end:i.start;this.dispatchStateValue({type:r,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(37),o=n(0),s=i.h,a={name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},index:Number,prev:Object,next:Object},created:function(){this.draggable=null},computed:{isStatic:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsible||n.collapsible;return!i&&!r},isDraggable:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsed||n.collapsed;return!!i&&!r},isHorizontal:function(){return"horizontal"===this.$props.orientation}},data:function(){return{focused:!1}},mounted:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=this,i=this,r=s||e,a=this.isDraggable,l=this.isStatic,u=this.isHorizontal,d=Object(o.classNames)("k-splitbar",((t={})["k-state-focused"]=this.focused,t["k-splitbar-horizontal"]=u,t["k-splitbar-vertical"]=!u,t["k-splitbar-draggable-horizontal"]=u&&a,t["k-splitbar-draggable-vertical"]=!u&&a,t["k-splitbar-static-horizontal"]=u&&l,t["k-splitbar-static-vertical"]=!u&&l,t)),c=this.previousArrowClass(u),p=this.nextArrowClass(u);return r(o.Draggable,{onPress:function(e){return i.onDrag(e,!0,!1)},on:this.v3?void 0:{press:function(e){return i.onDrag(e,!0,!1)},drag:function(e){return i.onDrag(e,!1,!1)},release:function(e){return i.onDrag(e,!1,!0)}},onDrag:function(e){return i.onDrag(e,!1,!1)},onRelease:function(e){return i.onDrag(e,!1,!0)},ref:"draggable"},this.v3?function(){return[r("div",{tabIndex:l?-1:0,attrs:n.v3?void 0:{tabIndex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[r("div",{tabIndex:l?-1:0,attrs:n.v3?void 0:{tabIndex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])])},methods:{onDrag:function(e,t,n){var i=e,r=this.$props.index,o=this.draggable&&this.draggable.element;!n&&i&&i.originalEvent.preventDefault(),o&&!this.isStatic&&this.isDraggable&&this.$emit("drag",i,o,r,t,n)},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},onToggle:function(e){var t=this.$props,n=t.index,i=t.prev,r=t.next;(i.collapsible||r.collapsible)&&this.$emit("toggle",i.collapsible?n:n+1,e)},onPrevToggle:function(e){var t=this.$props,n=t.index;t.prev.collapsible&&this.$emit("toggle",n,e)},onNextToggle:function(e){var t=this.$props,n=t.index;t.next.collapsible&&this.$emit("toggle",n+1,e)},onKeyDown:function(e){var t=this,n=e&&e.keyCode,i=this.isHorizontal,r=this.$props.index,s=this.draggable&&this.draggable.element,a=function(n,i,r){e.preventDefault(),t.$emit("keyboardresize",n,i,r,e)};s&&(n===o.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===o.Keys.left?a(s,r,-10):i&&n===o.Keys.right?a(s,r,10):i||n!==o.Keys.up?i||n!==o.Keys.down||a(s,r,10):a(s,r,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-prev"]=i,t["k-i-arrow-60-left"]=i&&e&&!r,t["k-i-arrow-60-right"]=i&&e&&r,t["k-i-arrow-60-up"]=i&&!e&&!r,t["k-i-arrow-60-down"]=i&&!e&&r,t))},nextArrowClass:function(e){var t,n=this.$props.next,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-next"]=i,t["k-i-arrow-60-right"]=i&&e&&!r,t["k-i-arrow-60-left"]=i&&e&&r,t["k-i-arrow-60-down"]=i&&!e&&!r,t["k-i-arrow-60-up"]=i&&!e&&r,t))}}},l=n(10),u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i.h,c={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},p={name:"KendoSplitter",props:{orientation:{type:String,default:"horizontal",validator:function(e){return["vertical","horizontal"].includes(e)}},panes:Array,defaultPanes:Array},computed:{isControlledState:function(){return void 0!==this.$props.panes},computedPanes:function(){return this.isControlledState?this.$props.panes:this.currentPanes},isRtl:function(){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1}},created:function(){Object(o.validatePackage)(l.a)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=d||e,n=this.panesOptions(),i=Object(o.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-"+this.orientation);this.validatePanes(n);return t("div",{class:i},[function(e){return e.map((function(n,i){var s,l=o.templateRendering.call(this,n.content,o.getListeners.call(this)),u=2*i,d=u+1;if(i+1<e.length){var c=e[i+1];s=t(a,{key:d,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:c},orientation:this.orientation,prev:n,next:c,onDrag:this.onBarDragResize,on:this.v3?void 0:{drag:this.onBarDragResize,toggle:this.onBarToggle,keyboardresize:this.onBarKeyboardResize},onToggle:this.onBarToggle,onKeyboardresize:this.onBarKeyboardResize})}return[t(r.a,{key:u,containsSplitter:n.containsSplitter,attrs:this.v3?void 0:{containsSplitter:n.containsSplitter,size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:l},size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:l}),s]}),this)}.call(this,n)])},methods:{validatePanes:function(e){if(!e.filter((function(e){return void 0===e.size})).length)throw new Error("The Splitter should have at least one pane without a set size.")},mapPaneOptions:function(e){for(var t=this.orientation,n=[],i=0;i<e.length;i++){var r=!1;this.isDragging&&void 0!==this.dragIndex&&(r=this.dragIndex===i||this.dragIndex+1===i),n.push(u(u(u({},c),{orientation:t,overlay:r}),e[i]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var i=t;return n===e?u(u({},i),{collapsed:!t.collapsed}):u({},i)}));this.$emit("change",{newState:n,isLast:!0,nativeEvent:t})},onBarDragResize:function(e,t,n,i,r){var o=(new Date).getTime(),s=e.pageX,a=e.pageY,l=this.surroudingPanes(t),u=l.prevElement,d=l.nextElement;if(u&&d){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=o,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(u),void(this.originalNextSize=this.elementSize(d));var c,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;if(!i&&o-v<150)r&&this.resetDragState();else c="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,c,r,e),r&&this.resetDragState()}},onBarKeyboardResize:function(e,t,n,i){var r=this.surroudingPanes(e),o=r.prevElement,s=r.nextElement,a=this.elementSize(o),l=this.elementSize(s);this.resize(t,t+1,a,l,n,!0,i)},surroudingPanes:function(e){return{prevElement:e.previousElementSibling,nextElement:e.nextElementSibling}},containerSize:function(){return this.$el?this.elementSize(this.$el,!0):0},isPercent:function(e){return/%$/.test(e)},toPixels:function(e,t){var n=parseInt(e,10);return this.isPercent(e)&&(n=t*n/100),n},panesOptions:function(){return this.mapPaneOptions(this.computedPanes)},resetDragState:function(){this.isDragging=!1,this.dragIndex=void 0,this.startTime=0,this.originalX=0,this.originalY=0,this.originalPrevSize=0,this.originalNextSize=0},elementSize:function(e,t){var n=t?"client":"offset";return"vertical"===this.orientation?e[n+"Height"]:e[n+"Width"]},clamp:function(e,t,n){return Math.min(t,Math.max(e,n))},fixedSize:function(e){return e&&e.length>0},resize:function(e,t,n,i,r,o,s){var a,l,d=this,c=this.panesOptions(),p=c[e],h=c[t],f=n+i,v=this.containerSize(),m=function(e){return d.toPixels(e,v)},g={index:e,initialSize:n,min:m(p.min)||f-m(h.max)||0,max:m(p.max)||f-m(h.min)||f},b={index:t,initialSize:i,min:m(h.min)||f-m(p.max)||0,max:m(h.max)||f-m(p.min)||f},y=function(e,t){var n=c[e.index],i=d.clamp(e.min,e.max,e.initialSize+t);return d.isPercent(n.size||"")?100*i/v+"%":i+"px"};this.fixedSize(p.size)&&this.fixedSize(h.size)?(a=y(g,r),l=y(b,-r)):h.collapsible||this.fixedSize(h.size)?l=y(b,-r):a=y(g,r);var k=c.map((function(n,i){var r=n;return i===e?u(u({},r),{size:a}):i===t?u(u({},r),{size:l}):u({},r)}));this.panesDuringOnChange=k,this.isControlledState||(this.currentPanes=k),this.$emit("change",{newState:k,isLast:o,nativeEvent:s}),this.panesDuringOnChange=void 0}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i,r=n(1),o=n(42),s=n(18),a=n(0),l=n(10);!function(e){e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous"}(i||(i={}));var u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},c=r.h,p={name:"KendoPanelBar",emits:{select:null,keydown:null},props:{animation:{type:Boolean,default:!0},items:Array,dir:String,selected:String,expanded:{type:Array,default:void 0},focused:String,expandMode:{type:String,default:"multiple",validator:function(e){return["single","multiple"].includes(e)}},className:String,keepItemsMounted:Boolean},created:function(){this.activeDescendant=null,Object(a.validatePackage)(l.a)},data:function(){var e=Object(s.e)(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=Object(s.d)(this.$props)),e},computed:{selectedItem:function(){var e=this.$props.selected;return void 0===e?this.currentSelected:e},expandedItems:function(){return void 0!==this.$props.expanded?this.$props.expanded||[]:this.currentExpanded},computedItems:function(){var e=u(u({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return s.h.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=c||e,n=Object(a.classNames)("k-panelbar",this.$props.className);return t("ul",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"tree",tabIndex:0,"aria-activedescendant":this.activeDescendant},role:"tree",tabIndex:0,onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,focus:this.handleWrapperFocus,blur:this.handleWrapperBlur},onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,class:n,"aria-activedescendant":this.activeDescendant},[this.computedItems.map((function(e){return t(o.a,u(u({props:this.v3?void 0:u(u({},e),{item:e})},e),{item:e}))}),this)])},methods:{handleSelect:function(e){this.onSelect(e),this.onFocus(e)},onSelect:function(e){var t,n,i=this;if(Object(s.a)(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=d(t.parentUniquePrivateKey,[t.uniquePrivateKey]),Object(s.f)(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?d(t.parentUniquePrivateKey):[]);break;case"multiple":var r=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===r?n.push(t.uniquePrivateKey):n.splice(r,1);break;default:n=this.expandedItems.slice()}this.currentSelected=t.uniquePrivateKey,this.currentExpanded=n,this.$emit("select",{target:t,expandedItems:n})}},onFocus:function(e,t){var n=this;void 0===t&&(t=0);var i,r=Object(s.b)(this.computedItems);r.forEach((function(o,s){if(o.uniquePrivateKey===(e.uniquePrivateKey||n.currentFocused)){var a=s+t<0?0:s+t>r.length?r.length-1:s+t;i=r[a]}})),i&&(this.activeDescendant=i.id,this.currentFocused=i.uniquePrivateKey)},onNavigate:function(e,t){var n;switch(t){case i.Previous:n=-1,this.onFocus(e,n);break;case i.Next:n=1,this.onFocus(e,n);break;case i.Toggle:this.onSelect(e)}},nextTick:function(e){this.nextTickId=window.setTimeout((function(){return e()}))},handleWrapperFocus:function(){clearTimeout(this.nextTickId),this.wrapperFocused||(this.wrapperFocused=!0)},handleWrapperBlur:function(){this.wrapperFocused=!1},handleKeyDown:function(e){var t=this._element&&"rtl"===getComputedStyle(this._element).direction||!1;if(e.target===e.currentTarget){var n=void 0;switch(e.keyCode){case a.Keys.left:n=t?i.Next:i.Previous;break;case a.Keys.up:n=i.Previous;break;case a.Keys.right:n=t?i.Previous:i.Next;break;case a.Keys.down:n=i.Next;break;case a.Keys.space:case a.Keys.enter:n=i.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}},h=p},function(e,t,n){"use strict";var i=n(148);n.d(t,"ProgressBar",(function(){return i.a}));n(99),n(100),n(101),n(102)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=t.EditorToolsSettings=t.Editor=t.ProseMirror=void 0;var i=n(156);Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return i.Editor}});var r=n(16);Object.defineProperty(t,"EditorToolsSettings",{enumerable:!0,get:function(){return r.EditorToolsSettings}});var o=n(52);Object.defineProperty(t,"EditorUtils",{enumerable:!0,get:function(){return o.EditorUtils}});var s=n(6);t.ProseMirror={Selection:s.Selection,SelectionRange:s.SelectionRange,TextSelection:s.TextSelection,NodeSelection:s.NodeSelection,AllSelection:s.AllSelection,EditorState:s.EditorState,Plugin:s.Plugin,PluginKey:s.PluginKey,Transaction:s.Transaction,Decoration:s.Decoration,DecorationSet:s.DecorationSet,EditorView:s.EditorView,Node:s.Node,ResolvedPos:s.ResolvedPos,NodeRange:s.NodeRange,Fragment:s.Fragment,Slice:s.Slice,ReplaceError:s.ReplaceError,Mark:s.Mark,Schema:s.Schema,NodeType:s.NodeType,MarkType:s.MarkType,ContentMatch:s.ContentMatch,DOMParser:s.DOMParser,DOMSerializer:s.DOMSerializer,Transform:s.Transform,Step:s.Step,StepResult:s.StepResult,joinPoint:s.joinPoint,canJoin:s.canJoin,canSplit:s.canSplit,insertPoint:s.insertPoint,dropPoint:s.dropPoint,liftTarget:s.liftTarget,findWrapping:s.findWrapping,StepMap:s.StepMap,MapResult:s.MapResult,Mapping:s.Mapping,AddMarkStep:s.AddMarkStep,RemoveMarkStep:s.RemoveMarkStep,ReplaceStep:s.ReplaceStep,ReplaceAroundStep:s.ReplaceAroundStep,replaceStep:s.replaceStep,deleteSelection:s.deleteSelection,joinBackward:s.joinBackward,selectNodeBackward:s.selectNodeBackward,joinForward:s.joinForward,selectNodeForward:s.selectNodeForward,joinUp:s.joinUp,joinDown:s.joinDown,lift:s.lift,newlineInCode:s.newlineInCode,exitCode:s.exitCode,createParagraphNear:s.createParagraphNear,liftEmptyBlock:s.liftEmptyBlock,splitBlock:s.splitBlock,splitBlockKeepMarks:s.splitBlockKeepMarks,selectParentNode:s.selectParentNode,selectAll:s.selectAll,wrapIn:s.wrapIn,setBlockType:s.setBlockType,toggleMark:s.toggleMark,autoJoin:s.autoJoin,chainCommands:s.chainCommands,pcBaseKeymap:s.pcBaseKeymap,macBaseKeymap:s.macBaseKeymap,baseKeymap:s.baseKeymap,history:s.history,undo:s.undo,redo:s.redo,undoDepth:s.undoDepth,redoDepth:s.redoDepth,InputRule:s.InputRule,inputRules:s.inputRules,undoInputRule:s.undoInputRule,emDash:s.emDash,ellipsis:s.ellipsis,openDoubleQuote:s.openDoubleQuote,closeDoubleQuote:s.closeDoubleQuote,openSingleQuote:s.openSingleQuote,closeSingleQuote:s.closeSingleQuote,smartQuotes:s.smartQuotes,wrappingInputRule:s.wrappingInputRule,textblockTypeInputRule:s.textblockTypeInputRule,keymap:s.keymap,keydownHandler:s.keydownHandler,orderedList:s.orderedList,bulletList:s.bulletList,listItem:s.listItem,addListNodes:s.addListNodes,wrapInList:s.wrapInList,splitListItem:s.splitListItem,liftListItem:s.liftListItem,sinkListItem:s.sinkListItem,dropCursor:s.dropCursor,gapCursor:s.gapCursor,tableEditing:s.tableEditing,fixTables:s.fixTables,fixTablesKey:s.fixTablesKey,cellAround:s.cellAround,isInTable:s.isInTable,selectionCell:s.selectionCell,moveCellForward:s.moveCellForward,inSameTable:s.inSameTable,findCell:s.findCell,colCount:s.colCount,nextCell:s.nextCell,removeColSpan:s.removeColSpan,addColSpan:s.addColSpan,columnIsHeader:s.columnIsHeader,tableNodes:s.tableNodes,tableNodeTypes:s.tableNodeTypes,CellSelection:s.CellSelection,TableMap:s.TableMap,tableEditingKey:s.tableEditingKey,columnResizing:s.columnResizing,columnResizingPluginKey:s.columnResizingPluginKey,updateColumnsOnResize:s.updateColumnsOnResize,selectedRect:s.selectedRect,addColumn:s.addColumn,addColumnBefore:s.addColumnBefore,addColumnAfter:s.addColumnAfter,deleteColumn:s.deleteColumn,rowIsHeader:s.rowIsHeader,addRow:s.addRow,addRowBefore:s.addRowBefore,addRowAfter:s.addRowAfter,deleteRow:s.deleteRow,mergeCells:s.mergeCells,splitCell:s.splitCell,splitCellWithType:s.splitCellWithType,setCellAttr:s.setCellAttr,toggleHeader:s.toggleHeader,toggleHeaderRow:s.toggleHeaderRow,toggleHeaderColumn:s.toggleHeaderColumn,toggleHeaderCell:s.toggleHeaderCell,goToNextCell:s.goToNextCell,deleteTable:s.deleteTable};var a=n(60);Object.defineProperty(t,"Align",{enumerable:!0,get:function(){return a.Align}});var l=n(61);Object.defineProperty(t,"Indent",{enumerable:!0,get:function(){return l.Indent}});var u=n(62);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return u.List}});var d=n(63);Object.defineProperty(t,"Outdent",{enumerable:!0,get:function(){return d.Outdent}});var c=n(64);Object.defineProperty(t,"InlineFormat",{enumerable:!0,get:function(){return c.InlineFormat}});var p=n(65);Object.defineProperty(t,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=n(66);Object.defineProperty(t,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=n(67);Object.defineProperty(t,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=n(68);Object.defineProperty(t,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=n(69);Object.defineProperty(t,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=n(70);Object.defineProperty(t,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var b=n(71);Object.defineProperty(t,"SelectAll",{enumerable:!0,get:function(){return b.SelectAll}});var y=n(72);Object.defineProperty(t,"InsertImage",{enumerable:!0,get:function(){return y.InsertImage}});var k=n(73);Object.defineProperty(t,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=n(74);Object.defineProperty(t,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=n(75);Object.defineProperty(t,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var C=n(76);Object.defineProperty(t,"Print",{enumerable:!0,get:function(){return C.Print}});var x=n(77);Object.defineProperty(t,"FindAndReplace",{enumerable:!0,get:function(){return x.FindAndReplace}});var $=n(117);Object.defineProperty(t,"ApplyColor",{enumerable:!0,get:function(){return $.ApplyColor}})},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var l=s(n(1)),u=l.h,d=l.markRaw,c=n(5),p=n(0),h=n(6),f=n(58),v=n(157),m=n(16),g=n(59),b=n(52),y=n(53),k=n(159),w=m.EditorToolsSettings.link,S=m.EditorToolsSettings.bold,C=m.EditorToolsSettings.italic,x=m.EditorToolsSettings.underline,$=n(160),O=n(161),I=n(60),T=n(61),D=n(62),V=n(63),M=n(64),N=n(65),R=n(66),B=n(67),P=n(68),E=n(69),A=n(70),j=n(71),L=n(72),F=n(73),z=n(74),K=n(75),_=n(76),H=n(77),W=n(117);t.allTools={Bold:{comp:M.InlineFormat,props:m.EditorToolsSettings.bold},Italic:{comp:M.InlineFormat,props:m.EditorToolsSettings.italic},Underline:{comp:M.InlineFormat,props:m.EditorToolsSettings.underline},Strikethrough:{comp:M.InlineFormat,props:m.EditorToolsSettings.strikethrough},Subscript:{comp:M.InlineFormat,props:m.EditorToolsSettings.subscript},Superscript:{comp:M.InlineFormat,props:m.EditorToolsSettings.superscript},AlignLeft:{comp:I.Align,props:m.EditorToolsSettings.alignLeft},AlignCenter:{comp:I.Align,props:m.EditorToolsSettings.alignCenter},AlignRight:{comp:I.Align,props:m.EditorToolsSettings.alignRight},AlignJustify:{comp:I.Align,props:m.EditorToolsSettings.alignJustify},Indent:{comp:T.Indent,props:m.EditorToolsSettings.indent},Outdent:{comp:V.Outdent,props:m.EditorToolsSettings.outdent},OrderedList:{comp:D.List,props:m.EditorToolsSettings.orderedList},UnorderedList:{comp:D.List,props:m.EditorToolsSettings.bulletList},FontSize:{comp:N.FontName,props:m.EditorToolsSettings.fontSize},FontName:{comp:N.FontName,props:m.EditorToolsSettings.fontName},FormatBlock:{comp:R.FormatBlock,props:m.EditorToolsSettings.formatBlock},Undo:{comp:B.ProseMirror,props:m.EditorToolsSettings.undo},Redo:{comp:B.ProseMirror,props:m.EditorToolsSettings.redo},Link:{comp:P.LinkTool,props:m.EditorToolsSettings.link},Unlink:{comp:E.Unlink,props:m.EditorToolsSettings.unlink},InsertImage:{comp:L.InsertImage,props:m.EditorToolsSettings.image},ViewHtml:{comp:z.ViewHtml,props:m.EditorToolsSettings.viewHtml},CleanFormatting:{comp:A.CleanFormatting,props:m.EditorToolsSettings.cleanFormatting},SelectAll:{comp:j.SelectAll,props:m.EditorToolsSettings.selectAll},InsertTable:{comp:F.InsertTable,props:m.EditorToolsSettings.insertTable},MergeCells:{comp:B.ProseMirror,props:m.EditorToolsSettings.mergeCells},SplitCell:{comp:B.ProseMirror,props:m.EditorToolsSettings.splitCell},AddRowBefore:{comp:B.ProseMirror,props:m.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:B.ProseMirror,props:m.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:B.ProseMirror,props:m.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:B.ProseMirror,props:m.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteRow},DeleteColumn:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteColumn},DeleteTable:{comp:B.ProseMirror,props:m.EditorToolsSettings.deleteTable},Print:{comp:_.Print,props:m.EditorToolsSettings.print},Pdf:{comp:K.Pdf,props:m.EditorToolsSettings.pdf},InsertFile:{comp:P.LinkTool,props:m.EditorToolsSettings.insertFile},FindAndReplace:{comp:H.FindAndReplace,props:m.EditorToolsSettings.findAndReplace},ForeColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.foreColor},BackColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.backColor}};var U={name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function},data:function(){return{updateGuid:p.guid(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,p.validatePackage(O.packageMetadata)},mounted:function(){this.iframe=this.v3?this.iframeRef:this.$refs.iframe,this.contentElement=this.v3?this.contentElementRef:this.$refs.contentElement,this.iframe&&$.firefox||this.initialize()},watch:{value:function(e,t){this._prevValue=t}},updated:function(){var e=this.$props.value,t=this.getView();void 0!==e&&t&&(k.updateEditorValue(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:u?void 0:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},unmounted:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},computed:{computedValue:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var n=this,r=u||e,o=100,s=this.$props,a=s.tools,l=void 0===a?[]:a,h=s.defaultEditMode,f=void 0===h?"iframe":h,v=s.preserveWhitespace,m=void 0===v?"full":v,b=s.style,k=this.getView();this.view&&(y.editorPropsKey.getState(this.view.state).preserveWhitespace=m);var S=this.$props.contentStyle;void 0===S&&void 0===(b||{}).height&&(S={height:"300px"});var C=function(e,n){var s=t.allTools[e]||e;if(t.allTools[e]){o++;var a=i({view:k,dir:this.$props.dir,key:o,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return r(this.v3?d(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return r(c.ToolbarSeparator,{key:o});var l=p.templateRendering.call(this,s.render,p.getListeners.call(this));return p.getTemplate.call(this,{h:r,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:k,dir:this.$props.dir,updateGuid:this.updateGuid,key:o,settings:s.props}})},x=function(e,t){return e.map((function(e){return C.call(this,e,t)}),this)},$=l.map((function(e,t){var n=this;return Array.isArray(e)?r(c.ButtonGroup,{key:t},this.v3?function(){return[x.call(n,e,t)]}:[x.call(n,e,t)]):C.call(this,e,t)}),this);return r("div",{class:p.classNames("k-widget k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[$.length>0&&r(c.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[$]}:[$]),"iframe"===f?r("div",{class:"k-editor-content"},[r("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:this.v3?function(e){n.iframeRef=e}:"iframe",frameBorder:"0",attrs:this.v3?void 0:{frameBorder:"0"},style:S,class:"k-iframe"})]):r("div",{style:S,class:"k-editor-content"},[r("div",{ref:this.v3?function(e){n.contentElementRef=e}:"contentElement"})]),function(){return this.linkDialog&&r(g.InsertLinkDialog,{view:k,attrs:this.v3?void 0:{view:k,settings:w,dir:this.$props.dir},settings:w,dir:this.$props.dir,onClose:this.handleClose,on:this.v3?void 0:{close:this.handleClose}})}.call(this)])},methods:{getView:function(){return this.v3?this.view:this._view},getHTML:function(){var e=this.getView();return e?b.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&b.EditorUtils.setHtml(t,e)},focus:function(){this.getView()&&this.getView().focus()},updateTools:function(e){this.v3?this.view=e:this._view=e,this.v3&&(this.updateGuid=p.guid())},iframeLoad:function(){$.firefox&&this.initialize()},initialize:function(){var e=this,t=this.iframe&&this.iframe.contentWindow;if(t){var n=t.document;[v.defaultStyle,v.tablesStyles,"rtl"===this.$props.dir?v.rtlStyles:void 0].forEach((function(e){if(e){var t=n.createElement("style");t.appendChild(n.createTextNode(e)),n.head.appendChild(t)}}));var r=n.createElement("meta");r.setAttribute("charset","utf-8"),n.head.appendChild(r),this.contentElement=n.createElement("div"),n.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content")}var o=this.contentElement;if(o){var s=this.$props.preserveWhitespace,l=void 0===s?"full":s,u=[new h.Plugin({view:function(){return{update:e.updateTools}},key:new h.PluginKey("toolbar-tools-update-plugin")}),new h.Plugin({filterTransaction:this.filterTransaction,key:new h.PluginKey("onExecute-event-plugin")}),new h.Plugin({key:y.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),h.spacesFix(),h.history(),h.dropCursor(),h.gapCursor(),h.tableEditing()],c=i(i({},b.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:S,italic:C,underline:x}})),{"Mod-k":function(){var t=e.$data.linkDialog,n=e.getView();if(n){var i=n.state,r=i.selection.empty,o=h.getMark(i,i.schema.marks[w.mark]);t||r&&!o||(e.linkDialog=!0)}return!t}}),p=this.$props,m=p.defaultContent,g=void 0===m?"":m,k=p.value,$=k&&"string"!=typeof k?k:b.EditorUtils.createDocument(new h.Schema({nodes:f.nodes,marks:f.marks}),k||g,{preserveWhitespace:l}),O={state:h.EditorState.create({plugins:a(u,[h.keymap(c),h.keymap(h.baseKeymap)]),doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},I={plugins:u,shortcuts:c,target:this,viewProps:O,dom:o};this.$emit("loaded",I);var T=this.$props.extendView&&this.$props.extendView(I)||new h.EditorView({mount:o},O);this.v3?this.view=d(T):this._view=T}},filterTransaction:function(e,t){var n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml:function(e){if(this.$props.pasteHtml&&this.pasteEvent){var t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction:function(e){var t=e.docChanged;if(t){this.trOnChange=e;var n=e.doc,i=e.doc.type.schema,r=this,o={target:r,value:n,get html(){return r.htmlOnChange=b.EditorUtils.getHtml({doc:n,schema:i}),r.htmlOnChange},transaction:e,schema:i};this.$emit("change",o)}!this.getView()||void 0!==this.$props.value&&t||this.getView().updateState(this.getView().state.apply(e))},onFocus:function(e,t){var n={target:this,event:t};return this.$emit("focus",n),!1},onBlur:function(e,t){var n={target:this,event:t};return this.$emit("blur",n),!1},onPaste:function(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose:function(){this.linkDialog=!1}}};t.EditorVue2=U;var q=U;t.Editor=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var r=n(6),o=n(16),s=o.EditorToolsSettings.bold,a=o.EditorToolsSettings.underline,l=o.EditorToolsSettings.italic,u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=r.chainCommands(r.exitCode,(function(t,n){var i=e&&e.types&&e.types.hardBreak||"hard_break",r=t.schema.nodes[i];return n&&n(t.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",o=e&&e.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return r.toggleInlineFormat(o.bold||s)(e,t)},"Mod-i":function(e,t){return r.toggleInlineFormat(o.italic||l)(e,t)},"Mod-u":function(e,t){return r.toggleInlineFormat(o.underline||a)(e,t)},"Mod-z":r.undo,"Shift-Mod-z":r.redo},i({},u?{}:{"Mod-y":r.redo})),{Backspace:r.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},u?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return r.splitListItem(e.schema.nodes[n])(e,t)},Tab:r.goToNextCell(1),"Shift-Tab":r.goToNextCell(-1)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(6),r=n(52),o=function(e,t){var n=t.tr||e.state.tr.setSelection(new i.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||r.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML");e.updateState(e.state.apply(n))};t.updateEditorValue=function(e,t,n,i,r){"string"==typeof t?i&&t===r?o(e,{tr:i}):t!==n&&o(e,{html:t}):i&&t.eq(i.doc)?o(e,{tr:i}):e.state.doc.eq(t)||o(e,{doc:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701108,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=this.v3?this.srcRef:this.$refs.src,this.altText=this.v3?this.altTextRef:this.$refs.altText,this.title=this.v3?this.titleRef:this.$refs.title,this.width=this.v3?this.widthRef:this.$refs.width,this.height=this.v3?this.heightRef:this.$refs.height,this.src&&this.src.focus()},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=p.messages,v=f.insertImageDialogTitle,m=f.insertImageAddress,g=f.insertImageTitle,b=f.insertImageAltText,y=f.insertImageWidth,k=f.insertImageHeight,w=f.insertImageCancel,S=f.insertImageInsert,C=d.provideLocalizationService(this),x=o&&o.state,$={};x&&x.selection instanceof u.NodeSelection&&x.selection.node.type===x.schema.nodes[p.node]&&($=x.selection.node.attrs);var O=i("div",{class:"k-edit-form-container"},[i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[C.toLanguageString(m,c.messages[m])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-url"},class:"k-input-inner",id:"k-editor-image-url",value:this.v3?$.src:null,domProps:this.v3?void 0:{value:$.src},ref:this.v3?function(e){n.srcRef=e}:"src"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[C.toLanguageString(b,c.messages[b])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-alt"},class:"k-input-inner",id:"k-editor-image-alt",value:this.v3?$.alt:null,domProps:this.v3?void 0:{value:$.alt},ref:this.v3?function(e){n.altTextRef=e}:"altText"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[C.toLanguageString(g,c.messages[g])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-title"},class:"k-input-inner",id:"k-editor-image-title",value:this.v3?$.title:null,domProps:this.v3?void 0:{value:$.title},ref:this.v3?function(e){n.titleRef=e}:"title"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[C.toLanguageString(y,c.messages[y])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-width"},class:"k-input-inner",id:"k-editor-image-width",value:this.v3?$.width:null,domProps:this.v3?void 0:{value:$.width},ref:this.v3?function(e){n.widthRef=e}:"width"})])]),i("div",{class:"k-edit-label"},[i("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[C.toLanguageString(k,c.messages[k])])]),i("div",{class:"k-edit-field"},[i("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[i("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-height"},class:"k-input-inner",id:"k-editor-image-height",value:this.v3?$.height:null,domProps:this.v3?void 0:{value:$.height},ref:this.v3?function(e){n.heightRef=e}:"height"})])])]),I=[i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:h},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:h,key:"cancel"},this.v3?function(){return[C.toLanguageString(w,c.messages[w])]}:[C.toLanguageString(w,c.messages[w])]),i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:h,key:"insert"},this.v3?function(){return[C.toLanguageString(S,c.messages[S])]}:[C.toLanguageString(S,c.messages[S])])];return i(a.Dialog,{title:C.toLanguageString(v,c.messages[v]),attrs:this.v3?void 0:{title:C.toLanguageString(v,c.messages[v]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[O,i(a.DialogActionsBar,t.v3?function(){return[I]}:[I])]}:[O,i(a.DialogActionsBar,t.v3?function(){return[I]}:[I])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props,t=e.view,n=e.settings,i=t.state.schema.nodes[n.node],r={src:this.src?this.src.value:null,title:this.title?this.title.value:null,alt:this.altText?this.altText.value:null,width:this.width?this.width.value:null,height:this.height?this.height.value:null},o=Object.keys(r).filter((function(e){return null!==r[e]&&""!==r[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=r[t],n))}),{}),s=i.createAndFill(o);u.insertNode(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",o))})),this.onClose()}}};t.InsertImageDialogVue2=p;var h=p;t.InsertImageDialog=h},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var s=o(n(1)).h,a=n(12),l=n(164),u={name:"KendoInsertTablePopup",props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String},data:function(){return{pointerdown:!1}},updated:function(){},mounted:function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},destroyed:s?void 0:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},unmounted:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,r=i.show,o=i.anchor,u=i.dir,d=i.rows,c=i.columns,p="rtl"===u?"right":"left";return n(a.Popup,{anchor:o,attrs:this.v3?void 0:{anchor:o,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:r},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:r,style:"rtl"===u?{direction:"rtl"}:void 0},this.v3?function(){return[n(l.PopupGrid,{rows:d,attrs:t.v3?void 0:{rows:d,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})]}:[n(l.PopupGrid,{rows:d,attrs:t.v3?void 0:{rows:d,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})])},methods:{onTableInsert:function(e,t){this.$emit("tableinsert",e,t)},onWindowDown:function(e){var t=this.$props.anchor;(!t||t!==e.target&&t.firstElementChild!==e.target)&&(this.$props.show&&!this.pointerdown&&this.$props.onClose(),this.pointerdown=!1)},onPointerDown:function(){this.pointerdown=!0}}};t.InsertTablePopupVue2=u;var d=u;t.InsertTablePopup=d},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var s=o(n(1)).h,a=n(30),l={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=[],r=this.$props.columns*this.$props.rows,o=this.$data,l=o.row,u=o.col,d=this.$props.createTableMessage;u>-1&&(d=a.formatString(this.$props.createTableHintMessage,l+1,u+1));for(var c=function(e,t,i){var r=this,o=Math.floor(e/this.$props.columns),s=e%this.$props.columns;return n("span",{class:"k-ct-cell k-state-disabled"+(s<=i&&o<=t?" k-state-selected":""),onMouseenter:function(){return r.cellMouseEnter({row:o,col:s})},on:this.v3?void 0:{mouseenter:function(){return r.cellMouseEnter({row:o,col:s})},click:function(){return r.onCellClick(o,s)}},onClick:function(){return r.onCellClick(o,s)},key:e})},p=0;p<r;p++)i.push(c.call(this,p,l,u));var h=[n("div",{onMouseleave:function(){return t.handleMouseLeave()},on:this.v3?void 0:{mouseleave:function(){return t.handleMouseLeave()},pointerdown:this.onDown,mousedown:this.onDown},key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onDown,onMousedown:this.onDown},[i]),n("div",{class:"k-status",key:"status",onPointerdown:this.onDown,on:this.v3?void 0:{pointerdown:this.onDown,mousedown:this.onDown},onMousedown:this.onDown},[d])];return n("span",[h])},methods:{cellMouseEnter:function(e){var t=e.row,n=e.col;this.row=t,this.col=n},handleMouseLeave:function(){this.row=-1,this.col=-1},onCellClick:function(e,t){this.$emit("cellclick",e,t)},onDown:function(e){this.$emit("down",e)}}};t.PopupGridVue2=l;var u=l;t.PopupGrid=u},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var s=o(n(1)).h,a=n(31),l=n(5),u=n(6),d=n(4),c=n(8),p=n(53),h={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=this.v3?this.htmlAreaRef:this.$refs.htmlArea},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=this,i=s||e,r=this.$props,o=r.view,p=r.settings,h=r.dir,f=d.provideLocalizationService(this),v=p.messages,m=v.viewHtmlDialogTitle,g=v.viewHtmlCancel,b=v.viewHtmlUpdate,y=i("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:this.v3?function(e){n.htmlAreaRef=e}:"htmlArea",value:this.v3?u.indentHtml(u.getHtml(o.state)):null,domProps:this.v3?void 0:{value:u.indentHtml(u.getHtml(o.state))}}),k=[i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:h},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:h,key:"cancel"},this.v3?function(){return[f.toLanguageString(g,c.messages[g])]}:[f.toLanguageString(g,c.messages[g])]),i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:h},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:h,key:"update"},this.v3?function(){return[f.toLanguageString(b,c.messages[b])]}:[f.toLanguageString(b,c.messages[b])])];return i(a.Dialog,{title:f.toLanguageString(m,c.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,c.messages[m]),closeIcon:!0,dir:h},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:h,style:"rtl"===h?{textAlign:"right"}:void 0},this.v3?function(){return[y,i(a.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[y,i(a.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=u.trimWhitespace(this.htmlArea?this.htmlArea.value:""),r=p.editorPropsKey.getState(t.state).preserveWhitespace;u.setHtml(i,n.commandName,{preserveWhitespace:r})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=h;var f=h;t.ViewHtmlDialog=f},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var s=o(n(1)).h,a=n(5),l=n(31),u=n(167),d=n(4),c=n(8),p=n(16),h=n(30),f=n(6),v=p.EditorToolsSettings.findAndReplace,m={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return v}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:f.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted:function(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){var e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated:function(){var e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){var i=n.state,r=i.tr,o=[];e.forEach((function(e){o.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),r.setMeta(f.textHighlightKey,o),r.setSelection(t||f.TextSelection.create(i.doc,i.selection.from)),n.dispatch(r)}},destroyed:s?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=s||e,i=d.provideLocalizationService(this),r=this.settings.messages,o=r.findReplaceDialogTitle,p=r.findReplaceTabFind,h=r.findReplaceTabReplace,f=r.findReplaceFindWhat,v=r.findReplaceReplaceWith,m=r.findReplaceReplace,g=r.findReplaceReplaceAll,b=r.findReplaceMatchCase,y=r.findReplaceMatchWord,k=r.findReplaceMatchCyclic,w=r.findReplaceUseRegExp,S=r.findReplacePrevMatch,C=r.findReplaceNextMatch,x=r.findReplaceMatches,$=this,O=$.matchCase,I=$.matchWord,T=$.matchCyclic,D=$.useRegExp,V=$.searchText,M=$.replaceText,N=$.nextMatch,R=n("div",{class:"k-search-options"},[n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-case"},id:"match-case",checked:this.v3?O:null,domProps:this.v3?void 0:{checked:O},onChange:this.onMatchCaseChecked,on:this.v3?void 0:{change:this.onMatchCaseChecked}}),n("label",{for:"match-case",attrs:this.v3?void 0:{for:"match-case"},class:"k-checkbox-label"},[i.toLanguageString(b,c.messages[b])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-whole"},id:"match-whole",checked:this.v3?I:null,domProps:this.v3?void 0:{checked:I},onChange:this.onMatchWordChecked,on:this.v3?void 0:{change:this.onMatchWordChecked}}),n("label",{for:"match-whole",attrs:this.v3?void 0:{for:"match-whole"},class:"k-checkbox-label"},[i.toLanguageString(y,c.messages[y])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-cyclic"},id:"match-cyclic",checked:this.v3?T:null,domProps:this.v3?void 0:{checked:T},onChange:this.onMatchCyclicChecked,on:this.v3?void 0:{change:this.onMatchCyclicChecked}}),n("label",{for:"match-cyclic",attrs:this.v3?void 0:{for:"match-cyclic"},class:"k-checkbox-label"},[i.toLanguageString(k,c.messages[k])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"regular-expression"},id:"regular-expression",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},onChange:this.onUseRegExpChecked,on:this.v3?void 0:{change:this.onUseRegExpChecked}}),n("label",{for:"regular-expression",attrs:this.v3?void 0:{for:"regular-expression"},class:"k-checkbox-label"},[i.toLanguageString(w,c.messages[w])])])]),B=function(e){var t="rtl"===this.$props.dir,r=n(a.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindPrev,on:this.v3?void 0:{click:this.onFindPrev}},this.v3?function(){return[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,c.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,c.messages[S])]),o=n(a.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindNext,on:this.v3?void 0:{click:this.onFindNext}},this.v3?function(){return[i.toLanguageString(C,c.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]}:[i.toLanguageString(C,c.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[r,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(x,c.messages[x]))]),o])},P=function(e){return n("div",{class:"k-edit-label"},[n("label",{ref:e,for:e,attrs:this.v3?void 0:{for:e}},[i.toLanguageString(f,c.messages[f])])])},E=function(e){return n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:e,attrs:this.v3?void 0:{id:e,type:"text"},ref:e,type:"text",class:"k-input-inner",value:this.v3?V:null,domProps:this.v3?void 0:{value:V},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},A=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,c.messages[v])])]),j=n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:"replaceWith",attrs:this.v3?void 0:{id:"replaceWith",type:"text"},class:"k-input-inner",type:"text",value:this.v3?M:null,domProps:this.v3?void 0:{value:M},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(l.Window,{title:i.toLanguageString(o,c.messages[o]),attrs:this.v3?void 0:{title:i.toLanguageString(o,c.messages[o]),windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},this.v3?function(){return[n(u.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])]}:[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])])]}:[n(u.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])]}:[n(u.TabStripTab,{title:i.toLanguageString(p,c.messages[p]),attrs:t.v3?void 0:{title:i.toLanguageString(p,c.messages[p])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),E.call(t,"findWhatFind")]),R,B.call(t,"findWhatFind")]),n(u.TabStripTab,{title:i.toLanguageString(h,c.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,c.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),E.call(t,"findWhatReplace"),A,j]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,c.messages[m])]}:[i.toLanguageString(m,c.messages[m])]),n(a.Button,{disabled:!Boolean(N),attrs:t.v3?void 0:{disabled:!Boolean(N)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,c.messages[g])]}:[i.toLanguageString(g,c.messages[g])])]),R,B.call(t,"findWhatReplace")])])])},methods:{onTabSelect:function(e){this.selectedTab=e.selected},onClose:function(){var e=this.$props.view,t=e.state,n=t.tr.setSelection(f.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage:function(e){var t=this.matches,n=this.nextMatch,i=0,r=0;if(t&&n){var o=t.findIndex((function(e){return e.eq(n)}));i=-1===o?t.length:o+1,r=t.length}return h.formatString(e,i,r)},onFindNext:function(){this.onFind()},onFindPrev:function(){this.onFind(!0)},onFind:function(e){void 0===e&&(e=!1);var t=this.$props.view,n=this.$data,i=n.searchText,r=n.matchCase,o=n.matchCyclic,s={text:i,matchWord:n.matchWord,matchCase:r,useRegExp:n.useRegExp,backward:e,matchCyclic:o},a=f.find(t.state,s);if(a){var l=t.state.tr.setSelection(a);l.scrollIntoView(),t.updateState(t.state.apply(l)),this._prevMatch=this.nextMatch,this.nextMatch=a,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace:function(){var e=this.$props.view,t=e.state.selection,n=this.$data.replaceText;if(!t.empty){var i=t.from,r=i+n.length,o=f.replace(t,n,e.state.tr);o.setSelection(f.TextSelection.create(o.doc,i,r)),o.scrollIntoView(),e.dispatch(o),this.setNextState({})}},onReplaceAll:function(){var e=this.$props.view,t=this.$data,n=t.searchText,i=t.replaceText,r=t.matchCase,o={text:n,matchWord:t.matchWord,matchCase:r,useRegExp:t.useRegExp};e.dispatch(f.replaceAll(e.state,i,o)),this.setNextState({})},onKeyDown:function(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked:function(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked:function(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked:function(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked:function(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange:function(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange:function(e){this.replaceText=e.target.value,this.setNextState()},setNextState:function(){var e=this.$props.view;if(this.searchText){var t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection,i=f.findAll(e.state.doc,t),r=!this.searchText&&i[0]||i.find((function(e){return e.from>=n.from}))||this.matchCyclic&&i[0]||void 0;this._prevMatch=this.nextMatch,this.matches=i,this.nextMatch=r}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0}}};t.FindAndReplaceDialogVue2=m;var g=m;t.FindAndReplaceDialog=g},function(e,t,n){"use strict";n.r(t);var i=n(78);n.d(t,"TabStrip",(function(){return i.a})),n.d(t,"TabStripVue2",(function(){return i.b}));var r=n(40);n.d(t,"TabStripContent",(function(){return r.a})),n.d(t,"TabStripContentVue2",(function(){return r.b}));var o=n(28);n.d(t,"TabStripNavigation",(function(){return o.a})),n.d(t,"TabStripNavigationVue2",(function(){return o.b}));var s=n(32);n.d(t,"TabStripNavigationItem",(function(){return s.a})),n.d(t,"TabStripNavigationItemVue2",(function(){return s.b}));var a=n(79);n.d(t,"TabStripTab",(function(){return a.a})),n.d(t,"TabStripTabVue2",(function(){return a.b}));var l=n(80);n.d(t,"Card",(function(){return l.a})),n.d(t,"CardVue2",(function(){return l.b}));var u=n(81);n.d(t,"CardHeader",(function(){return u.a})),n.d(t,"CardHeaderVue2",(function(){return u.b}));var d=n(82);n.d(t,"CardTitle",(function(){return d.a})),n.d(t,"CardTitleVue2",(function(){return d.b}));var c=n(83);n.d(t,"CardBody",(function(){return c.a})),n.d(t,"CardBodyVue2",(function(){return c.b}));var p=n(84);n.d(t,"CardActions",(function(){return p.a})),n.d(t,"CardActionsVue2",(function(){return p.b}));var h=n(85);n.d(t,"CardImage",(function(){return h.a})),n.d(t,"CardImageVue2",(function(){return h.b}));var f=n(86);n.d(t,"CardSubtitle",(function(){return f.a})),n.d(t,"CardSubtitleVue2",(function(){return f.b}));var v=n(87);n.d(t,"CardFooter",(function(){return v.a})),n.d(t,"CardFooterVue2",(function(){return v.b}));var m=n(88);n.d(t,"Avatar",(function(){return m.a})),n.d(t,"AvatarVue2",(function(){return m.b}));var g=n(89);n.d(t,"Drawer",(function(){return g.a})),n.d(t,"DrawerVue2",(function(){return g.b}));var b=n(90);for(var y in b)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return b[e]}))}(y);var k=n(33);n.d(t,"DrawerNavigation",(function(){return k.a})),n.d(t,"DrawerNavigationVue2",(function(){return k.b}));var w=n(91);for(var y in w)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return w[e]}))}(y);var S=n(92);n.d(t,"DrawerContent",(function(){return S.a})),n.d(t,"DrawerContentVue2",(function(){return S.b}));var C=n(93);for(var y in C)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return C[e]}))}(y);var x=n(34);n.d(t,"DrawerItem",(function(){return x.a})),n.d(t,"DrawerItemVue2",(function(){return x.b}));var $=n(94);for(var y in $)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(y);var O=n(95);for(var y in O)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return O[e]}))}(y);var I=n(96);for(var y in I)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return I[e]}))}(y);var T=n(97);for(var y in T)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return T[e]}))}(y);var D=n(98);n.d(t,"Stepper",(function(){return D.a})),n.d(t,"StepperVue2",(function(){return D.b}));var V=n(103);for(var y in V)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(y);var M=n(104);for(var y in M)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return M[e]}))}(y);var N=n(105);for(var y in N)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return N[e]}))}(y);var R=n(106);for(var y in R)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(y);var B=n(41);n.d(t,"Step",(function(){return B.a})),n.d(t,"StepVue2",(function(){return B.b}));var P=n(107);for(var y in P)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return P[e]}))}(y);var E=n(108);for(var y in E)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return E[e]}))}(y);var A=n(109);for(var y in A)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(y);var j=n(110);for(var y in j)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(y);var L=n(146);n.d(t,"Menu",(function(){return L.a})),n.d(t,"MenuVue2",(function(){return L.b}));var F=n(35);n.d(t,"MenuItemLink",(function(){return F.a})),n.d(t,"MenuItemLinkVue2",(function(){return F.b}));var z=n(36);n.d(t,"downArrowClass",(function(){return z.c})),n.d(t,"rightArrowClass",(function(){return z.e})),n.d(t,"leftArrowClass",(function(){return z.d})),n.d(t,"MenuItemArrow",(function(){return z.a})),n.d(t,"MenuItemArrowVue2",(function(){return z.b}));var K=n(111);for(var y in K)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return K[e]}))}(y);var _=n(112);for(var y in _)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return _[e]}))}(y);var H=n(152);n.d(t,"Splitter",(function(){return H.a})),n.d(t,"SplitterVue2",(function(){return H.b}));var W=n(37);n.d(t,"SplitterPane",(function(){return W.a})),n.d(t,"SplitterPaneVue2",(function(){return W.b}));var U=n(153);n.d(t,"PanelBar",(function(){return U.a})),n.d(t,"PanelBarVue2",(function(){return U.b}));var q=n(42);n.d(t,"PanelBarItem",(function(){return q.a})),n.d(t,"PanelBarItemVue2",(function(){return q.b}));var G=n(18);n.d(t,"renderChildren",(function(){return G.h})),n.d(t,"getFirstId",(function(){return G.d})),n.d(t,"getInitialState",(function(){return G.e})),n.d(t,"flatVisibleItems",(function(){return G.c})),n.d(t,"flatChildren",(function(){return G.a})),n.d(t,"flatVisibleChildren",(function(){return G.b})),n.d(t,"isPresent",(function(){return G.g})),n.d(t,"isArrayEqual",(function(){return G.f}));var J=n(113);for(var y in J)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return J[e]}))}(y);var X=n(114);for(var y in X)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return X[e]}))}(y);var Y=n(115);for(var y in Y)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Y[e]}))}(y);var Z=n(116);for(var y in Z)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Z[e]}))}(y)},function(e,t,n){"use strict";n.r(t);var i=n(21);n.d(t,"ColorPalette",(function(){return i.a}));var r=n(149);n.d(t,"ColorPicker",(function(){return r.a})),n.d(t,"ColorPickerVue2",(function(){return r.b}));var o=n(118);for(var s in o)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(119);for(var s in a)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var l=n(120);for(var s in l)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(s);var u=n(121);for(var s in u)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(s);var d=n(122);for(var s in d)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(s);var c=n(123);for(var s in c)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var p=n(124);for(var s in p)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return p[e]}))}(s);var h=n(125);for(var s in h)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return h[e]}))}(s);var f=n(54);n.d(t,"Switch",(function(){return f.a})),n.d(t,"SwitchVue2",(function(){return f.b}));var v=n(126);n.d(t,"InputSeparator",(function(){return v.a})),n.d(t,"InputSeparatorVue2",(function(){return v.b}));var m=n(145);n.d(t,"Input",(function(){return m.a})),n.d(t,"InputVue2",(function(){return m.b}));var g=n(150);n.d(t,"NumericTextBox",(function(){return g.a})),n.d(t,"NumericTextBoxVue2",(function(){return g.b}));var b=n(147);n.d(t,"MaskedTextBox",(function(){return b.a})),n.d(t,"MaskedTextBoxVue2",(function(){return b.b}));var y=n(127);for(var s in y)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return y[e]}))}(s);var k=n(128);n.d(t,"Slider",(function(){return k.a})),n.d(t,"SliderVue2",(function(){return k.b}));var w=n(38);n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return w.a})),n.d(t,"SliderLabel",(function(){return w.b})),n.d(t,"SliderLabelVue2",(function(){return w.c}));var S=n(151);n.d(t,"RangeSlider",(function(){return S.a})),n.d(t,"RangeSliderVue2",(function(){return S.b}));var C=n(129);for(var s in C)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return C[e]}))}(s);var x=n(130);for(var s in x)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return x[e]}))}(s);var $=n(131);for(var s in $)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(s);var O=n(132);n.d(t,"Checkbox",(function(){return O.a})),n.d(t,"CheckboxVue2",(function(){return O.b}));var I=n(133);n.d(t,"RadioGroup",(function(){return I.a})),n.d(t,"RadioGroupVue2",(function(){return I.b}));var T=n(134);for(var s in T)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return T[e]}))}(s);var D=n(135);for(var s in D)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return D[e]}))}(s);var V=n(136);for(var s in V)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(s);var M=n(39);n.d(t,"RadioButton",(function(){return M.a})),n.d(t,"RadioButtonVue2",(function(){return M.b}));var N=n(137);for(var s in N)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return N[e]}))}(s);var R=n(138);for(var s in R)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(s);var B=n(139);for(var s in B)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return B[e]}))}(s);var P=n(140);n.d(t,"TextArea",(function(){return P.a})),n.d(t,"TextAreaVue2",(function(){return P.b}));var E=n(141);for(var s in E)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return E[e]}))}(s);var A=n(142);for(var s in A)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(s);var j=n(143);for(var s in j)["default","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(s)},function(e,t,n){"use strict";n.r(t),n.d(t,"PDFExport",(function(){return y})),n.d(t,"PDFExportVue2",(function(){return b})),n.d(t,"savePDF",(function(){return k})),n.d(t,"GridPdfExport",(function(){return F})),n.d(t,"GridPdfExportVue2",(function(){return L}));var i=n(1),r=n(11);function o(e,t,n){void 0===n&&(n={});var i=d;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(a()&&(i=u),navigator.msSaveBlob&&(i=l)),i(e,t,n)}var s=function(){return document.createElement("a")},a=function(){return"download"in s()};function l(e,t){var n=e;if("string"==typeof e){for(var i=e.split(";base64,"),r=i[0],o=atob(i[1]),s=new Uint8Array(o.length),a=0;a<o.length;a++)s[a]=o.charCodeAt(a);n=new Blob([s.buffer],{type:r})}navigator.msSaveBlob(n,t)}function u(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=s();i.download=t,i.href=n;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r),setTimeout((function(){return URL.revokeObjectURL(n)}))}function d(e,t,n){if(n.proxyURL){var i=document.createElement("form");i.setAttribute("action",n.proxyURL),i.setAttribute("method","POST"),i.setAttribute("target",n.proxyTarget||"_self");var r=n.proxyData||{};r.fileName=t;var o=e.split(";base64,");for(var s in r.contentType=o[0].replace("data:",""),r.base64=o[1],r)if(r.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",r[s]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}}String.fromCharCode;var c=n(0),p=i,h=p.h,f=p.createApp,v=function(){function e(e,t,n,i,r){var o=this;void 0===r&&(r={}),this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=i,this.options=r,this.convertPageTemplateToHtml=function(e){if(h&&f&&c.canUseDOM){var t=o,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var i,r=document.createElement("div");n.appendChild(r),document.body.appendChild(n);var s={render:function(){return h(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick((function(){document.body.removeChild(n),i.unmount()}))}};return(i=f(s)).mount(r),r.outerHTML}var a=new(p.extend(o.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return a.$mount(),a.$el.outerHTML}}return e.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&n.then(e,e)},e.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}(),m={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1655701092,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},g=i.h,b={name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save:function(e){new v(r.drawDOM,r.exportPDF,o,this.$el,this.$props).savePDF(e)}},setup:g?function(){return{v3:!!g}}:void 0,created:function(){Object(c.validatePackage)(m)},render:function(e){return(g||e)("div",[Object(c.getDefaultSlots)(this)])}},y=b;function k(e,t,n){void 0===t&&(t={}),new v(r.drawDOM,r.exportPDF,o,e,t).savePDF(n)}var w,S={},C=function(e){return String(e).trim().split(" ")},x=function(e){return function(t){return function(e,t){var n=C(t);return Boolean(C(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},$=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=$(e,t);if(i)return i}e=e.nextSibling}}},O=(S[w="TABLE"]||(S[w]=function(e){return String(e.nodeName).toLowerCase()===w.toLowerCase()}),S[w]),I=function(e){return e?"locked":"wrap"},T=function(){function e(e){this.element=e,this.list=$(e,x("k-grid-container"))}return e.prototype.content=function(e){return $(this.list,x("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||$(this.element,x("k-grid-header")),$(this.headerWrap,x("k-grid-header-"+I(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||$(this.element,x("k-grid-footer")),$(this.footerWrap,x("k-grid-footer-"+I(e)))},e.prototype.table=function(){return $(this.element,O)},e}(),D=function(e,t){for(var n=t.length,i=0;i<n;i++)e.appendChild(t[i].cloneNode(!0))},V=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},M=function(e){var t=e.length,n=e[0].cloneNode(!0),i=n.rows.length;if(t>1)for(var r=0;r<i;r++)for(var o=1;o<t;o++)D(n.rows[r],e[o].rows[r].cells);return n},N=function(e,t,n,i){for(var r=document.createElement("table"),o=e[0].cloneNode(!0),s=1;s<e.length;s++)D(o,e[s].querySelectorAll("col"));var a=M(t),l=M(n);if(a.className="k-grid-header",function(e,t){if(t.length>1&&e.rows.length>1)for(var n=1;n<e.rows.length;n++){var i=t[0].rows[n].cells.length,r=e.rows[n].cells[i];-1===String(r.className).indexOf("k-first")&&(r.className+=" k-first")}}(a,t),r.appendChild(o),r.appendChild(a),r.appendChild(l),i.length){var u=M(i);u.className="k-grid-footer",r.appendChild(u)}return V(r)},R=function(){return(R=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},B=i,P=B.h,E=B.createApp;function A(e){return function(t,n,i,r,o){return void 0===n&&(n={}),function(e,t,n,i,r,o){void 0===n&&(n={});var s,a,l,u;function d(){e(h.call(this),n,p)}function p(){u.unmount?u.unmount():u.$destroy(),document.body.removeChild(s),document.body.removeChild(l),s=l=void 0,i&&i()}function h(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=function(e){var t,n=new T(e),i=n.content();if(i){var r=[i.querySelector("colgroup")],o=[n.header().querySelector("thead")],s=[i.querySelector("tbody")],a=n.footer(),l=a?[a.querySelector("tfoot")]:[];t=N(r,o,s,l)}else t=V(n.table().cloneNode(!0));return t}(this.$el);return l.appendChild(e),document.body.appendChild(l),e}!function(){if(c.canUseDOM){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),a=document.createElement("div"),s.appendChild(a),document.body.appendChild(s);var e=r&&{dataItems:r,total:r.length,pageSize:r.length,skip:0};if(o){var n={render:function(){return P(t.type,R(R({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),d.call(this)}};(u=E(n)).mount(a)}else{var i=Object.getPrototypeOf(t).constructor;(u=new i({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){u.$el.style&&(u.$el.style.width="1000px"),d.call(u)}})).$slots=t.$slots,u.$scopedSlots=t.$scopedSlots,u.$mount(a)}}}()}(e,t,n,i,r,o)}}var j=i.h,L={name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created:function(){this.saveGridPDF=A(this.getSavePDF())},methods:{save:function(e,t){var n=Object(c.getDefaultSlots)(this).filter((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("grid")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("grid")}));n.length&&(this.gridComponent=this.v3?n[0]:n[0].componentInstance,this.saveGridPDF(this.gridComponent,this.$props,t,e,this.v3))},getSavePDF:function(){return k}},setup:j?function(){return{v3:!!j}}:void 0,render:function(e){return(j||e)("div",[Object(c.getDefaultSlots)(this)])}},F=L;"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",y),window.Vue.component("kendo-grid-pdf-export",F))}])}));
|