@progress/kendo-vue-editor 3.5.1-dev.202208100944 → 3.5.1

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-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing","@progress/kendo-vue-intl","@progress/kendo-drawing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):e.KendoVueEditor=t(e.Vue,e.KendoLicensing,e.KendoVueIntl,e.KendoDrawing)}(self,(function(e,t,n,i){return(()=>{"use strict";var o={6445:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=a.markRaw,u=n(1536),p=n(7984),h=n(9157),f=n(1394),v=n(319),m=n(722),g=n(4361),y=n(6001),b=n(7578),k=n(709),w=m.EditorToolsSettings.link,S=m.EditorToolsSettings.bold,x=m.EditorToolsSettings.italic,C=m.EditorToolsSettings.underline,$=n(4056),I=n(169),O=n(3530),D=n(8060),M=n(3684),T=n(674),R=n(7947),B=n(1198),N=n(423),P=n(8356),E=n(1013),V=n(84),L=n(4165),A=n(9343),F=n(3976),z=n(8799),j=n(3381),K=n(8086),_=n(4312),H=n(1217),W=n(5555);t.allTools={Bold:{comp:R.InlineFormat,props:m.EditorToolsSettings.bold},Italic:{comp:R.InlineFormat,props:m.EditorToolsSettings.italic},Underline:{comp:R.InlineFormat,props:m.EditorToolsSettings.underline},Strikethrough:{comp:R.InlineFormat,props:m.EditorToolsSettings.strikethrough},Subscript:{comp:R.InlineFormat,props:m.EditorToolsSettings.subscript},Superscript:{comp:R.InlineFormat,props:m.EditorToolsSettings.superscript},AlignLeft:{comp:O.Align,props:m.EditorToolsSettings.alignLeft},AlignCenter:{comp:O.Align,props:m.EditorToolsSettings.alignCenter},AlignRight:{comp:O.Align,props:m.EditorToolsSettings.alignRight},AlignJustify:{comp:O.Align,props:m.EditorToolsSettings.alignJustify},Indent:{comp:D.Indent,props:m.EditorToolsSettings.indent},Outdent:{comp:T.Outdent,props:m.EditorToolsSettings.outdent},OrderedList:{comp:M.List,props:m.EditorToolsSettings.orderedList},UnorderedList:{comp:M.List,props:m.EditorToolsSettings.bulletList},FontSize:{comp:B.FontName,props:m.EditorToolsSettings.fontSize},FontName:{comp:B.FontName,props:m.EditorToolsSettings.fontName},FormatBlock:{comp:N.FormatBlock,props:m.EditorToolsSettings.formatBlock},Undo:{comp:P.ProseMirror,props:m.EditorToolsSettings.undo},Redo:{comp:P.ProseMirror,props:m.EditorToolsSettings.redo},Link:{comp:E.LinkTool,props:m.EditorToolsSettings.link},Unlink:{comp:V.Unlink,props:m.EditorToolsSettings.unlink},InsertImage:{comp:F.InsertImage,props:m.EditorToolsSettings.image},ViewHtml:{comp:j.ViewHtml,props:m.EditorToolsSettings.viewHtml},CleanFormatting:{comp:L.CleanFormatting,props:m.EditorToolsSettings.cleanFormatting},SelectAll:{comp:A.SelectAll,props:m.EditorToolsSettings.selectAll},InsertTable:{comp:z.InsertTable,props:m.EditorToolsSettings.insertTable},MergeCells:{comp:P.ProseMirror,props:m.EditorToolsSettings.mergeCells},SplitCell:{comp:P.ProseMirror,props:m.EditorToolsSettings.splitCell},AddRowBefore:{comp:P.ProseMirror,props:m.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:P.ProseMirror,props:m.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:P.ProseMirror,props:m.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:P.ProseMirror,props:m.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteRow},DeleteColumn:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteColumn},DeleteTable:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteTable},Print:{comp:_.Print,props:m.EditorToolsSettings.print},Pdf:{comp:K.Pdf,props:m.EditorToolsSettings.pdf},InsertFile:{comp:E.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:(0,p.guid)(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,(0,p.validatePackage)(I.packageMetadata)},mounted:function(){this.iframe=(0,p.getRef)(this,"iframe"),this.contentElement=(0,p.getRef)(this,"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&&((0,k.updateEditorValue)(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:d?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:d?function(){return{v3:!!d}}:void 0,render:function(e){var n=l||e,o=100,r=this.$props,s=r.tools,a=void 0===s?[]:s,d=r.defaultEditMode,h=void 0===d?"iframe":d,f=r.preserveWhitespace,v=void 0===f?"full":f,m=r.style,y=this.getView();this.view&&(b.editorPropsKey.getState(this.view.state).preserveWhitespace=v);var k=this.$props.contentStyle;void 0===k&&void 0===(m||{}).height&&(k={height:"300px"});var S=function(e,r){var s=t.allTools[e]||e;if(t.allTools[e]){o++;var a=i({view:y,dir:this.$props.dir,key:o,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return n(this.v3?c(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return n(u.ToolbarSeparator,{key:o});var l=p.templateRendering.call(this,s.render,p.getListeners.call(this));return p.getTemplate.call(this,{h:n,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:y,dir:this.$props.dir,updateGuid:this.updateGuid,key:o,settings:s.props}})},x=function(e,t){return e.map((function(e){return S.call(this,e,t)}),this)},C=a.map((function(e,t){var i=this;return Array.isArray(e)?n(u.ButtonGroup,{key:t},this.v3?function(){return[x.call(i,e,t)]}:[x.call(i,e,t)]):S.call(this,e,t)}),this);return n("div",{class:(0,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}},[C.length>0&&n(u.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[C]}:[C]),"iframe"===h?n("div",{class:"k-editor-content"},[n("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:(0,p.setRef)(this,"iframe"),frameborder:"0",attrs:this.v3?void 0:{frameborder:"0"},style:k,class:"k-iframe"})]):n("div",{style:k,class:"k-editor-content"},[n("div",{ref:(0,p.setRef)(this,"contentElement")})]),function(){return this.linkDialog&&n(g.InsertLinkDialog,{view:y,attrs:this.v3?void 0:{view:y,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?y.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&y.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=(0,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 o=n.createElement("meta");o.setAttribute("charset","utf-8"),n.head.appendChild(o),this.contentElement=n.createElement("div"),n.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content")}var r=this.contentElement;if(r){var a=this.$props.preserveWhitespace,l=void 0===a?"full":a,d=[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:b.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),(0,h.spacesFix)(),(0,h.history)(),(0,h.dropCursor)(),(0,h.gapCursor)(),(0,h.tableEditing)()],u=i(i({},y.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:S,italic:x,underline:C}})),{"Mod-k":function(){var t=e.$data.linkDialog,n=e.getView();if(n){var i=n.state,o=i.selection.empty,r=(0,h.getMark)(i,i.schema.marks[w.mark]);t||o&&!r||(e.linkDialog=!0)}return!t}}),p=this.$props,m=p.defaultContent,g=void 0===m?"":m,k=p.value,$=k&&"string"!=typeof k?k:y.EditorUtils.createDocument(new h.Schema({nodes:f.nodes,marks:f.marks}),k||g,{preserveWhitespace:l}),I={state:h.EditorState.create({plugins:s(s([],d,!0),[(0,h.keymap)(u),(0,h.keymap)(h.baseKeymap)],!1),doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},O={plugins:d,shortcuts:u,target:this,viewProps:I,dom:r};this.$emit("loaded",O);var D=this.$props.extendView&&this.$props.extendView(O)||new h.EditorView({mount:r},I);this.v3?this.view=c(D):this._view=D}},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,o=this,r={target:o,value:n,get html(){return o.htmlOnChange=y.EditorUtils.getHtml({doc:n,schema:i}),o.htmlOnChange},transaction:e,schema:i};this.$emit("change",r)}!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},319:(e,t)=>{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 }"},1394:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var o=n(9157);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return o.marks}});var r=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({},r("style")),r("class")),r("id")),l=(0,o.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 d=i(i({},o.nodes),l);t.nodes=d},8826:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var o=n(9157),r=n(722),s=r.EditorToolsSettings.bold,a=r.EditorToolsSettings.underline,l=r.EditorToolsSettings.italic,d="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=(0,o.chainCommands)(o.exitCode,(function(t,n){var i=e&&e.types&&e.types.hardBreak||"hard_break",o=t.schema.nodes[i];return n&&n(t.tr.replaceSelectionWith(o.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",r=e&&e.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return(0,o.toggleInlineFormat)(r.bold||s)(e,t)},"Mod-i":function(e,t){return(0,o.toggleInlineFormat)(r.italic||l)(e,t)},"Mod-u":function(e,t){return(0,o.toggleInlineFormat)(r.underline||a)(e,t)},"Mod-z":o.undo,"Shift-Mod-z":o.redo},i({},d?{}:{"Mod-y":o.redo})),{Backspace:o.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},d?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return(0,o.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,o.goToNextCell)(1),"Shift-Tab":(0,o.goToNextCell)(-1)})}},722:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var r,s,a=n(623),l=n(9157),d=i({},l.indentRules.listsTypes);r=t.EditorToolsSettings||(t.EditorToolsSettings={}),s={type:"button"},r.bold=i(i({},l.bold),{props:i({icon:"bold"},s),messages:{title:a.keys.bold},commandName:"Bold"}),r.italic=i(i({},l.italic),{props:i({icon:"italic"},s),messages:{title:a.keys.italic},commandName:"Italic"}),r.underline=i(i({},l.underline),{props:i({icon:"underline"},s),messages:{title:a.keys.underline},commandName:"Underline"}),r.strikethrough=i(i({},l.strikethrough),{props:i({icon:"strikethrough"},s),messages:{title:a.keys.strikethrough},commandName:"Strikethrough"}),r.subscript=i(i({},l.subscript),{props:i({icon:"subscript"},s),messages:{title:a.keys.subscript},commandName:"Subscript"}),r.superscript=i(i({},l.superscript),{props:i({icon:"superscript"},s),messages:{title:a.keys.superscript},commandName:"Superscript"}),r.link=i(i({},l.link),{props:i({icon:"link-horizontal"},s),messages:{insertHyperlink:a.keys.insertHyperlink,insertHyperlinkDialogTitle:a.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:a.keys.insertHyperlinkAddress,insertHyperlinkTitle:a.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:a.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:a.keys.insertHyperlinkCancel,insertHyperlinkInsert:a.keys.insertHyperlinkInsert},commandName:"Link"}),r.insertFile=i(i({},l.link),{props:i({icon:"file-add"},s),messages:{insertHyperlink:a.keys.insertFile,insertHyperlinkDialogTitle:a.keys.insertFileDialogTitle,insertHyperlinkAddress:a.keys.insertFileAddress,insertHyperlinkTitle:a.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:a.keys.insertFileCancel,insertHyperlinkInsert:a.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),r.insertTable={props:i({icon:"table-insert"},s),messages:{createTable:a.keys.createTable,createTableHint:a.keys.createTableHint},commandName:"InsertTable"},r.addRowBefore={command:l.addRowBefore,props:i({icon:"table-row-insert-above"},s),messages:{title:a.keys.addRowBefore},commandName:"AddRowBefore"},r.addRowAfter={command:l.addRowAfter,props:i({icon:"table-row-insert-below"},s),messages:{title:a.keys.addRowAfter},commandName:"AddRowAfter"},r.addColumnBefore={command:l.addColumnBefore,props:i({icon:"table-column-insert-left"},s),messages:{title:a.keys.addColumnBefore},commandName:"AddColumnBefore"},r.addColumnAfter={command:l.addColumnAfter,props:i({icon:"table-column-insert-right"},s),messages:{title:a.keys.addColumnAfter},commandName:"AddColumnAfter"},r.deleteRow={command:l.deleteRow,props:i({icon:"table-row-delete"},s),messages:{title:a.keys.deleteRow},commandName:"DeleteRow"},r.deleteColumn={command:l.deleteColumn,props:i({icon:"table-column-delete"},s),messages:{title:a.keys.deleteColumn},commandName:"DeleteColumn"},r.deleteTable={command:l.deleteTable,props:i({icon:"table-delete"},s),messages:{title:a.keys.deleteTable},commandName:"DeleteTable"},r.mergeCells={command:l.mergeCells,props:i({icon:"cells-merge"},s),messages:{title:a.keys.mergeCells},commandName:"MergeCells"},r.splitCell={command:l.splitCell,props:i({icon:"cell-split-horizontally"},s),messages:{title:a.keys.splitCell},commandName:"SplitCell"},r.print={props:i({icon:"print"},s),messages:{title:a.keys.print}},r.selectAll={props:i({icon:"select-all"},s),messages:{title:a.keys.selectAll}},r.pdf={props:i({icon:"pdf"},s),messages:{title:a.keys.pdf}},r.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},r.cleanFormatting={props:i({icon:"clear-css"},s),messages:{title:a.keys.cleanFormatting},commandName:"CleanFormatting"},r.image={node:"image",props:i({icon:"image"},s),messages:{insertImage:a.keys.insertImage,insertImageDialogTitle:a.keys.insertImageDialogTitle,insertImageAddress:a.keys.insertImageAddress,insertImageTitle:a.keys.insertImageTitle,insertImageAltText:a.keys.insertImageAltText,insertImageWidth:a.keys.insertImageWidth,insertImageHeight:a.keys.insertImageHeight,insertImageCancel:a.keys.insertImageCancel,insertImageInsert:a.keys.insertImageInsert},commandName:"InsertImage"},r.viewHtml={props:i({icon:"html"},s),messages:{viewHtml:a.keys.viewHtml,viewHtmlDialogTitle:a.keys.viewHtmlDialogTitle,viewHtmlCancel:a.keys.viewHtmlCancel,viewHtmlUpdate:a.keys.viewHtmlUpdate},commandName:"SetContent"},r.findAndReplace={props:i({icon:"find"},s),messages:{findReplaceToolTitle:a.keys.findReplaceToolTitle,findReplaceDialogTitle:a.keys.findReplaceDialogTitle,findReplaceTabFind:a.keys.findReplaceTabFind,findReplaceTabReplace:a.keys.findReplaceTabReplace,findReplaceFindWhat:a.keys.findReplaceFindWhat,findReplaceReplaceWith:a.keys.findReplaceReplaceWith,findReplaceReplace:a.keys.findReplaceReplace,findReplaceReplaceAll:a.keys.findReplaceReplaceAll,findReplaceMatchCase:a.keys.findReplaceMatchCase,findReplaceMatchWord:a.keys.findReplaceMatchWord,findReplaceMatchCyclic:a.keys.findReplaceMatchCyclic,findReplaceUseRegExp:a.keys.findReplaceUseRegExp,findReplacePrevMatch:a.keys.findReplacePrevMatch,findReplaceNextMatch:a.keys.findReplaceNextMatch,findReplaceMatches:a.keys.findReplaceMatches}},r.unlink=i(i({},l.link),{props:i({icon:"unlink-horizontal"},s),messages:{title:a.keys.unlink},commandName:"Unlink"}),r.undo={command:l.undo,props:i({icon:"undo"},s),messages:{title:a.keys.undo},commandName:"Undo"},r.redo={command:l.redo,props:i({icon:"redo"},s),messages:{title:a.keys.redo},commandName:"Redo"},r.fontSize={style:"font-size",defaultItem:{text:a.messages[a.keys.fontSize],value:"",localizationKey:a.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"},r.fontName={style:"font-family",defaultItem:{text:a.messages[a.keys.fontName],value:"",localizationKey:a.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"},r.formatBlock={defaultItem:{text:a.messages[a.keys.format],value:"",localizationKey:a.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"},r.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:a.keys.foregroundColor},commandName:"ForeColor"},r.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:a.keys.backgroundColor},commandName:"BackColor"},r.alignLeft={actions:o([],l.alignLeftRules,!0),props:i({icon:"align-left"},s),messages:{title:a.keys.alignLeft},commandName:"AlignLeft"},r.alignRight={actions:o([],l.alignRightRules,!0),props:i({icon:"align-right"},s),messages:{title:a.keys.alignRight},commandName:"AlignRight"},r.alignCenter={actions:o([],l.alignCenterRules,!0),props:i({icon:"align-center"},s),messages:{title:a.keys.alignCenter},commandName:"AlignCenter"},r.alignJustify={actions:o([],l.alignJustifyRules,!0),props:i({icon:"align-justify"},s),messages:{title:a.keys.alignJustify},commandName:"AlignJustify"},r.alignRemove={actions:o([],l.alignRemoveRules,!0),props:i({icon:"align-remove"},s),messages:{},commandName:"AlignRemove"},r.indent={actions:l.indentRules.nodes,listsTypes:d,props:i({icon:"indent-increase"},s),messages:{title:a.keys.indent},commandName:"Indent"},r.outdent={actions:l.outdentRules.nodes,listsTypes:d,props:i({icon:"indent-decrease"},s),messages:{title:a.keys.outdent},commandName:"Outdent"},r.orderedList={listType:d.orderedList,props:i({icon:"list-ordered"},s),messages:{title:a.keys.orderedList},commandName:"OrderedList",types:i({},d)},r.bulletList={listType:d.bulletList,props:i({icon:"list-unordered"},s),messages:{title:a.keys.bulletList},commandName:"UnorderedList",types:i({},d)}},9259:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(1536),d=n(8388),c=n(4035),u=n(5725),p=n(623),h=n(722),f=n(5901),v=n(9157),m=h.EditorToolsSettings.findAndReplace,g={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return m}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:(0,v.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,o=i.tr,r=[];e.forEach((function(e){r.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),o.setMeta(v.textHighlightKey,r),o.setSelection(t||v.TextSelection.create(i.doc,i.selection.from)),n.dispatch(o)}},destroyed:a?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=(0,u.provideLocalizationService)(this),o=this.settings.messages,r=o.findReplaceDialogTitle,a=o.findReplaceTabFind,h=o.findReplaceTabReplace,f=o.findReplaceFindWhat,v=o.findReplaceReplaceWith,m=o.findReplaceReplace,g=o.findReplaceReplaceAll,y=o.findReplaceMatchCase,b=o.findReplaceMatchWord,k=o.findReplaceMatchCyclic,w=o.findReplaceUseRegExp,S=o.findReplacePrevMatch,x=o.findReplaceNextMatch,C=o.findReplaceMatches,$=this,I=$.matchCase,O=$.matchWord,D=$.matchCyclic,M=$.useRegExp,T=$.searchText,R=$.replaceText,B=$.nextMatch,N=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?I:null,domProps:this.v3?void 0:{checked:I},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(y,p.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-whole"},id:"match-whole",checked:this.v3?O:null,domProps:this.v3?void 0:{checked:O},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(b,p.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-cyclic"},id:"match-cyclic",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},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,p.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?M:null,domProps:this.v3?void 0:{checked:M},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,p.messages[w])])])]),P=function(e){var t="rtl"===this.$props.dir,o=n(l.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-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]),r=n(l.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(x,p.messages[x]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]}:[i.toLanguageString(x,p.messages[x]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[o,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(C,p.messages[C]))]),r])},E=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,p.messages[f])])])},V=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?T:null,domProps:this.v3?void 0:{value:T},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},L=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,p.messages[v])])]),A=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?R:null,domProps:this.v3?void 0:{value:R},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(d.Window,{title:i.toLanguageString(r,p.messages[r]),attrs:this.v3?void 0:{title:i.toLanguageString(r,p.messages[r]),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(c.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(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])])]}:[n(c.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(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.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(v.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,o=0;if(t&&n){var r=t.findIndex((function(e){return e.eq(n)}));i=-1===r?t.length:r+1,o=t.length}return(0,f.formatString)(e,i,o)},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,o=n.matchCase,r=n.matchCyclic,s={text:i,matchWord:n.matchWord,matchCase:o,useRegExp:n.useRegExp,backward:e,matchCyclic:r},a=(0,v.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,o=i+n.length,r=(0,v.replace)(t,n,e.state.tr);r.setSelection(v.TextSelection.create(r.doc,i,o)),r.scrollIntoView(),e.dispatch(r),this.setNextState({})}},onReplaceAll:function(){var e=this.$props.view,t=this.$data,n=t.searchText,i=t.replaceText,o=t.matchCase,r={text:n,matchWord:t.matchWord,matchCase:o,useRegExp:t.useRegExp};e.dispatch((0,v.replaceAll)(e.state,i,r)),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=(0,v.findAll)(e.state.doc,t),o=!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=o}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0}}};t.FindAndReplaceDialogVue2=g;var y=g;t.FindAndReplaceDialog=y},3270:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7984),f={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=(0,h.getRef)(this,"src"),this.altText=(0,h.getRef)(this,"altText"),this.title=(0,h.getRef)(this,"title"),this.width=(0,h.getRef)(this,"width"),this.height=(0,h.getRef)(this,"height"),this.src&&this.src.focus()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,f=r.messages,v=f.insertImageDialogTitle,m=f.insertImageAddress,g=f.insertImageTitle,y=f.insertImageAltText,b=f.insertImageWidth,k=f.insertImageHeight,w=f.insertImageCancel,S=f.insertImageInsert,x=(0,u.provideLocalizationService)(this),C=o&&o.state,$={};C&&C.selection instanceof c.NodeSelection&&C.selection.node.type===C.schema.nodes[r.node]&&($=C.selection.node.attrs);var I=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[x.toLanguageString(m,p.messages[m])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"src")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[x.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"altText")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[x.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"title")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[x.toLanguageString(b,p.messages[b])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"width")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[x.toLanguageString(k,p.messages[k])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"height")})])])]),O=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[x.toLanguageString(w,p.messages[w])]}:[x.toLanguageString(w,p.messages[w])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:a,key:"insert"},this.v3?function(){return[x.toLanguageString(S,p.messages[S])]}:[x.toLanguageString(S,p.messages[S])])];return n(l.Dialog,{title:x.toLanguageString(v,p.messages[v]),attrs:this.v3?void 0:{title:x.toLanguageString(v,p.messages[v]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[I,n(l.DialogActionsBar,t.v3?function(){return[O]}:[O])]}:[I,n(l.DialogActionsBar,t.v3?function(){return[O]}:[O])])},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],o={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},r=Object.keys(o).filter((function(e){return null!==o[e]&&""!==o[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=o[t],n))}),{}),s=i.createAndFill(r);(0,c.insertNode)(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",r))})),this.onClose()}}};t.InsertImageDialogVue2=f;var v=f;t.InsertImageDialog=v},4361:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7984),f={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:a?function(){return{v3:!!a}}:void 0,mounted:function(){this.href=(0,h.getRef)(this,"href"),this.title=(0,h.getRef)(this,"title"),this.target=(0,h.getRef)(this,"target"),this.href&&this.href.focus()},render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,f=(0,u.provideLocalizationService)(this),v=r.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,y=v.insertHyperlinkTitle,b=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!o&&(0,c.getMark)(o.state,o.state.schema.marks[r.mark]),x=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[f.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:(0,h.setRef)(this,"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}})])]),n("div",{class:"k-edit-label k-editor-link-text-row"},[n("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[f.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field k-editor-link-text-row"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"title"),value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==r.linkTarget&&n("div",{class:"k-edit-field"},[n("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:(0,h.setRef)(this,"target"),checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),n("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[f.toLanguageString(b,p.messages[b])])])]);return n(l.Dialog,{title:f.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[x,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])])]}:[x,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.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};(0,c.applyLink)({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=f;var v=f;t.InsertLinkDialog=v},6607:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7578),f=n(7984),v={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=(0,f.getRef)(this,"htmlArea")},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,h=(0,u.provideLocalizationService)(this),v=r.messages,m=v.viewHtmlDialogTitle,g=v.viewHtmlCancel,y=v.viewHtmlUpdate,b=n("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:(0,f.setRef)(this,"htmlArea"),value:this.v3?(0,c.indentHtml)((0,c.getHtml)(o.state)):null,domProps:this.v3?void 0:{value:(0,c.indentHtml)((0,c.getHtml)(o.state))}}),k=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[h.toLanguageString(g,p.messages[g])]}:[h.toLanguageString(g,p.messages[g])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:a,key:"update"},this.v3?function(){return[h.toLanguageString(y,p.messages[y])]}:[h.toLanguageString(y,p.messages[y])])];return n(l.Dialog,{title:h.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:h.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=(0,c.trimWhitespace)(this.htmlArea?this.htmlArea.value:""),o=h.editorPropsKey.getState(t.state).preserveWhitespace;(0,c.setHtml)(i,n.commandName,{preserveWhitespace:o})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=v;var m=v;t.ViewHtmlDialog=m},623:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var i="editor.bold",o="editor.italic",r="editor.underline",s="editor.strikethrough",a="editor.subscript",l="editor.superscript",d="editor.hyperlink",c="editor.insertFile",u="editor.print",p="editor.selectAll",h="editor.cleanFormatting",f="editor.pdf",v="editor.foregroundColor",m="editor.backgroundColor",g="editor.createTable",y="editor.insertTableHint",b="editor.addRowBefore",k="editor.addRowAfter",w="editor.addColumnBefore",S="editor.addColumnAfter",x="editor.deleteRow",C="editor.deleteColumn",$="editor.deleteTable",I="editor.mergeCells",O="editor.splitCell",D="editor.hyperlink-dialog-title",M="editor.hyperlink-dialog-content-address",T="editor.hyperlink-dialog-content-title",R="editor.hyperlink-dialog-content-newwindow",B="editor.hyperlink-dialog-cancel",N="editor.hyperlink-dialog-insert",P="editor.insertfile-dialog-title",E="editor.insertfile-dialog-content-address",V="editor.insertfile-dialog-content-title",L="editor.insertfile-dialog-cancel",A="editor.insertfile-dialog-insert",F="editor.image",z="editor.image-dialog-title",j="editor.image-address",K="editor.image-title",_="editor.image-altText",H="editor.image-width",W="editor.image-height",U="editor.image-cancel",q="editor.image-insert",G="editor.viewHtml",J="editor.viewHtml-dialog-title",X="editor.viewHtml-cancel",Y="editor.viewHtml-update",Z="editor.unlink",Q="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",ie="editor.format",oe="editor.alignLeft",re="editor.alignRight",se="editor.alignCenter",ae="editor.alignJustify",le="editor.indent",de="editor.outdent",ce="editor.orderedList",ue="editor.bulletList",pe="editor.findReplace-tool-title",he="editor.findReplace-dialog-title",fe="editor.findReplace-tab-find",ve="editor.findReplace-tab-replace",me="editor.findReplace-findWhat",ge="editor.findReplace-replaceWith",ye="editor.findReplace-replace",be="editor.findReplace-replaceAll",ke="editor.findReplace-matchCase",we="editor.findReplace-matchWord",Se="editor.findReplace-matchCyclic",xe="editor.findReplace-useRegExp",Ce="editor.findReplace-prevMatch",$e="editor.findReplace-nextMatch",Ie="editor.findReplace-matches";t.messages=((n={})[i]="Bold",n[o]="Italic",n[r]="Underline",n[s]="Strikethrough",n[a]="Subscript",n[l]="Superscript",n[Z]="Remove hyperlink",n[Q]="Undo",n[ee]="Redo",n[te]="Font Size",n[ne]="Font Name",n[ie]="Format",n[oe]="Align text left",n[re]="Align text right",n[se]="Center text",n[ae]="Justify",n[le]="Indent",n[de]="Outdent",n[ce]="Insert ordered list",n[ue]="Insert unordered list",n[u]="Print",n[p]="Select All",n[h]="Clean formatting",n[f]="Export as PDF",n[v]="Color",n[m]="Background color",n[g]="Create a table",n[y]="Create a {0} x {1} table",n[b]="Add row above",n[k]="Add row below",n[w]="Add column on the left",n[S]="Add column on the right",n[x]="Delete row",n[C]="Delete column",n[$]="Delete table",n[I]="Merge cells",n[O]="Split cell",n[d]="Insert hyperlink",n[D]="Insert hyperlink",n[M]="Web address",n[T]="Title",n[R]="Open link in new window",n[B]="Cancel",n[N]="Insert",n[c]="Insert file",n[P]="Insert file",n[E]="Web address",n[V]="Title",n[L]="Cancel",n[A]="Insert",n[F]="Insert image",n[z]="Insert image",n[j]="Web address",n[K]="Title",n[_]="Alternate text",n[H]="Width (px)",n[W]="Height (px)",n[U]="Cancel",n[q]="Insert",n[G]="View HTML",n[J]="View HTML",n[X]="Cancel",n[Y]="Update",n[pe]="Find and Replace",n[he]="Find and Replace",n[fe]="Find",n[ve]="Replace",n[me]="Find What:",n[ge]="Replace With",n[ye]="Replace",n[be]="Replace All",n[ke]="Match Case",n[we]="Match whole word only",n[Se]="Match cyclic (Wrap around)",n[xe]="Regular Expression",n[Ce]="Prev",n[$e]="Next",n[Ie]="{0} of {1} matches",n),t.keys={bold:i,italic:o,underline:r,strikethrough:s,subscript:a,superscript:l,unlink:Z,undo:Q,redo:ee,fontSize:te,fontName:ne,format:ie,alignLeft:oe,alignRight:re,alignCenter:se,alignJustify:ae,indent:le,outdent:de,orderedList:ce,bulletList:ue,print:u,selectAll:p,cleanFormatting:h,pdf:f,foregroundColor:v,backgroundColor:m,createTable:g,createTableHint:y,addRowBefore:b,addRowAfter:k,addColumnBefore:w,addColumnAfter:S,deleteRow:x,deleteColumn:C,deleteTable:$,mergeCells:I,splitCell:O,insertHyperlink:d,insertHyperlinkDialogTitle:D,insertHyperlinkAddress:M,insertHyperlinkTitle:T,insertHyperlinkNewWindow:R,insertHyperlinkCancel:B,insertHyperlinkInsert:N,insertFile:c,insertFileDialogTitle:P,insertFileAddress:E,insertFileTitle:V,insertFileCancel:L,insertFileInsert:A,insertImage:F,insertImageDialogTitle:z,insertImageAddress:j,insertImageTitle:K,insertImageAltText:_,insertImageWidth:H,insertImageHeight:W,insertImageCancel:U,insertImageInsert:q,viewHtml:G,viewHtmlDialogTitle:J,viewHtmlCancel:X,viewHtmlUpdate:Y,findReplaceToolTitle:pe,findReplaceDialogTitle:he,findReplaceTabFind:fe,findReplaceTabReplace:ve,findReplaceFindWhat:me,findReplaceReplaceWith:ge,findReplaceReplace:ye,findReplaceReplaceAll:be,findReplaceMatchCase:ke,findReplaceMatchWord:we,findReplaceMatchCyclic:Se,findReplaceUseRegExp:xe,findReplacePrevMatch:Ce,findReplaceNextMatch:$e,findReplaceMatches:Ie}},169:(e,t)=>{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:1660124004,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"}},3530:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(722),u=n(9157),p=n(5725),h=n(623),f=c.EditorToolsSettings.alignRemove,v={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,c=!!l&&(0,u.isAligned)(l,r.actions),f=(0,p.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{selected:c,togglable:!0,title:f.toLanguageString(v,h.messages[v])}),r.props);return t(d.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:m},m))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,o=!!i&&(0,u.isAligned)(i,n.actions),r=o?f.actions:n.actions,s=o?f.commandName:n.commandName;return t&&(0,u.alignBlocks)(r,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=v;var m=v;t.Align=m},5555:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(961),c=n(9157),u=n(5725),p=n(623),h={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.colorPickerProps,r=n.dir,s=o.title,l=(0,u.provideLocalizationService)(this),c=i(i({},o),{dir:r,showButtons:!1,showClearButton:!1,showPreview:!1,title:s?l.toLanguageString(s,p.messages[s]):s});return t(d.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:c},c))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,o=t.colorPickerProps,r=t.commandName;if(n){(0,c.applyInlineStyle)({style:i,value:e.value},r)(n.state,n.dispatch);var s=o.view;"palette"===(void 0===s?"palette":s)&&n.focus()}}}};t.ApplyColorVue2=h;var f=h;t.ApplyColor=f},4165:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.cleanFormatting,f=(0,p.cleanFormatting)(),v={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return h}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=r.messages.title,p=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{disabled:!o||!f(o.state),title:p.toLanguageString(l,u.messages[l])}),r.props);return t(d.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:h},h))},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},1217:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9259),u=n(623),p=n(722),h=n(5725),f=p.EditorToolsSettings.findAndReplace,v={name:"KendoFindAndReplace",props:i({view:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view"]),s=(0,h.provideLocalizationService)(this),l=f.messages.findReplaceToolTitle,p=i(i(i({},r),{key:"tool",disabled:!o,title:s.toLanguageString(l,u.messages[l])}),f.props),v=t(d.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:p},p));return t("span",[v,this.showDialog&&o&&t(c.FindAndReplaceDialog,{view:o,attrs:this.v3?void 0:{view:o,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},1198:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(7142),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,o=n.view,r=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","dataItems","settings","defaultItem"]),v=s.style,m=o?(0,u.getInlineStyles)(o.state,{name:v,value:/^.+$/}):[],g=1===new Set(m).size?m[0]:null,y=r||s.items,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:g?y.find((function(e){return e.value===g})):g,dataItems:y,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},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},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,o=i.style,r=e.target.value;if(n){(0,u.applyInlineStyle)({style:o,value:r.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},423:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(7142),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,o=n.view,r=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","dataItems","settings","defaultItem"]),v=r||s.items,m=o&&o.state,g=m?(0,u.getBlockFormats)(m):[],y=1===new Set(g).size?g[0]:null,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:y?v.find((function(e){return e.value===y})):y,dataItems:v,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},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},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,o=e.target.value;if(n&&(0,u.formatBlockElements)(o.value,i.commandName)(n.state,n.dispatch)){var r=e.event;r&&"click"===r.type&&n.focus()}}}};t.FormatBlockVue2=v;var m=v;t.FormatBlock=m},8060:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h=l&&l.schema.nodes,f=h&&h[r.listsTypes.listItem],v=r.actions,m=!!l&&((0,c.isIndented)(l,v,s.dir)||v.some((function(e){return h[e.node]&&(0,c.hasNode)(l,h[e.node])})))&&!(0,c.hasNode)(l,f),g=!!l&&(0,c.canIndentAsListItem)(l,f),y=m||g,b=(0,u.provideLocalizationService)(this),k=r.messages.title,w=i(i(i({},s),{disabled:!y,title:b.toLanguageString(k,p.messages[k])}),r.props);return t(d.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:w},w))},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,o=!!e&&((0,c.isIndented)(e,i,this.dir)||i.some((function(n){return t[n.node]&&(0,c.hasNode)(e,t[n.node])})))&&!(0,c.hasNode)(e,n),r=!!e&&(0,c.canIndentAsListItem)(e,n);this.view&&r?(0,c.sinkListItem)(n)(this.view.state,this.view.dispatch):this.view&&o&&(0,c.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},7947:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h={mark:r.mark,altMarks:r.altMarks,altStyle:r.altStyle},f=(0,u.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{selected:!!l&&(0,c.hasMark)(l,h),togglable:!0,title:f.toLanguageString(v,p.messages[v])}),r.props);return t(d.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:m},m))},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&&(0,c.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},3976:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(9157),c=n(1536),u=n(3270),p=n(5725),h=n(623),f={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,f=l?l.schema.nodes[r.node]:void 0,v=(0,p.provideLocalizationService)(this),m=r.messages.insertImage,g=i(i(i({},s),{key:"insertImage",disabled:!f||!l||!(0,d.canInsert)(l,f),title:v.toLanguageString(m,h.messages[m])}),r.props),y=[t(c.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:g},g)),this.openedDialog&&o&&t(u.InsertImageDialog,{key:"insertImageDialog",view:o,attrs:this.v3?void 0:{view:o,settings:r,dir:g.dir},settings:r,dir:g.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},1013:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(4361),p=n(5725),h=n(623),f={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},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=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,f=!l||l.selection.empty,v=l&&(0,c.getMark)(l,l.schema.marks[r.mark]),m=(0,p.provideLocalizationService)(this),g=r.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:f&&!v,title:m.toLanguageString(g,h.messages[g])}),r.props),b=[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:y},y)),this.openedDialog&&o&&t(u.InsertLinkDialog,{key:"insertLinkDialog",settings:r,attrs:this.v3?void 0:{settings:r,dir:this.dir,view:o},dir:this.dir,view:o,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[b])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=f;var v=f;t.LinkTool=v},5085:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(3266),d=n(6764),c={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:a?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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.show,r=i.anchor,a=i.dir,c=i.rows,u=i.columns,p="rtl"===a?"right":"left";return n(l.Popup,{anchor:r,attrs:this.v3?void 0:{anchor:r,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:o},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:o,style:"rtl"===a?{direction:"rtl"}:void 0},this.v3?function(){return[n(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,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(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,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=c;var u=c;t.InsertTablePopup=u},6764:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(5901),d={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=[],o=this.$props.columns*this.$props.rows,r=this.$data,a=r.row,d=r.col,c=this.$props.createTableMessage;d>-1&&(c=(0,l.formatString)(this.$props.createTableHintMessage,a+1,d+1));for(var u=function(e,t,i){var o=this,r=Math.floor(e/this.$props.columns),s=e%this.$props.columns;return n("span",{class:"k-ct-cell k-disabled"+(s<=i&&r<=t?" ".concat("k-selected"):""),onMouseenter:function(){return o.cellMouseEnter({row:r,col:s})},on:this.v3?void 0:{mouseenter:function(){return o.cellMouseEnter({row:r,col:s})},click:function(){return o.onCellClick(r,s)}},onClick:function(){return o.onCellClick(r,s)},key:e})},p=0;p<o;p++)i.push(u.call(this,p,a,d));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},[c])];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=d;var c=d;t.PopupGrid=c},8799:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(7984),u=n(5085),p=n(5725),h=n(623),f=n(9157),v={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},d.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=(0,c.guid)()},data:function(){return{openedPopup:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,c=(0,p.provideLocalizationService)(this),v=r.messages,m=v.createTable,g=v.createTableHint,y=c.toLanguageString(m,h.messages[m]),b=c.toLanguageString(g,h.messages[g]),k=i(i(i({},s),{disabled:!l||!(0,f.canInsert)(l,l.schema.nodes.table),key:"InsertTable",title:y}),r.props),w=[t(d.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:k},k)),o&&t(u.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:b,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:b,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",[w])},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=(0,f.createTable)(n.state.schema.nodes,e,t);i&&(0,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},3684:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=!1,h=(0,u.provideLocalizationService)(this),f=r.messages.title,v=r.types,m=r.listType;if(o){var g=o.state,y=g.schema.nodes,b=(0,c.hasNode)(g,y[v.orderedList]),k=(0,c.hasNode)(g,y[v.bulletList]);l=m===v.orderedList?b&&!k:!b&&k}var w=i(i(i({},s),{selected:l,togglable:!0,title:h.toLanguageString(f,p.messages[f])}),r.props);return t(d.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:w},w))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,o=n.types,r=n.listType;this.view&&(0,c.toggleList)(t.state,t.dispatch,t,i({listType:r},o),n.commandName)},preventDefault:function(e){e.preventDefault()}}};t.ListVue2=h;var f=h;t.List=f},674:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h=!!l&&(0,c.isIndented)(l,r.actions,s.dir),f=(l&&l.schema.nodes[r.listsTypes.listItem],!!l&&(0,c.canOutdentAsListItem)(l,{nodes:r.actions,listsTypes:r.listsTypes})),v=h||f,m=(0,u.provideLocalizationService)(this),g=r.messages.title,y=i(i(i({},s),{disabled:!v,title:m.toLanguageString(g,p.messages[g])}),r.props);return t(d.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,o=t&&t.state,r=!!o&&(0,c.isIndented)(o,n.actions,i),s=o&&o.schema.nodes[n.listsTypes.listItem],a=!!o&&(0,c.canOutdentAsListItem)(o,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?(0,c.liftListItem)(s)(t.state,t.dispatch):t&&r&&(0,c.indentBlocks)(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=h;var f=h;t.Outdent=f},8086:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(9606),p=n(623),h=n(722),f=h.EditorToolsSettings.pdf,v=h.EditorToolsSettings.savePdfOptions,m={name:"KendoPdf",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=(n.view,n.render,n.settings),r=void 0===o?f:o,s=(n.savePdfOptions,n.savePdfCallback,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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings","savePdfOptions","savePdfCallback"])),l=r.messages.title,u=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{title:u.toLanguageString(l,p.messages[l])}),r.props);return t(d.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:h},h))},methods:{handleClick:function(){this.view&&(0,u.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},4312:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(722).EditorToolsSettings.print,h={name:"KendoPrint",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=void 0===r?p:r,l=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),h=o&&o.dom,f=h&&h.ownerDocument,v=f&&f.defaultView,m=s.messages.title,g=(0,c.provideLocalizationService)(this),y=i(i(i({},l),{disabled:!v||v===window,title:g.toLanguageString(m,u.messages[m])}),s.props);return t(d.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},8356:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(7984),u=n(5725),p=n(623),h={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||c.noop}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),c=r.messages.title,h=o&&o.state,f=!!h&&!this.command(h),v=i(i(i({},s),{disabled:f,title:l.toLanguageString(c,p.messages[c])}),r.props);return t(d.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:v},v))},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},9343:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.selectAll,f={name:"KendoSelectAll",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=(n.view,n.settings),r=void 0===o?h:o,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=r.messages.title,p=(0,c.provideLocalizationService)(this),f=i(i(i({},s),{title:p.toLanguageString(l,u.messages[l])}),r.props);return t(d.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:f},f))},methods:{handleClick:function(){this.view&&((0,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},84:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l={mark:r.mark},h=!!o&&(0,c.hasMark)(o.state,l),f=(0,u.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{disabled:!h,title:f.toLanguageString(v,p.messages[v])}),r.props);return t(d.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.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&(0,c.removeLink)(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=h;var f=h;t.Unlink=f},5901:(e,t)=>{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}},3381:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(6607),u=n(5725),p=n(623),h={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},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=a||e,n=this.$props,o=n.view,r=n.settings,s=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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),h=r.messages.viewHtml,f=i(i(i({},s),{key:"viewHtml",title:l.toLanguageString(h,p.messages[h])}),r.props),v=[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:f},f)),this.openedDialog&&o&&t(c.ViewHtmlDialog,{key:"viewHtmlDialog",view:o,attrs:this.v3?void 0:{view:o,settings:r,dir:f.dir},settings:r,dir:f.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[v])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=h;var f=h;t.ViewHtml=f},4056:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(9157),o=n(6001),r=function(e,t){var n=t.tr||e.state.tr.setSelection(new i.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||o.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML");e.updateState(e.state.apply(n))};t.updateEditorValue=function(e,t,n,i,o){"string"==typeof t?i&&t===o?r(e,{tr:i}):t!==n&&r(e,{html:t}):i&&t.eq(i.doc)?r(e,{tr:i}):e.state.doc.eq(t)||r(e,{doc:t})}},6001:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var s,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(8826)),l=n(1394),d=n(9157),c=n(7578);(s=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,d.alignBlocks)(t,n)(e.state,e.dispatch))},s.applyInlineStyle=function(e,t,n){return(0,d.applyInlineStyle)(t,n)(e.state,e.dispatch)},s.applyLink=function(e,t,n){return(0,d.applyLink)(t,n)(e.state,e.dispatch)},s.canIndentList=function(e,t){return(0,d.canIndentAsListItem)(e,t)},s.canInsert=function(e,t){return(0,d.canInsert)(e,t)},s.canOutdentList=function(e,t){return(0,d.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},s.convertMsLists=function(e){return(0,d.convertMsLists)(e)},s.createDocument=function(e,t,n){return(0,d.parseContent)((0,d.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},s.createTable=function(e,t,n){return(0,d.createTable)(e,t,n)},s.formatBlockElements=function(e,t,n){return(0,d.formatBlockElements)(t,n)(e.state,e.dispatch)},s.getBlockFormats=function(e){return(0,d.getBlockFormats)(e)},s.getHtml=function(e){return(0,d.getHtml)(e)},s.getInlineStyles=function(e,t){return(0,d.getInlineStyles)(e,t)},s.getMark=function(e,t){return(0,d.getMark)(e,t)},s.hasMark=function(e,t){return(0,d.hasMark)(e,t)},s.hasNode=function(e,t){return(0,d.hasNode)(e,t)},s.indentBlocks=function(e,t,n,i){return Boolean((0,d.indentBlocks)(t,n,i)(e.state,e.dispatch))},s.indentHtml=function(e){return(0,d.indentHtml)(e)},s.insertNode=function(e,t,n){(0,d.insertNode)(t,n)(e.state,e.dispatch)},s.isAligned=function(e,t){return(0,d.isAligned)(e,t)},s.isIndented=function(e,t,n){return(0,d.isIndented)(e,t,n)},s.removeComments=function(e){return(0,d.removeComments)(e)},s.removeTag=function(e,t){return(0,d.removeTag)(e,t)},s.pasteCleanup=function(e,t){return(0,d.pasteCleanup)(e,t)},s.sanitizeClassAttr=function(e){(0,d.sanitizeClassAttr)(e)},s.sanitizeStyleAttr=function(e){(0,d.sanitizeStyleAttr)(e)},s.removeAttribute=function(e){(0,d.removeAttribute)(e)},s.sanitize=function(e){return(0,d.sanitize)(e)},s.replaceImageSourcesFromRtf=function(e,t){return(0,d.replaceImageSourcesFromRtf)(e,t)},s.textHighlight=function(e){return(0,d.textHighlight)(e)},s.imageResizing=function(e){return(0,d.imageResizing)(e)},s.setHtml=function(e,t,n,i){var o=(0,d.trimWhitespace)(t);(0,d.setHtml)(o,n,i)(e.state,e.dispatch)},s.toggleInlineFormat=function(e,t,n,i){return(0,d.toggleInlineFormat)(t,n,i)(e.state,e.dispatch)},s.toggleList=function(e,t,n){return(0,d.toggleList)(e.state,e.dispatch,e,t,n)},s.getShortcuts=function(e){return a.getShortcuts(e)},s.propsKey=c.editorPropsKey,s.imageResizeKey=d.imageResizeKey,s.marks=i({},l.marks),s.nodes=i({},l.nodes)},7578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(9157);t.editorPropsKey=new i.PluginKey("editor-props")},4498:(e,t,n)=>{n.d(t,{pT:()=>x,Ue:()=>L,Mi:()=>T,jt:()=>A,RE:()=>F});var i=n(1895);const o={"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"};var r=n(7984),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},a=i,l=a.h,d=a.version&&"3"===a.version[0],c=a.ref,u=a.Transition,p=o,h={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:d?function(){return{v3:!!d,elementRef:c(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=l||e,i=this.$props,o=i.appear,a=i.enter,d=i.exit,c=i.transitionName,h=i.transitionEnterDuration,f=i.transitionExitDuration,v=(i.className,i.componentChildClassName),m=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),g=i.animationEnteredStyle,y=i.animationExitingStyle,b=i.animationExitedStyle,k=(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}}(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),(0,r.getDefaultSlots)(this)),w=this.v3?o:!!k,S=this.v3?u:"transition",x=[v,p["child-animation-container"]],C=a?h:0,$=d?f:0,I=[s({transitionDelay:"0ms",transitionDuration:"".concat(w?C:$,"ms")},this.$props.transitionStyle),{entering:s({transitionDuration:"".concat(C,"ms")},m),entered:s({},g),exiting:s({transitionDuration:"".concat($,"ms")},y),exited:s({},b)}[this.animationStep]],O={enter:C,leave:$},D=[w?n("div",{style:I,class:x,ref:this.v3?function(e){t.elementRef=e}:"element"},[k]):null];return n(S,{duration:O,attrs:this.v3?null:{duration:O,name:c,appear:o,appearClass:p["".concat(c,"-appear")]||"".concat(c,"-appear"),appearToClass:p["".concat(c,"-appear-active")]||"".concat(c,"-appear-active"),enterClass:p["".concat(c,"-enter")]||"".concat(c,"-enter"),enterToClass:p["".concat(c,"-enter-active")]||"".concat(c,"-enter-active"),leaveClass:p["".concat(c,"-exit")]||"".concat(c,"-exit"),leaveToClass:p["".concat(c,"-exit-active")]||"".concat(c,"-exit-active")},name:c,appear:o,appearFromClass:p["".concat(c,"-appear")]||"".concat(c,"-appear"),enterFromClass:p["".concat(c,"-enter")]||"".concat(c,"-enter"),leaveFromClass:p["".concat(c,"-exit")]||"".concat(c,"-exit"),appearToClass:p["".concat(c,"-appear-active")]||"".concat(c,"-appear-active"),enterToClass:p["".concat(c,"-enter-active")]||"".concat(c,"-enter-active"),leaveToClass:p["".concat(c,"-exit-active")]||"".concat(c,"-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)}},f={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123555,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"},v=i,m=v.h,g=v.version&&"3"===v.version[0],y=o,b={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:g?function(){return{v3:!!g}}:void 0,created:function(){(0,r.validatePackage)(f)},render:function(e){var t=m||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.id,i.tag,i.role),s=i.className,a=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}}(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[y["animation-container"],y["animation-container-relative"],s]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:o},class:a,role:o},[t(h,{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])])}},k=i,w=k.h,S=k.version&&"3"===k.version[0],x={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:S?function(){return{v3:!!S}}:void 0,render:function(e){var t=w||e,n=(0,r.getDefaultSlots)(this);return t(b,{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=i,$=(C.h,C.version&&C.version[0],Boolean,Boolean,Boolean,i),I=($.h,$.version&&$.version[0],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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}),O=i,D=O.h,M=O.version&&"3"===O.version[0],T={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,role: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:M?function(){return{v3:!!M}}:void 0,render:function(e){var t=D||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.id),s=(I(i,["direction","id"]),"slide-".concat(this.$props.direction));return t(b,{id:o,attrs:this.v3?void 0:{id:o,transitionName:s,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:s,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])}},R=i,B=(R.h,R.version&&R.version[0],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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}),N=i,P=N.h,E=N.version&&"3"===N.version[0],V=function(){},L={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=V);var n=e?e.firstElementChild:null;if(n){var i=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}(n),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}(n);this.$data.maxHeight=i,this.$data.maxWidth=o,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?"".concat(this.maxHeight,"px"):null}:{maxWidth:this.maxWidth?"".concat(this.maxWidth,"px"):null}).maxHeight,maxWidth:e.maxWidth}}}},setup:E?function(){return{v3:!!E}}:void 0,render:function(e){var t=P||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.childFactory,B(i,["direction","childFactory"]),"reveal-".concat(this.$props.direction));return t(b,{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:o},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:o},this.v3?function(){return[n]}:[n])}},A=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,o=e.duration,r=t&&1-t;return e.onStart&&e.onStart(),n=window.requestAnimationFrame((function s(a){i||(i=a);var l=(a-i+1)/o+r;l<=1?(e.onUpdate&&e.onUpdate(l),n=window.requestAnimationFrame(s),t=l):(e.onEnd&&e.onEnd(1),t=0)}))},F=function(e){e&&window.cancelAnimationFrame(e)}},1536:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>v,ButtonGroup:()=>C,ButtonGroupVue2:()=>x,ButtonItem:()=>ce,ButtonVue2:()=>f,Chip:()=>N,ChipList:()=>z,ChipListVue2:()=>F,ChipVue2:()=>B,DropDownButton:()=>Oe,DropDownButtonVue2:()=>Ie,FloatingActionButton:()=>se,FloatingActionButtonItem:()=>U,FloatingActionButtonItemVue2:()=>W,FloatingActionButtonVue2:()=>re,SplitButton:()=>ke,SplitButtonVue2:()=>be,Toolbar:()=>Ne,ToolbarItem:()=>Ae,ToolbarItemVue2:()=>Le,ToolbarSeparator:()=>_e,ToolbarSeparatorVue2:()=>Ke,ToolbarSpacer:()=>Ge,ToolbarSpacerVue2:()=>qe,ToolbarVue2:()=>Be});var i=n(1895),o=n(7984),r={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123715,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"},s=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"];const a={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"};var l,d,c=i,u=c.h,p=c.version&&"3"===c.version[0],h=a,f={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null,keydown:null},props:{ariaLabel:String,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(){(0,o.validatePackage)(r),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,r=t.iconClass,s=t.imageUrl,a=t.dir,l=t.size,d=t.shape,c=t.rounded,u=t.fillMode,p=t.themeColor,f=void 0!==i||void 0!==r||void 0!==s,v=(0,o.getDefaultSlots)(this);return(e={})[h.button]=!0,e["k-button-".concat(o.kendoThemeMaps.sizeMap[l]||l)]=l,e["k-button-".concat(d)]=d&&"rectangle"!==d,e["k-rounded-".concat(o.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-".concat(u)]=u,e["k-button-".concat(u,"-").concat(p)]=u&&p,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)},handleKeydown:function(e){this.disabled||this.$emit("keydown",e)}},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t=u||e,n=this.$props,i=n.togglable,r=n.icon,s=n.iconClass,a=n.imageUrl,l=n.imageAlt,d=(0,o.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,keydown:this.handleKeydown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,onKeydown:this.handleKeydown,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},[function(){if(a)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:l,src:a},class:"k-image",alt:l,src:a});if(r){var e=(0,o.classNames)("k-icon","k-button-icon","k-i-"+r);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])}},v=f,m=i,g=(m.h,m.version&&"3"===m.version[0]),y={name:"KendoButtonWrap",props:{},setup:g?function(){return{v3:!!g}}:void 0,render:function(e){return(0,o.getDefaultSlots)(this)[0]}},b=i,k=b.h,w=b.version&&"3"===b.version[0],S=a,x={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){(0,o.validatePackage)(r)},setup:w?function(){return{v3:!!w}}:void 0,render:function(e){var t,n=k||e,i=(0,o.getDefaultSlots)(this),r=function(e,t,i,r){var s,a=(0,o.classNames)(((s={})[S["state-disabled"]]=this.$props.disabled,s[S["group-start"]]=r?i:0===t,s[S["group-end"]]=r?0===t:i,s));return n(y,{class:a,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},s=(0,o.classNames)([S["button-group"]],((t={})["k-disabled"]=this.$props.disabled,t[S["button-group-stretched"]]=!!this.$props.width,t));return n("div",{style:{width:this.width},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:s},[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,o){return t.isValidButton(e)?r.call(t,e,o,o===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")}}},C=x;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(l||(l={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(d||(d={}));var $,I,O=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}($||($={})),function(e){e.toggle="toggle",e.remove="remove"}(I||(I={}));var D=i,M=D.h,T=D.version&&"3"===D.version[0],R=D.ref,B={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:o.noop},handleDispatchSelection:{default:o.noop},handleDispatchFocus:{default:o.noop}},created:function(){this.currentDir=void 0,(0,o.validatePackage)(r)},mounted:function(){this.chip=(0,o.getRef)(this,"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:I.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:d.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:l.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:I.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case o.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.prev,payload:this.$props.value,event:e});break;case o.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.next,payload:this.$props.value,event:e});break;case o.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:I.toggle,payload:this.$props.value,event:e});break;case o.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:l.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:T?function(){return{v3:!!T,chipRef:R(null)}}:void 0,render:function(e){var t,n=M||e,i=this.$props,r=i.size,s=i.rounded,a=i.themeColor,l=i.fillMode,d=i.look,c=i.type;return n("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabindex:(0,o.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:(0,o.setRef)(this,"chip"),dir:this.currentDir,tabindex:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,o.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-".concat(o.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-".concat(o.kendoThemeMaps.roundedMap[s]||s)]=s,t["k-chip-".concat(l)]=l,t["k-chip-".concat(l,"-").concat(a)]=Boolean(l&&a),t["k-chip-success"]="success"===c,t["k-chip-warning"]="warning"===c,t["k-chip-error"]="error"===c,t["k-chip-info"]="info"===c,t["k-chip-outline"]="outline"===d||"outlined"===d,t["k-chip-solid"]="solid"===d||"filled"===d,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&&n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.icon)}),n("span",{class:"k-chip-content"},[this.$props.text&&n("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&&n("span",{class:"k-chip-actions"},[n("span",{class:"k-chip-action k-chip-remove-action"},[n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}},N=B,P=function(){return P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},E=i,V=E.h,L=E.version&&"3"===E.version[0],A=E.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(){(0,o.validatePackage)(r),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=function(e,t){switch(t.selection){case $.single:switch(t.type){case I.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 I.remove:return t.payload===e?null:e;default:return e}case $.multiple:switch(t.type){case I.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):O(O([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case I.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):O(O([],e,!0),[t.payload],!1):e;default:return e}case $.none:return null;default:return e}}(this.computedValue,P(P({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case l.next:return n===t.items.length-1?e:t.items[n+1];case l.prev:return 0===n?e:t.items[n-1];case l.current:return t.payload;case l.reset:return null;default:return e}}(e.payload,P(P({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=function(e,t){switch(t.type){case d.add:break;case d.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case d.reorder:break;default:return e}}(this.computedDataItems,P(P({},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:L?function(){return{v3:!!L,chipListRef:A(null)}}:void 0,render:function(e){var t,n=V||e,i=this.$props.size;return n("div",{ref:(0,o.setRef)(this,"chipList"),role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabindex:(0,o.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:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,o.classNames)("k-chip-list",(t={},t["k-chip-list-".concat(o.kendoThemeMaps.sizeMap[i]||i)]=i,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=o.templateRendering.call(this,this.$props.chip,o.getListeners.call(this)),i=n(N,{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 o.getTemplate.call(this,{h:n,template:t,defaultRendering:i,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}},z=F,j=i,K=j.h,_=j.version&&"3"===j.version[0],H=j.ref,W={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=(0,o.getRef)(this,"element")},computed:{itemClassNames:function(){return(0,o.classNames)("k-fab-item",{"k-focus":this.focused,"k-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:_?function(){return{v3:!!_,elementRef:H(null)}}:void 0,render:function(e){var t=K||e,n=this.$props,i=n.disabled,r=n.id,s=n.tabIndex,a=n.dataItem,l=(n.customProp,a.text),d=a.icon,c=t("li",{ref:(0,o.setRef)(this,"element"),id:r,attrs:this.v3?void 0:{id:r,role:"menuitem",tabindex:(0,o.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(l||""," floatingactionbutton item")},class:this.itemClassNames,role:"menuitem",tabindex:(0,o.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(l||""," 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},[l&&t("span",{class:"k-fab-item-text"},[l]),d&&t("span",{class:(0,o.classNames)("k-fab-item-icon k-icon k-i-".concat(d))})]);return o.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:c,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}},U=W,q="16px",G=function(e){return"number"==typeof e?e+"px":e},J=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},X=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Y=function(e,t,n,i){var o=t.horizontal,r=t.vertical;if(e){var s=n&&void 0!==n.x?G(n.x):q,a=n&&void 0!==n.x?"calc(50% + ".concat(G(n.x),")"):"50%",l=n&&void 0!==n.y?G(n.y):q,d=n&&void 0!==n.y?"calc(50% + ".concat(G(n.y),")"):"50%";e.style.setProperty(Z(t,i),"center"===o?a:s),e.style.setProperty(Q(t),"middle"===r?d:l),i&&("top"!==r&&"bottom"!==r||"start"!==o||e.style.setProperty("left","unset"),"middle"===r&&"end"===o&&e.style.setProperty("right","unset"),"middle"===r&&"start"===o&&e.style.setProperty("left","unset"))}},Z=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},Q=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ee=n(3266),te=i,ne=te.h,ie=te.version&&"3"===te.version[0],oe=te.ref,re={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(){(0,o.validatePackage)(r),this.element=void 0,this._anchor=(0,o.guid)(),this.listId=(0,o.guid)(),this.buttonId=(0,o.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=(0,o.getRef)(this,"list"),this.popup=(0,o.getRef)(this,"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&&Y(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){Y(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),r=t.themeColor,s=t.fillMode,a=t.rounded;return(e={"k-fab":!0})["k-fab-".concat(i||"rectangle")]=null!==i,e["k-fab-".concat(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(o.kendoThemeMaps.roundedMap[a]||a)]=a,e["k-fab-".concat(s)]=s,e["k-fab-".concat(s,"-").concat(r)]=s&&r,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-".concat(this.$props.align.vertical,"-").concat(this.$props.align.horizontal)]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return(0,o.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){o.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 o.Keys.enter:case o.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case o.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case o.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case o.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case o.Keys.down:case o.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case o.Keys.up:case o.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:ie?function(){return{v3:!!ie,chipRef:oe(null),kendoAnchorRef:oe(null)}}:void 0,render:function(e){var t=this,n=this,i=ne||e,r=this.$props,s=r.align,a=r.disabled,l=r.icon,d=r.iconClass,c=r.id,u=r.items,p=r.text,h=r.tabIndex,f=r.accessKey,v=r.popupSettings,m=o.templateRendering.call(this,this.$props.item,o.getListeners.call(this)),g=function(){return u&&u.map((function(e,t){return i(U,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:"".concat(this.listId,"-").concat(t),disabled:a||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:m},id:"".concat(this.listId,"-").concat(t),disabled:a||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:m,class:(0,o.classNames)(e.className,(n=this.currentDir||"ltr",r=s.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===r?"end":"start"])),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown});var n,r}),this)},y=l&&!p,b=(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:c||this.buttonId,attrs:this.v3?void 0:{id:c||this.buttonId,role:u?"menubutton":"button",type:"button","aria-disabled":a,"aria-expanded":u?this.computedOpened:void 0,"aria-haspopup":!!u,"aria-label":"".concat(p||""," floatingactionbutton"),"aria-owns":u?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&u?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,o.getTabIndex)(h,a),accesskey:f,dir:this.currentDir,disabled:a},role:u?"menubutton":"button",type:"button","aria-disabled":a,"aria-expanded":u?this.computedOpened:void 0,"aria-haspopup":!!u,"aria-label":"".concat(p||""," floatingactionbutton"),"aria-owns":u?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&u?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,o.getTabIndex)(h,a),accesskey:f,dir:this.currentDir,disabled:a,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},[l?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:(0,o.classNames)("k-fab-icon k-icon k-i-".concat(l))}):d?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:d}):null,p&&i("span",{class:"k-fab-text"},[p])]),i(ee.Popup,{ref:(0,o.setRef)(this,"popup"),show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:v.animate,popupClass:(0,o.classNames)("k-popup-transparent k-fab-popup",v.popupClass),anchorAlign:v.anchorAlign||J(s,this.isRtl),popupAlign:v.popupAlign||X(s,this.isRtl)},anchor:this._anchor,animate:v.animate,popupClass:(0,o.classNames)("k-popup-transparent k-fab-popup",v.popupClass),anchorAlign:v.anchorAlign||J(s,this.isRtl),popupAlign:v.popupAlign||X(s,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:(0,o.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":c,id:t.listId},"aria-labelledby":c,id:t.listId,class:(0,o.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:y?b+"px":void 0,paddingRight:y?b+"px":void 0}},[g.call(t)])]}:[i("ul",{ref:(0,o.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":c,id:t.listId},"aria-labelledby":c,id:t.listId,class:(0,o.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:y?b+"px":void 0,paddingRight:y?b+"px":void 0}},[g.call(t)])])])}},se=re,ae=i,le=ae.h,de=ae.version&&"3"===ae.version[0],ce={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:de?function(){return{v3:!!de}}:void 0,render:function(e){var t=le||e,n=this.$props,i=n.dataItem,r=n.id,s=n.render,a=t("li",{id:r,attrs:this.v3?void 0:{id:r,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,r=e.index,a=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-".concat(i.icon):i.iconClass,d=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"}),a&&t("span",{class:"k-menu-link-text"},[a])]);return o.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||s,defaultRendering:d,additionalProps:{item:i,itemIndex:r,innerClass:this.innerClass,focused:this.focused}})}.call(this)]);return a}};const ue=function(e,t,n,i){if(n)return e;switch(t){case o.Keys.enter:case o.Keys.space:case o.Keys.esc:return-1;case o.Keys.up:case o.Keys.left:return Math.max(0,e-1);case o.Keys.down:case o.Keys.right:return Math.min(i-1,e+1);default:return e}};function pe(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function he(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var fe=function(){return fe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fe.apply(this,arguments)},ve=i,me=ve.h,ge=ve.version&&"3"===ve.version[0],ye=ve.ref,be={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=(0,o.guid)(),this.mainButton=null,this.guid=(0,o.guid)(),this.buttonsData=[],(0,o.validatePackage)(r)},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:ge?function(){return{v3:!!ge,kendoAnchorRef:ye(null)}}:void 0,render:function(e){var t=this,n=this,i=me||e;this.buttonsData=this.$props.items;var r=this.isRtl(),s=r?"rtl":void 0,a=this.$props,l=a.tabIndex,d=a.disabled,c=(0,o.getDefaultSlots)(this),u=function(){var e=this.$props,t=e.item,n=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var a="string"!=typeof e?fe(fe({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return i(ce,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(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,n,o.getListeners.call(this)),item:t,key:s,index:s,id:"".concat(this.guid,"-").concat(s)})}),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:s,attrs:this.v3?void 0:{dir:s}},[i(v,{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:d||void 0,tabIndex:l,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:s,type:"button","aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(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:d||void 0,tabIndex:l,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:s,ref:this._anchor,type:"button","aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,c]}:[t.$props.text,c]),i(v,{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:d||void 0,tabIndex:-1,look:this.$props.look,dir:s,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:d||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:s,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,s=void 0===n?{}:n,a=t.size;return i(ee.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(r),popupAlign:s.popupAlign||he(r)},show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(r),popupAlign:s.popupAlign||he(r),style:r?{direction:"rtl"}:void 0},this.v3?function(){return[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[u.call(e)])]}:[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[u.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=ue(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}}},ke=be,we=function(){return we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)},Se=i,xe=Se.h,Ce=Se.version&&"3"===Se.version[0],$e=Se.ref,Ie={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=(0,o.guid)(),this.wrapper=null,this.mainButton=null,this.guid=(0,o.guid)(),this.buttonsData=[],(0,o.validatePackage)(r)},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:Ce?function(){return{v3:!!Ce,kendoAnchorRef:$e(null)}}:void 0,render:function(e){var t=this,n=xe||e,i=this.isRtl(),r=i?"rtl":void 0,s=this.$props,a=s.tabIndex,l=s.disabled,d=(0,o.getDefaultSlots)(this);this.buttonsData=this.$props.items;var c=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 a="string"!=typeof e?we(we({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return n(ce,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(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:"".concat(this.guid,"-").concat(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:r,attrs:this.v3?void 0:{dir:r}},[n(v,{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:l||void 0,tabIndex:a,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:r,type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(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:l||void 0,tabIndex:a,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:r,ref:this._anchor,type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,d]}:[t.$props.text,d]),function(){var e=this,t=this.$props,r=t.popupSettings,s=void 0===r?{}:r,a=t.size;return n(ee.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(i),popupAlign:s.popupAlign||he(i)},show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(i),popupAlign:s.popupAlign||he(i),style:i?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[c.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[c.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=ue(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}}},Oe=Ie,De=function(){return De=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},De.apply(this,arguments)},Me=i,Te=Me.h,Re=Me.version&&"3"===Me.version[0],Be={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(","),(0,o.validatePackage)(r)},computed:{selectors:function(){return this.$props.buttons||s}},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:Re?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:Re?function(){return{v3:!!Re}}:void 0,render:function(e){var t=Te||e,n=(0,o.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(".k-dropdownlist > .k-button,.k-colorpicker > .k-button")):[]},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===o.Keys.left||e.keyCode===o.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===o.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 o=this.currentButtons[e];o&&(o.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 o={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",De(De({target:this},o),{nativeEvent:e}))}}}}},Ne=Be,Pe=i,Ee=Pe.h,Ve=Pe.version&&"3"===Pe.version[0],Le={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:Ve?function(){return{v3:!!Ve}}:void 0,render:function(e){return(Ee||e)("span",[(0,o.getDefaultSlots)(this)])}},Ae=Le,Fe=i,ze=Fe.h,je=Fe.version&&"3"===Fe.version[0],Ke={name:"KendoToolbarItem",setup:je?function(){return{v3:!!je}}:void 0,render:function(e){return(ze||e)(Ae,{class:"k-separator"})}},_e=Ke,He=i,We=He.h,Ue=He.version&&"3"===He.version[0],qe={name:"KendoToolbarItem",setup:Ue?function(){return{v3:!!Ue}}:void 0,render:function(e){return(We||e)("span",{class:"k-spacer"})}},Ge=qe},8388:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>m,DialogActionsBar:()=>w,DialogActionsBarVue2:()=>k,DialogVue2:()=>v,Window:()=>V,WindowVue2:()=>E});var i,o=n(1895),r=n(7984),s=n(1536),a=o,l=a.h,d=a.version&&"3"===a.version[0],c={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:d?function(){return{v3:!!d}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=l||e,i=this.$props,o=i.id,a=i.closeIcon,d=i.titleRender,c=i.title;return t=r.getTemplate.call(this,{h:n,template:d,defaultRendering:c}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:o,attrs:this.v3?void 0:{id:o}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[a&&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:1660123752,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"},p=o,h=p.h,f=p.version&&"3"===p.version[0],v={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:r.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(){(0,r.validatePackage)(u),this.titleId=this.generateTitleId()},setup:f?function(){return{v3:!!f}}: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:f?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===r.Keys.esc&&r.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"+(0,r.guid)()}},render:function(e){var t=h||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,o=i.title,s=i.width,a=i.height,l=i.minWidth,d=i.dir,u=i.contentStyle,p=i.wrapperId,f=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)):null,v=(0,r.getDefaultSlots)(this)||[];s=this.transformDimesion(s),a=this.transformDimesion(a),l=this.transformDimesion(l);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var y=void 0===this.$props.closeIcon||this.$props.closeIcon,b=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:p,dir:d},id:p,dir:d},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":o||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":o||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:a,minWidth:l}},[(o||f)&&t(c,{closeIcon:y,attrs:this.v3?void 0:{closeIcon:y,id:n,title:o,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:o,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:u},[v]),m])]);return this.$props.appendTo?t("div",[b]):b}},m=v,g=o,y=g.h,b=g.version&&"3"===g.version[0],k={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:b?function(){return{v3:!!b}}: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=y||e,n=(0,r.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}},w=k;!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(i||(i={}));var S=o,x=S.h,C=S.version&&"3"===S.version[0],$={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:C?function(){return{v3:!!C}}: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=x||e,n=this.$props,o=n.stage,a=n.title,l=n.titleRender,d=n.minimizeButton,c=n.maximizeButton,u=n.restoreButton,p=n.closeButton,h=r.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=r.getTemplate.call(this,{h:t,template:d,defaultRendering:f}),m=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}}),g=r.getTemplate.call(this,{h:t,template:c,defaultRendering:m}),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}}),b=r.getTemplate.call(this,{h:t,template:u,defaultRendering:y}),k=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}}),w=r.getTemplate.call(this,{h:t,template:p,defaultRendering:k});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"},[o===i.DEFAULT&&v,o===i.DEFAULT&&g,o!==i.DEFAULT&&b]),w])}},I=o,O=I.h,D=I.version&&"3"===I.version[0],M=["n","e","s","w","se","sw","ne","nw"],T={name:"ResizeHandlers",emits:{resize:null},setup:D?function(){return{v3:!!D}}: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=O||e;return t("div",[M.map((function(e,n){var i=this;return t(r.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)])}},R=function(){return R=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)},B=o,N=B.h,P=B.version&&"3"===B.version[0],E={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:r.templateDefinition,closeButton:r.templateDefinition,minimizeButton:r.templateDefinition,maximizeButton:r.templateDefinition,restoreButton:r.templateDefinition,shouldUpdateOnDrag:Boolean,stage:{type:String,validator:function(e){return-1!==["DEFAULT","MINIMIZED","FULLSCREEN"].indexOf(e)}}},setup:P?function(){return{v3:!!P}}:void 0,created:function(){(0,r.validatePackage)(u),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()}},beforeDestroy:P?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:P?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 r.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case r.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case r.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case r.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 r.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 r.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 r.Keys.esc:return void this.handleCloseWindow(e);case r.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case r.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case r.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case r.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,o=this.$props.minWidth||120,r=this.$props.minHeight||100,s=this.computedTop-e.pageY,a=this.computedLeft-e.pageX,l=e.pageX-this.computedLeft,d=e.pageY-this.computedTop;this.isDragging=!t.end,t.direction.indexOf("n")>=0&&r-(i+s)<0&&(this.currentTop=e.pageY,this.currentHeight=i+s),t.direction.indexOf("s")>=0&&r-d<0&&(this.currentHeight=d),t.direction.indexOf("w")>=0&&o-(n+a)<0&&(this.currentLeft=e.pageX,this.currentWidth=n+a),t.direction.indexOf("e")>=0&&o-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=N||e,o=(0,r.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)),a=r.templateRendering.call(this,this.$props.closeButton,r.getListeners.call(this)),l=r.templateRendering.call(this,this.$props.minimizeButton,r.getListeners.call(this)),d=r.templateRendering.call(this,this.$props.maximizeButton,r.getListeners.call(this)),c=r.templateRendering.call(this,this.$props.restoreButton,r.getListeners.call(this)),u=(0,r.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-focus")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-focus")},blur:function(e){return e.target.classList.remove("k-focus")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-focus")},onKeydown:this.handleKeyDown,ref:"windowElement",class:o,style:R({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||0},this.$props.windowStyle)},[n(r.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($,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c},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:d,restoreButton:c})]}:[n($,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c},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:d,restoreButton:c})]),this.windowStage!==i.MINIMIZED?n("div",{class:"k-content k-window-content"},[u]):null,this.windowStage===i.DEFAULT&&this.$props.resizable?n(T,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[p]):p}},V=E},7142:(e,t,n)=>{n.r(t),n.d(t,{AutoComplete:()=>_e,AutoCompleteVue2:()=>Ke,ComboBox:()=>Pe,ComboBoxVue2:()=>Ne,DropDownList:()=>he,DropDownListVue2:()=>pe,MultiSelect:()=>ut,MultiSelectVue2:()=>ct});var i,o=n(1895),r=n(7984),s=n(1536),a=n(3266),l=o,d=l.h,c=l.version&&"3"===l.version[0],u={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:c?function(){return{v3:!!c}}: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=d||e,i=(0,r.getDefaultSlots)(this),o=this.$props,s=(o.onMouseDown,o.onBlur,o.width),l=o.dir,c=o.popupSettings,u=c.popupClass,p=c.className,h=c.animate,f=c.anchor,v=c.show,m=(c.open,c.close,c.itemsCount);return n(a.Popup,{style:{width:s,direction:l},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:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}},p=u,h=o,f=h.h,v=h.version&&"3"===h.version[0],m=h.ref,g=r.kendoThemeMaps.sizeMap,y=r.kendoThemeMaps.roundedMap,b={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,o=t.fillMode;return(e={"k-searchbox k-input":!0})["k-input-".concat(g[n]||n)]=n,e["k-rounded-".concat(y[i]||i)]=i,e["k-input-".concat(o)]=o,e}},setup:v?function(){return{v3:!!v,inputRef:m(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=(0,r.getRef)(this,"input")},render:function(e){var t=f||e;return t("span",{class:"k-list-filter"},[t("span",{class:this.spanClass},[t("span",{class:"k-input-icon k-icon k-i-search"}),t("input",{ref:(0,r.setRef)(this,"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})])])}},k=b,w=function(e){return null!=e},S=function(e,t,n){if(!w(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},x=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var r=($(e[o],n)||"")+"";if(r&&r.toLowerCase().startsWith(t)){i=o;break}}}return i},C=function(e,t,n,i){void 0===i&&(i=!1);var o=function(e){return i?e:e.toLowerCase()};return e.findIndex((function(e){return n?o($(e,n))===o(t):o(t)===o(e.toString())}))},$=function(e,t){if(t&&w(e)){var n=t.split("."),i=e;return n.forEach((function(e){i=i?i[e]:void 0})),i}return e},I=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return O(e,t,n)}));-1!==i&&e.splice(i,1)}))},O=function(e,t,n){return e===t||w(e)===w(t)&&$(e,n)===$(t,n)},D=function(e,t,n){if(t){var i=C(e,t,n,!0);return-1!==i?e[i]:e[x(e,t,n)]}return e[0]},M=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},T=o,R=T.h,B=T.version&&"3"===T.version[0],N={name:"list-default-item",props:{defaultItem:[Object,String],textField:String,selected:Boolean},setup:B?function(){return{v3:!!B}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClick:function(e){this.$emit("defaultitemclick",e)}},render:function(e){var t=R||e,n=this.$props,i=n.selected,o=n.defaultItem,s=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:(0,r.classNames)("k-list-optionlabel",{"k-selected":i})},[$(o,s)||""])}},P=N,E=function(){return E=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)},V=o,L=V.h,A=V.version&&"3"===V.version[0],F={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:A?function(){return{v3:!!A}}: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=L||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:(0,r.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"},[$(this.$props.dataItem,this.$props.textField).toString()])]);return r.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:i,additionalProps:E(E({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}},z=n(5725),j="dropdowns.nodata",K="dropdowns.expandbutton",_="dropdowns.clear",H=((i={})[_]="clear",i[K]="expand button",i[j]="NO DATA FOUND.",i),W=o,U=W.h,q=W.version&&"3"===W.version[0],G=W.ref,J=W.inject,X={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:q?function(){return{v3:!!q,listRef:G(null),kendoLocalizationService:J("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=(0,r.getRef)(this,"list")},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=U||e,n=(0,r.getDefaultSlots)(this),i=(0,z.provideLocalizationService)(this),o=this.$props,s=o.id,a=o.show,l=o.wrapperCssClass,d=o.wrapperStyle,c=o.listStyle,u=(o.listRef,function(){var e=this.$props,n=e.textField,i=e.valueField,o=e.optionsGuid,r=e.skip,s=void 0===r?0:r,a=e.focusedIndex,l=e.highlightSelected,d=e.value,c=e.itemRender,u=Array.isArray(d);return this.$props.dataItems.map((function(e,r){var p=s+r,h=l&&(!u&&O(e,d,i)||u&&-1!==d.findIndex((function(t){return O(t,e,i)})));return t(F,{id:"option-".concat(o,"-").concat(p),attrs:this.v3?void 0:{id:"option-".concat(o,"-").concat(p),dataItem:e,selected:h,focused:a===r,index:p,textField:n,render:c},dataItem:e,selected:h,focused:a===r,index:p,key:p,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:n,render:c})}),this)}.call(this));return u.length?t("div",{class:l,style:d,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[t("ul",{id:s,attrs:this.v3?void 0:{id:s,role:"listbox","aria-live":"polite","aria-hidden":!a||void 0},role:"listbox","aria-live":"polite","aria-hidden":!a||void 0,class:"k-list-ul",ref:(0,r.setRef)(this,"list"),style:c},[u]),n]):function(){var e=this.$props.noDataRender,n=t("div",{class:"k-nodata"},[t("div",[i.toLanguageString(j,H[j])])]);return r.getTemplate.call(this,{h:t,template:e,defaultRendering:n})}.call(this)}},Y=X;const Z=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,o=this.listTranslate,r=i-o;if(!(r>n)){for(t=0;t<this.skip&&!(o+n+r<=i);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,o=this.listTranslate,r=this.list.children.length;for(t=0;t<r&&!(o+n>=i);t++)o+=n;o=this.validateTranslate(o),t>=r&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),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),Math.min(this.containerHeight,e)},e}();var Q=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===r.Keys.up||t===r.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===r.Keys.down||t===r.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===r.Keys.home?0:t===r.Keys.end?e.max:void 0},e.prototype.next=function(e){return w(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),ee={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123787,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"},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},te.apply(this,arguments)},ne=function(){function e(e){var t=this;this.vs=new Z,this.navigation=new Q,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,o=i.textField;i.filterable&&n.events.push({type:"filterchange",filter:{field:o,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 o=i.translate;0===o&&(i.calcScrollElementHeight(),o=i.itemHeight*e.skip,i.translateTo(o-i.itemHeight)),i.container&&(i.container.scrollTop=o),t.scrollToItem(n,!0)}setTimeout((function(){return i.enabled=!0}),10)},(0,r.validatePackage)(ee),this.listBoxId=(0,r.guid)(),this.guid=(0,r.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,o=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&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 o=this.vs,r=o.container||n.parentNode;if(r){var s=void 0!==t?t:o.enabled;!function(e,t,n,i,o){var r=e.offsetHeight,s=t*n+(o?i-e.scrollTop:0);if(o){var a=0;s+t>r?a=s+t-r:s<0&&(a=s),0!==a?e.scrollTop+=a:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>r+e.scrollTop?e.scrollTop=s+t-r:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(r,i.offsetHeight,e,o.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 o=e.type;delete e.type,o&&("change"===o&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(o,te(te({},i),e)))}))},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.$props.virtual;if(i){var o=Math.min(Math.max(0,t),Math.max(0,i.total-n));o!==i.skip&&e.events.push({type:"pagechange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.dataItemKey,s=n.virtual,a=void 0!==n.opened?n.opened:this.component.currentOpened;e&&s&&this.vs.enabled&&(s.skip>0&&O(e,o[0],r)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!a&&s.skip+s.pageSize<s.total&&O(e,o[o.length-1],r)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();const ie=ne;var oe,re=function(){return re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},re.apply(this,arguments)},se=o,ae=se.h,le=se.version&&"3"===se.version[0],de=se.ref,ce=r.kendoThemeMaps.sizeMap,ue=r.kendoThemeMaps.roundedMap,pe={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},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 ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:le?function(){return{v3:!!le,selectRef:de(null),baseWrapperRef:de(null),kendoAnchorRef:de(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=(0,r.getRef)(this,"select"),this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=e.virtual,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&r,l=this.$refs.list,d=this.$refs.filterInput,c=this.$refs.scrollElement;if(this.$refs.scroller,l&&(this.base.vs.list=l.list,this.base.list=l.list),c&&(this.base.vs.scrollElement=c),d&&(this.filterInput=d),l&&n.length&&this.base.vs.scrollerRef(l.$el),this.$props.popupSettings.animate||a&&this.onPopupOpened(),o&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return O(e,u,i)})),f=!O(p,u,i);a&&o?(this.base.scrollToVirtualItem(o,h),this.prevCurrentOpened=!0):a&&!o?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):r&&s&&u&&f&&!this._navigated?this.base.scrollToItem(h):r&&s&&this._navigated&&(this._navigated&&o&&0===o.skip?this.base.vs.reset():this._navigated&&o&&o.skip===o.total-o.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,o=this.computedValue();return n.findIndex((function(e){return O(e,o,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),w(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 $(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?$(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,o=void 0===i?[]:i,r=n.virtual,s=n.dataItemKey,a=n.defaultItem,l=r?r.skip:0,d=-1===e&&void 0!==a?a:o[e-l],c=!O(d,this.computedValue(),s);this.triggerOnChange(d,t),c&&this.base.triggerPageChangeCornerItems(d,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.defaultItem,s=n.dataItemKey,a=n.virtual,l=void 0===a?{skip:0,total:0,pageSize:0}:a,d=this.base.vs,c=this.computedValue(),u=o.findIndex((function(e){return O(e,c,s)})),p=this.base.navigation.navigate({current:l.skip+u,max:(d.enabled?l.total:o.length)-1,min:void 0!==r?-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,o=i.dataItems,r=void 0===o?[]:o,s=i.dataItemKey,a=r.map((function(e,t){return{item:e,itemIndex:t}})),l=this.searchState.word,d=this.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,d),u=a.length,p=Math.max(0,r.findIndex((function(e){return O(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},u+=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+=c?1:0,t);for(var h,f,v,m=0,g=this.$props,y=g.textField,b=g.ignoreCase;m<u;m++)if(h=$(a[m].item,y),f=c&&S(h,d,b),v=S(h,l,b),f||v){m=a[m].itemIndex;break}if(m!==u){var k=this.base.initState();k.event=e,this.handleItemSelect(m,k),this.applyState(k),this.valueDuringOnChange=void 0}},handleKeyDown:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.leftRightKeysNavigation,s=t.filterable,a=t.disabled,l=t.virtual,d=void 0===l?{skip:0,total:0,pageSize:0}:l,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=e.keyCode,p=u===r.Keys.home||u===r.Keys.end,h=u===r.Keys.up||u===r.Keys.down,f=!c&&(e.altKey&&u===r.Keys.down||u===r.Keys.enter||u===r.Keys.space),v=c&&(e.altKey&&u===r.Keys.up||u===r.Keys.esc),m=o&&(u===r.Keys.left||u===r.Keys.right),g=h||!s&&(m||p),y=this.base.initState();if(y.event=e,!a){if(p&&this.base.vs.enabled)u===r.Keys.home?0!==d.skip?(this.base.triggerOnPageChange(y,0,d.pageSize),this._navigated=!0):this.triggerOnChange(i[0],y):d.skip<d.total-d.pageSize?(this.base.triggerOnPageChange(y,d.total-d.pageSize,d.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],y);else if(c&&u===r.Keys.enter){var b=this.focusedIndex();void 0!==b&&this.handleItemSelect(b,y),this.base.togglePopup(y),e.preventDefault()}else f||v?(this.base.togglePopup(y),e.preventDefault()):g&&(this.onNavigate(y,u),e.preventDefault());this.applyState(y)}},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!==r.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=w(this.$props.filter)?this.$props.filter:this.currentText,t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.virtual,r=void 0===o?{skip:0}:o,s=t.dataItemKey,a=t.textField,l=t.focusedItemIndex,d=this.computedValue(),c=!(i.findIndex((function(e){return O(e,d,s)}))<0&&!this.$props.defaultItem);return!c&&e&&0===r.skip?l?l(i,e,a):i.indexOf(D(i,e,a)):c||0!==r.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){O(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=ae||e,i=this.$props,o=i.style,a=i.className,l=i.label,d=i.dir,c=i.virtual,u=void 0===c?{skip:0}:c,h=i.size,f=i.rounded,v=i.fillMode,m=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,g=$(this.computedValue(),this.$props.textField),y=!this.$props.validityStyles||this.validity().valid,b=this.base,w=b.vs,S=this.$props.id||this.inputId;w.enabled=void 0!==this.$props.virtual;var x=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),C=this.$props,I=C.dataItemKey,D=C.dataItems,T=void 0===D?[]:D,R=C.disabled,B=C.tabIndex,N=C.loading,E=C.iconClassName,V=r.templateRendering.call(this,this.$props.valueRender,r.getListeners.call(this)),L=this.currentFocused,A=this.primitiveValue(),F=T.findIndex((function(e){return O(e,A,I)})),z=n("span",{class:"k-input-inner"},[n("span",{class:"k-input-value-text"},[g])]),j=r.getTemplate.call(this,{h:n,template:V,defaultRendering:z,additionalProps:re({value:this.computedValue()},this.$data)}),K=function(){var e=this.$props,t=e.textField,i=e.defaultItem;return void 0!==i&&n(P,{defaultItem:i,attrs:this.v3?void 0:{defaultItem:i,textField:t,selected:O(this.computedValue(),i,I)},textField:t,selected:O(this.computedValue(),i,I),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},_=function(){var e=this,t=this.$props.textField,i=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),o=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),s=u.skip,a="translateY(".concat(w.translate,"px)");return n(Y,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:m,dataItems:T.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:x.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,skip:s,itemRender:i,noDataRender:o},show:m,dataItems:T.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:x.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,key:"listkey",skip:s,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:w.scrollHandler},itemRender:i,noDataRender:o,onScroll:w.scrollHandler},this.v3?function(){return[W.call(e)]}:[W.call(e)])},H=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&n(k,{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})},W=function(){return w.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&(b.vs.skip=u.skip,b.vs.total=u.total,b.vs.pageSize=u.pageSize);var U=n("span",{ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),class:(0,r.classNames)("k-dropdownlist k-picker",a,(t={},t["k-picker-".concat(ce[h]||h)]=h,t["k-rounded-".concat(ue[f]||f)]=f,t["k-picker-".concat(v)]=v,t["k-focus"]=L,t["k-disabled"]=R,t["k-invalid"]=!y,t["k-loading"]=N,t["k-required"]=this.required,t)),style:l?re(re({},o),{width:void 0}):o,dir:d,attrs:this.v3?void 0:{dir:d,tabindex:(0,r.getTabIndex)(B,R),accesskey:this.$props.accessKey,role:"listbox","aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(F+(u?u.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:m?M:r.noop,on:this.v3?void 0:{mousedown:m?M:r.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:R?r.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabindex:(0,r.getTabIndex)(B,R),accesskey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:R?r.noop:this.handleWrapperClick,"aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(F+(u?u.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},[j,N&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:h,fillMode:v,rounded:null,iconClass:(0,r.classNames)("k-icon k-i-arrow-s",E)},tabIndex:-1,size:h,fillMode:v,rounded:null,class:"k-input-button",iconClass:(0,r.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){return n("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:S,tabindex:-1,"aria-hidden":!0,title:this.$props.label},id:S,ref:(0,r.setRef)(this,"select"),tabindex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[n("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,A),function(){var e,t=this,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),o=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),s=r.getTemplate.call(this,{h:n,template:i}),a=r.getTemplate.call(this,{h:n,template:o}),l=void 0!==x.width?x.width:b.popupWidth;return n(p,{onMousedown:M,on:this.v3?void 0:{mousedown:M,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==d?d:b.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==d?d:b.dirCalculated,width:l,popupSettings:{popupClass:(0,r.classNames)(x.popupClass,"k-list",(e={},e["k-list-".concat(ce[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:x.className,animate:x.animate,anchor:this.anchor,show:m}},width:l,popupSettings:{popupClass:(0,r.classNames)(x.popupClass,"k-list",(e={},e["k-list-".concat(ce[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:x.className,animate:x.animate,anchor:this.anchor,show:m},onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[H.call(t),K.call(t),s&&n("div",{class:"k-list-header"},[s]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])]}:[H.call(t),K.call(t),s&&n("div",{class:"k-list-header"},[s]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])])}.call(this)]);return l?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}},[U,this.$props.label?S?n("label",{for:S,attrs:this.v3?void 0:{for:S},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):U}},he=pe,fe=o,ve=fe.h,me=fe.version&&"3"===fe.version[0],ge=fe.ref,ye={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 o=this.input,s=this.$data.prevValue!==t||n!==this.prevSuggestedText,a=s&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&o&&r.canUseDOM&&document.activeElement!==o&&o.focus(),n&&s&&!a&&o&&o.setSelectionRange(t.length-n.length,t.length)},setup:me?function(){return{v3:!!me,inputRef:ge(null)}}:void 0,mounted:function(){this.input=(0,r.getRef)(this,"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){return(ve||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:"combobox",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-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":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:"combobox",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:(0,r.setRef)(this,"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-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}},be=ye,ke=o,we=ke.h,Se=ke.version&&"3"===ke.version[0],xe=ke.inject,Ce={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:Se?function(){return{v3:!!Se,kendoLocalizationService:xe("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=we||e,n=(0,z.provideLocalizationService)(this).toLanguageString(_,H[_]);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"})])}},$e=function(){return $e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$e.apply(this,arguments)},Ie=o,Oe=Ie.h,De=Ie.version&&"3"===Ie.version[0],Me=Ie.ref,Te=Ie.inject,Re=r.kendoThemeMaps.sizeMap,Be=r.kendoThemeMaps.roundedMap,Ne={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)}}},inject:{kendoLocalizationService:{default:null}},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 ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:De?function(){return{v3:!!De,inputRef:Me(null),elementRef:Me(null),kendoAnchorRef:Me(null),kendoLocalizationService:Te("kendoLocalizationService",{})}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=e.virtual,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&r,l=this.$refs.list,d=this.$refs.scrollElement,c=this.computedValue();if(this.valueOnDidUpdate=c,l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),l&&n.length&&this.base.vs.scrollerRef(l.$el),o&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.prevCurrentValue,p=n.findIndex((function(e){return O(e,c,i)})),h=!O(u,c,i);a&&o?(this.base.scrollToVirtualItem(o,p),this.prevCurrentOpened=!0):a&&!o?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):r&&s&&c&&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,o=this.computedValue();return n.findIndex((function(e){return O(e,o,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 $(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?$(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,o=void 0===i?[]:i,r=n.virtual,s=n.dataItemKey,a=o[e-(r?r.skip:0)],l=!O(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,o=void 0===i?[]:i,r=n.virtual,s=void 0===r?{skip:0}:r,a=this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedIndex(),d=this.base.vs,c=this.computedValue();if(this.suggested="",-1===l||w(c))if(""===a)this.handleItemSelect(0,e);else{var u=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:u,max:(d.enabled?d.total:o.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,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=$(this.computedValue(),s)===e?this.index:C(r,e,s),c=-1!==d,u=void 0;if(this.suggested="",c)u=r[d];else{if(!a)return this.selectFocusedItem(e,t);u=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(u,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,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=$(this.computedValue(),s);if(this.suggested="",e===d||""===e&&!w(d))return l&&this.base.togglePopup(t),this.applyState(t);var c=C(r,e,s,!0),u=null;-1!==c?u=r[c]:a&&(u=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(u,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,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.virtual,l=void 0===a?{skip:0}:a,d=i.focusedItemIndex,c=void 0===d?x:d,u=l.skip,p=""===e&&0===u?0:c(r,e,s);return-1!==p?this.handleItemSelect(p+u,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,o=this.base.initState();if(o.event=e,!e.altKey&&(n===r.Keys.up||n===r.Keys.down))return e.preventDefault(),this.onNavigate(o,n),void this.applyState(o);var s=function(){e.preventDefault(),t.base.togglePopup(o),t.applyState(o)};i?e.altKey&&n===r.Keys.up?s():n===r.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,o)):n===r.Keys.esc&&s():e.altKey&&n===r.Keys.down?s():n===r.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,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,o=i.value;if(this.$props.suggest){var r=i.selectionEnd===o.length,s=void 0!==this.$props.filter?this.$props.filter:this.currentText;w(s)||(s=$(this.computedValue(),this.$props.textField)||"");var a=s&&s===o,l=s&&s.length>o.length;a||l||!r?this.suggested="":this.suggestValue(o)}void 0===this.$props.filter&&(t.data.currentText=o),void 0!==this.currentFocusedItem&&(t.data.focusedItem=void 0),n||this.base.togglePopup(t),this.base.filterChanged(o,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,o=t.textField,r=t.dataItemKey,s=t.virtual,a=void 0===s?{skip:0}:s,l=t.focusedItemIndex,d=void 0===l?x:l,c=this.$props.filter?this.$props.filter:this.currentText;return w(e)&&void 0===c?i.findIndex((function(t){return O(t,e,r)})):c?d(i,c,o):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 o=t[x(t,e,n)];if(o){var r=$(o,n);e.toLowerCase()!==r.toLowerCase()&&(i=r.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();!w(n)&&!w(e)||O(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=Oe||e,i=this.$props,o=i.dir,a=i.disabled,l=i.clearButton,d=i.label,c=i.textField,u=i.className,h=i.style,f=i.loading,v=i.iconClassName,m=i.virtual,g=i.size,y=i.fillMode,b=i.rounded,k=this.currentFocused,S=!this.$props.validityStyles||this.validity().valid,x=void 0!==this.$props.filter?this.$props.filter:this.currentText,C=$(this.computedValue(),c),I=w(x)?x:C,D=l&&(!!I||w(this.computedValue())),M=this.base,T=M.vs,R=this.$props.id||this.inputId,B=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),N=(0,z.provideLocalizationService)(this).toLanguageString(K,H[K]);T.enabled=void 0!==m,void 0!==m&&(T.skip=m.skip,T.total=m.total,T.pageSize=m.pageSize);var P=function(){var e=this,t=this.$props,i=t.dataItemKey,o=t.dataItems,s=void 0===o?[]:o,a=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),l=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this));m||(m={skip:0});var d=m.skip,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p="translateY(".concat(T.translate,"px)"),h=u?this.getFocusedIndex():void 0,f=w(x)&&x!==C?null:this.computedValue();return n(Y,{id:M.listBoxId,attrs:this.v3?void 0:{id:M.listBoxId,show:u,dataItems:s,focusedIndex:h,value:f,textField:c,valueField:i,optionsGuid:M.guid,wrapperStyle:{maxHeight:B.height},wrapperCssClass:"k-list-content",listStyle:T.enabled?{transform:p}:void 0,skip:d,itemRender:a,noDataRender:l},show:u,dataItems:s,focusedIndex:h,value:f,textField:c,valueField:i,optionsGuid:M.guid,ref:"list",wrapperStyle:{maxHeight:B.height},wrapperCssClass:"k-list-content",listStyle:T.enabled?{transform:p}:void 0,key:"listkey",skip:d,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:T.scrollHandler},itemRender:a,noDataRender:l,onScroll:T.scrollHandler},this.v3?function(){return[E.call(e)]}:[E.call(e)])},E=function(){return T.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},V=n("span",{class:(0,r.classNames)("k-combobox k-input",(t={},t["k-input-".concat(Re[g]||g)]=g,t["k-rounded-".concat(Be[b]||b)]=b,t["k-input-".concat(y)]=y,t["k-invalid"]=!S,t["k-loading"]=f,t["k-required"]=this.required,t["k-disabled"]=a,t["k-focus"]=k&&!a,t),u),ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),style:d?$e($e({},h),{width:void 0}):h,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var i=this,o=this.$props,r=o.placeholder,s=o.tabIndex,l=o.dataItems,d=void 0===l?[]:l,c=o.dataItemKey;m||(m={skip:0});var u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,d.findIndex((function(e){return O(e,p,c)})));return this.suggested&&!O(this.valueOnDidUpdate,p,c)&&(this.suggested=""),n(be,{id:t,attrs:this.v3?void 0:{id:t,placeholder:r,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,disabled:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:r,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,ref:this.v3?function(e){i.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:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,I||"",R),D&&!f&&n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),f&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,"aria-label":N,size:g,fillMode:y,rounded:null,iconClass:(0,r.classNames)("k-icon k-i-arrow-s",v)},tabIndex:-1,"aria-label":N,size:g,fillMode:y,rounded:null,class:"k-input-button",iconClass:(0,r.classNames)("k-icon k-i-arrow-s",v),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,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),a=r.getTemplate.call(this,{h:n,template:i}),l=r.getTemplate.call(this,{h:n,template:s}),d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=void 0!==B.width?B.width:M.popupWidth;return n(p,{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:B.animate,anchor:this.anchor,show:d,popupClass:(0,r.classNames)(B.popupClass,"k-list",(e={},e["k-list-".concat(Re[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:B.className,appendTo:B.appendTo},dir:void 0!==o?o:this.base.dirCalculated},popupSettings:{animate:B.animate,anchor:this.anchor,show:d,popupClass:(0,r.classNames)(B.popupClass,"k-list",(e={},e["k-list-".concat(Re[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:B.className,appendTo:B.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),P.call(t),l&&n("div",{class:"k-list-footer"},[l])]}:[a&&n("div",{class:"k-list-header"},[a]),P.call(t),l&&n("div",{class:"k-list-footer"},[l])])}.call(this)]);return d?n("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}},[V,this.$props.label?R?n("label",{for:R,attrs:this.v3?void 0:{for:R},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):V}},Pe=Ne,Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)},Ve=o,Le=Ve.h,Ae=Ve.version&&"3"===Ve.version[0],Fe=Ve.ref,ze=r.kendoThemeMaps.sizeMap,je=r.kendoThemeMaps.roundedMap,Ke={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 ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:Ae?function(){return{v3:!!Ae,inputRef:Fe(null),kendoAnchorRef:Fe(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",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],o=this.prevData!==t,r=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&&(r||o)||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?$(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=$((void 0===n?[]:n)[e],this.$props.textField);this.triggerOnChange(i,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.textField,s=o[e];O(this.$data.focusedItem,s,r)||(t.data.focusedItem=s)},togglePopup:function(e){this.base.togglePopup(e)},onNavigate:function(e,t){var n=this,i=this.computedValue(),o=this.$props,r=o.dataItems,s=void 0===r?[]:r,a=o.textField,l=o.focusedItemIndex,d=void 0!==this.$data.focusedItem?s.findIndex((function(e){return O(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf(D(s,i,a)),c=this.base.navigation.navigate({keyCode:t,current:d,max:s.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},applyInputValue:function(e,t,n){var i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.$props,s=o.dataItems,a=void 0===s?[]:s,l=o.textField;if(this.suggested="",i&&n===r.Keys.enter){var d=$(a[this.focusedIndex(e)],l);this.triggerOnChange(d,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,o=n.selectionEnd===i.length;t.event=e;var r=this.suggested,s=this.computedValue(),a=s&&r&&s.substring(0,s.length-r.length),l=a&&a===i,d=a&&a.length>i.length,c=this.$props.suggest,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==c&&!1!==c){l||d||!o?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);(!u&&i||u&&!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(),o=this.computedValue();i.event=e;var s=function(){n&&e.preventDefault()};t===r.Keys.enter||n&&t===r.Keys.esc||e.altKey&&t===r.Keys.up?(s(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):e.altKey||t!==r.Keys.up&&t!==r.Keys.down?n||t!==r.Keys.esc?!n&&o&&e.altKey&&t===r.Keys.down&&(this.togglePopup(i),this.applyState(i)):this.clearButtonClick(e):(s(),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(Ee({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,o=t.textField,r=i[x(i,e,o)];if(r){var s=$(r,o);e.toLowerCase()!==s.toLowerCase()&&(this.suggested=s.substring(e.length))}}},focusedIndex:function(e){var t=this,n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.textField,s=n.focusedItemIndex,a=void 0!==e?e:this.computedValue();return void 0!==this.$data.focusedItem?o.findIndex((function(e){return O(e,t.$data.focusedItem,r)})):s?s(o,a,r):Math.max(0,o.indexOf(D(o,a,r)))}},render:function(e){var t,n=Le||e,i=this.$props,o=i.dir,s=i.disabled,a=i.label,l=i.size,d=i.rounded,c=i.fillMode,u=i.style,h=i.loading,f=i.suggest,v=!this.$props.validityStyles||this.validity().valid,m=this.currentFocused,g=this.base,y=this.computedValue(),b=!h&&!!y,k=this.$props.id||this.inputId,w=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof f&&(this.suggested=f);var S=function(){var e=this.$props,t=e.textField,i=e.dataItems,o=void 0===i?[]:i,s=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),a=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(Y,{id:g.listBoxId,attrs:this.v3?void 0:{id:g.listBoxId,show:l,dataItems:o.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",itemRender:s,noDataRender:a},show:l,dataItems:o.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,ref:"list",wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:s,noDataRender:a})},x=n("span",{class:(0,r.classNames)("k-autocomplete k-input",(t={},t["k-input-".concat(ze[l]||l)]=l,t["k-rounded-".concat(je[d]||d)]=d,t["k-input-".concat(c)]=c,t["k-invalid"]=!v,t["k-focus"]=m&&!s,t["k-loading"]=h,t["k-required"]=this.required,t["k-disabled"]=s,t)),ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),style:a?Ee(Ee({},u),{width:void 0}):u,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var i=this,o=this.$props,r=o.placeholder,a=o.tabIndex,l=o.readonly,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(be,{id:t,attrs:this.v3?void 0:{id:t,placeholder:r,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,disabled:s,readOnly:l,expanded:d,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:r,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:g.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:g.handleFocus,onBlur:this.handleBlur,disabled:s,readOnly:l,expanded:d,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,y||"",k),function(e){return e?n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,b),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,h),function(){var e,t=this,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),a=r.getTemplate.call(this,{h:n,template:i}),d=r.getTemplate.call(this,{h:n,template:s}),c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=void 0!==w.width?w.width:g.popupWidth;return n(p,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:u,attrs:this.v3?void 0:{width:u,popupSettings:{animate:w.animate,anchor:this.anchor,show:c,popupClass:(0,r.classNames)(w.popupClass,"k-list",(e={},e["k-list-".concat(ze[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==o?o:this.base.dirCalculated},ref:"container",popupSettings:{animate:w.animate,anchor:this.anchor,show:c,popupClass:(0,r.classNames)(w.popupClass,"k-list",(e={},e["k-list-".concat(ze[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),S.call(t),d&&n("div",{class:"k-list-footer"},[d])]}:[a&&n("div",{class:"k-list-header"},[a]),S.call(t),d&&n("div",{class:"k-list-footer"},[d])])}.call(this)]);return a?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[x,this.$props.label?k?n("label",{for:k,attrs:this.v3?void 0:{for:k},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):x}},_e=Ke,He=function(){return He=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},He.apply(this,arguments)},We=o,Ue=We.h,qe=We.version&&"3"===We.version[0],Ge=(We.ref,function(e){return e.preventDefault()}),Je=function(e){return e.stopPropagation()},Xe={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-".concat(r.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,o=t.tagsRounded,s=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-".concat(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-chip-".concat(s)]=s,e["k-chip-".concat(s,"-base")]=Boolean(s),e}},setup:qe?function(){return{v3:!!qe}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=Ue||e,n=this.$props,i=n.dataItems,o=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+o},id:"tagslist-"+o},[i.map((function(e,n){var s=this,a="tag-".concat(o,"-").concat(e.text.toString().replace(/\s+/g,"-")),l=t("div",{class:He(He({},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:Ge,on:this.v3?void 0:{mousedown:Ge,click:Je},onClick:Je,"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 s.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return s.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return r.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:l,additionalProps:He(He({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}},Ye=Xe;!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(oe||(oe={}));var Ze,Qe=function(){return Qe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qe.apply(this,arguments)},et=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},tt=o,nt=tt.h,it=tt.version&&"3"===tt.version[0],ot=tt.ref,rt=r.kendoThemeMaps.sizeMap,st=r.kendoThemeMaps.roundedMap,at=function(e){return e.preventDefault()},lt=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(!O(e[i],t[i],n))return!1;return!0}(e.data,t.data,n))},dt=function(e){return e===Ze.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(Ze||(Ze={}));var ct={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:it?function(){return{v3:!!it,inputRef:ot(null),kendoAnchorRef:ot(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||$(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 ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:oe.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,o=!i&&n,r=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&&r&&this.onPopupClosed(),e&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var d=this.getFocusedState(),c=d.focusedItem,u=d.focusedIndex;o&&e?(this.base.scrollToVirtualItem(e,u-t),this.prevCurrentOpened=!0):o&&!e?(this.base.scrollToItem(u),this.prevCurrentOpened=!0):n&&i&&c&&this.scrollToFocused&&this.base.scrollToItem(u-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=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",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 $(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return $(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,o=void 0===i?[]:i,r=n.dataItemKey,s=n.virtual,a=this.computedValue(),l=o[e-(s?s.skip:0)],d=a.findIndex((function(e){return O(e,l,r)})),c=[];-1!==d?(c=a).splice(d,1):c=et(et([],a,!0),[l],!1),(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(c,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 o=this.computedValue();I(o,e,this.$props.dataItemKey),this.triggerOnChange(o,i),this.applyState(i)},onNavigate:function(e,t){var n=this.$props,i=n.allowCustom,o=n.dataItems,s=void 0===o?[]:o,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState(),c=d.focusedType,u=d.focusedIndex,p=i&&l,h=dt(c),f=this.base,v=f.vs;if(a&&t===r.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:u,max:(v.enabled?v.total:s.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,r=n.allowCustom,s=n.virtual,a=s?s.skip:0,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=r&&l,u=o[e-a];u&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=oe.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(u,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;w(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,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=this.getFocusedState().focusedItem,a=this.base.initState();if(a.event=e,!i&&this.computedValue().length>0&&(n===r.Keys.left||n===r.Keys.right||n===r.Keys.home||n===r.Keys.end||n===r.Keys.delete||n===r.Keys.backspace))return this.onTagsNavigate(e,a);var l=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};o?e.altKey&&n===r.Keys.up?l():n===r.Keys.up||n===r.Keys.down?(e.preventDefault(),this.onNavigate(a,n)):n===r.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===s?this.customItemSelect(e):this.selectFocusedItem(e)):n===r.Keys.esc&&l():e.altKey&&n===r.Keys.down&&l()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,o=this._tags,s=this.$props.dataItemKey,a=i?o.findIndex((function(e){return lt(e,i,s)})):-1,l=void 0,d=-1!==a;if(n===r.Keys.left)l=o[a=d?Math.max(0,a-1):o.length-1];else if(n===r.Keys.right)a===o.length-1?l=void 0:d&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===r.Keys.home)l=o[0];else if(n===r.Keys.end)l=o[o.length-1];else if(n===r.Keys.delete){if(d){var c=this.computedValue();I(c,o[a].data,s),this.triggerOnChange(c,t)}}else if(n===r.Keys.backspace)if(c=this.computedValue(),d)I(c,o[a].data,s),this.triggerOnChange(c,t);else if(!d&&o.length){var u=o.pop();I(c,u.data,s),this.triggerOnChange(c,t)}l!==i&&(t.data.currentFocusedTag=l,t.data.activedescendant=oe.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=et([],e,!0)),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,o=t.virtual,r=this.getFocusedState().focusedIndex;void 0!==i[r-(o?o.skip:0)]&&this.handleItemClick(r,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,o=i.allowCustom,r=i.dataItems,s=void 0===r?[]:r,a=i.dataItemKey,l=i.virtual,d=i.textField,c=i.focusedItemIndex,u=void 0===c?x:c,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:Ze.ListItem};var h=this.computedValue();if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:Ze.CustomItem};if(n)return{focusedItem:s[e=u(s,n,d)],focusedIndex:e+p,focusedType:Ze.ListItem};if(h.length){var f=h[h.length-1];return e=s.findIndex((function(e){return O(e,f,a)})),void 0!==s[e]?{focusedIndex:e+p,focusedItem:s[e],focusedType:Ze.ListItem}:{focusedType:Ze.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:Ze.ListItem}:{focusedType:Ze.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 o=this.base.initState();o.event=e;var r=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(o.data.currentText=""),o.data.currentFocusedIndex=void 0,this.base.filterChanged("",o);var s=et(et([],this.computedValue(),!0),[r],!1);this.triggerOnChange(s,o),this.base.togglePopup(o),this.applyState(o)}},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,o=i.allowCustom,r=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"})),o||r||!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=nt||e,i=this.$props,o=i.style,s=i.label,a=i.dir,l=i.disabled,d=i.tags,c=i.textField,u=i.dataItemKey,h=i.virtual,f=i.loading,v=i.size,m=i.fillMode,g=i.rounded,y=i.tagsRounded,b=this.currentFocused,k=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),w=this.currentFocusedTag,S=this.computedValue(),x=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",C=!f&&(!!x||S.length>0),I=this.base.vs,O=this.$props.id||this.inputId,D=r.templateRendering.call(this,this.$props.tagRender,r.getListeners.call(this));I.enabled=void 0!==h,void 0!==h&&(I.skip=h.skip,I.total=h.total,I.pageSize=h.pageSize);var T=[];void 0===d?this.computedValue().forEach((function(e){T.push({text:$(e,c),data:[e]})})):T.push.apply(T,d),this.setItems(T,this._tags);var R=!this.$props.validityStyles||this.validity().valid,B=function(){var e=this,t=this.$props.dataItems,i=void 0===t?[]:t,o=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),a=h?h.skip:0,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=this.getFocusedState().focusedIndex,p="translateY(".concat(I.translate,"px)");return n(Y,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:l,dataItems:i.slice(),focusedIndex:d-a,value:this.computedValue(),textField:c,valueField:u,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:k.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:p}:void 0,skip:a,itemRender:o,noDataRender:s},show:l,dataItems:i.slice(),focusedIndex:d-a,value:this.computedValue(),textField:c,valueField:u,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:k.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:p}:void 0,key:"listKey",skip:a,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:I.scrollHandler},itemRender:o,noDataRender:s,onScroll:I.scrollHandler},this.v3?function(){return[N.call(e)]}:[N.call(e)])},N=function(){return I.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},P=n("span",{ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),class:(0,r.classNames)("k-multiselect","k-input",(t={},t["k-input-".concat(rt[v]||v)]=v,t["k-rounded-".concat(st[g]||g)]=g,t["k-input-".concat(m)]=m,t["k-focus"]=b&&!l,t["k-disabled"]=l,t["k-invalid"]=!R,t["k-loading"]=f,t["k-required"]=this.required,t)),style:s?Qe(Qe({},o),{width:void 0}):o,dir:a,attrs:this.v3?void 0:{dir:a},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:M},onClick:this.handleWrapperClick,onMousedown:M},[T.length>0&&n(Ye,{tagsRounded:y,attrs:this.v3?void 0:{tagsRounded:y,size:v,fillMode:m,tagRender:D,dataItems:T,guid:this.base.guid,focused:w?T.find((function(e){return lt(e,w,u)})):void 0},size:v,fillMode:m,tagRender:D,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:T,guid:this.base.guid,focused:w?T.find((function(e){return lt(e,w,u)})):void 0}),function(e){var t=this,i=this.activedescendant,o=this.$props.placeholder,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=this.getFocusedState().focusedIndex,a=0!==S.length||x?void 0:o,d=i===oe.TagsList&&void 0!==w?"tag-".concat(this.base.guid,"-").concat(w.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(s);return n(be,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((a||"").length,x.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:x,disabled:l,expanded:r,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((a||"").length,x.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:x,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:l,expanded:r,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,O),function(e){return e?n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,C),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,f),function(){var e,t=this,i=this.base,o=this.$props,s=o.allowCustom,l=o.dataItems,d=void 0===l?[]:l,c=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),u=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),f=r.getTemplate.call(this,{h:n,template:c}),m=r.getTemplate.call(this,{h:n,template:u}),g=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,y=void 0!==this.$props.filter?this.$props.filter:this.currentText,b=void 0!==k.width?k.width:i.popupWidth,w=this.getFocusedState().focusedType,S=s&&y&&n("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[n("div",{class:(0,r.classNames)("k-item k-custom-item",{"k-focus":dt(w)})},[y,n("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return n(p,{ref:"container",onMousedown:at,on:this.v3?void 0:{mousedown:at,blur:this.handleBlur},dir:void 0!==a?a:i.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==a?a:i.dirCalculated,width:b,popupSettings:{animate:k.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,r.classNames)(k.popupClass,"k-list",(e={},e["k-list-".concat(rt[v]||v)]=v,e["k-virtual-list"]=this.base.vs.enabled,e)),className:k.className,appendTo:k.appendTo},itemsCount:d.length},onBlur:this.handleBlur,width:b,popupSettings:{animate:k.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,r.classNames)(k.popupClass,"k-list",(e={},e["k-list-".concat(rt[v]||v)]=v,e["k-virtual-list"]=this.base.vs.enabled,e)),className:k.className,appendTo:k.appendTo},itemsCount:d.length},this.v3?function(){return[f&&n("div",{class:"k-list-header"},[f]),S,B.call(t),m&&n("div",{class:"k-list-footer"},[m]),h&&f]}:[f&&n("div",{class:"k-list-header"},[f]),S,B.call(t),m&&n("div",{class:"k-list-footer"},[m]),h&&f])}.call(this)]);return s?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[P,this.$props.label?O?n("label",{for:O,attrs:this.v3?void 0:{for:O},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):P}},ut=ct},9157:(e,t,n)=>{function i(e){this.content=e}n.r(t),n.d(t,{AddMarkStep:()=>Ue,AllSelection:()=>ht,CellSelection:()=>Pa,ContentMatch:()=>F,DOMParser:()=>se,DOMSerializer:()=>ge,Decoration:()=>zs,DecorationSet:()=>Hs,EditorState:()=>St,EditorView:()=>ia,Fragment:()=>a,GapCursor:()=>qc,HistoryState:()=>dd,InputRule:()=>$d,MapResult:()=>Se,Mapping:()=>Ce,Mark:()=>p,MarkType:()=>ie,Node:()=>E,NodeRange:()=>B,NodeSelection:()=>ut,NodeType:()=>Q,Plugin:()=>It,PluginKey:()=>Mt,RemoveMarkStep:()=>qe,ReplaceAroundStep:()=>Ne,ReplaceError:()=>h,ReplaceStep:()=>Be,ResolvedPos:()=>O,Schema:()=>oe,Selection:()=>st,SelectionRange:()=>lt,Slice:()=>f,Step:()=>Te,StepMap:()=>xe,StepResult:()=>Re,TableMap:()=>fa,TableView:()=>Ol,TextSelection:()=>dt,Transaction:()=>gt,Transform:()=>Ie,TransformError:()=>$e,__clipCells:()=>Fa,__endComposition:()=>Ts,__insertCells:()=>Ka,__parseFromClipboard:()=>Yr,__pastedCells:()=>La,__serializeForClipboard:()=>Xr,activeNode:()=>Bn,addColSpan:()=>Ba,addColumn:()=>ol,addColumnAfter:()=>sl,addColumnBefore:()=>rl,addListNodes:()=>_n,addRow:()=>cl,addRowAfter:()=>iu,addRowBefore:()=>nu,alignBlocks:()=>Nn,alignCenterRules:()=>eo,alignJustifyRules:()=>to,alignLeftRules:()=>Zi,alignRemoveRules:()=>no,alignRightRules:()=>Qi,applyInlineStyle:()=>bn,applyLink:()=>wn,autoJoin:()=>Ii,baseKeymap:()=>Ni,blockNodes:()=>$n,blockquote:()=>Pi,bold:()=>Ad,buildKeymap:()=>Ud,buildListKeymap:()=>qd,bulletList:()=>zn,canBeIndented:()=>zi,canIndentAsListItem:()=>Ai,canInsert:()=>Wt,canJoin:()=>ze,canOutdentAsListItem:()=>Fi,canSplit:()=>Fe,caretColor:()=>Hc,caretColorKey:()=>_c,cellAround:()=>wa,chainCommands:()=>Oi,changeTextBlock:()=>Cn,cleanFormatting:()=>En,cleanMarks:()=>ln,cleanTextBlockFormatting:()=>On,closeDoubleQuote:()=>Bd,closeHistory:()=>gd,closeSingleQuote:()=>Pd,colCount:()=>Da,columnIsHeader:()=>Na,columnResizing:()=>Tl,columnResizingPluginKey:()=>Ml,convertMsLists:()=>nc,createParagraphNear:()=>hi,createTable:()=>eu,deleteColumn:()=>ll,deleteRow:()=>fl,deleteSelection:()=>Qn,deleteTable:()=>Il,domToPmDoc:()=>At,dropCursor:()=>Wc,dropPoint:()=>He,ellipsis:()=>Td,emDash:()=>Md,exitCode:()=>pi,expandSelection:()=>tn,expandToWordWrap:()=>nn,find:()=>Sc,findAll:()=>xc,findAt:()=>wc,findCell:()=>Oa,findWrapping:()=>Le,fixTables:()=>nl,fixTablesKey:()=>el,formatBlockElements:()=>In,gapCursor:()=>Jc,getActiveMarks:()=>hn,getBlockFormats:()=>Dn,getHtml:()=>zt,getInlineStyles:()=>mn,getMark:()=>pn,getNodeFromSelection:()=>Yt,getSelectionText:()=>Xt,goToNextCell:()=>$l,handlePaste:()=>Ja,hasMark:()=>dn,hasNode:()=>Tn,hasSameMarkup:()=>Jt,history:()=>kd,htmlToFragment:()=>Vt,imageResizeKey:()=>Ec,imageResizing:()=>Kc,inSameTable:()=>Ia,indent:()=>ji,indentBlocks:()=>Vi,indentHtml:()=>Qt,indentRules:()=>Yn,inputRules:()=>Id,insertImage:()=>xn,insertNode:()=>Gt,insertPoint:()=>_e,insertText:()=>Sn,isAligned:()=>Pn,isInTable:()=>Sa,isIndented:()=>Li,italic:()=>Fd,joinBackward:()=>ei,joinDown:()=>li,joinForward:()=>oi,joinPoint:()=>Ke,joinUp:()=>ai,keydownHandler:()=>mo,keymap:()=>vo,lift:()=>di,liftBlockquote:()=>Ei,liftEmptyBlock:()=>fi,liftListItem:()=>Un,liftTarget:()=>Ve,link:()=>Hd,listItem:()=>jn,listStyle:()=>qi,macBaseKeymap:()=>Ri,marks:()=>Jl,mergeCells:()=>ml,moveCellForward:()=>$a,newlineInCode:()=>ci,nextCell:()=>Ma,nodes:()=>td,openDoubleQuote:()=>Rd,openSingleQuote:()=>Nd,orderedList:()=>Fn,outdent:()=>Ki,outdentRules:()=>Zn,parentBlockFormat:()=>Rn,parseContent:()=>Ft,pasteCleanup:()=>uc,pcBaseKeymap:()=>Ti,placeholder:()=>Mc,pmAddRowAfter:()=>pl,pmAddRowBefore:()=>ul,pmDocToFragment:()=>Lt,pointsAtCell:()=>Ca,redo:()=>Sd,redoDepth:()=>Cd,removeAllMarks:()=>an,removeAttribute:()=>sc,removeColSpan:()=>Ra,removeColumn:()=>al,removeComments:()=>oc,removeLink:()=>kn,removeRow:()=>hl,removeTag:()=>rc,replace:()=>Cc,replaceAll:()=>$c,replaceImageSourcesFromRtf:()=>kc,replaceStep:()=>Ge,rowIsHeader:()=>dl,sanitize:()=>ic,sanitizeClassAttr:()=>ac,sanitizeStyleAttr:()=>cc,selectAll:()=>yi,selectNodeBackward:()=>ni,selectNodeForward:()=>ri,selectParentNode:()=>gi,selectTextblockEnd:()=>Si,selectTextblockStart:()=>wi,selectedLineTextOnly:()=>Zt,selectedRect:()=>il,selectionCell:()=>xa,selectionMarks:()=>un,setAttr:()=>Ta,setBlockType:()=>Ci,setCellAttr:()=>bl,setHtml:()=>jt,sinkListItem:()=>qn,smartQuotes:()=>Ed,spacesFix:()=>Bc,splitBlock:()=>vi,splitBlockKeepMarks:()=>mi,splitCell:()=>gl,splitCellWithType:()=>yl,splitListItem:()=>Wn,strikethrough:()=>jd,subscript:()=>Kd,superscript:()=>_d,tableEditing:()=>Vl,tableEditingKey:()=>ka,tableNodeTypes:()=>ba,tableNodes:()=>ya,textHighlight:()=>Pc,textHighlightKey:()=>Nc,textblockTypeInputRule:()=>Ld,toggleHeader:()=>wl,toggleHeaderCell:()=>Cl,toggleHeaderColumn:()=>xl,toggleHeaderRow:()=>Sl,toggleInlineFormat:()=>yn,toggleList:()=>Gi,toggleMark:()=>$i,toggleOrderedList:()=>Xi,toggleUnorderedList:()=>Ji,trimWhitespace:()=>Et,underline:()=>zd,undo:()=>wd,undoDepth:()=>xd,undoInputRule:()=>Dd,updateColumnsOnResize:()=>Dl,wrapIn:()=>xi,wrapInList:()=>Hn,wrappingInputRule:()=>Vd}),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 o=n&&n!=e?this.remove(n):this,r=o.find(e),s=o.content.slice();return-1==r?s.push(n||e,t):(s[r+1]=t,n&&(s[r]=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 o=this.remove(t),r=o.content.slice(),s=o.find(e);return r.splice(-1==s?r.length:s,0,t,n),new i(r)},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)};const o=i;function r(e,t,n){for(var i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(i),s=t.child(i);if(o!=s){if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(var a=0;o.text[a]==s.text[a];a++)n++;return n}if(o.content.size||s.content.size){var l=r(o.content,s.content,n+1);if(null!=l)return l}n+=o.nodeSize}else n+=o.nodeSize}}function s(e,t,n,i){for(var o=e.childCount,r=t.childCount;;){if(0==o||0==r)return o==r?null:{a:n,b:i};var a=e.child(--o),l=t.child(--r),d=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:i};if(a.isText&&a.text!=l.text){for(var c=0,u=Math.min(a.text.length,l.text.length);c<u&&a.text[a.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(a.content.size||l.content.size){var p=s(a.content,l.content,n-1,i-1);if(p)return p}n-=d,i-=d}else n-=d,i-=d}}var a=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},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};a.prototype.nodesBetween=function(e,t,n,i,o){void 0===i&&(i=0);for(var r=0,s=0;s<t;r++){var a=this.content[r],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,o,r)&&a.content.size){var d=s+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,t-d),n,i+d)}s=l}},a.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},a.prototype.textBetween=function(e,t,n,i){var o="",r=!0;return this.nodesBetween(e,t,(function(s,a){s.isText?(o+=s.text.slice(Math.max(e,a)-a,t-a),r=!n):s.isLeaf&&i?(o+="function"==typeof i?i(s):i,r=!n):!r&&s.isBlock&&(o+=n,r=!0)}),0),o},a.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(),o=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new a(i,this.size+e.size)},a.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 o=0,r=0;r<t;o++){var s=this.content[o],l=r+s.nodeSize;l>e&&((r<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-r),Math.min(s.text.length,t-r)):s.cut(Math.max(0,e-r-1),Math.min(s.content.size,t-r-1))),n.push(s),i+=s.nodeSize),r=l}return new a(n,i)},a.prototype.cutByIndex=function(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))},a.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var i=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new a(i,o)},a.prototype.addToStart=function(e){return new a([e].concat(this.content),this.size+e.nodeSize)},a.prototype.addToEnd=function(e){return new a(this.content.concat(e),this.size+e.nodeSize)},a.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},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},a.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},a.prototype.maybeChild=function(e){return this.content[e]},a.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}},a.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),r(this,e,t)},a.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),s(this,e,t,n)},a.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return c(0,e);if(e==this.size)return c(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 o=i+this.child(n).nodeSize;if(o>=e)return o==e||t>0?c(n+1,o):c(n,i);i=o}},a.prototype.toString=function(){return"<"+this.toStringInner()+">"},a.prototype.toStringInner=function(){return this.content.join(", ")},a.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},a.fromJSON=function(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))},a.fromArray=function(e){if(!e.length)return a.empty;for(var t,n=0,i=0;i<e.length;i++){var o=e[i];n+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(t||(t=e.slice(0,i)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new a(t||e,n)},a.from=function(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([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(a.prototype,l);var d={index:0,offset:0};function c(e,t){return d.index=e,d.offset=t,d}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 o in e)if(!(o in t)||!u(e[o],t[o]))return!1;for(var r in t)if(!(r in e))return!1}return!0}a.empty=new a([],0);var p=function(e,t){this.type=e,this.attrs=t};function h(e){var t=Error.call(this,e);return t.__proto__=h.prototype,t}p.prototype.addToSet=function(e){for(var t,n=!1,i=0;i<e.length;i++){var o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},p.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},p.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},p.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},p.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},p.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)},p.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},p.setFrom=function(e){if(!e||0==e.length)return p.none;if(e instanceof p)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},p.none=[],h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.name="ReplaceError";var f=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},v={size:{configurable:!0}};function m(e,t,n){var i=e.findIndex(t),o=i.index,r=i.offset,s=e.maybeChild(o),a=e.findIndex(n),l=a.index,d=a.offset;if(r==t||s.isText){if(d!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(o,s.copy(m(s.content,t-r-1,n-r-1)))}function g(e,t,n,i){var o=e.findIndex(t),r=o.index,s=o.offset,a=e.maybeChild(r);if(s==t||a.isText)return i&&!i.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=g(a.content,t-s-1,n);return l&&e.replaceChild(r,a.copy(l))}function y(e,t,n){if(n.openStart>e.depth)throw new h("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new h("Inconsistent open depths");return b(e,t,n,0)}function b(e,t,n,i){var o=e.index(i),r=e.node(i);if(o==t.index(i)&&i<e.depth-n.openStart){var s=b(e,t,n,i+1);return r.copy(r.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=i||t.depth!=i){var l=function(e,t){for(var n=t.depth-e.openStart,i=t.node(n).copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(a.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(n,e);return C(r,$(e,l.start,l.end,t,i))}var d=e.parent,c=d.content;return C(d,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return C(r,I(e,t,i))}function k(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function w(e,t,n){var i=e.node(n);return k(i,t.node(n)),i}function S(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 x(e,t,n,i){var o=(t||e).node(n),r=0,s=t?t.index(n):o.childCount;e&&(r=e.index(n),e.depth>n?r++:e.textOffset&&(S(e.nodeAfter,i),r++));for(var a=r;a<s;a++)S(o.child(a),i);t&&t.depth==n&&t.textOffset&&S(t.nodeBefore,i)}function C(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function $(e,t,n,i,o){var r=e.depth>o&&w(e,t,o+1),s=i.depth>o&&w(n,i,o+1),l=[];return x(null,e,o,l),r&&s&&t.index(o)==n.index(o)?(k(r,s),S(C(r,$(e,t,n,i,o+1)),l)):(r&&S(C(r,I(e,t,o+1)),l),x(t,n,o,l),s&&S(C(s,I(n,i,o+1)),l)),x(i,null,o,l),new a(l)}function I(e,t,n){var i=[];return x(null,e,n,i),e.depth>n&&S(C(w(e,t,n+1),I(e,t,n+1)),i),x(t,null,n,i),new a(i)}v.size.get=function(){return this.content.size-this.openStart-this.openEnd},f.prototype.insertAt=function(e,t){var n=g(this.content,e+this.openStart,t,null);return n&&new f(n,this.openStart,this.openEnd)},f.prototype.removeBetween=function(e,t){return new f(m(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},f.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},f.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},f.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},f.fromJSON=function(e,t){if(!t)return f.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 f(a.fromJSON(e,t.content),n,i)},f.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,i=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)i++;return new f(e,n,i)},Object.defineProperties(f.prototype,v),f.empty=new f(a.empty,0,0);var O=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},D={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};O.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},D.parent.get=function(){return this.node(this.depth)},D.doc.get=function(){return this.node(0)},O.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},O.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},O.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},O.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},O.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},O.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]},O.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},D.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},D.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},D.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)},O.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,o=0;o<e;o++)i+=n.child(o).nodeSize;return i},O.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return p.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){var o=n;n=i,i=o}for(var r=n.marks,s=0;s<r.length;s++)!1!==r[s].type.spec.inclusive||i&&r[s].isInSet(i.marks)||(r=r[s--].removeFromSet(r));return r},O.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()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||i&&n[o].isInSet(i.marks)||(n=n[o--].removeFromSet(n));return n},O.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},O.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 B(this,e,n)},O.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},O.prototype.max=function(e){return e.pos>this.pos?e:this},O.prototype.min=function(e){return e.pos<this.pos?e:this},O.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},O.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],i=0,o=t,r=e;;){var s=r.content.findIndex(o),a=s.index,l=s.offset,d=o-l;if(n.push(r,a,i+l),!d)break;if((r=r.child(a)).isText)break;o=d-1,i+=l+1}return new O(t,n,o)},O.resolveCached=function(e,t){for(var n=0;n<M.length;n++){var i=M[n];if(i.pos==t&&i.doc==e)return i}var o=M[T]=O.resolve(e,t);return T=(T+1)%R,o},Object.defineProperties(O.prototype,D);var M=[],T=0,R=12,B=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},N={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};N.start.get=function(){return this.$from.before(this.depth+1)},N.end.get=function(){return this.$to.after(this.depth+1)},N.parent.get=function(){return this.$from.node(this.depth)},N.startIndex.get=function(){return this.$from.index(this.depth)},N.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(B.prototype,N);var P=Object.create(null),E=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||a.empty,this.marks=i||p.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},E.prototype.child=function(e){return this.content.child(e)},E.prototype.maybeChild=function(e){return this.content.maybeChild(e)},E.prototype.forEach=function(e){this.content.forEach(e)},E.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},E.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},V.textContent.get=function(){return this.textBetween(0,this.content.size,"")},E.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},E.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},E.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},E.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||P)&&p.sameSet(this.marks,n||p.none)},E.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},E.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},E.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},E.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return f.empty;var i=this.resolve(e),o=this.resolve(t),r=n?0:i.sharedDepth(t),s=i.start(r),a=i.node(r).content.cut(i.pos-s,o.pos-s);return new f(a,i.depth-r,o.depth-r)},E.prototype.replace=function(e,t,n){return y(this.resolve(e),this.resolve(t),n)},E.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),i=n.index,o=n.offset;if(!(t=t.maybeChild(i)))return null;if(o==e||t.isText)return t;e-=o+1}},E.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}},E.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 o=this.content.child(n-1);return{node:o,index:n-1,offset:i-o.nodeSize}},E.prototype.resolve=function(e){return O.resolveCached(this,e)},E.prototype.resolveNoCache=function(e){return O.resolve(this,e)},E.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},E.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()+")"),A(this.marks,e)},E.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},E.prototype.canReplace=function(e,t,n,i,o){void 0===n&&(n=a.empty),void 0===i&&(i=0),void 0===o&&(o=n.childCount);var r=this.contentMatchAt(e).matchFragment(n,i,o),s=r&&r.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(var l=i;l<o;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},E.prototype.canReplaceWith=function(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;var o=this.contentMatchAt(e).matchType(n),r=o&&o.matchFragment(this.content,t);return!!r&&r.validEnd},E.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},E.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=p.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!p.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()}))},E.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},E.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=a.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(E.prototype,V);var L=function(e){function t(t,n,i,o){if(e.call(this,t,n,null,o),!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):A(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}(E);function A(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var F=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};F.parse=function(e,t){var n=new j(e,t);if(null==n.next)return F.empty;var i=_(n);n.next&&n.err("Unexpected trailing text");var o,r,s=(o=function(e){var t=[[]];return o(function e(t,r){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,r))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=e(t.exprs[s],r);if(s==t.exprs.length-1)return a;o(a,r=n())}else{if("star"==t.type){var l=n();return i(r,l),o(e(t.expr,l),l),[i(l)]}if("plus"==t.type){var d=n();return o(e(t.expr,r),d),o(e(t.expr,d),d),[i(d)]}if("opt"==t.type)return[i(r)].concat(e(t.expr,r));if("range"==t.type){for(var c=r,u=0;u<t.min;u++){var p=n();o(e(t.expr,c),p),c=p}if(-1==t.max)o(e(t.expr,c),c);else for(var h=t.min;h<t.max;h++){var f=n();i(c,f),o(e(t.expr,c),f),c=f}return[i(c)]}if("name"==t.type)return[i(r,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){var o={term:i,to:n};return t[e].push(o),o}function o(e,t){e.forEach((function(e){return e.to=t}))}}(i),r=Object.create(null),function e(t){var n=[];t.forEach((function(e){o[e].forEach((function(e){var t=e.term,i=e.to;if(t){var r=n.indexOf(t),s=r>-1&&n[r+1];J(o,i).forEach((function(e){s||n.push(t,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var i=r[t.join(",")]=new F(t.indexOf(o.length-1)>-1),s=0;s<n.length;s+=2){var a=n[s+1].sort(G);i.next.push(n[s],r[a.join(",")]||e(a))}return i}(J(o,0)));return function(e,t){for(var n=0,i=[e];n<i.length;n++){for(var o=i[n],r=!o.validEnd,s=[],a=0;a<o.next.length;a+=2){var l=o.next[a],d=o.next[a+1];s.push(l.name),!r||l.isText||l.hasRequiredAttrs()||(r=!1),-1==i.indexOf(d)&&i.push(d)}r&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,n),s},F.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},F.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var i=this,o=t;i&&o<n;o++)i=i.matchType(e.child(o).type);return i},z.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},z.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}},F.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},F.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function o(r,s){var l=r.matchFragment(e,n);if(l&&(!t||l.validEnd))return a.from(s.map((function(e){return e.createAndFill()})));for(var d=0;d<r.next.length;d+=2){var c=r.next[d],u=r.next[d+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==i.indexOf(u)){i.push(u);var p=o(u,s.concat(c));if(p)return p}}}(this,[])},F.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},F.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),o=i.match;if(o.matchType(e)){for(var r=[],s=i;s.type;s=s.via)r.push(s.type);return r.reverse()}for(var a=0;a<o.next.length;a+=2){var l=o.next[a];l.isLeaf||l.hasRequiredAttrs()||l.name in t||i.type&&!o.next[a+1].validEnd||(n.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}},z.edgeCount.get=function(){return this.next.length>>1},F.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]}},F.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?"*":" ")+" ",o=0;o<t.next.length;o+=2)i+=(o?", ":"")+t.next[o].name+"->"+e.indexOf(t.next[o+1]);return i})).join("\n")},Object.defineProperties(F.prototype,z),F.empty=new F(!0);var j=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()},K={next:{configurable:!0}};function _(e){var t=[];do{t.push(H(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function H(e){var t=[];do{t.push(W(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function W(e){for(var t=function(e){if(e.eat("(")){var t=_(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 o=[];for(var r in n){var s=n[r];s.groups.indexOf(t)>-1&&o.push(s)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}(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=q(e,t)}return t}function U(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function q(e,t){var n=U(e),i=n;return e.eat(",")&&(i="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function G(e,t){return t-e}function J(e,t){var n=[];return function t(i){var o=e[i];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(i);for(var r=0;r<o.length;r++){var s=o[r],a=s.term,l=s.to;a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(G)}function X(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 Y(e,t){var n=Object.create(null);for(var i in e){var o=t&&t[i];if(void 0===o){var r=e[i];if(!r.hasDefault)throw new RangeError("No value supplied for attribute "+i);o=r.default}n[i]=o}return n}function Z(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new te(e[n]);return t}K.next.get=function(){return this.tokens[this.pos]},j.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},j.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(j.prototype,K);var Q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=Z(n.attrs),this.defaultAttrs=X(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},ee={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};ee.isInline.get=function(){return!this.isBlock},ee.isTextblock.get=function(){return this.isBlock&&this.inlineContent},ee.isLeaf.get=function(){return this.contentMatch==F.empty},ee.isAtom.get=function(){return this.isLeaf||this.spec.atom},ee.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:Y(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 E(this,this.computeAttrs(e),a.from(t),p.setFrom(n))},Q.prototype.createChecked=function(e,t,n){if(t=a.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new E(this,this.computeAttrs(e),t,p.setFrom(n))},Q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=a.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var o=this.contentMatch.matchFragment(t).fillBefore(a.empty,!0);return o?new E(this,e,t.append(o),p.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:p.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 o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(Q.prototype,ee);var te=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ne={isRequired:{configurable:!0}};ne.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(te.prototype,ne);var ie=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=Z(i.attrs),this.rank=t,this.excluded=null;var o=X(this.attrs);this.instance=o&&new p(this,o)};ie.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,Y(this.attrs,e))},ie.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,o){return n[e]=new ie(e,i++,t,o)})),n},ie.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},ie.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ie.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var oe=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=Q.compile(this.spec.nodes,this),this.marks=ie.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 r=this.nodes[i],s=r.spec.content||"",a=r.spec.marks;r.contentMatch=n[s]||(n[s]=F.parse(s,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.markSet="_"==a?null:a?re(this,a.split(" ")):""!=a&&r.inlineContent?null:[]}for(var l in this.marks){var d=this.marks[l],c=d.spec.excludes;d.excluded=null==c?[d]:""==c?[]:re(this,c.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 re(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i],r=e.marks[o],s=r;if(r)n.push(r);else for(var a in e.marks){var l=e.marks[a];("_"==o||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}oe.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)},oe.prototype.text=function(e,t){var n=this.nodes.text;return new L(n,n.defaultAttrs,e,p.setFrom(t))},oe.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},oe.prototype.nodeFromJSON=function(e){return E.fromJSON(this,e)},oe.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},oe.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var se=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)}))};se.prototype.parse=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},se.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!0);return n.addAll(e,null,t.from,t.to),f.maxOpen(n.finish())},se.prototype.matchTag=function(e,t,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var o=this.tags[i];if(fe(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){var r=o.getAttrs(e);if(!1===r)continue;o.attrs=r}return o}}},se.prototype.matchStyle=function(e,t,n,i){for(var o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){var r=this.styles[o];if(!(0!=r.style.indexOf(e)||r.context&&!n.matchesContext(r.context)||r.style.length>e.length&&(61!=r.style.charCodeAt(e.length)||r.style.slice(e.length+1)!=t))){if(r.getAttrs){var s=r.getAttrs(t);if(!1===s)continue;r.attrs=s}return r}}},se.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,i=0;i<t.length;i++){var o=t[i];if((null==o.priority?50:o.priority)<n)break}t.splice(i,0,e)}var i,o=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ve(e)),e.mark=t}))};for(var r in e.marks)o(r);for(var s in e.nodes)i=void 0,(i=e.nodes[s].spec.parseDOM)&&i.forEach((function(e){n(e=ve(e)),e.node=s}));return t},se.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new se(e,se.schemaRules(e)))};var ae={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},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},de={ol:!0,ul:!0};function ce(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var ue=function(e,t,n,i,o,r,s){this.type=e,this.attrs=t,this.solid=o,this.match=r||(4&s?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=i,this.stashMarks=[]};ue.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(a.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)},ue.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=a.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},ue.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]},ue.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):me(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},ue.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ae.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var pe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,o=t.topNode,r=ce(null,t.preserveWhitespace,0)|(n?4:0);i=o?new ue(o.type,o.attrs,p.none,p.none,!0,t.topMatch||o.type.contentMatch,r):new ue(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,r),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},he={top:{configurable:!0},currentPos:{configurable:!0}};function fe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ve(e){var t={};for(var n in e)t[n]=e[n];return t}function me(e,t){var n=t.schema.nodes,i=function(i){var o=n[i];if(o.allowsMarkType(e)){var r=[],s=function(e){r.push(e);for(var n=0;n<e.edgeCount;n++){var i=e.edge(n),o=i.type,a=i.next;if(o==t)return!0;if(r.indexOf(a)<0&&s(a))return!0}};return s(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var r=i(o);if(r)return r.v}}he.top.get=function(){return this.nodes[this.open]},pe.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){for(var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(e),null!=n)for(var r=0;r<n.length;r++)this.removePendingMark(n[r],i)}},pe.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],o=e.previousSibling;(!i||o&&"BR"==o.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)},pe.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();de.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&&de.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):"li"==i?n=t:i&&(n=null)}}(e);var o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:le.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);var r,s=this.top,a=this.needsBlock;if(ae.hasOwnProperty(i))r=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),r&&this.sync(s),this.needsBlock=a}else this.addElementByRule(e,o,!1===o.consuming?n:null)},pe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},pe.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},pe.prototype.readStyles=function(e){var t=p.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var o=this.parser.matchStyle(e[n],e[n+1],this,i);if(!o)continue e;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;i=o}return t},pe.prototype.addElementByRule=function(e,t,n){var i,o,r,s=this;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):i=this.enter(o,t.attrs,t.preserveWhitespace):(r=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(r));var a=this.top;if(o&&o.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--),r&&this.removePendingMark(r,a)},pe.prototype.addAll=function(e,t,n,i){for(var o=n||0,r=n?e.childNodes[n]:e.firstChild,s=null==i?null:e.childNodes[i];r!=s;r=r.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(r),t&&ae.hasOwnProperty(r.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,o)},pe.prototype.findPlace=function(e){for(var t,n,i=this.open;i>=0;i--){var o=this.nodes[i],r=o.findWrapping(e);if(r&&(!t||t.length>r.length)&&(t=r,n=o,!r.length))break;if(o.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},pe.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,o=0;o<e.marks.length;o++)n.type&&!n.type.allowsMarkType(e.marks[o].type)||(i=e.marks[o].addToSet(i));return n.content.push(e.mark(i)),!0}return!1},pe.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},pe.prototype.enterInner=function(e,t,n,i){this.closeExtra();var o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e,t);var r=ce(e,i,o.options);4&o.options&&0==o.content.length&&(r|=4),this.nodes.push(new ue(e,t,o.activeMarks,o.pendingMarks,n,null,r)),this.open++},pe.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}},pe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},pe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},he.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},pe.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)},pe.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)},pe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++)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)},pe.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))},pe.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,o=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),r=-(i?i.depth+1:0)+(o?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>=r;a--)if(s(e-1,a))return!0;return!1}var d=a>0||0==a&&o?t.nodes[a].type:i&&a>=r?i.node(a-r).type:null;if(!d||d.name!=l&&-1==d.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},pe.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 o=this.parser.schema.nodes[i];if(o.isTextblock&&o.defaultAttrs)return o}},pe.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)},pe.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 o=i.popFromStashMark(e);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==t)break}},Object.defineProperties(pe.prototype,he);var ge=function(e,t){this.nodes=e||{},this.marks=t||{}};function ye(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function be(e){return e.document||window.document}ge.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=be(t).createDocumentFragment());var o=n,r=null;return e.forEach((function(e){if(r||e.marks.length){r||(r=[]);for(var n=0,s=0;n<r.length&&s<e.marks.length;){var a=e.marks[s];if(i.marks[a.type.name]){if(!a.eq(r[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}for(;n<r.length;)o=r.pop(),r.pop();for(;s<e.marks.length;){var l=e.marks[s++],d=i.serializeMark(l,e.isInline,t);d&&(r.push(l,o),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(i.serializeNodeInner(e,t))})),n},ge.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ge.renderSpec(be(t),this.nodes[e.type.name](e)),i=n.dom,o=n.contentDOM;if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,o,t):this.serializeFragment(e.content,t,o)}return i},ge.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 o=this.serializeMark(e.marks[i],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},ge.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ge.renderSpec(be(n),i(e,t))},ge.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],o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));var r=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 d in l=2,a)if(null!=a[d]){var c=d.indexOf(" ");c>0?s.setAttributeNS(d.slice(0,c),d.slice(c+1),a[d]):s.setAttribute(d,a[d])}for(var u=l;u<t.length;u++){var p=t[u];if(0===p){if(u<t.length-1||u>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ge.renderSpec(e,p,n),f=h.dom,v=h.contentDOM;if(s.appendChild(f),v){if(r)throw new RangeError("Multiple content holes");r=v}}return{dom:s,contentDOM:r}},ge.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ge(this.nodesFromSchema(e),this.marksFromSchema(e)))},ge.nodesFromSchema=function(e){var t=ye(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ge.marksFromSchema=function(e){return ye(e.marks)};var ke=Math.pow(2,16);function we(e){return 65535&e}var Se=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},xe=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};xe.prototype.recover=function(e){var t=0,n=we(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))/ke}(e)},xe.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},xe.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},xe.prototype._map=function(e,t,n){for(var i=0,o=this.inverted?2:1,r=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+o],d=this.ranges[s+r],c=a+l;if(e<=c){var u=a+i+((l?e==a?-1:e==c?1:t:t)<0?0:d);return n?u:new Se(u,t<0?e!=a:e!=c,e==(t<0?a:c)?null:s/3+(e-a)*ke)}i+=d-l}return n?e+i:new Se(e+i)},xe.prototype.touches=function(e,t){for(var n=0,i=we(t),o=this.inverted?2:1,r=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+o];if(e<=a+l&&s==3*i)return!0;n+=this.ranges[s+r]-l}return!1},xe.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,i=0,o=0;i<this.ranges.length;i+=3){var r=this.ranges[i],s=r-(this.inverted?o:0),a=r+(this.inverted?0:o),l=this.ranges[i+t],d=this.ranges[i+n];e(s,s+l,a,a+d),o+=d-l}},xe.prototype.invert=function(){return new xe(this.ranges,!this.inverted)},xe.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},xe.offset=function(e){return 0==e?xe.empty:new xe(e<0?[0,-e,0]:[0,0,e])},xe.empty=new xe([]);var Ce=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function $e(e){var t=Error.call(this,e);return t.__proto__=$e.prototype,t}Ce.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new Ce(this.maps,this.mirror,e,t)},Ce.prototype.copy=function(){return new Ce(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},Ce.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},Ce.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)}},Ce.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)]},Ce.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},Ce.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)}},Ce.prototype.invert=function(){var e=new Ce;return e.appendMappingInverted(this),e},Ce.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},Ce.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},Ce.prototype._map=function(e,t,n){for(var i=!1,o=this.from;o<this.to;o++){var r=this.maps[o].mapResult(e,t);if(null!=r.recover){var s=this.getMirror(o);if(null!=s&&s>o&&s<this.to){o=s,e=this.maps[s].recover(r.recover);continue}}r.deleted&&(i=!0),e=r.pos}return n?e:new Se(e,i)},$e.prototype=Object.create(Error.prototype),$e.prototype.constructor=$e,$e.prototype.name="TransformError";var Ie=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ce},Oe={before:{configurable:!0},docChanged:{configurable:!0}};function De(){throw new Error("Override me")}Oe.before.get=function(){return this.docs.length?this.docs[0]:this.doc},Ie.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new $e(t.failed);return this},Ie.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},Oe.docChanged.get=function(){return this.steps.length>0},Ie.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(Ie.prototype,Oe);var Me=Object.create(null),Te=function(){};Te.prototype.apply=function(e){return De()},Te.prototype.getMap=function(){return xe.empty},Te.prototype.invert=function(e){return De()},Te.prototype.map=function(e){return De()},Te.prototype.merge=function(e){return null},Te.prototype.toJSON=function(){return De()},Te.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Me[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},Te.jsonID=function(e,t){if(e in Me)throw new RangeError("Duplicate use of step JSON ID "+e);return Me[e]=t,t.prototype.jsonID=e,t};var Re=function(e,t){this.doc=e,this.failed=t};Re.ok=function(e){return new Re(e,null)},Re.fail=function(e){return new Re(null,e)},Re.fromReplace=function(e,t,n,i){try{return Re.ok(e.replace(t,n,i))}catch(e){if(e instanceof h)return Re.fail(e.message);throw e}};var Be=function(e){function t(t,n,i,o){e.call(this),this.from=t,this.to=n,this.slice=i,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Pe(e,this.from,this.to)?Re.fail("Structure replace would overwrite content"):Re.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new xe([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?f.empty:new f(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?f.empty:new f(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,f.fromJSON(e,n.slice),!!n.structure)},t}(Te);Te.jsonID("replace",Be);var Ne=function(e){function t(t,n,i,o,r,s,a){e.call(this),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=o,this.slice=r,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&&(Pe(e,this.from,this.gapFrom)||Pe(e,this.gapTo,this.to)))return Re.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Re.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Re.fromReplace(e,this.from,this.to,n):Re.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new xe([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),o=e.map(this.gapFrom,-1),r=e.map(this.gapTo,1);return n.deleted&&i.deleted||o<n.pos||r>i.pos?null:new t(n.pos,i.pos,o,r,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,f.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(Te);function Pe(e,t,n){for(var i=e.resolve(t),o=n-t,r=i.depth;o>0&&r>0&&i.indexAfter(r)==i.node(r).childCount;)r--,o--;if(o>0)for(var s=i.node(r).maybeChild(i.indexAfter(r));o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}return!1}function Ee(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),o=e.$from.index(n),r=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(o,r,t))return n;if(0==n||i.type.spec.isolating||!Ee(i,o,r))break}}function Le(e,t,n,i){void 0===i&&(i=e);var o=function(e,t){var n=e.parent,i=e.startIndex,o=e.endIndex,r=n.contentMatchAt(i).findWrapping(t);if(!r)return null;var s=r.length?r[0]:t;return n.canReplaceWith(i,o,s)?r:null}(e,t),r=o&&function(e,t){var n=e.parent,i=e.startIndex,o=e.endIndex,r=n.child(i),s=t.contentMatch.findWrapping(r.type);if(!s)return null;for(var a=(s.length?s[s.length-1]:t).contentMatch,l=i;a&&l<o;l++)a=a.matchType(n.child(l).type);return a&&a.validEnd?s:null}(i,t);return r?o.map(Ae).concat({type:t,attrs:n}).concat(r.map(Ae)):null}function Ae(e){return{type:e,attrs:null}}function Fe(e,t,n,i){void 0===n&&(n=1);var o=e.resolve(t),r=o.depth-n,s=i&&i[i.length-1]||o.parent;if(r<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var a=o.depth-1,l=n-2;a>r;a--,l--){var d=o.node(a),c=o.index(a);if(d.type.spec.isolating)return!1;var u=d.content.cutByIndex(c,d.childCount),p=i&&i[l]||d;if(p!=d&&(u=u.replaceChild(0,p.type.create(p.attrs))),!d.canReplace(c+1,d.childCount)||!p.type.validContent(u))return!1}var h=o.indexAfter(r),f=i&&i[0];return o.node(r).canReplaceWith(h,h,f?f.type:o.node(r+1).type)}function ze(e,t){var n=e.resolve(t),i=n.index();return je(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function je(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function Ke(e,t,n){void 0===n&&(n=-1);for(var i=e.resolve(t),o=i.depth;;o--){var r=void 0,s=void 0,a=i.index(o);if(o==i.depth?(r=i.nodeBefore,s=i.nodeAfter):n>0?(r=i.node(o+1),a++,s=i.node(o).maybeChild(a)):(r=i.node(o).maybeChild(a-1),s=i.node(o+1)),r&&!r.isTextblock&&je(r,s)&&i.node(o).canReplace(a,a+1))return t;if(0==o)break;t=n<0?i.before(o):i.after(o)}}function _e(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 o=i.depth-1;o>=0;o--){var r=i.index(o);if(i.node(o).canReplaceWith(r,r,n))return i.before(o+1);if(r>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 He(e,t,n){var i=e.resolve(t);if(!n.content.size)return t;for(var o=n.content,r=0;r<n.openStart;r++)o=o.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,d=i.index(a)+(l>0?1:0),c=i.node(a),u=!1;if(1==s)u=c.canReplace(d,d,o);else{var p=c.contentMatchAt(d).findWrapping(o.firstChild.type);u=p&&c.canReplaceWith(d,d,p[0])}if(u)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function We(e,t,n){for(var i=[],o=0;o<e.childCount;o++){var r=e.child(o);r.content.size&&(r=r.copy(We(r.content,t,r))),r.isInline&&(r=t(r,n,o)),i.push(r)}return a.fromArray(i)}Te.jsonID("replaceAround",Ne),Ie.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,o=e.depth,r=n.before(o+1),s=i.after(o+1),l=r,d=s,c=a.empty,u=0,p=o,h=!1;p>t;p--)h||n.index(p)>0?(h=!0,c=a.from(n.node(p).copy(c)),u++):l--;for(var v=a.empty,m=0,g=o,y=!1;g>t;g--)y||i.after(g+1)<i.end(g)?(y=!0,v=a.from(i.node(g).copy(v)),m++):d++;return this.step(new Ne(l,d,r,s,new f(c.append(v),u,m),c.size-u,!0))},Ie.prototype.wrap=function(e,t){for(var n=a.empty,i=t.length-1;i>=0;i--){if(n.size){var o=t[i].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=a.from(t[i].type.create(t[i].attrs,n))}var r=e.start,s=e.end;return this.step(new Ne(r,s,r,s,new f(n,0,0),t.length,!0))},Ie.prototype.setBlockType=function(e,t,n,i){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var r=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),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(r).map(t),n)){o.clearIncompatible(o.mapping.slice(r).map(t,1),n);var s=o.mapping.slice(r),l=s.map(t,1),d=s.map(t+e.nodeSize,1);return o.step(new Ne(l,d,l+1,d-1,new f(a.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},Ie.prototype.setNodeMarkup=function(e,t,n,i){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var r=t.create(n,null,i||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,r);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ne(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new f(a.from(r),0,0),1,!0))},Ie.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),o=a.empty,r=a.empty,s=i.depth,l=i.depth-t,d=t-1;s>l;s--,d--){o=a.from(i.node(s).copy(o));var c=n&&n[d];r=a.from(c?c.type.create(c.attrs,r):i.node(s).copy(r))}return this.step(new Be(e,e,new f(o.append(r),t,t),!0))},Ie.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Be(e-t,e+t,f.empty,!0);return this.step(n)};var Ue=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),o=i.node(i.sharedDepth(this.to)),r=new f(We(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return Re.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new qe(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}(Te);Te.jsonID("addMark",Ue);var qe=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 f(We(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return Re.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Ue(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}(Te);function Ge(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=f.empty),t==n&&!i.size)return null;var o=e.resolve(t),r=e.resolve(n);return Je(o,r,i)?new Be(t,n,i):new Xe(o,r,i).fit()}function Je(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Te.jsonID("removeMark",qe),Ie.prototype.addMark=function(e,t,n){var i=this,o=[],r=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,d){if(i.isInline){var c=i.marks;if(!n.isInSet(c)&&d.type.allowsMarkType(n.type)){for(var u=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(c),f=0;f<c.length;f++)c[f].isInSet(h)||(s&&s.to==u&&s.mark.eq(c[f])?s.to=p:o.push(s=new qe(u,p,c[f])));a&&a.to==u?a.to=p:r.push(a=new Ue(u,p,n))}}})),o.forEach((function(e){return i.step(e)})),r.forEach((function(e){return i.step(e)})),this},Ie.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var o=[],r=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){r++;var a=null;if(n instanceof ie)for(var l,d=i.marks;l=n.isInSet(d);)(a||(a=[])).push(l),d=l.removeFromSet(d);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var c=Math.min(s+i.nodeSize,t),u=0;u<a.length;u++){for(var p=a[u],h=void 0,f=0;f<o.length;f++){var v=o[f];v.step==r-1&&p.eq(o[f].style)&&(h=v)}h?(h.to=c,h.step=r):o.push({style:p,from:Math.max(s,e),to:c,step:r})}}})),o.forEach((function(e){return i.step(new qe(e.from,e.to,e.style))})),this},Ie.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),o=[],r=e+1,s=0;s<i.childCount;s++){var l=i.child(s),d=r+l.nodeSize,c=n.matchType(l.type,l.attrs);if(c){n=c;for(var u=0;u<l.marks.length;u++)t.allowsMarkType(l.marks[u].type)||this.step(new qe(r,d,l.marks[u]))}else o.push(new Be(r,d,f.empty));r=d}if(!n.validEnd){var p=n.fillBefore(a.empty,!0);this.replace(r,r,new f(p,0,0))}for(var h=o.length-1;h>=0;h--)this.step(o[h]);return this},Ie.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=f.empty);var i=Ge(this.doc,e,t,n);return i&&this.step(i),this},Ie.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new f(a.from(n),0,0))},Ie.prototype.delete=function(e,t){return this.replace(e,t,f.empty)},Ie.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var Xe=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}this.placed=a.empty;for(var r=e.depth;r>0;r--)this.placed=a.from(e.node(r).copy(this.placed))},Ye={depth:{configurable:!0}};function Ze(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ze(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 et(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function tt(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,tt(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(a.empty,!0)))),e.copy(i)}function nt(e,t,n,i,o){var r=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==r.childCount&&!n.compatibleContent(r.type))return null;var a=i.fillBefore(r.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,r.content,s)?a:null}function it(e,t,n,i,o){if(t<n){var r=e.firstChild;e=e.replaceChild(0,r.copy(it(r.content,t+1,n,i,r)))}if(t>i){var s=o.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(a.empty,!0))}return e}function ot(e,t){for(var n=[],i=Math.min(e.depth,t.depth);i>=0;i--){var o=e.start(i);if(o<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;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}Ye.depth.get=function(){return this.frontier.length-1},Xe.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,o=this.close(t<0?this.$to:i.doc.resolve(t));if(!o)return null;for(var r=this.placed,s=i.depth,a=o.depth;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;var l=new f(r,s,a);return t>-1?new Ne(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new Be(i.pos,o.pos,l):void 0},Xe.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=et(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var r=this.frontier[o],s=r.type,l=r.match,d=void 0,c=void 0;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(a.from(i),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&i&&(d=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:d};if(n&&l.matchType(n.type))break}},Xe.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=et(t,n);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new f(t,n+1,Math.max(i,o.size+n>=t.size-i?n+1:0)),0))},Xe.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=et(t,n);if(o.childCount<=1&&n>0){var r=t.size-n<=n+o.size;this.unplaced=new f(Ze(t,n-1,1),n-1,r?n-1:i)}else this.unplaced=new f(Ze(t,n,1),n,i)},Xe.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,o=e.inject,r=e.wrap;this.depth>n;)this.closeFrontierNode();if(r)for(var s=0;s<r.length;s++)this.openFrontierNode(r[s]);var l=this.unplaced,d=i?i.content:l.content,c=l.openStart-t,u=0,p=[],h=this.frontier[n],v=h.match,m=h.type;if(o){for(var g=0;g<o.childCount;g++)p.push(o.child(g));v=v.matchFragment(o)}for(var y=d.size+t-(l.content.size-l.openEnd);u<d.childCount;){var b=d.child(u),k=v.matchType(b.type);if(!k)break;(++u>1||0==c||b.content.size)&&(v=k,p.push(tt(b.mark(m.allowedMarks(b.marks)),1==u?c:0,u==d.childCount?y:-1)))}var w=u==d.childCount;w||(y=-1),this.placed=Qe(this.placed,n,a.from(p)),this.frontier[n].match=v,w&&y<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,x=d;S<y;S++){var C=x.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),x=C.content}this.unplaced=w?0==t?f.empty:new f(Ze(l.content,t-1,1),t-1,y<0?l.openEnd:t-1):new f(Ze(l.content,t,u),l.openStart,l.openEnd)},Xe.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||!nt(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},Xe.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,o=n.type,r=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=nt(e,t,o,i,r);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],d=l.match,c=nt(e,a,l.type,d,!0);if(!c||c.childCount)continue e}return{depth:t,fit:s,move:r?e.doc.resolve(e.after(t+1)):e}}}},Xe.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),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,o)}return e},Xe.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,a.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},Xe.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(a.empty,!0);e.childCount&&(this.placed=Qe(this.placed,this.frontier.length,e))},Object.defineProperties(Xe.prototype,Ye),Ie.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),o=this.doc.resolve(t);if(Je(i,o,n))return this.step(new Be(e,t,n));var r=ot(i,this.doc.resolve(t));0==r[r.length-1]&&r.pop();var s=-(i.depth+1);r.unshift(s);for(var a=i.depth,l=i.pos-1;a>0;a--,l--){var d=i.node(a).type.spec;if(d.defining||d.isolating)break;r.indexOf(a)>-1?s=a:i.before(a)==l&&r.splice(1,0,-a)}for(var c=r.indexOf(s),u=[],p=n.openStart,h=n.content,v=0;;v++){var m=h.firstChild;if(u.push(m),v==n.openStart)break;h=m.content}p>0&&u[p-1].type.spec.defining&&i.node(c).type!=u[p-1].type?p-=1:p>=2&&u[p-1].isTextblock&&u[p-2].type.spec.defining&&i.node(c).type!=u[p-2].type&&(p-=2);for(var g=n.openStart;g>=0;g--){var y=(g+p+1)%(n.openStart+1),b=u[y];if(b)for(var k=0;k<r.length;k++){var w=r[(k+c)%r.length],S=!0;w<0&&(S=!1,w=-w);var x=i.node(w-1),C=i.index(w-1);if(x.canReplaceWith(C,C,b.type,b.marks))return this.replace(i.before(w),S?o.after(w):t,new f(it(n.content,0,n.openStart,y),y,n.openEnd))}}for(var $=this.steps.length,I=r.length-1;I>=0&&(this.replace(e,t,n),!(this.steps.length>$));I--){var O=r[I];O<0||(e=i.before(O),t=o.after(O))}return this},Ie.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=_e(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new f(a.from(n),0,0))},Ie.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),o=ot(n,i),r=0;r<o.length;r++){var s=o[r],a=r==o.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 rt=Object.create(null),st=function(e,t,n){this.ranges=n||[new lt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},at={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};at.anchor.get=function(){return this.$anchor.pos},at.head.get=function(){return this.$head.pos},at.from.get=function(){return this.$from.pos},at.to.get=function(){return this.$to.pos},at.$from.get=function(){return this.ranges[0].$from},at.$to.get=function(){return this.ranges[0].$to},at.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},st.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},st.prototype.replace=function(e,t){void 0===t&&(t=f.empty);for(var n=t.content.lastChild,i=null,o=0;o<t.openEnd;o++)i=n,n=n.lastChild;for(var r=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var l=s[a],d=l.$from,c=l.$to,u=e.mapping.slice(r);e.replaceRange(u.map(d.pos),u.map(c.pos),a?f.empty:t),0==a&&mt(e,r,(n?n.isInline:i&&i.isTextblock)?-1:1)}},st.prototype.replaceWith=function(e,t){for(var n=e.steps.length,i=this.ranges,o=0;o<i.length;o++){var r=i[o],s=r.$from,a=r.$to,l=e.mapping.slice(n),d=l.map(s.pos),c=l.map(a.pos);o?e.deleteRange(d,c):(e.replaceRangeWith(d,c,t),mt(e,n,t.isInline?-1:1))}},st.findFrom=function(e,t,n){var i=e.parent.inlineContent?new dt(e):vt(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(var o=e.depth-1;o>=0;o--){var r=t<0?vt(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):vt(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}},st.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new ht(e.node(0))},st.atStart=function(e){return vt(e,e,0,0,1)||new ht(e)},st.atEnd=function(e){return vt(e,e,e.content.size,e.childCount,-1)||new ht(e)},st.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=rt[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},st.jsonID=function(e,t){if(e in rt)throw new RangeError("Duplicate use of selection JSON ID "+e);return rt[e]=t,t.prototype.jsonID=e,t},st.prototype.getBookmark=function(){return dt.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(st.prototype,at),st.prototype.visible=!0;var lt=function(e,t){this.$from=e,this.$to=t},dt=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 o=n.resolve(i.map(this.head));if(!o.parent.inlineContent)return e.near(o);var r=n.resolve(i.map(this.anchor));return new t(r.parent.inlineContent?r:o,o)},t.prototype.replace=function(t,n){if(void 0===n&&(n=f.empty),e.prototype.replace.call(this,t,n),n==f.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 ct(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,o){var r=n.pos-i.pos;if(o&&!r||(o=r>=0?1:-1),!i.parent.inlineContent){var s=e.findFrom(i,o,!0)||e.findFrom(i,-o,!0);if(!s)return e.near(i,o);i=s.$head}return n.parent.inlineContent||(0==r||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<i.pos!=r<0)&&(n=i),new t(n,i)},Object.defineProperties(t.prototype,n),t}(st);st.jsonID("text",dt);var ct=function(e,t){this.anchor=e,this.head=t};ct.prototype.map=function(e){return new ct(e.map(this.anchor),e.map(this.head))},ct.prototype.resolve=function(e){return dt.between(e.resolve(this.anchor),e.resolve(this.head))};var ut=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 o=i.mapResult(this.anchor),r=o.deleted,s=o.pos,a=n.resolve(s);return r?e.near(a):new t(a)},t.prototype.content=function(){return new f(a.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 pt(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}(st);ut.prototype.visible=!1,st.jsonID("node",ut);var pt=function(e){this.anchor=e};pt.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new ct(i,i):new pt(i)},pt.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ut.isSelectable(n)?new ut(t):st.near(t)};var ht=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=f.empty),n==f.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 ft},t}(st);st.jsonID("all",ht);var ft={map:function(){return this},resolve:function(e){return new ht(e)}};function vt(e,t,n,i,o,r){if(t.inlineContent)return dt.create(e,n);for(var s=i-(o>0?0:1);o>0?s<t.childCount:s>=0;s+=o){var a=t.child(s);if(a.isAtom){if(!r&&ut.isSelectable(a))return ut.create(e,n-(o<0?a.nodeSize:0))}else{var l=vt(e,a,n+o,o<0?a.childCount:0,o,r);if(l)return l}n+=a.nodeSize*o}}function mt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var o,r=e.steps[i];(r instanceof Be||r instanceof Ne)&&(e.mapping.maps[i].forEach((function(e,t,n,i){null==o&&(o=i)})),e.setSelection(st.near(e.doc.resolve(o),n)))}}var gt=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 p.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)||p.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 o=this.storedMarks;if(!o){var r=this.doc.resolve(t);o=n==t?r.marks():r.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,o)),this.selection.empty||this.setSelection(st.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}(Ie);function yt(e,t){return t&&e?e.bind(t):e}var bt=function(e,t,n){this.name=e,this.init=yt(t.init,n),this.apply=yt(t.apply,n)},kt=[new bt("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new bt("selection",{init:function(e,t){return e.selection||st.atStart(t.doc)},apply:function(e){return e.selection}}),new bt("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new bt("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],wt=function(e,t){var n=this;this.schema=e,this.fields=kt.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 bt(e.key,e.spec.state,e))}))},St=function(e){this.config=e},xt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};xt.schema.get=function(){return this.config.schema},xt.plugins.get=function(){return this.config.plugins},St.prototype.apply=function(e){return this.applyTransaction(e).state},St.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},St.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),i=null;;){for(var o=!1,r=0;r<this.config.plugins.length;r++){var s=this.config.plugins[r];if(s.spec.appendTransaction){var a=i?i[r].n:0,l=i?i[r].state:this,d=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(d&&n.filterTransaction(d,r)){if(d.setMeta("appendedTransaction",e),!i){i=[];for(var c=0;c<this.config.plugins.length;c++)i.push(c<r?{state:n,n:t.length}:{state:this,n:0})}t.push(d),n=n.applyInner(d),o=!0}i&&(i[r]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},St.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new St(this.config),n=this.config.fields,i=0;i<n.length;i++){var o=n[i];t[o.name]=o.apply(e,this[o.name],this,t)}for(var r=0;r<Ct.length;r++)Ct[r](this,e,t);return t},xt.tr.get=function(){return new gt(this)},St.create=function(e){for(var t=new wt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new St(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},St.prototype.reconfigure=function(e){for(var t=new wt(this.schema,e.plugins),n=t.fields,i=new St(t),o=0;o<n.length;o++){var r=n[o].name;i[r]=this.hasOwnProperty(r)?this[r]:n[o].init(e,i)}return i},St.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],o=i.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(i,this[i.key]))}return t},St.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 wt(e.schema,e.plugins),o=new St(i);return i.fields.forEach((function(i){if("doc"==i.name)o.doc=E.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=st.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var r in n){var s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=a.fromJSON.call(s,e,t[r],o))}o[i.name]=i.init(e,o)}})),o},St.addApplyListener=function(e){Ct.push(e)},St.removeApplyListener=function(e){var t=Ct.indexOf(e);t>-1&&Ct.splice(t,1)},Object.defineProperties(St.prototype,xt);var Ct=[];function $t(e,t,n){for(var i in e){var o=e[i];o instanceof Function?o=o.bind(t):"handleDOMEvents"==i&&(o=$t(o,t,{})),n[i]=o}return n}var It=function(e){this.props={},e.props&&$t(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:Dt("plugin")};It.prototype.getState=function(e){return e[this.key]};var Ot=Object.create(null);function Dt(e){return e in Ot?e+"$"+ ++Ot[e]:(Ot[e]=0,e+"$")}var Mt=function(e){void 0===e&&(e="key"),this.key=Dt(e)};Mt.prototype.get=function(e){return e.config.pluginsByKey[this.key]},Mt.prototype.getState=function(e){return e[this.key]};var Tt="k-parent-node",Rt="k-colgroup-data",Bt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],Nt=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Tt)===t})).forEach((function(e){e.removeAttribute(Tt),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Pt=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(Tt,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},Et=function(e,t){void 0===t&&(t=Bt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Vt=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 o=i.body;o&&o.firstChild;)t.appendChild(o.firstChild)}return t},Lt=function(e){var t=ge.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){Nt(e,"thead"),Nt(e,"tbody"),Nt(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},At=function(e,t,n){return se.fromSchema(t).parse(e,n)},Ft=function(e,t,n){var i,o=Vt(e);return i=o,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}))&&(Pt(t,"thead"),Pt(t,"tbody"),Pt(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute(Rt,n.outerHTML),n.remove())})),At(o,t,n)},zt=function(e){var t=Lt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},jt=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(i,o){return o(i.tr.setSelection(new ht(i.doc)).replaceSelectionWith(Ft(e,i.schema,n)).setMeta("commandName",t))}},Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kt.apply(this,arguments)};function _t(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 o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}var Ht=function(e,t){var n=t.style,i=t.value,o=t.newValue;if(!e)return{changed:!1,style:null};var r=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),s=r.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&i.test(t[1]))}));return o&&s.push(n+": "+o),{style:s.join("; ")+(s.length?";":""),changed:Boolean(o)||s.length!==r.length}},Wt=function(e,t){for(var n=e.selection.$from,i=n.depth;i>=0;i--){var o=n.index(i);if(n.node(i).canReplaceWith(o,o,t))return!0}return!1},Ut=function(e){return e instanceof E?e.type.name:e.name},qt=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,o=i.depth;o>0;o--){var r=i.node(o);if(e(r)&&0==(t-=1))return{depth:o,node:r}}}}((function(t){return Ut(t)===Ut(e)}),t)(n)}},Gt=function(e,t){return function(n,i){var o=n.tr.replaceSelectionWith(e);t&&o.scrollIntoView(),i(o)}},Jt=function(e,t,n,i){var o=a.from(Ft(e,n,i)),r=a.from(Ft(t,n,i));return o.eq(r)},Xt=function(e){var t=e.selection;if(t instanceof dt||t instanceof ht){var n=t.content().content;return n.textBetween(0,n.size)}return""},Yt=function(e){if(e.selection instanceof ut)return e.selection.node},Zt=function(e){var t="",n=!1,i=e.selection,o=e.doc,r=i.$from,s=i.$to,a=i.from,l=i.to;return r.sameParent(s)&&(o.nodesBetween(a,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Xt(e))),t},Qt=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$/,"")},en={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},tn=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?en:n.applyToWord,o=null,r=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 d=[];s.$head.parent.descendants((function(e,t){return d.push({node:e,pos:t}),!1}));for(var c=s.$head.parentOffset,u=d.findIndex((function(e){var t=e.node,n=e.pos;return n<=c&&n+t.nodeSize>=c})),p=d[u].node.text,h=!1,f=u-1;f>=0;f--){var v=d[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,c-=v.node.nodeSize)}for(f=u+1;f<d.length&&((v=d[f])&&"text"===v.node.type.name);f++)p+=v.node.text;var m=p.substring(0,c),g=p.substring(c),y=i.before.exec(m),b=i.after.exec(g);if(y&&b){var k=y[0].length,w=b[0].length,S=o=s.from;return r.setSelection(dt.create(e.doc,S-k,S+w)),{state:{tr:r,selection:r.selection,doc:r.doc,storedMarks:null,schema:r.doc.type.schema},dispatch:function(e){e.setSelection(dt.create(e.doc,o)),t(e)}}}}return{state:e,dispatch:t}},nn=function(e,t){return function(n,i,o){var r=tn(n,i,t),s=r.state,a=r.dispatch;return e(t)(s,a)}},on=function(e,t,n){for(var i=function(i){var o=t[i],r=o.$from,s=o.$to,a=0===r.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(r.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},o=0;o<t.length;o++){var r=i(o);if(r)return r.v}return!1},rn=function(e,t,n){return function(i,o){var r=i.selection,s=r.empty,a=r.$cursor,l=r.ranges;if(s&&!a||!on(i.doc,l,e))return!1;if(o)if(a)e.isInSet(i.storedMarks||a.marks())?o(n.removeStoredMark(e)):o(n.addStoredMark(e.create(t)));else{for(var d=!1,c=0;!d&&c<l.length;c++){var u=l[c],p=u.$from,h=u.$to;d=i.doc.rangeHasMark(p.pos,h.pos,e)}for(c=0;c<l.length;c++){var f=l[c];p=f.$from,h=f.$to,d?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}o(n.scrollIntoView())}return!0}},sn=function(e,t,n,i){void 0===i&&(i=null);var o=[],r=0;return e.doc.nodesBetween(t,n,(function(e,s){if(e.isInline){r++;var a=null;if(i instanceof ie){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 d=Math.min(s+e.nodeSize,n),c=0;c<a.length;c++){for(var u=a[c],p=void 0,h=0;h<o.length;h++){var f=o[h];f.step===r-1&&u.eq(f.style)&&(p=f)}p?(p.to=d,p.step=r):o.push({style:u,from:Math.max(s,t),to:d,step:r})}}})),o.forEach((function(t){return e.step(new qe(t.from,t.to,t.style))})),e},an=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,o=e.tr;ln(o,{except:(i=n,i instanceof Array?i:[i])}),o.docChanged&&t(o)}},ln=function(e,t){var n=t.except,i=e.doc,o=e.selection,r=i.type.schema,s=o.empty,a=o.ranges,l=(n||[]).map((function(e){return e.name}));if(!s){var d=Object.keys(r.marks).map((function(e){return r.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));a.forEach((function(t){var n=t.$from,i=t.$to;d.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},dn=function(e,t){var n,i=e.schema.marks,o=(t.altMarks||[]).filter((function(e){return i[e]})),r=t.altStyle,s=e.selection,a=s.from,l=s.$from,d=s.to,c=s.empty,u=i[t.mark],p=e.doc,h=!1;return c?(n=e.storedMarks||l.marks(),h=u&&u.isInSet(n)||o.some((function(e){return i[e].isInSet(n)}))):h=u&&p.rangeHasMark(a,d,u)||o.some((function(e){return p.rangeHasMark(a,d,i[e])})),!h&&r&&i.style?un(e,i.style).some((function(e){return null!==cn(e,r)})):Boolean(h)},cn=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 o=n[i].split(/\s*:\s*/);if(o[0].toLowerCase()===t.name&&t.value.test(o[1]))return o[1]}return null},un=function(e,t){var n=e.selection,i=n.from,o=n.$from,r=n.to,s=n.empty,a=[];return s?a.push(t.isInSet(e.storedMarks||o.marks())):e.doc.nodesBetween(i,r,(function(e){e.isInline&&a.push(t.isInSet(e.marks))})),a},pn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},hn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},fn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return Ht(i,t)},vn=function(e,t,n,i,o){var r=o.create({style:i.style}),s=[],a=[],l=null,d=null;return e.doc.nodesBetween(t,n,(function(e,c,u){if(e.isInline){var p=e.marks;if(!r.isInSet(p)&&u.type.allowsMarkType(r.type)){var h=Math.max(c,t),f=Math.min(c+e.nodeSize,n),v=fn(p,i);if(v.changed||i.newValue){for(var m=v.changed?{style:v.style||null}:{style:[i.style]+": "+i.newValue+";"},g=o.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,y=g?Kt({},g.attrs,m):m,b=o.create(y),k=b.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 qe(h,f,p[w]),s.push(l)));var S=d&&d.to===h,x=S&&b.attrs.style===d.mark.attrs.style;S&&x?d.to=f:Object.keys(y).some((function(e){return null!==y[e]}))&&(d=new Ue(h,f,b),a.push(d))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},mn=function(e,t){var n=e.schema.marks.style;return(n?un(e,n):[]).map((function(e){return cn(e,t)})).filter((function(e){return null!==e}))},gn=function(e,t){return function(n,i,o){var r=n.selection,s=r.empty,a=r.$cursor,l=r.ranges;if(s&&!a||!on(n.doc,l,e))return!1;var d,c,u,p,h=!1;if(i){var f=o||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=fn(v,t),g=v.find((function(e){return"style"===e.type.name})),y=Kt({},g?g.attrs:{},{style:m.style||null});if(d=g.attrs,c=y,u=Object.keys(d),p=Object.keys(c),u.length===p.length&&u.every((function(e){return d[e]===c[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(y).some((function(e){return null!==y[e]}))&&i(f.addStoredMark(e.create(y))),h=!0}}else{for(var b=0;b<l.length;b++){var k=l[b],w=k.$from,S=k.$to;h=vn(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},yn=function(e,t,n){return function(i,o){var r=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,d=e.mark,c=t||i.tr,u=!1,p=!1,h=function(){return p=!0};s&&r.style&&(u=gn(r.style,{style:s.name,value:s.value})(i,h,c));var f=[d].concat(l).filter((function(e){return r[e]})).map((function(e){return dn(i,{mark:e})&&r[e]})).filter((function(e){return e}));return f.length?function(e,t,n,i){var o=t.selection,r=o.$cursor,s=o.ranges;if(i=i||t.tr,r)e.forEach((function(e){e.isInSet(t.storedMarks||r.marks())&&n(i.removeStoredMark(e))}));else{for(var a=function(t){var n=s[t],o=n.$from,r=n.$to;e.forEach((function(e){sn(i,o.pos,r.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,c):u||rn(r[d],n,c)(i,h),p&&o(c),p}},bn=function(e,t){return function(n,i){var o=n.schema.marks.style,r={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,d=a.$cursor,c=a.ranges;if(l&&!d||!o||!on(n.doc,c,o))return!1;if(d){var u=n.storedMarks||d.marks(),p=o.isInSet(u)?u.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Ht(p.attrs.style,r);f.changed&&f.style&&(h.style=f.style)}else r.newValue&&(h.style=[r.style]+": "+r.newValue+";");var v=p?Kt({},p.attrs,h):h;return Object.keys(v).some((function(e){return null!==v[e]}))?i(s.addStoredMark(o.create(v))):i(s.removeStoredMark(o)),!0}return gn(o,r)(n,i,s)}},kn=function(e,t){return function(n,i){var o=n.selection.$cursor;if(o){var r=o.parent,s=o.index(),a=n.schema.marks[e.mark],l=r.child(s).marks.find((function(e){return e.type===a})),d=r.childCount,c=o.pos-o.textOffset,u=r.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(r.child(p).marks);)u+=h=r.child(p).nodeSize,c-=h,p-=1;for(p=s+1;p<d&&l.isInSet(r.child(p).marks);)u+=r.child(p).nodeSize,p+=1;i(sn(t||n.tr,c,c+u,l))}else yn(e,t)(n,i)}},wn=function(e,t){var n=e.mark,i=e.attrs;return void 0===t&&(t="link"),function(e,o){var r=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=un(e,t);return 1===n.length&&n[0]?n[0]:null}(e,r[n]))!function(e,t){return function(n,i){var o=n.selection,r=o.$cursor,s=o.from,a=o.to,l=n.schema.marks[e.mark];if(r){var d=r.parent,c=r.index(),u=d.child(c).marks.find((function(e){return e.type===l})),p=d.childCount,h=r.pos-r.textOffset,f=d.child(c).nodeSize,v=void 0,m=void 0;for(v=c-1;v>=0&&u.isInSet(d.child(v).marks);)f+=m=d.child(v).nodeSize,h-=m,v-=1;for(v=c+1;v<p&&u.isInSet(d.child(v).marks);)f+=d.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,o){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(o,o+n.nodeSize,l),t.addMark(o,o+n.nodeSize,l.create(e.attrs)),i(t))}))}}({mark:n,attrs:i},s)(e,l);else{var d=e;dn(e,{mark:n})&&(kn({mark:n,attrs:i},s)(e,l),d=St.create({doc:s.doc,selection:s.selection})),a?rn(r[n],i,s)(d,l):yn({mark:n},s,i)(d,l)}return a&&o(s),a}},Sn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},xn=function(e){return function(t,n){var i=t.schema.nodes.image.createAndFill(e);Gt(i)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},Cn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(o){var r=e.steps.length,s=o.$from.pos,l=o.$to.pos;e.doc.nodesBetween(s,l,(function(o,s){if(o.eq(t)&&o.isTextblock&&!o.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(r).map(s),n)){e.clearIncompatible(e.mapping.slice(r).map(s,1),n);var l=e.mapping.slice(r),d=l.map(s,1),c=l.map(s+o.nodeSize,1),u=new f(a.from(n.create(i,null,o.marks)),0,0);return e.step(new Ne(d,c,d+1,c-1,u,1,!0)),!1}}))}))},$n=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,i=e.selection,o=i.$from,r=i.ranges,s=t.blocksInSelection,a=[],l=i instanceof ut?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&&o.parent&&o.parent.isBlock&&a.push(o.parent):r.forEach((function(e){var t=e.$from.pos,i=e.$to.pos;n.nodesBetween(t,i,(function(e,n,o,r){e.isBlock&&(!s||n>=t&&n+e.content.size+2<=i)&&a.push(e)}))})),a},In=function(e,t){return function(n,i){var o=$n(n),r=n.schema.nodes,s=n.tr;s.setMeta("commandName",t),s.setMeta("args",{value:e}),o.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,i=n.level,o=_t(n,["level"]);Cn(s,t,r.paragraph,o)}else if(/^h[1-6]$/i.test(e))i=parseInt(e.substr(1),10),Cn(s,t,r.heading,Kt({},t.attrs,{level:i}));else if("blockquote"===e){var a=t.attrs;i=a.level,o=_t(a,["level"]),Cn(s,t,r.blockquote,o)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},On=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,o=t.blocksInSelection,r=t.blockNodeType;$n({doc:n,selection:i},{blocksInSelection:o}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},i=n.style,o=void 0===i?"":i,s=n.class,a=void 0===s?"":s,l=_t(n,["style","class"]),d=r||t.type;(o||a||d!==t.type)&&Cn(e,t,d,l)}))},Dn=function(e){var t=$n(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},Mn=function(e,t){var n,i,o=e.attrs.style;return o&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=Ht(o,i),o=n.changed?n.style:o})),o=o||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:o||null})},Tn=function(e,t){var n=e.selection,i=n.from,o=n.to,r=!1;return e.doc.nodesBetween(i,o,(function(e){return!(r=r||e.type===t)})),r},Rn=function(e){var t=Dn(e);return 1===new Set(t).size?t[0]:null},Bn=function(e){return{tag:Rn(e)||""}},Nn=function(e,t){return function(n,i){var o=$n(n),r=n.tr;r.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var n={},i=e.find((function(e){return e.node===t.type.name}));i&&(n=Mn(t,i.style)),Cn(r,t,t.type,n)}}));var s=r.docChanged;return s&&i(r.scrollIntoView()),s}},Pn=function(e,t){var n=$n(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},En=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var i=t.tr,o=e.blocksInSelection,r=e.blockNodeType,s=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);ln(i,{except:s}),On(i,{blocksInSelection:o,blockNodeType:r});var a=i.docChanged;return a&&n&&n(i),a}},Vn=["ol",0],Ln=["ul",0],An=["li",0],Fn={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?Vn:["ol",{start:e.attrs.order},0]}},zn={parseDOM:[{tag:"ul"}],toDOM:function(){return Ln}},jn={parseDOM:[{tag:"li"}],toDOM:function(){return An},defining:!0};function Kn(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)n[o]=t[o];return n}function _n(e,t,n){return e.append({ordered_list:Kn(Fn,{content:"list_item+",group:n}),bullet_list:Kn(zn,{content:"list_item+",group:n}),list_item:Kn(jn,{content:t})})}function Hn(e,t){return function(n,i){var o=n.selection,r=o.$from,s=o.$to,l=r.blockRange(s),d=!1,c=l;if(!l)return!1;if(l.depth>=2&&r.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==r.index(l.depth-1))return!1;var u=n.doc.resolve(l.start-2);c=new B(u,u,l.depth),l.endIndex<l.parent.childCount&&(l=new B(r,n.doc.resolve(s.end(l.depth)),l.depth)),d=!0}var p=Le(c,e,t,l);return!!p&&(i&&i(function(e,t,n,i,o){for(var r=a.empty,s=n.length-1;s>=0;s--)r=a.from(n[s].type.create(n[s].attrs,r));e.step(new Ne(t.start-(i?2:0),t.end,t.start,t.end,new f(r,0,0),n.length,!0));for(var l=0,d=0;d<n.length;d++)n[d].type==o&&(l=d+1);for(var c=n.length-l,u=t.start+n.length-(i?2:0),p=t.parent,h=t.startIndex,v=t.endIndex,m=!0;h<v;h++,m=!1)!m&&Fe(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=p.child(h).nodeSize;return e}(n.tr,l,p,d,e).scrollIntoView()),!0)}}function Wn(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=i.node;if(s&&s.isBlock||o.depth<2||!o.sameParent(r))return!1;var l=o.node(-1);if(l.type!=e)return!1;if(0==o.parent.content.size&&o.node(-1).childCount==o.indexAfter(-1)){if(2==o.depth||o.node(-3).type!=e||o.index(-2)!=o.node(-2).childCount-1)return!1;if(n){for(var d=a.empty,c=o.index(-1)?1:o.index(-2)?2:3,u=o.depth-c;u>=o.depth-3;u--)d=a.from(o.node(u).copy(d));var p=o.indexAfter(-1)<o.node(-2).childCount?1:o.indexAfter(-2)<o.node(-3).childCount?2:3;d=d.append(a.from(e.createAndFill()));var h=o.before(o.depth-(c-1)),v=t.tr.replace(h,o.after(-p),new f(d,4-c,0)),m=-1;v.doc.nodesBetween(h,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=r.pos==o.end()?l.contentMatchAt(0).defaultType:null,y=t.tr.delete(o.pos,r.pos),b=g&&[null,{type:g}];return!!Fe(y.doc,o.pos,2,b)&&(n&&n(y.split(o.pos,2,b).scrollIntoView()),!0)}}function Un(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=o.blockRange(r,(function(t){return t.childCount&&t.firstChild.type==e}));return!!s&&(!n||(o.node(s.depth-1).type==e?function(e,t,n,i){var o=e.tr,r=i.end,s=i.$to.end(i.depth);return r<s&&(o.step(new Ne(r-1,s,r,s,new f(a.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new B(o.doc.resolve(i.$from.pos),o.doc.resolve(s),i.depth)),t(o.lift(i,Ve(i)).scrollIntoView()),!0}(t,n,e,s):function(e,t,n){for(var i=e.tr,o=n.parent,r=n.end,s=n.endIndex-1,l=n.startIndex;s>l;s--)r-=o.child(s).nodeSize,i.delete(r-1,r+1);var d=i.doc.resolve(n.start),c=d.nodeAfter;if(i.mapping.map(n.end)!=n.start+d.nodeAfter.nodeSize)return!1;var u=0==n.startIndex,p=n.endIndex==o.childCount,h=d.node(-1),v=d.index(-1);if(!h.canReplace(v+(u?0:1),v+1,c.content.append(p?a.empty:a.from(o))))return!1;var m=d.pos,g=m+c.nodeSize;return i.step(new Ne(m-(u?1:0),g+(p?1:0),m+1,g-1,new f((u?a.empty:a.from(o.copy(a.empty))).append(p?a.empty:a.from(o.copy(a.empty))),u?0:1,p?0:1),u?0:1)),t(i.scrollIntoView()),!0}(t,n,s)))}}function qn(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=o.blockRange(r,(function(t){return t.childCount&&t.firstChild.type==e}));if(!s)return!1;var l=s.startIndex;if(0==l)return!1;var d=s.parent,c=d.child(l-1);if(c.type!=e)return!1;if(n){var u=c.lastChild&&c.lastChild.type==d.type,p=a.from(u?e.create():null),h=new f(a.from(e.create(null,a.from(d.type.create(null,p)))),u?3:1,0),v=s.start,m=s.end;n(t.tr.step(new Ne(v-(u?3:1),m,v,m,h,1,!0)).scrollIntoView())}return!0}}var Gn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},Jn={listType:Gn.orderedList,types:Kt({},Gn)},Xn={listType:Gn.bulletList,types:Kt({},Gn)},Yn={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:Kt({},Gn)},Zn={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:Kt({},Gn)};function Qn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function ei(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var o=ii(i);if(!o){var r=i.blockRange(),s=r&&Ve(r);return null!=s&&(t&&t(e.tr.lift(r,s).scrollIntoView()),!0)}var a=o.nodeBefore;if(!a.type.spec.isolating&&bi(e,o,t))return!0;if(0==i.parent.content.size&&(ti(a,"end")||ut.isSelectable(a))){var l=Ge(e.doc,i.before(),i.after(),f.empty);if(l.slice.size<l.to-l.from){if(t){var d=e.tr.step(l);d.setSelection(ti(a,"end")?st.findFrom(d.doc.resolve(d.mapping.map(o.pos,-1)),-1):ut.create(d.doc,o.pos-a.nodeSize)),t(d.scrollIntoView())}return!0}}return!(!a.isAtom||o.depth!=i.depth-1||(t&&t(e.tr.delete(o.pos-a.nodeSize,o.pos).scrollIntoView()),0))}function ti(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 ni(e,t,n){var i=e.selection,o=i.$head,r=o;if(!i.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;r=ii(o)}var s=r&&r.nodeBefore;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,r.pos-s.nodeSize)).scrollIntoView()),0))}function ii(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 oi(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;var o=si(i);if(!o)return!1;var r=o.nodeAfter;if(bi(e,o,t))return!0;if(0==i.parent.content.size&&(ti(r,"start")||ut.isSelectable(r))){var s=Ge(e.doc,i.before(),i.after(),f.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(ti(r,"start")?st.findFrom(a.doc.resolve(a.mapping.map(o.pos)),1):ut.create(a.doc,a.mapping.map(o.pos))),t(a.scrollIntoView())}return!0}}return!(!r.isAtom||o.depth!=i.depth-1||(t&&t(e.tr.delete(o.pos,o.pos+r.nodeSize).scrollIntoView()),0))}function ri(e,t,n){var i=e.selection,o=i.$head,r=o;if(!i.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;r=si(o)}var s=r&&r.nodeAfter;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,r.pos)).scrollIntoView()),0))}function si(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 ai(e,t){var n,i=e.selection,o=i instanceof ut;if(o){if(i.node.isTextblock||!ze(e.doc,i.from))return!1;n=i.from}else if(null==(n=Ke(e.doc,i.from,-1)))return!1;if(t){var r=e.tr.join(n);o&&r.setSelection(ut.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0}function li(e,t){var n,i=e.selection;if(i instanceof ut){if(i.node.isTextblock||!ze(e.doc,i.to))return!1;n=i.to}else if(null==(n=Ke(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function di(e,t){var n=e.selection,i=n.$from,o=n.$to,r=i.blockRange(o),s=r&&Ve(r);return null!=s&&(t&&t(e.tr.lift(r,s).scrollIntoView()),!0)}function ci(e,t){var n=e.selection,i=n.$head,o=n.$anchor;return!(!i.parent.type.spec.code||!i.sameParent(o)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))}function ui(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 pi(e,t){var n=e.selection,i=n.$head,o=n.$anchor;if(!i.parent.type.spec.code||!i.sameParent(o))return!1;var r=i.node(-1),s=i.indexAfter(-1),a=ui(r.contentMatchAt(s));if(!r.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),d=e.tr.replaceWith(l,l,a.createAndFill());d.setSelection(st.near(d.doc.resolve(l),1)),t(d.scrollIntoView())}return!0}function hi(e,t){var n=e.selection,i=n.$from,o=n.$to;if(n instanceof ht||i.parent.inlineContent||o.parent.inlineContent)return!1;var r=ui(o.parent.contentMatchAt(o.indexAfter()));if(!r||!r.isTextblock)return!1;if(t){var s=(!i.parentOffset&&o.index()<o.parent.childCount?i:o).pos,a=e.tr.insert(s,r.createAndFill());a.setSelection(dt.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function fi(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(Fe(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var o=n.blockRange(),r=o&&Ve(o);return null!=r&&(t&&t(e.tr.lift(o,r).scrollIntoView()),!0)}function vi(e,t){var n=e.selection,i=n.$from,o=n.$to;if(e.selection instanceof ut&&e.selection.node.isBlock)return!(!i.parentOffset||!Fe(e.doc,i.pos)||(t&&t(e.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(t){var r=o.parentOffset==o.parent.content.size,s=e.tr;(e.selection instanceof dt||e.selection instanceof ht)&&s.deleteSelection();var a=0==i.depth?null:ui(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=r&&a?[{type:a}]:null,d=Fe(s.doc,s.mapping.map(i.pos),1,l);if(l||d||!Fe(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],d=!0),d&&(s.split(s.mapping.map(i.pos),1,l),!r&&!i.parentOffset&&i.parent.type!=a)){var c=s.mapping.map(i.before()),u=s.doc.resolve(c);i.node(-1).canReplaceWith(u.index(),u.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function mi(e,t){return vi(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function gi(e,t){var n,i=e.selection,o=i.$from,r=i.to,s=o.sharedDepth(r);return 0!=s&&(n=o.before(s),t&&t(e.tr.setSelection(ut.create(e.doc,n))),!0)}function yi(e,t){return t&&t(e.tr.setSelection(new ht(e.doc))),!0}function bi(e,t,n){var i,o,r=t.nodeBefore,s=t.nodeAfter;if(r.type.spec.isolating||s.type.spec.isolating)return!1;if(function(e,t,n){var i=t.nodeBefore,o=t.nodeAfter,r=t.index();return!(!(i&&o&&i.type.compatibleContent(o.type))||(!i.content.size&&t.parent.canReplace(r-1,r)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(r,r+1)||!o.isTextblock&&!ze(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=(o=r.contentMatchAt(r.childCount)).findWrapping(s.type))&&o.matchType(i[0]||s.type).validEnd){if(n){for(var d=t.pos+s.nodeSize,c=a.empty,u=i.length-1;u>=0;u--)c=a.from(i[u].create(null,c));c=a.from(r.copy(c));var p=e.tr.step(new Ne(t.pos-1,d,t.pos,d,new f(c,1,0),i.length,!0)),h=d+2*i.length;ze(p.doc,h)&&p.join(h),n(p.scrollIntoView())}return!0}var v=st.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&&ti(s,"start",!0)&&ti(r,"end")){for(var y=r,b=[];b.push(y),!y.isTextblock;)y=y.lastChild;for(var k=s,w=1;!k.isTextblock;k=k.firstChild)w++;if(y.canReplace(y.childCount,y.childCount,k.content)){if(n){for(var S=a.empty,x=b.length-1;x>=0;x--)S=a.from(b[x].copy(S));n(e.tr.step(new Ne(t.pos-b.length,t.pos+s.nodeSize,t.pos+w,t.pos+s.nodeSize-w,new f(S,b.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ki(e){return function(t,n){for(var i=t.selection,o=e<0?i.$from:i.$to,r=o.depth;o.node(r).isInline;){if(!r)return!1;r--}return!!o.node(r).isTextblock&&(n&&n(t.tr.setSelection(dt.create(t.doc,e<0?o.start(r):o.end(r)))),!0)}}var wi=ki(-1),Si=ki(1);function xi(e,t){return function(n,i){var o=n.selection,r=o.$from,s=o.$to,a=r.blockRange(s),l=a&&Le(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function Ci(e,t){return function(n,i){var o=n.selection,r=o.from,s=o.to,a=!1;return n.doc.nodesBetween(r,s,(function(i,o){if(a)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)a=!0;else{var r=n.doc.resolve(o),s=r.index();a=r.parent.canReplaceWith(s,s+1,e)}})),!!a&&(i&&i(n.tr.setBlockType(r,s,e,t).scrollIntoView()),!0)}}function $i(e,t){return function(n,i){var o=n.selection,r=o.empty,s=o.$cursor,a=o.ranges;if(r&&!s||!function(e,t,n){for(var i=function(i){var o=t[i],r=o.$from,s=o.$to,a=0==r.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(r.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},o=0;o<t.length;o++){var r=i(o);if(r)return r.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,d=n.tr,c=0;!l&&c<a.length;c++){var u=a[c],p=u.$from,h=u.$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)d.removeMark(m.pos,g.pos,e);else{var y=m.pos,b=g.pos,k=m.nodeAfter,w=g.nodeBefore,S=k&&k.isText?/^\s*/.exec(k.text)[0].length:0,x=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;y+S<b&&(y+=S,b-=x),d.addMark(y,b,e.create(t))}}i(d.scrollIntoView())}return!0}}function Ii(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,i,o){return e(n,i&&function(e,t){return function(n){if(!n.isGeneric)return e(n);for(var i=[],o=0;o<n.mapping.maps.length;o++){for(var r=n.mapping.maps[o],s=0;s<i.length;s++)i[s]=r.map(i[s]);r.forEach((function(e,t,n,o){return i.push(n,o)}))}for(var a=[],l=0;l<i.length;l+=2)for(var d=i[l],c=i[l+1],u=n.doc.resolve(d),p=u.sharedDepth(c),h=u.node(p),f=u.indexAfter(p),v=u.after(p+1);v<=c;++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 y=a.length-1;y>=0;y--)ze(n.doc,a[y])&&n.join(a[y]);e(n)}}(i,t),o)}}function Oi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,i){for(var o=0;o<e.length;o++)if(e[o](t,n,i))return!0;return!1}}var Di=Oi(Qn,ei,ni),Mi=Oi(Qn,oi,ri),Ti={Enter:Oi(ci,hi,fi,vi),"Mod-Enter":pi,Backspace:Di,"Mod-Backspace":Di,"Shift-Backspace":Di,Delete:Mi,"Mod-Delete":Mi,"Mod-a":yi},Ri={"Ctrl-h":Ti.Backspace,"Alt-Backspace":Ti["Mod-Backspace"],"Ctrl-d":Ti.Delete,"Ctrl-Alt-Backspace":Ti["Mod-Delete"],"Alt-Delete":Ti["Mod-Delete"],"Alt-d":Ti["Mod-Delete"],"Ctrl-a":wi,"Ctrl-e":Si};for(var Bi in Ti)Ri[Bi]=Ti[Bi];Ti.Home=wi,Ti.End=Si;var Ni=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Ri:Ti,Pi=function(e,t){return xi(e.schema.nodes.blockquote)(e,t)},Ei=function(e,t){var n=e.selection,i=n.$from,o=n.$to,r=e.schema.nodes.blockquote,s=e.doc,a=-1,l=i.blockRange(o);l&&s.nodesBetween(l.start,l.end,(function(e,t,n,i){e.type===r&&(a=t)}));var d=-1!==a;return t&&d&&t(e.tr.lift(l,s.resolve(a).depth)),d},Vi=function(e,t,n){return function(i,o){var r=$n(i),s=i.tr;s.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var i=void 0,o=e.find((function(e){return e.node===t.type.name}));if(o){var r="rtl"===n?o.rtlStyle:o.style,a={name:r,value:o.step>0?""+o.step+o.unit:""};if(t.attrs.style){var l=new RegExp(r+":\\s?(\\d+)"+o.unit,"i"),d=t.attrs.style.match(l);if(d){var c=parseFloat(d[1])+o.step;c=c<=0?"":c,a.value=""+c+(c?o.unit:"")}}i=Mn(t,[a])}i&&Cn(s,t,t.type,i)}}));var a=s.docChanged;return a&&o(s.scrollIntoView()),a}},Li=function(e,t,n){var i=$n(e),o=!1;return i.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var i=t.find((function(t){return t.node===e.type.name}));if(i){var r="rtl"===n?i.rtlStyle:i.style,s=new RegExp(r+":\\s?\\d+"+i.unit,"i");o=s.test(e.attrs.style)}}})),o},Ai=function(e,t){return qn(t)(e)},Fi=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],o=e.schema.nodes[t.listsTypes.bulletList],r=!!qt(i,2)(e.selection),s=!!qt(o,2)(e.selection);return(r||s)&&Un(n)(e)},zi=function(e,t){var n=e.schema.nodes,i=n[Yn.listsTypes.listItem];return(Li(e,t.nodes)||Yn.nodes.some((function(t){return n[t.node]&&Tn(e,n[t.node])})))&&!Tn(e,i)},ji=function(e,t){var n=e.schema.nodes[Yn.listsTypes.listItem],i=zi(e,Yn);Ai(e,n)?qn(n)(e,t):i&&Vi(Yn.nodes)(e,t)},Ki=function(e,t){var n=e.schema.nodes,i=n[Zn.listsTypes.listItem],o=zi(e,Zn);Tn(e,n.blockquote)?Ei(e,t):Fi(e,Zn)?Un(i)(e,t):o&&Vi(Zn.nodes)(e,t)},_i=function(e,t,n){for(var i=t.depth,o=e.nodes[n.bulletList],r=e.nodes[n.orderedList],s=e.nodes[n.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==o&&l.type!==r||(i=a),l.type!==o&&l.type!==r&&l.type!==s)break}return i-1};function Hi(e,t,n,i){var o=i||e.schema.nodes.listItem,r=t.$from,s=t.$to,l=r.blockRange(s,(function(e){return e.childCount&&e.firstChild.type===o}));if(!l||l.depth<2||r.node(l.depth-1).type!==o)return n;var d=l.end,c=s.end(l.depth);return d<c&&(n.step(new Ne(d-1,c,d,c,new f(a.from(o.create(void 0,l.parent.copy())),1,0),1,!0)),l=new B(n.doc.resolve(r.pos),n.doc.resolve(c),l.depth)),n.lift(l,Ve(l)).scrollIntoView()}function Wi(e){return function(t,n){var i=t.tr,o=t.selection,r=o.$from,s=o.$to;return i.doc.nodesBetween(r.pos,s.pos,(function(n,o){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var r=new ut(i.doc.resolve(i.mapping.map(o))),s=r.$from.blockRange(r.$to);if(!s||r.$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 Ui=/list\-style\-type:\s?([\w-]+)/,qi=function(e){var t=e.style||"",n=Ui.exec(t);return n&&n[1]||""},Gi=function(e,t,n,i,o){var r=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,d=l.$from.node(l.$from.depth-2),c=l.$to.node(l.$to.depth-2);if(d&&d.type.name===r&&qi(d.attrs)===qi(a)&&c&&c.type.name===r&&qi(c.attrs)===qi(a)){var u=n.state.schema.nodes,p={bulletList:u[i.bulletList],orderedList:u[i.orderedList],listItem:u[i.listItem]},h=function(e,t){for(var n,i=t.bulletList,o=t.orderedList,r=t.listItem,s=e.depth-1;s>0;s--){var a=e.node(s);if(a.type!==i&&a.type!==o||(n=s),a.type!==i&&a.type!==o&&a.type!==r)break}return n}(l.$to,p),f=function(e,t,n,i,o,r){r||(r=e.schema.nodes.listItem);var s=!1;return o.doc.nodesBetween(t,n,(function(n,a){if(!s&&n.type===r&&a>t){s=!0;for(var l=i+3;l>i+2;){var d=o.doc.resolve(o.mapping.map(a));l=d.depth;var c=o.doc.resolve(o.mapping.map(a+n.textContent.length)),u=new dt(d,c);o=Hi(e,u,o,r)}}})),o}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return f=function(e,t,n){var i=e.selection,o=i.from,r=i.to,s=e.schema.nodes,a=s.paragraph,l=s.heading,d=[];t.doc.nodesBetween(o,r,(function(e,t){e.type!==a&&e.type!==l||d.push({node:e,pos:t})}));for(var c=d.length-1;c>=0;c--){var u=d[c],p=t.doc.resolve(t.mapping.map(u.pos));if(p.depth>0){var h;h=u.node.textContent&&u.node.textContent.length>0?t.doc.resolve(t.mapping.map(u.pos+u.node.textContent.length)):t.doc.resolve(t.mapping.map(u.pos+1));var f=p.blockRange(h);f&&t.lift(f,_i(e.schema,p,n))}}return t}(e,f,i),f.setMeta("commandName",o),t(f),!0}return function(e){return function(t,n,i){if(!i)return!1;var o,r,s=(t=i.state).schema.nodes[e.listType],a=t.selection,l=a.$from,d=a.$to,c=l.node(-2),u=l.node(-3),p=function(e,t,n,i){return 0===function(e,t,n){for(var i=Array(),o=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var i=t.node(t.depth),o=t;t.depth>=1;)(i=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(i.type.name)&&(o=t);return o}(e,t).depth,r=e.resolve(t.start(o));r.pos<=n.start(n.depth);){var s=Math.min(r.depth,o),a=r.node(s);if(a&&i.push(a),0===s)break;var l=e.resolve(r.after(s));if(l.start(s)>=e.nodeSize-2)break;l.depth!==r.depth&&(l=e.resolve(l.pos+2)),r=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,l,d,s);return(c&&c.type===s||u&&u.type===s)&&p?Wi(e)(t,n):(p||(Wi(e)(t,n),t=i.state),(o=s,void 0===(r=e.listAttrs)&&(r={}),Ii(Hn(o,r),(function(e,t){return e.type===t.type&&e.type===o})))(t,n))}}(i)(e,t,n)};function Ji(e,t,n){return Gi(e,t,n,Kt({listType:Xn.listType},Xn.types))}function Xi(e,t,n){return Gi(e,t,n,Kt({listType:Jn.listType},Jn.types))}for(var Yi=function(e,t){return{name:e,value:t}},Zi=[{node:"paragraph",style:[Yi("text-align","left")]},{node:"heading",style:[Yi("text-align","left")]}],Qi=[{node:"paragraph",style:[Yi("text-align","right")]},{node:"heading",style:[Yi("text-align","right")]}],eo=[{node:"paragraph",style:[Yi("text-align","center")]},{node:"heading",style:[Yi("text-align","center")]}],to=[{node:"paragraph",style:[Yi("text-align","justify")]},{node:"heading",style:[Yi("text-align","justify")]}],no=[{node:"paragraph",style:[Yi("text-align","")]},{node:"heading",style:[Yi("text-align","")]}],io={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:"'"},oo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ro="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),so=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),ao="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),lo=so||ro&&+ro[1]<57,co=0;co<10;co++)io[48+co]=io[96+co]=String(co);for(co=1;co<=24;co++)io[co+111]="F"+co;for(co=65;co<=90;co++)io[co]=String.fromCharCode(co+32),oo[co]=String.fromCharCode(co);for(var uo in io)oo.hasOwnProperty(uo)||(oo[uo]=io[uo]);var po="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function ho(e){var t,n,i,o,r=e.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(var a=0;a<r.length-1;a++){var l=r[a];if(/^(cmd|meta|m)$/i.test(l))o=!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);po?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function fo(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 vo(e){return new It({props:{handleKeyDown:mo(e)}})}function mo(e){var t=function(e){var t=Object.create(null);for(var n in e)t[ho(n)]=e[n];return t}(e);return function(e,n){var i,o=function(e){var t=!(lo&&(e.ctrlKey||e.altKey||e.metaKey)||ao&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?oo:io)[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),r=1==o.length&&" "!=o,s=t[fo(o,n,!r)];if(s&&s(e.state,e.dispatch,e))return!0;if(r&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=io[n.keyCode])&&i!=o){var a=t[fo(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(r&&n.shiftKey){var l=t[fo(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var go={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var yo=/Edge\/(\d+)/.exec(navigator.userAgent),bo=/MSIE \d/.test(navigator.userAgent),ko=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),wo=go.ie=!!(bo||ko||yo);go.ie_version=bo?document.documentMode||6:ko?+ko[1]:yo?+yo[1]:null,go.gecko=!wo&&/gecko\/(\d+)/i.test(navigator.userAgent),go.gecko_version=go.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var So=!wo&&/Chrome\/(\d+)/.exec(navigator.userAgent);go.chrome=!!So,go.chrome_version=So&&+So[1],go.safari=!wo&&/Apple Computer/.test(navigator.vendor),go.ios=go.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),go.mac=go.ios||/Mac/.test(navigator.platform),go.android=/Android \d/.test(navigator.userAgent),go.webkit="webkitFontSmoothing"in document.documentElement.style,go.webkit_version=go.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var xo=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Co=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},$o=null,Io=function(e,t,n){var i=$o||($o=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},Oo=function(e,t,n,i){return n&&(Mo(e,t,n,i,-1)||Mo(e,t,n,i,1))},Do=/^(img|br|input|textarea|hr)$/i;function Mo(e,t,n,i,o){for(;;){if(e==n&&t==i)return!0;if(t==(o<0?0:To(e))){var r=e.parentNode;if(1!=r.nodeType||Ro(e)||Do.test(e.nodeName)||"false"==e.contentEditable)return!1;t=xo(e)+(o<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?To(e):0}}}function To(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ro(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 Bo=function(e){var t=e.isCollapsed;return t&&go.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function No(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Po(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Eo(e,t){return"number"==typeof e?e:e[t]}function Vo(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 Lo(e,t,n){for(var i=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,r=e.dom.ownerDocument,s=n||e.dom;s;s=Co(s))if(1==s.nodeType){var a=s==r.body||1!=s.nodeType,l=a?Po(r):Vo(s),d=0,c=0;if(t.top<l.top+Eo(i,"top")?c=-(l.top-t.top+Eo(o,"top")):t.bottom>l.bottom-Eo(i,"bottom")&&(c=t.bottom-l.bottom+Eo(o,"bottom")),t.left<l.left+Eo(i,"left")?d=-(l.left-t.left+Eo(o,"left")):t.right>l.right-Eo(i,"right")&&(d=t.right-l.right+Eo(o,"right")),d||c)if(a)r.defaultView.scrollBy(d,c);else{var u=s.scrollLeft,p=s.scrollTop;c&&(s.scrollTop+=c),d&&(s.scrollLeft+=d);var h=s.scrollLeft-u,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 Ao(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=Co(e));return t}function Fo(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=i.dom,r=i.top,s=i.left;o.scrollTop!=r+t&&(o.scrollTop=r+t),o.scrollLeft!=s&&(o.scrollLeft=s)}}var zo=null;function jo(e,t){for(var n,i,o=2e8,r=0,s=t.top,a=t.top,l=e.firstChild,d=0;l;l=l.nextSibling,d++){var c=void 0;if(1==l.nodeType)c=l.getClientRects();else{if(3!=l.nodeType)continue;c=Io(l).getClientRects()}for(var u=0;u<c.length;u++){var p=c[u];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<o){n=l,o=h,i=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&h&&(r=d+(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)&&(r=d+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,i=document.createRange(),o=0;o<n;o++){i.setEnd(e,o+1),i.setStart(e,o);var r=Wo(i,1);if(r.top!=r.bottom&&Ko(t,r))return{node:e,offset:o+(t.left>=(r.left+r.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||o&&1==n.nodeType?{node:e,offset:r}:jo(n,i)}function Ko(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function _o(e,t,n){var i=e.childNodes.length;if(i&&n.top<n.bottom)for(var o=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),r=o;;){var s=e.childNodes[r];if(1==s.nodeType)for(var a=s.getClientRects(),l=0;l<a.length;l++){var d=a[l];if(Ko(t,d))return _o(s,t,d)}if((r=(r+1)%i)==o)break}return e}function Ho(e,t){var n,i,o,r,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(t.left,t.top);a&&(o=(n=a).offsetNode,r=n.offset)}catch(e){}if(!o&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(o=(i=l).startContainer,r=i.startOffset)}var d,c=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!c||!e.dom.contains(1!=c.nodeType?c.parentNode:c)){var u=e.dom.getBoundingClientRect();if(!Ko(t,u))return null;if(!(c=_o(e.dom,t,u)))return null}if(go.safari)for(var p=c;o&&p;p=Co(p))p.draggable&&(o=r=null);if(c=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(c,t),o){if(go.gecko&&1==o.nodeType&&(r=Math.min(r,o.childNodes.length))<o.childNodes.length){var h,f=o.childNodes[r];"IMG"==f.nodeName&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&r++}o==e.dom&&r==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?d=e.state.doc.content.size:0!=r&&1==o.nodeType&&"BR"==o.childNodes[r-1].nodeName||(d=function(e,t,n,i){for(var o=-1,r=t;r!=e.dom;){var s=e.docView.nearestDesc(r,!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)o=s.posBefore;else{if(!(a.right<i.left||a.bottom<i.top))break;o=s.posAfter}}r=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n)}(e,o,r,t))}null==d&&(d=function(e,t,n){var i=jo(t,n),o=i.node,r=i.offset,s=-1;if(1==o.nodeType&&!o.firstChild){var a=o.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(o,r,s)}(e,c,t));var v=e.docView.nearestDesc(c,!0);return{pos:d,inside:v?v.posAtStart-v.border:-1}}function Wo(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Uo=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function qo(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),o=i.node,r=i.offset,s=go.webkit||go.gecko;if(3==o.nodeType){if(!s||!Uo.test(o.nodeValue)&&(n<0?r:r!=o.nodeValue.length)){var a=r,l=r,d=n<0?1:-1;return n<0&&!r?(l++,d=-1):n>=0&&r==o.nodeValue.length?(a--,d=1):n<0?a--:l++,Go(Wo(Io(o,a,l),d),d<0)}var c=Wo(Io(o,r,r),n);if(go.gecko&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){var u=Wo(Io(o,r-1,r-1),-1);if(u.top==c.top){var p=Wo(Io(o,r,r+1),-1);if(p.top!=c.top)return Go(p,p.left<u.left)}}return c}if(!e.state.doc.resolve(t).parent.inlineContent){if(r&&(n<0||r==To(o))){var h=o.childNodes[r-1];if(1==h.nodeType)return Jo(h.getBoundingClientRect(),!1)}if(r<To(o)){var f=o.childNodes[r];if(1==f.nodeType)return Jo(f.getBoundingClientRect(),!0)}return Jo(o.getBoundingClientRect(),n>=0)}if(r&&(n<0||r==To(o))){var v=o.childNodes[r-1],m=3==v.nodeType?Io(v,To(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return Go(Wo(m,1),!1)}if(r<To(o)){for(var g=o.childNodes[r];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var y=g?3==g.nodeType?Io(g,0,s?0:1):1==g.nodeType?g:null:null;if(y)return Go(Wo(y,-1),!0)}return Go(Wo(3==o.nodeType?Io(o):o,-n),n>=0)}function Go(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 Jo(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 Xo(e,t,n){var i=e.state,o=e.root.activeElement;i!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),o!=e.dom&&o&&o.focus()}}var Yo=/[\u0590-\u08ac]/,Zo=null,Qo=null,er=!1;var tr=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},nr={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}};tr.prototype.matchesWidget=function(){return!1},tr.prototype.matchesMark=function(){return!1},tr.prototype.matchesNode=function(){return!1},tr.prototype.matchesHack=function(e){return!1},tr.prototype.parseRule=function(){return null},tr.prototype.stopEvent=function(){return!1},nr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},nr.border.get=function(){return 0},tr.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()},tr.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}},nr.posBefore.get=function(){return this.parent.posBeforeChild(this)},nr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},nr.posAfter.get=function(){return this.posBefore+this.size},nr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},tr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var i,o;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}var r,s;if(e==this.contentDOM)r=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&(!(s=r.pmViewDesc)||s.parent!=this);)r=r.nextSibling;return r?this.posBeforeChild(s):this.posAtEnd}var a;if(e==this.dom&&this.contentDOM)a=t>xo(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 d=e;;d=d.parentNode){if(d==this.dom){a=!0;break}if(d.parentNode.lastChild!=d)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},tr.prototype.nearestDesc=function(e,t){for(var n=!0,i=e;i;i=i.parentNode){var o=this.getDesc(i);if(o&&(!t||o.node)){if(!n||!o.nodeDOM||(1==o.nodeDOM.nodeType?o.nodeDOM.contains(1==e.nodeType?e:e.parentNode):o.nodeDOM==e))return o;n=!1}}},tr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},tr.prototype.posFromDOM=function(e,t,n){for(var i=e;i;i=i.parentNode){var o=this.getDesc(i);if(o)return o.localPosFromDOM(e,t,n)}return-1},tr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var i=this.children[t],o=n+i.size;if(n==e&&o!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<o)return i.descAt(e-n-i.border);n=o}},tr.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,o=0;n<this.children.length;n++){var r=this.children[n],s=o+r.size;if(s>e||r instanceof cr){i=e-o;break}o=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 or&&a.widget.type.side>=0;n--);if(t<=0){for(var l,d=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,d=!1);return l&&t&&d&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?xo(l.dom)+1:0}}for(var c,u=!0;(c=n<this.children.length?this.children[n]:null)&&c.dom.parentNode!=this.contentDOM;n++,u=!1);return c&&u&&!c.border&&!c.domAtom?c.domFromPos(0,t):{node:this.contentDOM,offset:c?xo(c.dom):this.contentDOM.childNodes.length}},tr.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,o=-1,r=n,s=0;;s++){var a=this.children[s],l=r+a.size;if(-1==i&&e<=l){var d=r+a.border;if(e>=d&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,d);e=r;for(var c=s;c>0;c--){var u=this.children[c-1];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(1)){i=xo(u.dom)+1;break}e-=u.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)){o=xo(h.dom);break}t+=h.size}-1==o&&(o=this.contentDOM.childNodes.length);break}r=l}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:o}},tr.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)},tr.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]},tr.prototype.setSelection=function(e,t,n,i){for(var o=Math.min(e,t),r=Math.max(e,t),s=0,a=0;s<this.children.length;s++){var l=this.children[s],d=a+l.size;if(o>a&&r<d)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=d}var c=this.domFromPos(e,e?-1:1),u=t==e?c:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((go.gecko||go.safari)&&e==t){var f=c.node,v=c.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&&(c=u={node:g.parentNode,offset:xo(g)+1});break}var y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{var b=f.childNodes[v-1];h=b&&("BR"==b.nodeName||"false"==b.contentEditable)}}if(go.gecko&&p.focusNode&&p.focusNode!=u.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&go.safari||!Oo(c.node,c.offset,p.anchorNode,p.anchorOffset)||!Oo(u.node,u.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(c.node,c.offset);try{e!=t&&p.extend(u.node,u.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=c;c=u,u=S}var x=document.createRange();x.setEnd(u.node,u.offset),x.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(x)}}},tr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},nr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},tr.prototype.markDirty=function(e,t){for(var n=0,i=0;i<this.children.length;i++){var o=this.children[i],r=n+o.size;if(n==r?e<=r&&t>=n:e<r&&t>n){var s=n+o.border,a=r-o.border;if(e>=s&&t<=a)return this.dirty=e==n||t==r?2:1,void(e!=s||t!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-s,t-s):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=r}this.dirty=2},tr.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)}},nr.domAtom.get=function(){return!1},nr.ignoreForCoords.get=function(){return!1},Object.defineProperties(tr.prototype,nr);var ir=[],or=function(e){function t(t,n,i,o){var r,s=n.type.toDOM;if("function"==typeof s&&(s=s(i,(function(){return r?r.parent?r.parent.posBeforeChild(r):void 0:o}))),!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,ir,s,null),this.widget=n,r=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}(tr),rr=function(e){function t(t,n,i,o){e.call(this,t,ir,n,null),this.textDOM=i,this.text=o}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}(tr),sr=function(e){function t(t,n,i,o){e.call(this,t,[],i,o),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,o){var r=o.nodeViews[n.type.name],s=r&&r(n,o,i);return s&&s.dom||(s=ge.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 o=t.create(this.parent,this.mark,!0,i),r=this.children,s=this.size;n<s&&(r=xr(r,n,s,i)),e>0&&(r=xr(r,0,e,i));for(var a=0;a<r.length;a++)r[a].parent=o;return o.children=r,o},t}(tr),ar=function(e){function t(t,n,i,o,r,s,a,l,d){e.call(this,t,n.isLeaf?ir:[],r,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=o,s&&this.updateChildren(l,d)}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,o,r,s){var a,l,d=r.nodeViews[n.type.name],c=d&&d(n,r,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,o),u=c&&c.dom,p=c&&c.contentDOM;if(n.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(n.text);else u||(u=(a=ge.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable=!1),n.type.spec.draggable&&(u.draggable=!0));var h=u;return u=yr(u,i,n),c?l=new ur(e,n,i,o,u,p,h,c,r,s+1):n.isText?new dr(e,n,i,o,u,h,r):new t(e,n,i,o,u,p,h,r,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?a.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&br(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,o=t,r=e.composing&&this.localCompositionInfo(e,t),s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new wr(this,s&&s.node);!function(e,t,n,i){var o=t.locals(e),r=0;if(0!=o.length)for(var s=0,a=[],l=null,d=0;;){if(s<o.length&&o[s].to==r){for(var c=o[s++],u=void 0;s<o.length&&o[s].to==r;)(u||(u=[c])).push(o[s++]);if(u){u.sort(Sr);for(var p=0;p<u.length;p++)n(u[p],d,!!l)}else n(c,d,!!l)}var h=void 0,f=void 0;if(l)f=-1,h=l,l=null;else{if(!(d<e.childCount))break;f=d,h=e.child(d++)}for(var v=0;v<a.length;v++)a[v].to<=r&&a.splice(v--,1);for(;s<o.length&&o[s].from<=r&&o[s].to>r;)a.push(o[s++]);var m=r+h.nodeSize;if(h.isText){var g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(var y=0;y<a.length;y++)a[y].to<g&&(g=a[y].to);g<m&&(l=h.cut(g-r),h=h.cut(0,g-r),m=g,f=-1)}i(h,a.length?h.isInline&&!h.isLeaf?a.filter((function(e){return!e.inline})):a.slice():ir,t.forChild(r,h),f),r=m}else for(var b=0;b<e.childCount;b++){var k=e.child(b);i(k,o,t.forChild(r,k),b),r+=k.nodeSize}}(this.node,this.innerDeco,(function(t,r,s){t.spec.marks?l.syncToMarks(t.spec.marks,i,e):t.type.side>=0&&!s&&l.syncToMarks(r==n.node.childCount?p.none:n.node.child(r).marks,i,e),l.placeWidget(t,e,o)}),(function(t,n,s,d){var c;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,d)||a&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(c=l.findIndexWithChild(r.node))>-1&&l.updateNodeAt(t,n,s,c,e)||l.updateNextNode(t,n,s,e,d)||l.addNode(t,n,s,e,o),o+=t.nodeSize})),l.syncToMarks(ir,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),pr(this.contentDOM,this.children,e),go.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,o=n.to;if(!(!(e.state.selection instanceof dt)||i<t||o>t+this.node.content.size)){var r=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];t=To(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(r.focusNode,r.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,l=function(e,t,n,i){for(var o=0,r=0;o<e.childCount&&r<=i;){var s=e.child(o++),a=r;if(r+=s.nodeSize,s.isText){for(var l=s.text;o<e.childCount;){var d=e.child(o++);if(r+=d.nodeSize,!d.isText)break;l+=d.text}if(r>=n&&a<i){var c=l.lastIndexOf(t,i-a-1);if(c>=0&&c+t.length+a>=n)return a+c}}}return-1}(this.node.content,a,i-t,o-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,o=t.text;if(!this.getDesc(n)){for(var r=n;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=null)}var s=new rr(this,r,n,o);e.compositionNodes.push(s),this.children=xr(this.children,i,i+o.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(!br(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=mr(this.dom,this.nodeDOM,vr(this.outerDeco,this.node,t),vr(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}(tr);function lr(e,t,n,i,o){return yr(i,t,e),new ar(null,e,t,n,i,i,i,o,0)}var dr=function(e){function t(t,n,i,o,r,s,a){e.call(this,t,n,i,o,r,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 o=this.node.cut(e,n),r=document.createTextNode(o.text);return new t(this.parent,o,this.outerDeco,this.innerDeco,r,r,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}(ar),cr=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}(tr),ur=function(e){function t(t,n,i,o,r,s,a,l,d,c){e.call(this,t,n,i,o,r,s,a,d,c),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,o){if(3==this.dirty)return!1;if(this.spec.update){var r=this.spec.update(t,n,i);return r&&this.updateInner(t,n,i,o),r}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,i,o)},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,o){this.spec.setSelection?this.spec.setSelection(t,n,i):e.prototype.setSelection.call(this,t,n,i,o)},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}(ar);function pr(e,t,n){for(var i=e.firstChild,o=!1,r=0;r<t.length;r++){var s=t[r],a=s.dom;if(a.parentNode==e){for(;a!=i;)i=kr(i),o=!0;i=i.nextSibling}else o=!0,e.insertBefore(a,i);if(s instanceof sr){var l=i?i.previousSibling:e.lastChild;pr(s.contentDOM,s.children,n),i=l?l.nextSibling:e.firstChild}}for(;i;)i=kr(i),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}function hr(e){e&&(this.nodeName=e)}hr.prototype=Object.create(null);var fr=[new hr];function vr(e,t,n){if(0==e.length)return fr;for(var i=n?fr[0]:new hr,o=[i],r=0;r<e.length;r++){var s=e[r].type.attrs;if(s)for(var a in s.nodeName&&o.push(i=new hr(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==o.length&&o.push(i=new hr(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 o}function mr(e,t,n,i){if(n==fr&&i==fr)return t;for(var o=t,r=0;r<i.length;r++){var s=i[r],a=n[r];if(r){var l=void 0;a&&a.nodeName==s.nodeName&&o!=e&&(l=o.parentNode)&&l.tagName.toLowerCase()==s.nodeName||((l=document.createElement(s.nodeName)).pmIsDeco=!0,l.appendChild(o),a=fr[0]),o=l}gr(o,a||fr[0],s)}return o}function gr(e,t,n){for(var i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(var o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){for(var r=t.class?t.class.split(" ").filter(Boolean):ir,s=n.class?n.class.split(" ").filter(Boolean):ir,a=0;a<r.length;a++)-1==s.indexOf(r[a])&&e.classList.remove(r[a]);for(var l=0;l<s.length;l++)-1==r.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 d,c=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;d=c.exec(t.style);)e.style.removeProperty(d[1]);n.style&&(e.style.cssText+=n.style)}}function yr(e,t,n){return mr(e,e,fr,vr(t,n,1!=e.nodeType))}function br(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 kr(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var wr=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,o=e.childCount,r=new Map,s=[];e:for(;o>0;){for(var a=void 0;;)if(i){var l=n.children[i-1];if(!(l instanceof sr)){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 d=a.node;if(d){if(d!=e.child(o-1))break;--o,r.set(a,o),s.push(a)}}return{index:o,matched:r,matches:s.reverse()}}(e.node.content,e)};function Sr(e,t){return e.type.side-t.type.side}function xr(e,t,n,i,o){for(var r=[],s=0,a=0;s<e.length;s++){var l=e[s],d=a,c=a+=l.size;d>=n||c<=t?r.push(l):(d<t&&r.push(l.slice(0,t-d,i)),o&&(r.push(o),o=null),c>n&&r.push(l.slice(n-d,l.size,i)))}return r}function Cr(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var o=e.docView.nearestDesc(n.focusNode),r=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,l,d=i.resolve(s);if(Bo(n)){for(a=d;o&&!o.node;)o=o.parent;if(o&&o.node.isAtom&&ut.isSelectable(o.node)&&o.parent&&(!o.node.isInline||!function(e,t,n){for(var i=0==t,o=t==To(e);i||o;){if(e==n)return!0;var r=xo(e);if(!(e=e.parentNode))return!1;i=i&&0==r,o=o&&r==To(e)}}(n.focusNode,n.focusOffset,o.dom))){var c=o.posBefore;l=new ut(s==c?d:i.resolve(c))}}else{var u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(u<0)return null;a=i.resolve(u)}return l||(l=Nr(e,a,d,"pointer"==t||e.state.selection.head<d.pos&&!r?1:-1)),l}function $r(e){return e.editable?e.hasFocus():Pr(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Ir(e,t){var n=e.state.selection;if(Rr(e,n),$r(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&go.chrome){var i=e.root.getSelection(),o=e.domObserver.currentSelection;if(i.anchorNode&&Oo(i.anchorNode,i.anchorOffset,o.anchorNode,o.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,o="IMG"==i.nodeName;o?n.setEnd(i.parentNode,xo(i)+1):n.setEnd(i,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&go.ie&&go.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var r,s,a=n.anchor,l=n.head;!Or||n instanceof dt||(n.$from.parent.inlineContent||(r=Dr(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=Dr(e,n.to))),e.docView.setSelection(a,l,e.root,t),Or&&(r&&Tr(r),s&&Tr(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,o=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==i&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){$r(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}wr.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}},wr.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},wr.prototype.syncToMarks=function(e,t,n){for(var i=0,o=this.stack.length>>1,r=Math.min(o,e.length);i<r&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<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[o])){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=sr.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}},wr.prototype.findNodeMatch=function(e,t,n,i){var o,r=-1;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))r=this.top.children.indexOf(o,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)){r=s;break}}return!(r<0||(this.destroyBetween(this.index,r),this.index++,0))},wr.prototype.updateNodeAt=function(e,t,n,i,o){return!!this.top.children[i].update(e,t,n,o)&&(this.destroyBetween(this.index,i),this.index=i+1,!0)},wr.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}},wr.prototype.updateNextNode=function(e,t,n,i,o){for(var r=this.index;r<this.top.children.length;r++){var s=this.top.children[r];if(s instanceof ar){var a=this.preMatch.matched.get(s);if(null!=a&&a!=o)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&&br(t,s.outerDeco))&&s.update(e,t,n,i))return this.destroyBetween(this.index,r),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},wr.prototype.addNode=function(e,t,n,i,o){this.top.children.splice(this.index++,0,ar.create(this.top,e,t,n,i,o)),this.changed=!0},wr.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 o=new or(this.top,e,t,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++},wr.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof sr;)e=e.children[e.children.length-1];e&&e instanceof dr&&!/\n$/.test(e.node.text)||((go.safari||go.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},wr.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 cr(this.top,ir,t,null)),this.changed=!0}};var Or=go.safari||go.chrome&&go.chrome_version<63;function Dr(e,t){var n=e.docView.domFromPos(t,0),i=n.node,o=n.offset,r=o<i.childNodes.length?i.childNodes[o]:null,s=o?i.childNodes[o-1]:null;if(go.safari&&r&&"false"==r.contentEditable)return Mr(r);if(!(r&&"false"!=r.contentEditable||s&&"false"!=s.contentEditable)){if(r)return Mr(r);if(s)return Mr(s)}}function Mr(e){return e.contentEditable="true",go.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Tr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Rr(e,t){if(t instanceof ut){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Br(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Br(e)}function Br(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Nr(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||dt.between(t,n,i)}function Pr(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 Er(e,t){var n=e.selection,i=n.$anchor,o=n.$head,r=t>0?i.max(o):i.min(o),s=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return s&&st.findFrom(s,t)}function Vr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Lr(e,t,n){var i=e.state.selection;if(!(i instanceof dt)){if(i instanceof ut&&i.node.isInline)return Vr(e,new dt(t>0?i.$to:i.$from));var o=Er(e.state,t);return!!o&&Vr(e,o)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var r=Er(e.state,t);return!!(r&&r instanceof ut)&&Vr(e,r)}if(!(go.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 d=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(d))&&!s.contentDOM)&&(ut.isSelectable(l)?Vr(e,new ut(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!go.webkit&&Vr(e,new dt(e.state.doc.resolve(t<0?d:d+l.nodeSize))))}}function Ar(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Fr(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function zr(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var o,r,s=!1;for(go.gecko&&1==n.nodeType&&i<Ar(n)&&Fr(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(Fr(a))o=n,r=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(Kr(n))break;for(var l=n.previousSibling;l&&Fr(l);)o=n.parentNode,r=xo(l),l=l.previousSibling;if(l)i=Ar(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?_r(e,t,n,i):o&&_r(e,t,o,r)}}function jr(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var o,r,s=Ar(n);;)if(i<s){if(1!=n.nodeType)break;if(!Fr(n.childNodes[i]))break;o=n,r=++i}else{if(Kr(n))break;for(var a=n.nextSibling;a&&Fr(a);)o=a.parentNode,r=xo(a)+1,a=a.nextSibling;if(a)i=0,s=Ar(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}o&&_r(e,t,o,r)}}function Kr(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function _r(e,t,n,i){if(Bo(t)){var o=document.createRange();o.setEnd(n,i),o.setStart(n,i),t.removeAllRanges(),t.addRange(o)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();var r=e.state;setTimeout((function(){e.state==r&&Ir(e)}),50)}function Hr(e,t,n){var i=e.state.selection;if(i instanceof dt&&!i.empty||n.indexOf("s")>-1)return!1;if(go.mac&&n.indexOf("m")>-1)return!1;var o=i.$from,r=i.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var s=Er(e.state,t);if(s&&s instanceof ut)return Vr(e,s)}if(!o.parent.inlineContent){var a=t<0?o:r,l=i instanceof ht?st.near(a,t):st.findFrom(a,t);return!!l&&Vr(e,l)}return!1}function Wr(e,t){if(!(e.state.selection instanceof dt))return!0;var n=e.state.selection,i=n.$head,o=n.$anchor,r=n.empty;if(!i.sameParent(o))return!0;if(!r)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 Ur(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function qr(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(go.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||go.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function Gr(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Nr(e,t.resolve(n.anchor),t.resolve(n.head))}function Jr(e,t,n){for(var i=e.depth,o=t?e.end():e.pos;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,o++,t=!1;if(n)for(var r=e.node(i).maybeChild(e.indexAfter(i));r&&!r.isLeaf;)r=r.firstChild,o++;return o}function Xr(e,t){for(var n=[],i=t.content,o=t.openStart,r=t.openEnd;o>1&&r>1&&1==i.childCount&&1==i.firstChild.childCount;){o--,r--;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")||ge.fromSchema(e.state.schema),l=as(),d=l.createElement("div");d.appendChild(a.serializeFragment(i,{document:l}));for(var c,u=d.firstChild;u&&1==u.nodeType&&(c=rs[u.nodeName.toLowerCase()]);){for(var p=c.length-1;p>=0;p--){for(var h=l.createElement(c[p]);d.firstChild;)h.appendChild(d.firstChild);d.appendChild(h),"tbody"!=c[p]&&(o++,r++)}u=d.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",o+" "+r+" "+JSON.stringify(n)),{dom:d,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function Yr(e,t,n,i,o){var r,s,l=o.parent.type.spec.code;if(!n&&!t)return null;var d=t&&(i||l||!n);if(d){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new f(a.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):f.empty;var c=e.someProp("clipboardTextParser",(function(e){return e(t,o,i)}));if(c)s=c;else{var u=o.marks(),p=e.state.schema,h=ge.fromSchema(p);r=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=r.appendChild(document.createElement("p"));e&&t.appendChild(h.serializeNode(p.text(e,u)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),r=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=as().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);if((n=o&&rs[o[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join("")),i.innerHTML=e,n)for(var r=0;r<n.length;r++)i=i.querySelector(n[r])||i;return i}(n),go.webkit&&function(e){for(var t=e.querySelectorAll(go.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)}}(r);var v=r&&r.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!s){var g=e.someProp("clipboardParser")||e.someProp("domParser")||se.fromSchema(e.state.schema);s=g.parseSlice(r,{preserveWhitespace:!(!d&&!m),context:o,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Zr.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)s=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 o=e.content,r=e.openStart,s=e.openEnd,l=n.length-2;l>=0;l-=2){var d=i.nodes[n[l]];if(!d||d.hasRequiredAttrs())break;o=a.from(d.create(n[l+1],o)),r++,s++}return new f(o,r,s)}(is(s,+m[1],+m[2]),m[3]);else if(s=f.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var i=t.node(n).contentMatchAt(t.index(n)),o=void 0,r=[];if(e.forEach((function(e){if(r){var t,n=i.findWrapping(e.type);if(!n)return r=null;if(t=r.length&&o.length&&es(n,o,e,r[r.length-1],0))r[r.length-1]=t;else{r.length&&(r[r.length-1]=ts(r[r.length-1],o.length));var s=Qr(e,n);r.push(s),i=i.matchType(s.type,s.attrs),o=n}}})),r)return{v:a.from(r)}},i=t.depth;i>=0;i--){var o=n(i);if(o)return o.v}return e}(s.content,o),!0),s.openStart||s.openEnd){for(var y=0,b=0,k=s.content.firstChild;y<s.openStart&&!k.type.spec.isolating;y++,k=k.firstChild);for(var w=s.content.lastChild;b<s.openEnd&&!w.type.spec.isolating;b++,w=w.lastChild);s=is(s,y,b)}return e.someProp("transformPasted",(function(e){s=e(s)})),s}var Zr=/^(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 Qr(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,a.from(e));return e}function es(e,t,n,i,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var r=es(e,t,n,i.lastChild,o+1);if(r)return i.copy(i.content.replaceChild(i.childCount-1,r));if(i.contentMatchAt(i.childCount).matchType(o==e.length-1?n.type:e[o+1]))return i.copy(i.content.append(a.from(Qr(n,e,o+1))))}}function ts(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,ts(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(a.empty,!0);return e.copy(n.append(i))}function ns(e,t,n,i,o,r){var s=t<0?e.firstChild:e.lastChild,l=s.content;return o<i-1&&(l=ns(l,t,n,i,o+1,r)),o>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||r<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(a.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function is(e,t,n){return t<e.openStart&&(e=new f(ns(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new f(ns(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var rs={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},ss=null;function as(){return ss||(ss=document.implementation.createHTMLDocument("title"))}var ls={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ds=go.ie&&go.ie_version<=11,cs=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};cs.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},cs.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var us=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]);go.ie&&go.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 cs,ds&&(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};us.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},us.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},us.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ls),ds&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},us.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()}ds&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},us.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},us.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},us.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},us.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Pr(e)){var e;if(this.suppressingSelectionUpdates)return Ir(this.view);if(go.ie&&go.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&Oo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},us.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},us.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},us.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)&&Pr(this.view)&&!this.ignoreSelectionChange(t),i=-1,o=-1,r=!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),o=o<0?l.to:Math.max(l.to,o),l.typeOver&&(r=!0))}if(go.gecko&&s.length>1){var d=s.filter((function(e){return"BR"==e.nodeName}));if(2==d.length){var c=d[0],u=d[1];c.parentNode&&c.parentNode.parentNode==u.parentNode?u.remove():c.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,o),p=this.view,ps||(ps=!0,"normal"==getComputedStyle(p.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.handleDOMChange(i,o,r,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Ir(this.view),this.currentSelection.set(t))}var p},us.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 o=e.previousSibling,r=e.nextSibling;if(go.ie&&go.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,d=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(o=l),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d)}var c=o&&o.parentNode==e.target?xo(o)+1:0,u=n.localPosFromDOM(e.target,c,-1),p=r&&r.parentNode==e.target?xo(r):e.target.childNodes.length;return{from:u,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 ps=!1,hs={},fs={};function vs(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ms(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return gs(e,t)})}))}function gs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ys(e){return{left:e.clientX,top:e.clientY}}function bs(e,t,n,i,o){if(-1==i)return!1;for(var r=e.state.doc.resolve(i),s=function(i){if(e.someProp(t,(function(t){return i>r.depth?t(e,n,r.nodeAfter,r.before(i),o,!0):t(e,n,r.node(i),r.before(i),o,!1)})))return{v:!0}},a=r.depth+1;a>0;a--){var l=s(a);if(l)return l.v}return!1}function ks(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function ws(e,t,n,i){return bs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function Ss(e,t,n,i){return bs(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&&(ks(e,dt.create(i,0,i.content.size),"pointer"),!0);for(var o=i.resolve(t),r=o.depth+1;r>0;r--){var s=r>o.depth?o.nodeAfter:o.node(r),a=o.before(r);if(s.inlineContent)ks(e,dt.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ut.isSelectable(s))continue;ks(e,ut.create(i,a),"pointer")}return!0}}(e,n,i)}function xs(e){return Ts(e)}fs.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!Is(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!go.android||!go.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!go.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||function(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||go.mac&&72==n&&"c"==i?Wr(e,-1)||zr(e):46==n||go.mac&&68==n&&"c"==i?Wr(e,1)||jr(e):13==n||27==n||(37==n?Lr(e,-1,i)||zr(e):39==n?Lr(e,1,i)||jr(e):38==n?Hr(e,-1,i)||zr(e):40==n?function(e){if(go.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 o=n.firstChild;Ur(e,o,!0),setTimeout((function(){return Ur(e,o,!1)}),20)}}}(e)||Hr(e,1,i)||jr(e):i==(go.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}(e,t)?t.preventDefault():vs(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,No(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},fs.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},fs.keypress=function(e,t){if(!(Is(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||go.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof dt&&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 Cs=go.mac?"metaKey":"ctrlKey";hs.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=xs(e),i=Date.now(),o="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[Cs]&&("singleClick"==e.lastClick.type?o="doubleClick":"doubleClick"==e.lastClick.type&&(o="tripleClick")),e.lastClick={time:i,x:t.clientX,y:t.clientY,type:o};var r=e.posAtCoords(ys(t));r&&("singleClick"==o?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new $s(e,r,t,n)):("doubleClick"==o?ws:Ss)(e,r.pos,r.inside,t)?t.preventDefault():vs(e,"pointer"))};var $s=function(e,t,n,i){var o,r,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[Cs],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)o=e.state.doc.nodeAt(t.inside),r=t.inside;else{var a=e.state.doc.resolve(t.pos);o=a.parent,r=a.depth?a.before():0}this.mightDrag=null;var l=i?null:n.target,d=l?e.docView.nearestDesc(l,!0):null;this.target=d?d.dom:null;var c=e.state.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ut&&c.from<=r&&c.to>r)&&(this.mightDrag={node:o,pos:r,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&go.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)),vs(e,"pointer")};function Is(e,t){return!!e.composing||!!(go.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}$s.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 Ir(e.view)})),this.view.mouseDown=null},$s.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(ys(e))),this.allowDefault||!t?vs(this.view,"pointer"):function(e,t,n,i,o){return bs(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(function(n){return n(e,t,i)}))||(o?function(e,t){if(-1==t)return!1;var n,i,o=e.state.selection;o instanceof ut&&(n=o.node);for(var r=e.state.doc.resolve(t),s=r.depth+1;s>0;s--){var a=s>r.depth?r.nodeAfter:r.node(s);if(ut.isSelectable(a)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&r.before(o.$from.depth+1)==o.$from.pos?r.before(o.$from.depth):r.before(s);break}}return null!=i&&(ks(e,ut.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&&ut.isSelectable(i))&&(ks(e,new ut(n),"pointer"),!0)}(e,n))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||go.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||go.chrome&&!(this.view.state.selection instanceof dt)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(ks(this.view,st.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):vs(this.view,"pointer")}},$s.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),vs(this.view,"pointer"),0==e.buttons&&this.done()},hs.touchdown=function(e){xs(e),vs(e,"pointer")},hs.contextmenu=function(e){return xs(e)};var Os=go.android?5e3:-1;function Ds(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Ts(e)}),t))}function Ms(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 Ts(e,t){if(!(go.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ms(e),t||e.docView.dirty){var n=Cr(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}fs.compositionstart=fs.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(),Ts(e,!0),e.markCursor=null;else if(Ts(e),go.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var i=e.root.getSelection(),o=i.focusNode,r=i.focusOffset;o&&1==o.nodeType&&0!=r;){var s=r<0?o.lastChild:o.childNodes[r-1];if(!s)break;if(3==s.nodeType){i.collapse(s,s.nodeValue.length);break}o=s,r=-1}e.composing=!0}Ds(e,Os)},fs.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Ds(e,20))};var Rs=go.ie&&go.ie_version<15||go.ios&&go.webkit_version<604;function Bs(e,t,n,i){var o=Yr(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,o||f.empty)})))return!0;if(!o)return!1;var r=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(o),s=r?e.state.tr.replaceSelectionWith(r,e.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}hs.copy=fs.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var o=Rs?null:t.clipboardData,r=Xr(e,n.content()),s=r.dom,a=r.text;o?(t.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.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(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},fs.paste=function(e,t){if(!e.composing||go.android){var n=Rs?null:t.clipboardData;n&&Bs(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?Bs(e,i.value,null,t):Bs(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Ns=function(e,t){this.slice=e,this.move=t},Ps=go.mac?"altKey":"ctrlKey";for(var Es in hs.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,o=i.empty?null:e.posAtCoords(ys(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof ut?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ut.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var r=e.docView.nearestDesc(t.target,!0);r&&r.node.type.spec.draggable&&r!=e.docView&&e.dispatch(e.state.tr.setSelection(ut.create(e.state.doc,r.posBefore)))}var s=e.state.selection.content(),a=Xr(e,s),l=a.dom,d=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Rs?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Rs||t.dataTransfer.setData("text/plain",d),e.dragging=new Ns(s,!t[Ps])}},hs.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},fs.dragover=fs.dragenter=function(e,t){return t.preventDefault()},fs.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ys(t));if(i){var o=e.state.doc.resolve(i.pos);if(o){var r=n&&n.slice;r?e.someProp("transformPasted",(function(e){r=e(r)})):r=Yr(e,t.dataTransfer.getData(Rs?"Text":"text/plain"),Rs?null:t.dataTransfer.getData("text/html"),!1,o);var s=n&&!t[Ps];if(e.someProp("handleDrop",(function(n){return n(e,t,r||f.empty,s)})))t.preventDefault();else if(r){t.preventDefault();var a=r?He(e.state.doc,o.pos,r):o.pos;null==a&&(a=o.pos);var l=e.state.tr;s&&l.deleteSelection();var d=l.mapping.map(a),c=0==r.openStart&&0==r.openEnd&&1==r.content.childCount,u=l.doc;if(c?l.replaceRangeWith(d,d,r.content.firstChild):l.replaceRange(d,d,r),!l.doc.eq(u)){var p=l.doc.resolve(d);if(c&&ut.isSelectable(r.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(r.content.firstChild))l.setSelection(new ut(p));else{var h=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return h=i})),l.setSelection(Nr(e,p,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},hs.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())&&Ir(e)}),20))},hs.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)},hs.beforeinput=function(e,t){if(go.chrome&&go.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,No(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)}},fs)hs[Es]=fs[Es];function Vs(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 Ls=function(e,t){this.spec=t||_s,this.side=this.spec.side||0,this.toDOM=e};Ls.prototype.map=function(e,t,n,i){var o=e.mapResult(t.from+i,this.side<0?-1:1),r=o.pos;return o.deleted?null:new zs(r-n,r-n,this)},Ls.prototype.valid=function(){return!0},Ls.prototype.eq=function(e){return this==e||e instanceof Ls&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vs(this.spec,e.spec))},Ls.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var As=function(e,t){this.spec=t||_s,this.attrs=e};As.prototype.map=function(e,t,n,i){var o=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,r=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return o>=r?null:new zs(o,r,this)},As.prototype.valid=function(e,t){return t.from<t.to},As.prototype.eq=function(e){return this==e||e instanceof As&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)},As.is=function(e){return e.type instanceof As};var Fs=function(e,t){this.spec=t||_s,this.attrs=e};Fs.prototype.map=function(e,t,n,i){var o=e.mapResult(t.from+i,1);if(o.deleted)return null;var r=e.mapResult(t.to+i,-1);return r.deleted||r.pos<=o.pos?null:new zs(o.pos-n,r.pos-n,this)},Fs.prototype.valid=function(e,t){var n,i=e.content.findIndex(t.from),o=i.index,r=i.offset;return r==t.from&&!(n=e.child(o)).isText&&r+n.nodeSize==t.to},Fs.prototype.eq=function(e){return this==e||e instanceof Fs&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)};var zs=function(e,t,n){this.from=e,this.to=t,this.type=n},js={spec:{configurable:!0},inline:{configurable:!0}};zs.prototype.copy=function(e,t){return new zs(e,t,this.type)},zs.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},zs.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},zs.widget=function(e,t,n){return new zs(e,e,new Ls(t,n))},zs.inline=function(e,t,n,i){return new zs(e,t,new As(n,i))},zs.node=function(e,t,n,i){return new zs(e,t,new Fs(n,i))},js.spec.get=function(){return this.type.spec},js.inline.get=function(){return this.type instanceof As},Object.defineProperties(zs.prototype,js);var Ks=[],_s={},Hs=function(e,t){this.local=e&&e.length?e:Ks,this.children=t&&t.length?t:Ks};Hs.create=function(e,t){return t.length?Xs(t,e,0,_s):Ws},Hs.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Hs.prototype.findInner=function(e,t,n,i,o){for(var r=0;r<this.local.length;r++){var s=this.local[r];s.from<=t&&s.to>=e&&(!o||o(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,o)}},Hs.prototype.map=function(e,t,n){return this==Ws||0==e.maps.length?this:this.mapInner(e,t,0,0,n||_s)},Hs.prototype.mapInner=function(e,t,n,i,o){for(var r,s=0;s<this.local.length;s++){var a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(r||(r=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,o,r,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],d=void 0;-1==l||e>l+r||(t>=a[s]+r?a[s+1]=-1:n>=o&&(d=i-n-(t-e))&&(a[s]+=d,a[s+1]+=d))}},d=0;d<n.maps.length;d++)n.maps[d].forEach(l);for(var c=!1,u=0;u<a.length;u+=3)if(-1==a[u+1]){var p=n.map(e[u]+r),h=p-o;if(h<0||h>=i.content.size){c=!0;continue}var f=n.map(e[u+1]+r,-1)-o,v=i.content.findIndex(h),m=v.index,g=v.offset,y=i.maybeChild(m);if(y&&g==h&&g+y.nodeSize==f){var b=a[u+2].mapInner(n,y,p+1,e[u]+r+1,s);b!=Ws?(a[u]=h,a[u+1]=f,a[u+2]=b):(a[u+1]=-2,c=!0)}else c=!0}if(c){var k=function(e,t,n,i,o,r,s){function a(e,t){for(var r=0;r<e.local.length;r++){var l=e.local[r].map(i,o,t);l?n.push(l):s.onRemove&&s.onRemove(e.local[r].spec)}for(var d=0;d<e.children.length;d+=3)a(e.children[d+2],e.children[d]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+r+1);return n}(a,e,t||[],n,o,r,s),w=Xs(k,i,0,s);t=w.local;for(var S=0;S<a.length;S+=3)a[S+1]<0&&(a.splice(S,3),S-=3);for(var x=0,C=0;x<w.children.length;x+=3){for(var $=w.children[x];C<a.length&&a[C]<$;)C+=3;a.splice(C,0,w.children[x],w.children[x+1],w.children[x+2])}}return new Hs(t&&t.sort(Ys),a)}(this.children,r,e,t,n,i,o):r?new Hs(r.sort(Ys)):Ws},Hs.prototype.add=function(e,t){return t.length?this==Ws?Hs.create(e,t):this.addInner(e,t,0):this},Hs.prototype.addInner=function(e,t,n){var i,o=this,r=0;e.forEach((function(e,s){var a,l=s+n;if(a=Gs(t,e,l)){for(i||(i=o.children.slice());r<i.length&&i[r]<s;)r+=3;i[r]==s?i[r+2]=i[r+2].addInner(e,a,l+1):i.splice(r,0,s,s+e.nodeSize,Xs(a,e,l+1,_s)),r+=3}}));for(var s=qs(r?Js(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Hs(s.length?this.local.concat(s).sort(Ys):this.local,i||this.children)},Hs.prototype.remove=function(e){return 0==e.length||this==Ws?this:this.removeInner(e,0)},Hs.prototype.removeInner=function(e,t){for(var n=this.children,i=this.local,o=0;o<n.length;o+=3){for(var r=void 0,s=n[o]+t,a=n[o+1]+t,l=0,d=void 0;l<e.length;l++)(d=e[l])&&d.from>s&&d.to<a&&(e[l]=null,(r||(r=[])).push(d));if(r){n==this.children&&(n=this.children.slice());var c=n[o+2].removeInner(r,s+1);c!=Ws?n[o+2]=c:(n.splice(o,3),o-=3)}}if(i.length)for(var u=0,p=void 0;u<e.length;u++)if(p=e[u])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 Hs(i,n):Ws},Hs.prototype.forChild=function(e,t){if(this==Ws)return this;if(t.isLeaf)return Hs.empty;for(var n,i,o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(n=this.children[o+2]);break}for(var r=e+1,s=r+t.content.size,a=0;a<this.local.length;a++){var l=this.local[a];if(l.from<s&&l.to>r&&l.type instanceof As){var d=Math.max(r,l.from)-r,c=Math.min(s,l.to)-r;d<c&&(i||(i=[])).push(l.copy(d,c))}}if(i){var u=new Hs(i.sort(Ys));return n?new Us([u,n]):u}return n||Ws},Hs.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Hs)||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},Hs.prototype.locals=function(e){return Zs(this.localsInner(e))},Hs.prototype.localsInner=function(e){if(this==Ws)return Ks;if(e.inlineContent||!this.local.some(As.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof As||t.push(this.local[n]);return t};var Ws=new Hs;Hs.empty=Ws,Hs.removeOverlap=Zs;var Us=function(e){this.members=e};function qs(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var o=e[i];n.push(new zs(o.from+t,o.to+t,o.type))}return n}function Gs(e,t,n){if(t.isLeaf)return null;for(var i=n+t.nodeSize,o=null,r=0,s=void 0;r<e.length;r++)(s=e[r])&&s.from>n&&s.to<i&&((o||(o=[])).push(s),e[r]=null);return o}function Js(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Xs(e,t,n,i){var o=[],r=!1;t.forEach((function(t,s){var a=Gs(e,t,s+n);if(a){r=!0;var l=Xs(a,t,n+s+1,i);l!=Ws&&o.push(s,s+t.nodeSize,l)}}));for(var s=qs(r?Js(e):e,-n).sort(Ys),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||o.length?new Hs(s,o):Ws}function Ys(e,t){return e.from-t.from||e.to-t.to}function Zs(e){for(var t=e,n=0;n<t.length-1;n++){var i=t[n];if(i.from!=i.to)for(var o=n+1;o<t.length;o++){var r=t[o];if(r.from!=i.from){r.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,r.from),Qs(t,o,i.copy(r.from,i.to)));break}r.to!=i.to&&(t==e&&(t=e.slice()),t[o]=r.copy(r.from,i.to),Qs(t,o+1,r.copy(i.to,r.to)))}}return t}function Qs(e,t,n){for(;t<e.length&&Ys(n,e[t])>0;)t++;e.splice(t,0,n)}function ea(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Ws&&t.push(i)})),e.cursorWrapper&&t.push(Hs.create(e.state.doc,[e.cursorWrapper.deco])),Us.from(t)}Us.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,_s)}));return Us.from(n)},Us.prototype.forChild=function(e,t){if(t.isLeaf)return Hs.empty;for(var n=[],i=0;i<this.members.length;i++){var o=this.members[i].forChild(e,t);o!=Ws&&(o instanceof Us?n=n.concat(o.members):n.push(o))}return Us.from(n)},Us.prototype.eq=function(e){if(!(e instanceof Us)||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},Us.prototype.locals=function(e){for(var t,n=!0,i=0;i<this.members.length;i++){var o=this.members[i].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(var r=0;r<o.length;r++)t.push(o[r])}else t=o}return t?Zs(n?t:t.sort(Ys)):Ks},Us.from=function(e){switch(e.length){case 0:return Ws;case 1:return e[0];default:return new Us(e)}};var ta,na,ia=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(da),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=aa(this),this.markCursor=null,this.cursorWrapper=null,sa(this),this.nodeViews=la(this),this.docView=lr(this.state.doc,ra(this),ea(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 us(e,(function(t,n,i,o){return function(e,t,n,i,o){if(t<0){var r=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,s=Cr(e,r);if(s&&!e.state.selection.eq(s)){var l=e.state.tr.setSelection(s);"pointer"==r?l.setMeta("pointer",!0):"key"==r&&l.scrollIntoView(),e.dispatch(l)}}else{var d=e.state.doc.resolve(t),c=d.sharedDepth(n);t=d.before(c+1),n=e.state.doc.resolve(n).after(c+1);var u=e.state.selection,p=function(e,t,n){var i=e.docView.parseRange(t,n),o=i.node,r=i.fromOffset,s=i.toOffset,a=i.from,l=i.to,d=e.root.getSelection(),c=null,u=d.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:d.anchorOffset}],Bo(d)||c.push({node:d.focusNode,offset:d.focusOffset})),go.chrome&&8===e.lastKeyCode)for(var p=s;p>r;p--){var h=o.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")||se.fromSchema(e.state.schema),g=v.resolve(a),y=null,b=m.parse(o,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:c,ruleFromNode:qr,context:g});if(c&&null!=c[0].pos){var k=c[0].pos,w=c[1]&&c[1].pos;null==w&&(w=k),y={anchor:k+a,head:w+a}}return{doc:b,sel:y,from:a,to:l}}(e,t,n);if(go.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,y=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 b=function(e,t,n,i,o){var r=e.findDiffStart(t,n);if(null==r)return null;var s=e.findDiffEnd(t,n+e.size,n+t.size),a=s.a,l=s.b;return"end"==o&&(i-=a+Math.max(0,r-Math.min(a,l))-r),a<r&&e.size<t.size?(l=(r-=i<=r&&i>=a?r-i:0)+(l-a),a=r):l<r&&(a=(r-=i<=r&&i>=l?r-i:0)+(a-l),l=r),{start:r,endA:a,endB:l}}(y.content,p.doc.content,p.from,v,m);if(!b){if(!(i&&u instanceof dt&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((go.ios&&e.lastIOSEnter>Date.now()-225||go.android)&&o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=Gr(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}b={start:u.from,endA:u.to,endB:u.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&b.start==b.endB&&e.state.selection instanceof dt&&(b.start>e.state.selection.from&&b.start<=e.state.selection.from+2?b.start=e.state.selection.from:b.endA<e.state.selection.to&&b.endA>=e.state.selection.to-2&&(b.endB+=e.state.selection.to-b.endA,b.endA=e.state.selection.to)),go.ie&&go.ie_version<=11&&b.endB==b.start+1&&b.endA==b.start&&b.start>p.from&&"  "==p.doc.textBetween(b.start-p.from-1,b.start-p.from+1)&&(b.start--,b.endA--,b.endB--);var w,S=p.doc.resolveNoCache(b.start-p.from),x=p.doc.resolveNoCache(b.endB-p.from),C=S.sameParent(x)&&S.parent.inlineContent;if((go.ios&&e.lastIOSEnter>Date.now()-225&&(!C||o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!C&&S.pos<p.doc.content.size&&(w=st.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==x.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>b.start&&function(e,t,n,i,o){if(!i.parent.isTextblock||n-t<=o.pos-i.pos||Jr(i,!0,!1)<o.pos)return!1;var r=e.resolve(t);if(r.parentOffset<r.parent.content.size||!r.parent.isTextblock)return!1;var s=e.resolve(Jr(r,!0,!0));return!(!s.parent.isTextblock||s.pos>n||Jr(s,!0,!1)<n)&&i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,b.start,b.endA,S,x)&&e.someProp("handleKeyDown",(function(t){return t(e,No(8,"Backspace"))})))go.android&&go.chrome&&e.domObserver.suppressSelectionUpdates();else{go.chrome&&go.android&&b.toB==b.from&&(e.lastAndroidDelete=Date.now()),go.android&&!C&&S.start()!=x.start()&&0==x.parentOffset&&S.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==b.endA&&(b.endB-=2,x=p.doc.resolveNoCache(b.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))}))}),20));var $,I,O,D,M=b.start,T=b.endA;if(C)if(S.pos==x.pos)go.ie&&go.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Ir(e)}),20)),$=e.state.tr.delete(M,T),I=g.resolve(b.start).marksAcross(g.resolve(b.endA));else if(b.endA==b.endB&&(D=g.resolve(b.start))&&(O=function(e,t){for(var n,i,o,r=e.firstChild.marks,s=t.firstChild.marks,l=r,d=s,c=0;c<s.length;c++)l=s[c].removeFromSet(l);for(var u=0;u<r.length;u++)d=r[u].removeFromSet(d);if(1==l.length&&0==d.length)i=l[0],n="add",o=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=d.length)return null;i=d[0],n="remove",o=function(e){return e.mark(i.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(o(t.child(h)));if(a.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,x.parentOffset),D.parent.content.cut(D.parentOffset,b.endA-D.start()))))$=e.state.tr,"add"==O.type?$.addMark(M,T,O.mark):$.removeMark(M,T,O.mark);else if(S.parent.child(S.index()).isText&&S.index()==x.index()-(x.textOffset?0:1)){var R=S.parent.textBetween(S.parentOffset,x.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,M,T,R)})))return;$=e.state.tr.insertText(R,M,T)}if($||($=e.state.tr.replace(M,T,p.doc.slice(b.start-p.from,b.endB-p.from))),p.sel){var B=Gr(e,$.doc,p.sel);B&&!(go.chrome&&go.android&&e.composing&&B.empty&&(b.start!=b.endB||e.lastAndroidDelete<Date.now()-100)&&(B.head==M||B.head==$.mapping.map(T)-1)||go.ie&&B.empty&&B.head==M)&&$.setSelection(B)}I&&$.ensureMarks(I),e.dispatch($.scrollIntoView())}}}(e,t,n,i,o)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=hs[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)||gs(e,t)||!e.editable&&t.type in fs||n(e,t)})};for(var n in hs)t(n);go.safari&&e.dom.addEventListener("input",(function(){return null})),ms(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},oa={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function ra(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]))})),[zs.node(0,e.state.doc.content.size,t)]}function sa(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:zs.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function aa(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function la(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 da(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(oa.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},ia.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ms(this),this._props=e,e.plugins&&(e.plugins.forEach(da),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},ia.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)},ia.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},ia.prototype.updateStateInner=function(e,t){var n=this,i=this.state,o=!1,r=!1;if(e.storedMarks&&this.composing&&(Ms(this),r=!0),this.state=e,t){var s=la(this);(function(e,t){var n=0,i=0;for(var o in e){if(e[o]!=t[o])return!0;n++}for(var r in t)i++;return n!=i})(s,this.nodeViews)&&(this.nodeViews=s,o=!0),ms(this)}this.editable=aa(this),sa(this);var a=ea(this),l=ra(this),d=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",c=o||!this.docView.matchesNode(e.doc,l,a);!c&&e.selection.eq(i.selection)||(r=!0);var u,p,h,f,v,m,g,y,b,k,w="preserve"==d&&r&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,i=e.dom.getBoundingClientRect(),o=Math.max(0,i.top),r=(i.left+i.right)/2,s=o+1;s<Math.min(innerHeight,i.bottom);s+=5){var a=e.root.elementFromPoint(r,s);if(a!=e.dom&&e.dom.contains(a)){var l=a.getBoundingClientRect();if(l.top>=o-20){t=a,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Ao(e.dom)}}(this);if(r){this.domObserver.stop();var S=c&&(go.ie||go.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(c){var x=go.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=lr(e.doc,l,a,this.dom,this)),x&&!this.trackWrites&&(S=!0)}S||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(u=this,p=u.docView.domFromPos(u.state.selection.anchor,0),h=u.root.getSelection(),Oo(p.node,p.offset,h.anchorNode,h.anchorOffset)))?Ir(this,S):(Rr(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var C=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ut?Lo(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),C):Lo(this,this.coordsAtPos(e.selection.head,1),C))}else w&&(y=(g=w).refDOM,b=g.refTop,Fo(g.stack,0==(k=y?y.getBoundingClientRect().top:0)?0:k-b))},ia.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},ia.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 o=this.directPlugins[i];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(var r=0;r<this.state.plugins.length;r++){var s=this.state.plugins[r];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},ia.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 o=0;o<this.directPlugins.length;o++){var r=this.directPlugins[o].props[e];if(null!=r&&(n=t?t(r):r))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}},ia.prototype.hasFocus=function(){return this.root.activeElement==this.dom},ia.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(zo)return e.focus(zo);var t=Ao(e);e.focus(null==zo?{get preventScroll(){return zo={preventScroll:!0},!0}}:void 0),zo||(zo=!1,Fo(t,0))}(this.dom),Ir(this),this.domObserver.start()},oa.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},ia.prototype.posAtCoords=function(e){return Ho(this,e)},ia.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),qo(this,e,t)},ia.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},ia.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},ia.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},ia.prototype.endOfTextblock=function(e,t){return function(e,t,n){return Zo==t&&Qo==n?er:(Zo=t,Qo=n,er="up"==n||"down"==n?function(e,t,n){var i=t.selection,o="up"==n?i.$from:i.$to;return Xo(e,t,(function(){for(var t=e.docView.domFromPos(o.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 r=qo(e,o.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=Io(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var d=a[l];if(d.bottom>d.top+1&&("up"==n?r.top-d.top>2*(d.bottom-r.top):d.bottom-r.bottom>2*(r.bottom-d.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var i=t.selection.$head;if(!i.parent.isTextblock)return!1;var o=i.parentOffset,r=!o,s=o==i.parent.content.size,a=e.root.getSelection();return Yo.test(i.parent.textContent)&&a.modify?Xo(e,t,(function(){var t=a.getRangeAt(0),o=a.focusNode,r=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)||o==a.focusNode&&r==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?r:s}(e,t,n))}(this,t||this.state,e)},ia.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,[],ea(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},oa.isDestroyed.get=function(){return null==this.docView},ia.prototype.dispatchEvent=function(e){return function(e,t){gs(e,t)||!hs[t.type]||!e.editable&&t.type in fs||hs[t.type](e,t)}(this,e)},ia.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(ia.prototype,oa),"undefined"!=typeof WeakMap){var ca=new WeakMap;ta=function(e){return ca.get(e)},na=function(e,t){return ca.set(e,t),t}}else{var ua=[],pa=0;ta=function(e){for(var t=0;t<ua.length;t+=2)if(ua[t]==e)return ua[t+1]},na=function(e,t){return 10==pa&&(pa=0),ua[pa++]=e,ua[pa++]=t}}var ha=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},fa=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function va(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ma(e,t){var n=e.getAttribute("data-colwidth"),i=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,o=Number(e.getAttribute("colspan")||1),r={colspan:o,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:i&&i.length==o?i:null};for(var s in t){var a=t[s].getFromDOM,l=a&&a(e);null!=l&&(r[s]=l)}return r}function ga(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 o=t[i].setDOMAttr;o&&o(e.attrs[i],n)}return n}function ya(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 ma(e,t)}}],toDOM:function(e){return["td",ga(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ma(e,t)}}],toDOM:function(e){return["th",ga(e,t),0]}}}}function ba(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var i=e.nodes[n],o=i.spec.tableRole;o&&(t[o]=i)}return t}fa.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,o=t/this.width|0,r=i+1,s=o+1,a=1;r<this.width&&this.map[t+a]==n;a++)r++;for(var l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return new ha(i,o,r,s)}}throw new RangeError("No cell with offset "+e+" found")},fa.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")},fa.prototype.nextCell=function(e,t,n){var i=this.findCell(e),o=i.left,r=i.right,s=i.top,a=i.bottom;return"horiz"==t?(n<0?0==o:r==this.width)?null:this.map[s*this.width+(n<0?o-1:r)]:(n<0?0==s:a==this.height)?null:this.map[o+this.width*(n<0?s-1:a)]},fa.prototype.rectBetween=function(e,t){var n=this.findCell(e),i=n.left,o=n.right,r=n.top,s=n.bottom,a=this.findCell(t),l=a.left,d=a.right,c=a.top,u=a.bottom;return new ha(Math.min(i,l),Math.min(r,c),Math.max(o,d),Math.max(s,u))},fa.prototype.cellsInRect=function(e){for(var t=[],n={},i=e.top;i<e.bottom;i++)for(var o=e.left;o<e.right;o++){var r=i*this.width+o,s=this.map[r];n[s]||(n[s]=!0,o==e.left&&o&&this.map[r-1]==s||i==e.top&&i&&this.map[r-this.width]==s||t.push(s))}return t},fa.prototype.positionAt=function(e,t,n){for(var i=0,o=0;;i++){var r=o+n.child(i).nodeSize;if(i==e){for(var s=t+e*this.width,a=(e+1)*this.width;s<a&&this.map[s]<o;)s++;return s==a?r-1:this.map[s]}o=r}},fa.get=function(e){return ta(e)||na(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 o=e.child(i),r=0;if(n)for(var s=0;s<i;s++)for(var a=e.child(s),l=0;l<a.childCount;l++){var d=a.child(l);s+d.attrs.rowspan>i&&(r+=d.attrs.colspan)}for(var c=0;c<o.childCount;c++){var u=o.child(c);r+=u.attrs.colspan,u.attrs.rowspan>1&&(n=!0)}-1==t?t=r:t!=r&&(t=Math.max(t,r))}return t}(e),n=e.childCount,i=[],o=0,r=null,s=[],a=0,l=t*n;a<l;a++)i[a]=0;for(var d=0,c=0;d<n;d++){var u=e.child(d);c++;for(var p=0;;p++){for(;o<i.length&&0!=i[o];)o++;if(p==u.childCount)break;for(var h=u.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,y=0;y<m;y++){if(y+d>=n){(r||(r=[])).push({type:"overlong_rowspan",pos:c,n:m-y});break}for(var b=o+y*t,k=0;k<v;k++){0==i[b+k]?i[b+k]=c:(r||(r=[])).push({type:"collision",row:d,pos:c,n:v-k});var w=g&&g[k];if(w){var S=(b+k)%t*2,x=s[S];null==x||x!=w&&1==s[S+1]?(s[S]=w,s[S+1]=1):x==w&&s[S+1]++}}}o+=v,c+=h.nodeSize}for(var C=(d+1)*t,$=0;o<C;)0==i[o++]&&$++;$&&(r||(r=[])).push({type:"missing",row:d,n:$}),c++}for(var I=new fa(t,n,i,r),O=!1,D=0;!O&&D<s.length;D+=2)null!=s[D]&&s[D+1]<n&&(O=!0);return O&&function(e,t,n){e.problems||(e.problems=[]);for(var i=0,o={};i<e.map.length;i++){var r=e.map[i];if(!o[r]){o[r]=!0;for(var s=n.nodeAt(r),a=null,l=0;l<s.attrs.colspan;l++){var d=t[(i+l)%e.width*2];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=va(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:a})}}}(I,s,e),I}(e))};var ka=new Mt("selectingCells");function wa(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 Sa(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 xa(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:wa(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 o=e.nodeBefore,r=e.pos;o;o=o.lastChild,r--){var s=o.type.spec.tableRole;if("cell"==s||"header_cell"==s)return e.doc.resolve(r-o.nodeSize)}}(t.$head)}function Ca(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function $a(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Ia(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Oa(e){return fa.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Da(e){return fa.get(e.node(-1)).colCount(e.pos-e.start(-1))}function Ma(e,t,n){var i=e.start(-1),o=fa.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==o?null:e.node(0).resolve(i+o)}function Ta(e,t,n){var i={};for(var o in e)i[o]=e[o];return i[t]=n,i}function Ra(e,t,n){void 0===n&&(n=1);var i=Ta(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 Ba(e,t,n){void 0===n&&(n=1);var i=Ta(e,"colspan",e.colspan+n);if(i.colwidth){i.colwidth=i.colwidth.slice();for(var o=0;o<n;o++)i.colwidth.splice(t,0,0)}return i}function Na(e,t,n){for(var i=ba(t.type.schema).header_cell,o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=i)return!1;return!0}var Pa=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),o=fa.get(i),r=t.start(-1),s=o.rectBetween(t.pos-r,n.pos-r),a=t.node(0),l=o.cellsInRect(s).filter((function(e){return e!=n.pos-r}));l.unshift(n.pos-r);var d=l.map((function(e){var t=i.nodeAt(e),n=e+r+1;return new lt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,d[0].$from,d[0].$to,d),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)),o=e.resolve(n.map(this.$headCell.pos));if(Ca(i)&&Ca(o)&&Ia(i,o)){var r=this.$anchorCell.node(-1)!=i.node(-1);return r&&this.isRowSelection()?t.rowSelection(i,o):r&&this.isColSelection()?t.colSelection(i,o):new t(i,o)}return dt.between(i,o)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=fa.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},r=[],s=i.top;s<i.bottom;s++){for(var l=[],d=s*t.width+i.left,c=i.left;c<i.right;c++,d++){var u=t.map[d];if(!o[u]){o[u]=!0;var p=t.findCell(u),h=e.nodeAt(u),v=i.left-p.left,m=p.right-i.right;if(v>0||m>0){var g=h.attrs;v>0&&(g=Ra(g,0,v)),m>0&&(g=Ra(g,g.colspan-m,m)),h=p.left<i.left?h.type.createAndFill(g):h.type.create(g,h.content)}if(p.top<i.top||p.bottom>i.bottom){var y=Ta(h.attrs,"rowspan",Math.min(p.bottom,i.bottom)-Math.max(p.top,i.top));h=p.top<i.top?h.type.createAndFill(y):h.type.create(y,h.content)}l.push(h)}}r.push(e.child(s).copy(a.from(l)))}var b=this.isColSelection()&&this.isRowSelection()?e:r;return new f(a.from(b),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=f.empty);for(var i=t.steps.length,o=this.ranges,r=0;r<o.length;r++){var s=o[r],a=s.$from,l=s.$to,d=t.mapping.slice(i);t.replace(d.map(a.pos),d.map(l.pos),r?f.empty:n)}var c=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);c&&t.setSelection(c)},t.prototype.replaceWith=function(e,t){this.replace(e,new f(a.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=fa.get(t),i=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i)),r=0;r<o.length;r++)e(t.nodeAt(o[r]),i+o[r])},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=fa.get(e.node(-1)),o=e.start(-1),r=i.findCell(e.pos-o),s=i.findCell(n.pos-o),a=e.node(0);return r.top<=s.top?(r.top>0&&(e=a.resolve(o+i.map[r.left])),s.bottom<i.height&&(n=a.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(o+i.map[s.left])),r.bottom<i.height&&(e=a.resolve(o+i.map[i.width*(i.height-1)+r.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=fa.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 o=n+this.$anchorCell.nodeAfter.attrs.colspan,r=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,r)==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=fa.get(e.node(-1)),o=e.start(-1),r=i.findCell(e.pos-o),s=i.findCell(n.pos-o),a=e.node(0);return r.left<=s.left?(r.left>0&&(e=a.resolve(o+i.map[r.top*i.width])),s.right<i.width&&(n=a.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(o+i.map[s.top*i.width])),r.right<i.width&&(e=a.resolve(o+i.map[i.width*(r.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 Ea(this.$anchorCell.pos,this.$headCell.pos)},t}(st);Pa.prototype.visible=!1,st.jsonID("cell",Pa);var Ea=function(e,t){this.anchor=e,this.head=t};function Va(e){if(!(e.selection instanceof Pa))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(zs.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Hs.create(e.doc,t)}function La(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 o=t.firstChild,r=o.type.spec.tableRole,s=o.type.schema,l=[];if("row"==r)for(var d=0;d<t.childCount;d++){var c=t.child(d).content,u=d?0:Math.max(0,n-1),p=d<t.childCount-1?0:Math.max(0,i-1);(u||p)&&(c=Aa(ba(s).row,new f(c,u,p)).content),l.push(c)}else{if("cell"!=r&&"header_cell"!=r)return null;l.push(n||i?Aa(ba(s).row,new f(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var o=t[i],r=o.childCount-1;r>=0;r--)for(var s=o.child(r).attrs,l=s.rowspan,d=s.colspan,c=i;c<i+l;c++)n[c]=(n[c]||0)+d;for(var u=0,p=0;p<n.length;p++)u=Math.max(u,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(a.empty),n[h]<u){for(var f=ba(e).cell.createAndFill(),v=[],m=n[h];m<u;m++)v.push(f);t[h]=t[h].append(a.from(v))}return{height:t.length,width:u,rows:t}}(s,l)}function Aa(e,t){var n=e.createAndFill();return new Ie(n).replace(0,n.content.size,t).doc}function Fa(e,t,n){var i=e.width,o=e.height,r=e.rows;if(i!=t){for(var s=[],l=[],d=0;d<r.length;d++){for(var c=r[d],u=[],p=s[d]||0,h=0;p<t;h++){var f=c.child(h%c.childCount);p+f.attrs.colspan>t&&(f=f.type.create(Ra(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),u.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)s[d+v]=(s[d+v]||0)+f.attrs.colspan}l.push(a.from(u))}r=l,i=t}if(o!=n){for(var m=[],g=0,y=0;g<n;g++,y++){for(var b=[],k=r[y%o],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create(Ta(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),b.push(S)}m.push(a.from(b))}r=m,o=n}return{width:i,height:o,rows:r}}function za(e,t,n,i,o,r,s,a){if(0==s||s==t.height)return!1;for(var l=!1,d=o;d<r;d++){var c=s*t.width+d,u=t.map[c];if(t.map[c-t.width]==u){l=!0;var p=n.nodeAt(u),h=t.findCell(u),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(u+i),null,Ta(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill(Ta(p.attrs,"rowspan",f+p.attrs.rowspan-s))),d+=p.attrs.colspan-1}}return l}function ja(e,t,n,i,o,r,s,a){if(0==s||s==t.width)return!1;for(var l=!1,d=o;d<r;d++){var c=d*t.width+s,u=t.map[c];if(t.map[c-1]==u){l=!0;var p=n.nodeAt(u),h=t.colCount(u),f=e.mapping.slice(a).map(u+i);e.setNodeMarkup(f,null,Ra(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill(Ra(p.attrs,0,s-h))),d+=p.attrs.rowspan-1}}return l}function Ka(e,t,n,i,o){var r=n?e.doc.nodeAt(n-1):e.doc,s=fa.get(r),l=i.top,d=i.left,c=d+o.width,u=l+o.height,p=e.tr,h=0;function v(){r=n?p.doc.nodeAt(n-1):p.doc,s=fa.get(r),h=p.mapping.maps.length}(function(e,t,n,i,o,r,s){var l,d,c=ba(e.doc.type.schema);if(o>t.width)for(var u=0,p=0;u<t.height;u++){var h=n.child(u);p+=h.nodeSize;var f,v=[];f=null==h.lastChild||h.lastChild.type==c.cell?l||(l=c.cell.createAndFill()):d||(d=c.header_cell.createAndFill());for(var m=t.width;m<o;m++)v.push(f);e.insert(e.mapping.slice(s).map(p-1+i),v)}if(r>t.height){for(var g=[],y=0,b=(t.height-1)*t.width;y<Math.max(t.width,o);y++){var k=!(y>=t.width)&&n.nodeAt(t.map[b+y]).type==c.header_cell;g.push(k?d||(d=c.header_cell.createAndFill()):l||(l=c.cell.createAndFill()))}for(var w=c.row.create(null,a.from(g)),S=[],x=t.height;x<r;x++)S.push(w);e.insert(e.mapping.slice(s).map(i+n.nodeSize-2),S)}return!(!l&&!d)})(p,s,r,n,c,u,h)&&v(),za(p,s,r,n,d,c,l,h)&&v(),za(p,s,r,n,d,c,u,h)&&v(),ja(p,s,r,n,l,u,d,h)&&v(),ja(p,s,r,n,l,u,c,h)&&v();for(var m=l;m<u;m++){var g=s.positionAt(m,d,r),y=s.positionAt(m,c,r);p.replace(p.mapping.slice(h).map(g+n),p.mapping.slice(h).map(y+n),new f(o.rows[m-l],0,0))}v(),p.setSelection(new Pa(p.doc.resolve(n+s.positionAt(l,d,r)),p.doc.resolve(n+s.positionAt(u-1,c-1,r)))),t(p)}Ea.prototype.map=function(e){return new Ea(e.map(this.anchor),e.map(this.head))},Ea.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&&Ia(t,n)?new Pa(t,n):st.near(n,1)};var _a=mo({ArrowLeft:Wa("horiz",-1),ArrowRight:Wa("horiz",1),ArrowUp:Wa("vert",-1),ArrowDown:Wa("vert",1),"Shift-ArrowLeft":Ua("horiz",-1),"Shift-ArrowRight":Ua("horiz",1),"Shift-ArrowUp":Ua("vert",-1),"Shift-ArrowDown":Ua("vert",1),Backspace:qa,"Mod-Backspace":qa,Delete:qa,"Mod-Delete":qa});function Ha(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Wa(e,t){return function(n,i,o){var r=n.selection;if(r instanceof Pa)return Ha(n,i,st.near(r.$headCell,t));if("horiz"!=e&&!r.empty)return!1;var s=Ya(o,e,t);if(null==s)return!1;if("horiz"==e)return Ha(n,i,st.near(n.doc.resolve(r.head+t),t));var a,l=n.doc.resolve(s),d=Ma(l,e,t);return a=d?st.near(d,1):t<0?st.near(n.doc.resolve(l.before(-1)),-1):st.near(n.doc.resolve(l.after(-1)),1),Ha(n,i,a)}}function Ua(e,t){return function(n,i,o){var r=n.selection;if(!(r instanceof Pa)){var s=Ya(o,e,t);if(null==s)return!1;r=new Pa(n.doc.resolve(s))}var a=Ma(r.$headCell,e,t);return!!a&&Ha(n,i,new Pa(r.$anchorCell,a))}}function qa(e,t){var n=e.selection;if(!(n instanceof Pa))return!1;if(t){var i=e.tr,o=ba(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(o)||i.replace(i.mapping.map(t+1),i.mapping.map(t+e.nodeSize-1),new f(o,0,0))})),i.docChanged&&t(i)}return!0}function Ga(e,t){var n=wa(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Pa(n))),!0)}function Ja(e,t,n){if(!Sa(e.state))return!1;var i=La(n),o=e.state.selection;if(o instanceof Pa){i||(i={width:1,height:1,rows:[a.from(Aa(ba(e.state.schema).cell,n))]});var r=o.$anchorCell.node(-1),s=o.$anchorCell.start(-1),l=fa.get(r).rectBetween(o.$anchorCell.pos-s,o.$headCell.pos-s);return i=Fa(i,l.right-l.left,l.bottom-l.top),Ka(e.state,e.dispatch,s,l,i),!0}if(i){var d=xa(e.state),c=d.start(-1);return Ka(e.state,e.dispatch,c,fa.get(d.node(-1)).findCell(d.pos-c),i),!0}return!1}function Xa(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=Za(e,t.target);if(t.shiftKey&&e.state.selection instanceof Pa)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=wa(e.state.selection.$anchor))&&Qa(e,t).pos!=n.pos)o(n,t),t.preventDefault();else if(!i)return;e.root.addEventListener("mouseup",r),e.root.addEventListener("dragstart",r),e.root.addEventListener("mousemove",s)}function o(t,n){var i=Qa(e,n),o=null==ka.getState(e.state);if(!i||!Ia(t,i)){if(!o)return;i=t}var r=new Pa(t,i);if(o||!e.state.selection.eq(r)){var s=e.state.tr.setSelection(r);o&&s.setMeta(ka,t.pos),e.dispatch(s)}}function r(){e.root.removeEventListener("mouseup",r),e.root.removeEventListener("dragstart",r),e.root.removeEventListener("mousemove",s),null!=ka.getState(e.state)&&e.dispatch(e.state.tr.setMeta(ka,-1))}function s(n){var s,a=ka.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(Za(e,n.target)!=i&&!(s=Qa(e,t)))return r();s&&o(s,n)}}function Ya(e,t,n){if(!(e.state.selection instanceof dt))return null;for(var i=e.state.selection.$head,o=i.depth-1;o>=0;o--){var r=i.node(o);if((n<0?i.index(o):i.indexAfter(o))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){var s=i.before(o),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function Za(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Qa(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?wa(e.state.doc.resolve(n.pos)):null}var el=new Mt("fix-tables");function tl(e,t,n,i){var o=e.childCount,r=t.childCount;e:for(var s=0,a=0;s<r;s++){for(var l=t.child(s),d=a,c=Math.min(o,s+3);d<c;d++)if(e.child(d)==l){a=d+1,n+=l.nodeSize;continue e}i(l,n),a<o&&e.child(a).sameMarkup(l)?tl(e.child(a),l,n+1,i):l.nodesBetween(0,l.content.size,i,n+1),n+=l.nodeSize}}function nl(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var o=fa.get(t);if(!o.problems)return i;i||(i=e.tr);for(var r,s,a=[],l=0;l<o.height;l++)a.push(0);for(var d=0;d<o.problems.length;d++){var c=o.problems[d];if("collision"==c.type){for(var u=t.nodeAt(c.pos),p=0;p<u.attrs.rowspan;p++)a[c.row+p]+=c.n;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ra(u.attrs,u.attrs.colspan-c.n,c.n))}else if("missing"==c.type)a[c.row]+=c.n;else if("overlong_rowspan"==c.type){var h=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(h.attrs,"rowspan",h.attrs.rowspan-c.n))}else if("colwidth mismatch"==c.type){var f=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(f.attrs,"colwidth",c.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==r&&(r=v),s=v);for(var m=0,g=n+1;m<o.height;m++){var y=t.child(m),b=g+y.nodeSize,k=a[m];if(k>0){var w="cell";y.firstChild&&(w=y.firstChild.type.spec.tableRole);for(var S=[],x=0;x<k;x++)S.push(ba(e.schema)[w].createAndFill());var C=0!=m&&r!=m-1||s!=m?b-1:g+1;i.insert(i.mapping.map(C),S)}g=b}return i.setMeta(el,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&tl(t.doc,e.doc,0,i):e.doc.descendants(i),n}function il(e){var t,n=e.selection,i=xa(e),o=i.node(-1),r=i.start(-1),s=fa.get(o);return(t=n instanceof Pa?s.rectBetween(n.$anchorCell.pos-r,n.$headCell.pos-r):s.findCell(i.pos-r)).tableStart=r,t.map=s,t.table=o,t}function ol(e,t,n){var i=t.map,o=t.tableStart,r=t.table,s=n>0?-1:0;Na(i,r,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 d=i.map[l],c=r.nodeAt(d);e.setNodeMarkup(e.mapping.map(o+d),null,Ba(c.attrs,n-i.colCount(d))),a+=c.attrs.rowspan-1}else{var u=null==s?ba(r.type.schema).cell:r.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,r);e.insert(e.mapping.map(o+p),u.createAndFill())}}return e}function rl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(ol(e.tr,n,n.left))}return!0}function sl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(ol(e.tr,n,n.right))}return!0}function al(e,t,n){for(var i=t.map,o=t.table,r=t.tableStart,s=e.mapping.maps.length,a=0;a<i.height;){var l=a*i.width+n,d=i.map[l],c=o.nodeAt(d);if(n>0&&i.map[l-1]==d||n<i.width-1&&i.map[l+1]==d)e.setNodeMarkup(e.mapping.slice(s).map(r+d),null,Ra(c.attrs,n-i.colCount(d)));else{var u=e.mapping.slice(s).map(r+d);e.delete(u,u+c.nodeSize)}a+=c.attrs.rowspan}}function ll(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var o=n.right-1;al(i,n,o),o!=n.left;o--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function dl(e,t,n){for(var i=ba(t.type.schema).header_cell,o=0;o<e.width;o++)if(t.nodeAt(e.map[o+n*e.width]).type!=i)return!1;return!0}function cl(e,t,n){for(var i=t.map,o=t.tableStart,r=t.table,s=o,a=0;a<n;a++)s+=r.child(a).nodeSize;var l=[],d=n>0?-1:0;dl(i,r,n+d)&&(d=0==n||n==i.height?null:0);for(var c=0,u=i.width*n;c<i.width;c++,u++)if(n>0&&n<i.height&&i.map[u]==i.map[u-i.width]){var p=i.map[u],h=r.nodeAt(p).attrs;e.setNodeMarkup(o+p,null,Ta(h,"rowspan",h.rowspan+1)),c+=h.colspan-1}else{var f=null==d?ba(r.type.schema).cell:r.nodeAt(i.map[u+d*i.width]).type;l.push(f.createAndFill())}return e.insert(s,ba(r.type.schema).row.create(null,l)),e}function ul(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.top))}return!0}function pl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.bottom))}return!0}function hl(e,t,n){for(var i=t.map,o=t.table,r=t.tableStart,s=0,a=0;a<n;a++)s+=o.child(a).nodeSize;var l=s+o.child(n).nodeSize,d=e.mapping.maps.length;e.delete(s+r,l+r);for(var c=0,u=n*i.width;c<i.width;c++,u++){var p=i.map[u];if(n>0&&p==i.map[u-i.width]){var h=o.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(d).map(p+r),null,Ta(h,"rowspan",h.rowspan-1)),c+=h.colspan-1}else if(n<i.width&&p==i.map[u+i.width]){var f=o.nodeAt(p),v=f.type.create(Ta(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,c,o);e.insert(e.mapping.slice(d).map(r+m),v),c+=f.attrs.colspan-1}}}function fl(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var o=n.bottom-1;hl(i,n,o),o!=n.top;o--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function vl(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function ml(e,t){var n=e.selection;if(!(n instanceof Pa)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=il(e),o=i.map;if(function(e,t){for(var n=e.width,i=e.height,o=e.map,r=t.top*n+t.left,s=r,a=(t.bottom-1)*n+t.left,l=r+(t.right-t.left-1),d=t.top;d<t.bottom;d++){if(t.left>0&&o[s]==o[s-1]||t.right<n&&o[l]==o[l+1])return!0;s+=n,l+=n}for(var c=t.left;c<t.right;c++){if(t.top>0&&o[r]==o[r-n]||t.bottom<i&&o[a]==o[a+n])return!0;r++,a++}return!1}(o,i))return!1;if(t){for(var r,s,l=e.tr,d={},c=a.empty,u=i.top;u<i.bottom;u++)for(var p=i.left;p<i.right;p++){var h=o.map[u*o.width+p],f=i.table.nodeAt(h);if(!d[h])if(d[h]=!0,null==r)r=h,s=f;else{vl(f)||(c=c.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(r+i.tableStart,null,Ta(Ba(s.attrs,s.attrs.colspan,i.right-i.left-s.attrs.colspan),"rowspan",i.bottom-i.top)),c.size){var m=r+1+s.content.size,g=vl(s)?r+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,c)}l.setSelection(new Pa(l.doc.resolve(r+i.tableStart))),t(l)}return!0}function gl(e,t){var n=ba(e.schema);return yl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function yl(e){return function(t,n){var i,o,r=t.selection;if(r instanceof Pa){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;i=r.$anchorCell.nodeAfter,o=r.$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}(r.$from)))return!1;o=wa(r.$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=Ta(s,"rowspan",1)),s.colspan>1&&(s=Ta(s,"colspan",1));for(var d,c=il(t),u=t.tr,p=0;p<c.right-c.left;p++)a.push(l?Ta(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=c.top;h<c.bottom;h++){var f=c.map.positionAt(h,c.left,c.table);h==c.top&&(f+=i.nodeSize);for(var v=c.left,m=0;v<c.right;v++,m++)v==c.left&&h==c.top||u.insert(d=u.mapping.map(f+c.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}u.setNodeMarkup(o,e({node:i,row:c.top,col:c.left}),a[0]),r instanceof Pa&&u.setSelection(new Pa(u.doc.resolve(r.$anchorCell.pos),d&&u.doc.resolve(d))),n(u)}return!0}}function bl(e,t){return function(n,i){if(!Sa(n))return!1;var o=xa(n);if(o.nodeAfter.attrs[e]===t)return!1;if(i){var r=n.tr;n.selection instanceof Pa?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&r.setNodeMarkup(i,null,Ta(n.attrs,e,t))})):r.setNodeMarkup(o.pos,null,Ta(o.nodeAfter.attrs,e,t)),i(r)}return!0}}function kl(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}),o=0;o<i.length;o++){var r=t.table.nodeAt(i[o]);if(r&&r.type!==n.header_cell)return!1}return!0}function wl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!Sa(t))return!1;if(n){for(var i=ba(t.schema),o=il(t),r=t.tr,s=o.map.cellsInRect("column"==e?new ha(o.left,0,o.right,o.map.height):"row"==e?new ha(0,o.top,o.map.width,o.bottom):o),a=s.map((function(e){return o.table.nodeAt(e)})),l=0;l<s.length;l++)a[l].type==i.header_cell&&r.setNodeMarkup(o.tableStart+s[l],i.cell,a[l].attrs);if(0==r.steps.length)for(var d=0;d<s.length;d++)r.setNodeMarkup(o.tableStart+s[d],i.header_cell,a[d].attrs);n(r)}return!0}}(e):function(t,n){if(!Sa(t))return!1;if(n){var i=ba(t.schema),o=il(t),r=t.tr,s=kl("row",o,i),a=kl("column",o,i),l=("column"===e?s:"row"===e&&a)?1:0,d="column"==e?new ha(0,l,1,o.map.height):"row"==e?new ha(l,0,o.map.width,1):o,c="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;o.map.cellsInRect(d).forEach((function(e){var t=e+o.tableStart,n=r.doc.nodeAt(t);n&&r.setNodeMarkup(t,c,n.attrs)})),n(r)}return!0}}var Sl=wl("row",{useDeprecatedLogic:!0}),xl=wl("column",{useDeprecatedLogic:!0}),Cl=wl("cell",{useDeprecatedLogic:!0});function $l(e){return function(t,n){if(!Sa(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,o=e.before();i>=0;i--){var r=e.node(-1).child(i);if(r.childCount)return o-1-r.lastChild.nodeSize;o-=r.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 d=s.child(a);if(d.childCount)return l+1;l+=d.nodeSize}}}(xa(t),e);if(null!=i){if(n){var o=t.doc.resolve(i);n(t.tr.setSelection(dt.between(o,$a(o))).scrollIntoView())}return!0}}}function Il(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 Ol=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")),Dl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Dl(e,t,n,i,o,r){for(var s=0,a=!0,l=t.firstChild,d=e.firstChild,c=0,u=0;c<d.childCount;c++)for(var p=d.child(c).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,u++){var m=o==u?r: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 y=l.nextSibling;l.parentNode.removeChild(l),l=y}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}Ol.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Dl(e,this.colgroup,this.table,this.cellMinWidth),!0)},Ol.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Ml=new Mt("tableColumnResizing");function Tl(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=Ol);var o=e.lastColumnResizable;void 0===o&&(o=!0);var r=new It({key:Ml,state:{init:function(e,t){return this.spec.props.nodeViews[ba(t.schema).table.name]=function(e,t){return new i(e,n,t)},new Rl(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Ml.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,o){var r=Ml.getState(e.state);if(!r.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(),d=l.left,c=l.right;t.clientX-d<=n?a=Bl(e,t,"left"):c-t.clientX<=n&&(a=Bl(e,t,"right"))}if(a!=r.activeHandle){if(!o&&-1!==a){var u=e.state.doc.resolve(a),p=u.node(-1),h=fa.get(p),f=u.start(-1);if(h.colCount(u.pos-f)+u.nodeAfter.attrs.colspan-1==h.width-1)return}Pl(e,a)}}}(e,n,t,0,o)},mouseleave:function(e){!function(e){var t=Ml.getState(e.state);t.activeHandle>-1&&!t.dragging&&Pl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Ml.getState(e.state);if(-1==i.activeHandle||i.dragging)return!1;var o=e.state.doc.nodeAt(i.activeHandle),r=function(e,t,n){var i=n.colspan,o=n.colwidth,r=o&&o[o.length-1];if(r)return r;var s=e.domAtPos(t),a=s.node.childNodes[s.offset].offsetWidth,l=i;if(o)for(var d=0;d<i;d++)o[d]&&(a-=o[d],l--);return a/l}(e,i.activeHandle,o.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Ml.getState(e.state);i.dragging&&(function(e,t,n){for(var i=e.state.doc.resolve(t),o=i.node(-1),r=fa.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,d=0;d<r.height;d++){var c=d*r.width+a;if(!d||r.map[c]!=r.map[c-r.width]){var u=r.map[c],p=o.nodeAt(u).attrs,h=1==p.colspan?0:a-r.colCount(u);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():El(p.colspan);f[h]=n,l.setNodeMarkup(s+u,null,Ta(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,Nl(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Ml,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Ml.getState(e.state),o=Nl(i.dragging,t,n);!function(e,t,n,i){for(var o=e.state.doc.resolve(t),r=o.node(-1),s=o.start(-1),a=fa.get(r).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1,l=e.domAtPos(o.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Dl(r,l.firstChild,l,i,a,n)}(e,i.activeHandle,o,n)}e.dispatch(e.state.tr.setMeta(Ml,{setDragging:{startX:t.clientX,startWidth:r}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Ml.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),o=i.node(-1),r=fa.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<r.height;l++){var d=a+l*r.width-1;if(!(a!=r.width&&r.map[d]==r.map[d+1]||0!=l&&r.map[d-1]==r.map[d-1-r.width])){var c=r.map[d],u=s+c+o.nodeAt(c).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(zs.widget(u,p))}}return Hs.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return r}var Rl=function(e,t){this.activeHandle=e,this.dragging=t};function Bl(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var o=i.pos,r=wa(e.state.doc.resolve(o));if(!r)return-1;if("right"==n)return r.pos;var s=fa.get(r.node(-1)),a=r.start(-1),l=s.map.indexOf(r.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Nl(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Pl(e,t){e.dispatch(e.state.tr.setMeta(Ml,{setHandle:t}))}function El(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 It({key:ka,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(ka);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var i=e.mapping.mapResult(t),o=i.deleted,r=i.pos;return o?null:r}},props:{decorations:Va,handleDOMEvents:{mousedown:Xa},createSelectionBetween:function(e){if(null!=ka.getState(e.state))return e.state.selection},handleTripleClick:Ga,handleKeyDown:_a,handlePaste:Ja},appendTransaction:function(e,n,i){return function(e,t,n){var i,o,r=(t||e).selection,s=(t||e).doc;if(r instanceof ut&&(o=r.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)i=Pa.create(s,r.from);else if("row"==o){var a=s.resolve(r.from+1);i=Pa.rowSelection(a,a)}else if(!n){var l=fa.get(r.node),d=r.from+1,c=d+l.map[l.width*l.height-1];i=Pa.create(s,d+1,c)}}else r instanceof dt&&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,o=n.pos,r=t.depth;r>=0&&!(t.after(r+1)<t.end(r));r--,i++);for(var s=n.depth;s>=0&&!(n.before(s+1)>n.start(s));s--,o--);return i==o&&/row|table/.test(t.node(r).type.spec.tableRole)}(r)?i=dt.create(s,r.from):r instanceof dt&&function(e){for(var t,n,i=e.$from,o=e.$to,r=i.depth;r>0;r--){var s=i.node(r);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){t=s;break}}for(var a=o.depth;a>0;a--){var l=o.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===o.parentOffset}(r)&&(i=dt.create(s,r.$from.start(),r.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,nl(i,n),t)}})}Rl.prototype.apply=function(e){var t=this,n=e.getMeta(Ml);if(n&&null!=n.setHandle)return new Rl(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Rl(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);Ca(e.doc.resolve(i))||(i=null),t=new Rl(i,t.dragging)}return t};var Ll=["blockquote",0],Al=["hr"],Fl=["pre",["code",0]],zl=["ol",0],jl=["ul",0],Kl=["li",0],_l=function(e){for(var t,n={},i=e.attributes,o=0;o<i.length;o++)n[(t=i[o]).name]=t.value;return n},Hl=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Wl=function(){return Hl(["style","class","id"])},Ul=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},ql=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},Gl=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},Jl=Kt({link:{attrs:Kt({},Wl(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:_l}],toDOM:function(e){return["a",ql(e.attrs),0]}}},Gl("strong"),Gl("b"),Gl("em"),Gl("i"),Gl("u"),Gl("del"),Gl("sub"),Gl("sup"),Gl("code"),{style:{attrs:Kt({},Wl()),parseDOM:[{tag:"span",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["span",ql(e.attrs),0]:["span",0]}}}),Xl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Yl=Kt({},Xl("style"),Xl("class"),Xl("id"),Xl("headers")),Zl={doc:{content:"colgroup*"},col:{attrs:Hl(["id","class","style","span"]),parseDOM:[{getAttrs:_l,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:Hl(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:_l,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},Ql=new oe({nodes:Zl,marks:{}}),ed=ya({tableGroup:"block",cellContent:"block+",cellAttributes:Yl});ed.table_row.attrs=Kt({},ed.table_row.attrs,Hl([Tt,"style","class","id"])),ed.table_row.toDOM=function(e){return["tr",ql(e.attrs),0]},ed.table_row.parseDOM=[{tag:"tr",getAttrs:_l}],ed.table.attrs=Kt({},ed.table.attrs,Hl(["style","class","id",Rt])),ed.table.toDOM=function(e){var t=Ul(e.attrs)?ql(e.attrs,Rt):{},n=null;if(e.attrs[Rt]&&!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=At(Vt(e.attrs[Rt]),Ql,{preserveWhitespace:!1}),o=Lt(i).firstChild;if(o){var r=Array.from(o.children).map((function(e){return["col",_l(e)]}));n=["colgroup",_l(o)].concat(r)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},ed.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=_l(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t[Rt]=n.outerHTML),t}}];var td=Kt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"p",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["p",ql(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"div",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["div",ql(e.attrs),0]:["div",0]}},blockquote:{attrs:Kt({},Wl()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["blockquote",ql(e.attrs),0]:Ll}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Al}},heading:{attrs:Kt({},Wl(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return Kt({},_l(e),{level:1})}},{tag:"h2",getAttrs:function(e){return Kt({},_l(e),{level:2})}},{tag:"h3",getAttrs:function(e){return Kt({},_l(e),{level:3})}},{tag:"h4",getAttrs:function(e){return Kt({},_l(e),{level:4})}},{tag:"h5",getAttrs:function(e){return Kt({},_l(e),{level:5})}},{tag:"h6",getAttrs:function(e){return Kt({},_l(e),{level:6})}}],toDOM:function(e){return Ul(e.attrs,"level")?["h"+e.attrs.level,ql(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 Fl}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Kt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Wl()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["img",ql(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:Kt({},Wl()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["br",ql(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:Kt({},Wl(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return Kt({},_l(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Ul(e.attrs,"order")?["ol",ql(e.attrs,"order"),0]:zl:["ol",Kt({},ql(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"ul",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["ul",ql(e.attrs),0]:jl}},list_item:{content:"(paragraph | heading) block*",attrs:Kt({},Wl()),parseDOM:[{tag:"li",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["li",ql(e.attrs),0]:Kl},defining:!0}},ed),nd=200,id=function(){};id.prototype.append=function(e){return e.length?(e=id.from(e),!this.length&&e||e.length<nd&&this.leafAppend(e)||this.length<nd&&e.leafPrepend(this)||this.appendInner(e)):this},id.prototype.prepend=function(e){return e.length?id.from(e).append(this):this},id.prototype.appendInner=function(e){return new rd(this,e)},id.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?id.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},id.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},id.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)},id.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},id.from=function(e){return e instanceof id?e:e&&e.length?new od(e):id.empty};var od=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 o=t;o<n;o++)if(!1===e(this.values[o],i+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],i+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=nd)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=nd)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}(id);id.empty=new od([]);var rd=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 o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),i))&&!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,i+o))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,i){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,i+o))&&!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),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}(id);const sd=id;var ad=function(e,t){this.items=e,this.eventCount=t};ad.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var i,o,r=this.items.length;;r--)if(this.items.get(r-1).selection){--r;break}t&&(i=this.remapping(r,this.items.length),o=i.maps.length);var s,a,l=e.tr,d=[],c=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(r,t+1),o=i.maps.length),o--,void c.push(e);if(i){c.push(new ld(e.map));var u,p=e.step.map(i.slice(o));p&&l.maybeStep(p).doc&&(u=l.mapping.maps[l.mapping.maps.length-1],d.push(new ld(u,null,null,d.length+c.length))),o--,u&&i.appendMap(u,o)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(o)):e.selection,a=new ad(n.items.slice(0,r).append(c.reverse().concat(d)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},ad.prototype.addTransform=function(e,t,n,i){for(var o=[],r=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null,l=0;l<e.steps.length;l++){var d,c=e.steps[l].invert(e.docs[l]),u=new ld(e.mapping.maps[l],c,t);(d=a&&a.merge(u))&&(u=d,l?o.pop():s=s.slice(0,s.length-1)),o.push(u),t&&(r++,t=null),i||(a=u)}var p,h,f,v=r-n.depth;return v>cd&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),r-=v),new ad(s.append(o),r)},ad.prototype.remapping=function(e,t){var n=new Ce;return this.items.forEach((function(t,i){var o=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,o)}),e,t),n},ad.prototype.addMaps=function(e){return 0==this.eventCount?this:new ad(this.items.append(e.map((function(e){return new ld(e)}))),this.eventCount)},ad.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-t),o=e.mapping,r=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=o.getMirror(--a);if(null!=i){r=Math.min(r,i);var l=o.maps[i];if(t.step){var d=e.steps[i].invert(e.docs[i]),c=t.selection&&t.selection.map(o.slice(a+1,i));c&&s++,n.push(new ld(l,d,c))}else n.push(new ld(l))}}),i);for(var l=[],d=t;d<r;d++)l.push(new ld(o.maps[d]));var c=this.items.slice(0,i).append(l).append(n),u=new ad(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u},ad.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},ad.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,i=[],o=0;return this.items.forEach((function(r,s){if(s>=e)i.push(r),r.selection&&o++;else if(r.step){var a=r.step.map(t.slice(n)),l=a&&a.getMap();if(n--,l&&t.appendMap(l,n),a){var d=r.selection&&r.selection.map(t.slice(n));d&&o++;var c,u=new ld(l.invert(),a,d),p=i.length-1;(c=i.length&&i[p].merge(u))?i[p]=c:i.push(u)}}else r.map&&n--}),this.items.length,0),new ad(sd.from(i.reverse()),o)},ad.empty=new ad(sd.empty,0);var ld=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};ld.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new ld(t.getMap().invert(),t,this.selection)}};var dd=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},cd=20;function ud(e){var t=[];return e.forEach((function(e,n,i,o){return t.push(i,o)})),t}function pd(e,t){if(!e)return null;for(var n=[],i=0;i<e.length;i+=2){var o=t.map(e[i],1),r=t.map(e[i+1],-1);o<=r&&n.push(o,r)}return n}function hd(e,t,n,i){var o=md(t),r=yd.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,o);if(s){var a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),r,o),d=new dd(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(yd,{redo:i,historyState:d}).scrollIntoView())}}var fd=!1,vd=null;function md(e){var t=e.plugins;if(vd!=t){fd=!1,vd=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){fd=!0;break}}return fd}function gd(e){return e.setMeta(bd,!0)}var yd=new Mt("history"),bd=new Mt("closeHistory");function kd(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new It({key:yd,state:{init:function(){return new dd(ad.empty,ad.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var o,r=n.getMeta(yd);if(r)return r.historyState;n.getMeta(bd)&&(e=new dd(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(yd))return s.getMeta(yd).redo?new dd(e.done.addTransform(n,null,i,md(t)),e.undone,ud(n.mapping.maps[n.steps.length-1]),e.prevTime):new dd(e.done,e.undone.addTransform(n,null,i,md(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new dd(e.done.rebased(n,o),e.undone.rebased(n,o),pd(e.prevRanges,n.mapping),e.prevTime):new dd(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),pd(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 o=0;o<t.length;o+=2)e<=t[o+1]&&i>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),l=s?pd(e.prevRanges,n.mapping):ud(n.mapping.maps[n.steps.length-1]);return new dd(e.done.addTransform(n,a?t.selection.getBookmark():null,i,md(t)),ad.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?wd(e.state,e.dispatch):"historyRedo"==t.inputType&&Sd(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function wd(e,t){var n=yd.getState(e);return!(!n||0==n.done.eventCount||(t&&hd(n,e,t,!1),0))}function Sd(e,t){var n=yd.getState(e);return!(!n||0==n.undone.eventCount||(t&&hd(n,e,t,!0),0))}function xd(e){var t=yd.getState(e);return t?t.done.eventCount:0}function Cd(e){var t=yd.getState(e);return t?t.undone.eventCount:0}var $d=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,i,o){var r=n;if(t[1]){var s=t[0].lastIndexOf(t[1]);r+=t[0].slice(s+t[1].length);var a=(i+=s)-o;a>0&&(r=t[0].slice(s-a,s)+r,i=o)}return e.tr.insertText(r,i,o)}):t};function Id(e){var t=e.rules,n=new It({state:{init:function(){return null},apply:function(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,o,r){return Od(e,i,o,r,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&Od(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function Od(e,t,n,i,o,r){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,d=0;d<o.length;d++){var c=o[d].match.exec(l),u=c&&o[d].handler(s,c,t-(c[0].length-i.length),n);if(u)return e.dispatch(u.setMeta(r,{transform:u,from:t,to:n,text:i})),!0}return!1}function Dd(e,t){for(var n=e.plugins,i=0;i<n.length;i++){var o=n[i],r=void 0;if(o.spec.isInputRules&&(r=o.getState(e))){if(t){for(var s=e.tr,a=r.transform,l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(r.text){var d=s.doc.resolve(r.from).marks();s.replaceWith(r.from,r.to,e.schema.text(r.text,d))}else s.delete(r.from,r.to);t(s)}return!0}}return!1}var Md=new $d(/--$/,"—"),Td=new $d(/\.\.\.$/,"…"),Rd=new $d(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Bd=new $d(/"$/,"”"),Nd=new $d(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Pd=new $d(/'$/,"’"),Ed=[Rd,Bd,Nd,Pd];function Vd(e,t,n,i){return new $d(e,(function(e,o,r,s){var a=n instanceof Function?n(o):n,l=e.tr.delete(r,s),d=l.doc.resolve(r).blockRange(),c=d&&Le(d,t,a);if(!c)return null;l.wrap(d,c);var u=l.doc.resolve(r-1).nodeBefore;return u&&u.type==t&&ze(l.doc,r-1)&&(!i||i(o,u))&&l.join(r-1),l}))}function Ld(e,t,n){return new $d(e,(function(e,i,o,r){var s=e.doc.resolve(o),a=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(o,r).setBlockType(o,o,t,a):null}))}var Ad={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},Fd={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},zd={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},jd={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},Kd={mark:"sub"},_d={mark:"sup"},Hd={mark:"link"},Wd="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ud=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=wd,n["Shift-Mod-z"]=Sd,n.Backspace=Oi(Dd,Qn,ei,ni),n.Enter=Oi(ci,hi,fi,mi),Wd||(n["Mod-y"]=Sd),e.marks.strong&&(n["Mod-b"]=nn(yn,Kt({},Ad,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=nn(yn,Kt({},Fd,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=nn(yn,Kt({},zd,{applyToWord:i}))),e.nodes.hard_break){var o=e.nodes.hard_break,r=Oi(pi,(function(e,t){return t(e.tr.replaceSelectionWith(o.create()).scrollIntoView()),!0}));n["Shift-Enter"]=r}return n},qd=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return Wn(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},Gd=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Jd=function(e){return/^MsoListParagraph/.test(e.className)},Xd=function(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Yd=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Zd=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Qd=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)):Jd(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Qd(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Qd(e.children,t)})))}}))},ec=function(e){var t,n=e.innerHTML,i=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=i(Xd(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Zd(i(Xd(e)))}:void 0},tc=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?Xd(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\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},nc=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e.replace(Gd,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Qd(t.children,n),n.forEach((function(e){return function(e){var t,n,i,o,r,s,a,l,d,c,u,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(d=e[l]).getAttribute("datalist"),datalevel:d.getAttribute("datalevel")}).datalist,g=ec(d);if(c=g&&g.tag){if(u=h.datalevel||parseFloat(d.style.marginLeft||0),h.datalevel||d.style.marginLeft){var y=c+m;v[u]||(v[u]={}),(!n||n<0)&&(n=u,i=m,o=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Yd(c,g&&g.style),d.parentNode.insertBefore(s,d),f=u,v[u][y]=s),r=o===d,p=v[u][y],(u>f||!p)&&(p=Yd(c,g&&g.style),v[u][y]=p,t.appendChild(p)),t=tc(d),p.appendChild(t),r?n=f=-1:f=u}}else!t||r&&!Jd(d)||(d.style.marginLeft&&(d.style.marginLeft=""),d.style.marginLeft&&(d.style.margin=""),t.appendChild(d))}}(e)})),t.innerHTML},ic=function(e){return(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,"")},oc=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},rc=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},sc=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ac=function(e){/^Mso/.test(e.value)&&sc(e)},lc=/\s*;\s*/,dc=/\s*:\s*/,cc=function(e){var t,n,i=e.value.split(lc).filter((function(e){return Boolean(e)})),o=e.ownerElement.style,r="";i.forEach((function(e){var i;i=e.split(dc),t=i[0],n=i[1],void 0!==o[t]&&(r+=t+": "+n+"; ")})),(r=r.trim())?e.value=r:sc(e)},uc=function(e,t){var n=e;if(t.convertMsLists&&(n=nc(n)),t.stripTags&&(n=rc(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 pc(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 hc=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,fc=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,vc=new RegExp("(?:("+fc.source+"))([\\da-fA-F\\s]+)\\}","g"),mc=/[^\da-fA-F]/g,gc=/file:\/[^'"]+\.(jpg|png|gif)/i,yc=/\\(png|jpeg)blip\\/,bc="text/rtf",kc=function(e,t){var n=e.match(hc);if(!n||-1===t.types.indexOf(bc))return e;var i=t.getData(bc),o=[],r=i.match(vc);if(!i||!r)return e;for(var s=0,a=r;s<a.length;s++){var l=a[s],d=yc.exec(l);if(d){var c=l.replace(fc,"").replace(mc,"");o.push("data:image/"+d[1]+";base64,"+pc(c))}}return n.length!==o.length?e:e.replace(hc,(function(e){var t=o.shift()||"";return e.replace(gc,t)}))},wc=function(e,t,n,i,o){var r,s,a,l,d,c,u=[],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 u;var g=h?"g":"gi",y=v?new RegExp(m,g):Dc(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(o(u))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,v,m,g){if(o(u))return!1;var b=1+h+v;if(t.isText&&b+t.nodeSize>=n){if(d=t.text||"",c=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=b?{text:d,start:b}:{text:d.slice(n-b),start:n}),c&&c.isText)return;for(s=p.map((function(e){return e.text})).join(""),r=y.exec(s);null!==r&&(a=p[0].start+r.index,l=a+r[0].length,n<=a&&i>=l&&Oc(r,f)&&u.push(dt.create(e,a,l)),!o(u));)r=y.exec(s)}else p.length=0})))})),u},Sc=function(e,t){var n=t.backward,i=t.matchCyclic,o=_t(t,["backward","matchCyclic"]),r=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=wc(s,o,0,a.from,r)).length&&i&&(l=wc(s,o,a.from,s.content.size,r)):!(l=wc(s,o,a.to,s.content.size,r)).length&&i&&(l=wc(s,o,0,a.to,r)),l.length?l[l.length-1]:null},xc=function(e,t){return wc(e,t,0,e.content.size,(function(){return!1}))},Cc=function(e,t,n){var i=e.from,o=e.to;return n.insertText(t,i,o).setSelection(dt.create(n.doc,i,i+t.length)),n},$c=function(e,t,n){var i=xc(e.doc,n);if(0===i.length)return null;for(var o=e.tr,r=i.length-1;r>=0;r--)o.insertText(t,i[r].from,i[r].to);return o},Ic=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,Oc=function(e,t){if(t){if(!0===t){var n=e.input,i=n.charAt(e.index-1),o=n.charAt(e.index+e[0].length);return Ic.test(i)&&Ic.test(o)}return t(e)}return!0},Dc=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function Mc(e){var t={class:"k-placeholder","data-placeholder":e};return new It({key:new Mt("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 Hs.empty;var o=[];return n.descendants((function(e,n){o.push(zs.node(n,n+e.nodeSize,t))})),Hs.create(n,o)}}})}var Tc=/\s+/g,Rc=/text-align/,Bc=function(){return new It({key:new Mt("spaces-fix"),props:{decorations:function(e){var t,n,i,o,r=[],s=e.doc;return s.nodesBetween(0,s.content.size,(function(e,s,a){if(e.type.isText&&function(e){return Rc.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Tc.exec(e.text||"");null!==n;){if(t=s+n.index,i=n[0].length,n.index+i<n.input.length)for(o=0;o<=i-1;o+=2)r.push(zs.inline(t+o,t+o+1,{style:"white-space: normal"}));n=Tc.exec(e.text||"")}})),Hs.create(s,r)}}})},Nc=new Mt("highlight");function Pc(e){return void 0===e&&(e=Nc),new It({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 zs.inline(e.from,e.to,e.attrs)}));return Hs.create(e.doc,t)}}})}var Ec=new Mt("image-resize"),Vc={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}},Lc=Object.keys(Vc),Ac=function(e,t,n){e.style[t]=n+"px"},Fc=/[^\-]width:|[^\-]height:/,zc=/^.+$/,jc=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(Ec);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),Kc=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new It({key:Ec,view:function(t){return{resize:function(){Ec.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,o=i.selection,r=i.schema.nodes[e.node],s=Ec.getState(i),a=s.rect;if(o instanceof ut&&r===o.node.type){var l=t.nodeDOM(o.from),d={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(o)||a&&(a.width!==d.width||a.height!==d.height||a.top!==d.top||a.left!==d.left)){var c=i.tr;c.setMeta(Ec,{rect:d,nodePosition:o.from}),t.dispatch(c),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new jc("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var o=Ec.getState(e.state);t.preventDefault();var r=e.state.tr;function s(t){!function(e,t,n){var i=Ec.getState(e.state),o=i.rect,r=i.dragging,s=i.nodePosition,a=i.activeHandle;if(r&&o){var l=e.nodeDOM(s),d=Vc[a],c=(t.clientX-r.startX)*d.x,u=(t.clientY-r.startY)*d.y,p=d.x?c+l.width:o.width,h=d.y?u+l.height:o.height;if(n.lockRatio&&d.x&&d.y){var f=Math.min(p/l.width,h/l.height),v=l.width*f,m=l.height*f;r.startX=t.clientX-(p-v)*d.x,r.startY=t.clientY-(h-m)*d.y,p=v,h=m}else r.startX=d.x?t.clientX:r.startX,r.startY=d.y?t.clientY:r.startY;Ac(l,"width",p),Ac(l,"height",h),o.top=l.offsetTop,o.left=l.offsetLeft,o.width=l.offsetWidth,o.height=l.offsetHeight;var g=l.nextElementSibling;g.style.width=o.width+"px",g.style.height=o.height+"px",g.style.top=o.top+"px",g.style.left=o.left+"px"}}(e,t,n)}return r.setMeta(Ec,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:i,rect:o.rect,nodePosition:o.nodePosition}),r.setMeta("addToHistory",!1),e.dispatch(r),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",s),function(e){var t=Ec.getState(e.state),n=t.rect,i=t.dragging,o=t.nodePosition;if(i&&n){var r=e.state.selection;if(r instanceof ut){var s=r.node.attrs,a=n.width,l=n.height,d=void 0;if(Fc.test(s.style||"")){var c=Ht(s.style,{style:"width",value:zc,newValue:a+"px"}),u=Ht(c.style||"",{style:"height",value:zc,newValue:l+"px"}).style;d=Kt({},s,{style:u})}else d=Kt({},s,{width:a,height:l});var p=r.node.type.createAndFill(d);if(p){var h=e.state.tr;h.replaceWith(o,o+1,p),h.setSelection(ut.create(h.doc,o)),h.setMeta("commandName","image-resize"),h.setMeta("args",d),h.setMeta(Ec,{setDragging:null,activeHandle:null,rect:n,nodePosition:o}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0}(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],o=Ec.getState(t).rect;if(o&&n instanceof ut&&i===n.node.type){var r=document.createElement("div");r.className="k-editor-resize-handles-wrapper",r.style.width=o.width+"px",r.style.height=o.height+"px",r.style.top=o.top+"px",r.style.left=o.left+"px";for(var s=0;s<Lc.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Lc[s],a.setAttribute("data-direction",Lc[s]),r.appendChild(a)}return Hs.create(t.doc,[zs.widget(t.selection.from+1,r)])}return Hs.empty}}})},_c=new Mt("caret-color");function Hc(){return new It({key:_c,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Hs.empty;var o=cn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!o)return Hs.empty;var r=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(r)&&s.push(zs.node(t,t+e.nodeSize,{style:"caret-color: "+o}))})),Hs.create(t,s)}}})}function Wc(e){return void 0===e&&(e={}),new It({view:function(t){return new Uc(t,e)}})}var Uc=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}}))};Uc.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)}))},Uc.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())},Uc.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Uc.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 o=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),r=n?o.bottom:o.top;n&&i&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:r-this.width/2,bottom:r+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,d=this.editorView.dom.offsetParent;if(this.element||(this.element=d.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),!d||d==document.body&&"static"==getComputedStyle(d).position)a=-pageXOffset,l=-pageYOffset;else{var c=d.getBoundingClientRect();a=c.left-d.scrollLeft,l=c.top-d.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"},Uc.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Uc.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,o="function"==typeof i?i(this.editorView,t):i;if(t&&!o){var r=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(r=He(this.editorView.state.doc,r,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(r),this.scheduleRemoval(5e3)}}},Uc.prototype.dragend=function(){this.scheduleRemoval(20)},Uc.prototype.drop=function(){this.scheduleRemoval(20)},Uc.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var qc=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 o=n.resolve(i.map(this.head));return t.valid(o)?new t(o):e.near(o)},t.prototype.content=function(){return f.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 Gc(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 o=i.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.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 o=i.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.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 o=e.pos,r=null,s=e.depth;;s--){var a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){r=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;o+=n;var l=e.doc.resolve(o);if(t.valid(l))return l}for(;;){var d=n>0?r.firstChild:r.lastChild;if(!d){if(r.isAtom&&!r.isText&&!ut.isSelectable(r)){e=e.doc.resolve(o+r.nodeSize*n),i=!1;continue e}break}r=d,o+=n;var c=e.doc.resolve(o);if(t.valid(c))return c}return null}},t}(st);qc.prototype.visible=!1,st.jsonID("gapcursor",qc);var Gc=function(e){this.pos=e};Gc.prototype.map=function(e){return new Gc(e.map(this.pos))},Gc.prototype.resolve=function(e){var t=e.resolve(this.pos);return qc.valid(t)?new qc(t):st.near(t)};var Jc=function(){return new It({props:{decorations:Qc,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&qc.valid(n))return new qc(n)},handleClick:Zc,handleKeyDown:Xc}})},Xc=mo({ArrowLeft:Yc("horiz",-1),ArrowRight:Yc("horiz",1),ArrowUp:Yc("vert",-1),ArrowDown:Yc("vert",1)});function Yc(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,o){var r=e.selection,s=t>0?r.$to:r.$from,a=r.empty;if(r instanceof dt){if(!o.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=qc.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new qc(l))),!0)}}function Zc(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!qc.valid(i))return!1;var o=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(o>-1&&ut.isSelectable(e.state.doc.nodeAt(o))||(e.dispatch(e.state.tr.setSelection(new qc(i))),0))}function Qc(e){if(!(e.selection instanceof qc))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Hs.create(e.doc,[zs.widget(e.selection.head,t,{key:"gapcursor"})])}var eu=function(e,t,n){for(var i,o=e.table,r=e.table_row,s=e.table_cell,a=[],l=0;l<t+1;l++){i=[];for(var d=0;d<n+1;d++)i.push(s.createAndFill());a.push(r.createAndFill(void 0,i))}return o.createAndFill(void 0,a)},tu=function(e,t){for(var n=e.$head,i=n.depth;i>0;i--){var o=n.node(i);if(o.type.name===t)return{pos:n.before(i),node:o}}return null},nu=function(e,t){var n=t&&function(e){var n,i=tu(e.selection,"table_row"),o=tu(e.selection,"table");if(i&&o&&i.node.attrs[Tt]){for(var r=0,s=0;s<o.node.nodeSize;s++)if(o.node.child(s).eq(i.node)){r=s;break}var a=o.node.child(r-1),l=i.pos-a.nodeSize;e.setNodeMarkup(l,void 0,((n={})[Tt]=i.node.attrs[Tt],n))}return t(e)};return ul(e,n)},iu=function(e,t){return pl(e,t&&function(e){var n,i=tu(e.selection,"table_row");if(i&&i.node.attrs[Tt]){var o=i.pos+i.node.nodeSize;e.setNodeMarkup(o,void 0,((n={})[Tt]=i.node.attrs[Tt],n))}return t(e)})}},961:(e,t,n)=>{n.r(t),n.d(t,{Checkbox:()=>ii,CheckboxVue2:()=>ni,ColorGradient:()=>it,ColorPalette:()=>O,ColorPicker:()=>wt,ColorPickerVue2:()=>kt,FlatColorPicker:()=>vt,FlatColorPickerVue2:()=>ft,Input:()=>te,InputSeparator:()=>Bt,InputSeparatorVue2:()=>Rt,InputVue2:()=>ee,MaskedTextBox:()=>On,MaskedTextBoxVue2:()=>In,NumericTextBox:()=>ln,NumericTextBoxVue2:()=>an,RadioButton:()=>di,RadioButtonVue2:()=>li,RadioGroup:()=>vi,RadioGroupVue2:()=>fi,RangeSlider:()=>Xn,RangeSliderVue2:()=>Jn,SLIDER_LABEL_ATTRIBUTE:()=>Bn,Slider:()=>jn,SliderLabel:()=>Pn,SliderLabelVue2:()=>Nn,SliderVue2:()=>zn,Switch:()=>It,SwitchVue2:()=>$t,TextArea:()=>wi,TextAreaVue2:()=>ki});var i,o,r,s=n(1895),a=n(7984),l={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123858,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=function(e){return null!=e},c=function(e,t,n){return!d(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(4407),p=function(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!0),-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '".concat(t,"'. The available options are 'hex' or 'rgba'."));if(d(e)){var o=(0,u.parseColor)(e.trim(),i);if(d(o))return"hex"===t?h(o,n):o.toCssRgba()}},h=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},f=function(e,t){void 0===t&&(t=!0);var n=(0,u.parseColor)(e,t);return d(n)?n.toHSV():{}},v=function(e,t){void 0===t&&(t=!0);var n=(0,u.parseColor)(e,t);return d(n)?n.toBytes():{}},m=function(e){var t=c(e.h,0,359.9),n=c(e.s,0,1),i=c(e.v,0,1),o=c(e.a,0,1);return u.Color.fromHSV(t,n,i,o).toCssRgba()},g=function(e){return m({h:e,s:1,v:1,a:1})},y=function(e,t){var n=c(e.r,0,255),i=c(e.g,0,255),o=c(e.b,0,255),r=c(e.a,0,1),s=c(t.r,0,255),a=c(t.g,0,255),l=c(t.b,0,255);return{r:Math.round((1-r)*s+r*n),g:Math.round((1-r)*a+r*i),b:Math.round((1-r)*l+r*o)}},b=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},k=function(e,t){return n=b(y(e,t)),i=b(y(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},w=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],d(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.isInColors=function(e,t){return e.some((function(e){return e===t}))},e.prototype.getCellCoordsFor=function(e){if(d(e)){var t=e?(0,u.parseColor)(e,!0):e,n=[e];d(t)&&n.push(t.toCss(),t.toCssRgba());for(var i=0;i<this.colorRows.length;i++)for(var o=0;o<this.colorRows[i].length;o++)if(this.isInColors(n,this.colorRows[i][o]))return{row:i,col:o}}},e.prototype.getColorAt=function(e){if(d(e)&&d(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(d(e)&&d(e.row)&&d(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}(),S={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}},x=s,C=x.h,$=x.version&&"3"===x.version[0],I="office",O={name:"KendoColorPalette",model:{event:"changemodel"},emits:{keydown:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,change:null},props:{palette:{type:[String,Array],default:I},columns:Number,tileSize:{type:[Number,Object],default:24},modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){(0,a.validatePackage)(l),this.guid=(0,a.guid)()},mounted:function(){this.wrapper=(0,a.getRef)(this,"wrapper")},updated:function(){this.wrapper=(0,a.getRef)(this,"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.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:this.$props.value,currentValue:void 0}},setup:$?function(){return{v3:!!$}}:void 0,render:function(e){var t=C||e,n=this.getPaletteInfo(),i=this.paletteService=new w;i.setColorMatrix(n.colors,n.columns);var o=i.getCellCoordsFor(this.selectedColor),r=i.getCellCoordsFor(this.focusedColor),s=(0,a.classNames)("k-colorpalette",{"k-disabled":this.$props.disabled}),l=function(e,n,i,o){var r=void 0!==i&&i.row===n,s=i&&i.col,l=void 0!==o&&o.row===n,d=o&&o.col,c="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},u=c.width+"px",p=c.height+"px";return e.map((function(e,i){var o=this,c=r&&s===i,h=(0,a.classNames)("k-colorpalette-tile",{"k-selected":c,"k-focus":l&&d===i});return t("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!c||!!this.$props.disabled&&void 0,id:this.createCellId({row:n,col:i}),role:"gridcell"},"aria-selected":!!c||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:u,height:p,minWidth:u},onClick:function(t){return o.onColorClick(e,t)},on:this.v3?void 0:{click:function(t){return o.onColorClick(e,t)}},id:this.createCellId({row:n,col:i}),key:i,role:"gridcell"})}),this)};return n.colors.length?t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":r&&this.createCellId(r),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:s,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":r&&this.createCellId(r),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:(0,a.setRef)(this,"wrapper")},[t("div",{class:"k-colorpalette-table-wrap"},[t("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[t("tbody",[function(e,n,i){return e.map((function(e,o){return t("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:o},[l.call(this,e,o,n,i)])}),this)}.call(this,i.colorRows,o,r)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(e,0,1);break;case a.Keys.up:this.handleCellNavigation(e,0,-1);break;case a.Keys.right:this.handleCellNavigation(e,1,0);break;case a.Keys.left:this.handleCellNavigation(e,-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}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,n){if(e.preventDefault(),this.focusedColorCooridanates){var i=this.paletteService.getNextCell(this.focusedColorCooridanates,t,n);this.focusedColor=this.paletteService.getColorAt(i)}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){var n=p(e,"rgba");this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("update:modelRgbaValue",n),this.$emit("change",{event:t,component:this,value:e,rgbaValue:n})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=S[this.$props.palette];return d(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"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)}}},D={},M={opacity:!0},T={palette:I,tileSize:24},R="labels.optional",B=((i={})[R]="(Optional)",i),N=n(5725),P={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123828,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"},E=s,V=E.h,L=E.version&&"3"===E.version[0],A=E.inject,F={name:"KendoLabel",props:{id:String,editorId:String,editorRef:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,optional:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(P)},computed:{labelClassName:function(){return{"k-label":!0,"k-label-empty":!this.defaultSlots,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":!0===this.$props.editorDisabled}}},methods:{onLabelClick:function(e){if(this.$props.editorRef&&this.$props.editorRef.current&&!this.$props.editorDisabled){this.$props.editorRef.current.focus&&(e.preventDefault(),this.$props.editorRef.current.focus());var t=this.$props.editorRef.current.actionElement;t&&(e.preventDefault(),t.click())}}},setup:L?function(){return{v3:!!L,kendoLocalizationService:A("kendoLocalizationService",{})}}:void 0,render:function(e){var t=V||e;this.defaultSlots=(0,a.getDefaultSlots)(this);var n=(0,N.provideLocalizationService)(this),i=this.$props,o=i.id,r=i.editorId,s=i.optional?n.toLanguageString(R,B[R]):"",l=s&&t("span",{class:"k-label-optional"},[s]);return t("label",{id:o,attrs:this.v3?void 0:{id:o,for:r},for:r,onClick:this.onLabelClick,on:this.v3?void 0:{click:this.onLabelClick},class:this.labelClassName},[this.defaultSlots,l])}},z=F,j=s,K=(j.h,j.version&&j.version[0],s),_=(K.h,K.version&&K.version[0],s),H=_.h,W=_.version&&"3"===_.version[0],U=_.inject,q={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(){(0,a.validatePackage)(P)},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:W?function(){return{v3:!!W,kendoLocalizationService:U("kendoLocalizationService",{})}}:void 0,render:function(e){var t=H||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.label,r=i.editorId,s=i.id,l=i.optional,d=(0,N.provideLocalizationService)(this),c=l?d.toLanguageString(R,B[R]):"",u=c&&t("span",{class:"k-label-optional"},[c]);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,o?r?t("label",{id:s,attrs:this.v3?void 0:{id:s,for:r},for:r,class:this.labelClassNames},[o,u]):t("span",{id:s,attrs:this.v3?void 0:{id:s},class:this.labelClassNames},[o,u]):null])}},G=q,J=function(){return J=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)},X=s,Y=X.h,Z=X.version&&"3"===X.version[0],Q=X.ref,ee={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:a.templateDefinition,inputSuffix:a.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){(0,a.validatePackage)(l),this._input=void 0,this._inputId=(0,a.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:Z?function(){return{v3:!!Z,inputRef:Q(null)}}:void 0,render:function(e){var t=this,n=Y||e,i=!this.$props.validityStyles||this.validity().valid,o=this.$props,r=o.label,s=o.id,l=o.required,d=o.iconName,c=o.showValidationIcon,u=o.showLoadingIcon,p=o.showClearButton,h=o.tabIndex,f=s||this._inputId,v=n("input",J(J({domProps:this.v3?null:J(J({},this.$attrs),{placeholder:this.$props.placeholder,id:f,required:l,value:this.computedValue}),attrs:this.v3?void 0:J(J({},this.$attrs),{tabindex:h})},this.$attrs),{placeholder:this.$props.placeholder,id:f,tabindex: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})),m=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),g=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),y=a.getTemplate.call(this,{h:n,template:m,additionalProps:{value:this.computedValue,valid:i}}),b=a.getTemplate.call(this,{h:n,template:g,additionalProps:{value:this.computedValue,valid:i}}),k=n("span",{class:this.inputWrapperClass()},[d&&n("span",{class:"k-input-icon k-icon k-i-".concat(d)}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[y]),v,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[b]),c&&i&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),c&&!i&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),u&&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 r?n(G,{label:r,attrs:this.v3?void 0:{label:r,editorId:f,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:f,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[k]}:[k]):k},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 J(J({},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,o=t.rounded,r=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!r,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}}}},te=ee,ne=s,ie=ne.h,oe=ne.version&&"3"===ne.version[0],re={name:"KendoHexInput",emits:{hexchange:null,blur:null,focus:null},props:{tabIndex:Number,hex:String,disabled:Boolean},computed:{isHexValid:function(){return!!p(this.currentHex,"rgba")}},data:function(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted:function(){this._input=this.$refs.input._input},setup:oe?function(){return{v3:!!oe}}:void 0,watch:{hex:function(e){this.currentHex=e}},render:function(e){return(ie||e)(te,{value:this.currentHex,attrs:this.v3?void 0:{value:this.currentHex,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex},onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,change:this.onChange,focus:this.onFocus,blur:this.onBlur},onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex,ref:"input"})},methods:{onChange:function(e){var t=e.target.value,n=p(t,"rgba");this.currentHex=t,d(n)&&this.$emit("hexchange",{hex:t,value:n,event:e})},onBlur:function(e){d(p(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)}}},se=n(1536),ae="numerictextbox.increment",le="numerictextbox.decrement",de="slider.increment",ce="slider.decrement",ue="slider.dragTitle",pe="colorGradient.dragHandle",he="colorGradient.r",fe="colorGradient.g",ve="colorGradient.b",me="colorGradient.a",ge="colorGradient.hex",ye="colorGradient.inputColorButton",be="colorGradient.rLabel",ke="colorGradient.gLabel",we="colorGradient.bLabel",Se="colorGradient.aLabel",xe="colorGradient.contrastRatio",Ce="colorGradient.colorGradientAALevel",$e="colorGradient.colorGradientAAALevel",Ie="colorGradient.colorGradientPass",Oe="colorGradient.colorGradientFail",De="flatColorPicker.cancelBtn",Me="flatColorPicker.applyBtn",Te="flatColorPicker.gradientBtn",Re="flatColorPicker.paletterBtn",Be="flatColorPicker.clearBtn",Ne="checkbox.validation",Pe="checkbox.optionalText",Ee="switch.validation",Ve=((o={})[ae]="Increase value",o[le]="Decrease value",o["slider.increment"]="Increase",o["slider.decrement"]="Decrease",o[ue]="Drag",o[pe]="Color well with two-dimensional slider for selecting\n saturation and lightness. Selected color is",o[ye]="Change the color input",o[he]="r",o[he]="r",o[fe]="g",o[ve]="b",o[me]="a",o[be]="red chanel",o[ke]="green chanel",o[we]="blue chanel",o[Se]="alpha chanel",o[ge]="hex",o[xe]="Contrast ratio",o[Ce]="AA",o[$e]="AAA",o[Ie]="Pass",o[Oe]="Fail",o[De]="Cancel",o[Me]="Apply",o[Te]="Gradient",o[Re]="Palette",o[Be]="Clear",o[Ne]="Please check this box if you want to proceed!",o[Pe]="(Optional)",o["radioButton.validation"]="Please select option if you want to proceed!",o[Ee]="Please turn on if you want to proceed!",o["colorPicker.dropdownButtonAriaLabel"]="Select",o),Le=function(){return Le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Le.apply(this,arguments)},Ae=s,Fe=Ae.h,ze=Ae.version&&"3"===Ae.version[0],je=["rgba","rgb","hex"],Ke={name:"KendoColorInput",emits:{hexchange:null,rgbachange:null},props:{tabIndex:Number,rgba:{type:Object,default:function(){return{}}},hex:String,opacity:Boolean,disabled:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){this.hexInputId=(0,a.guid)()},data:function(){return{inputMode:je[1]}},mounted:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},updated:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},setup:ze?function(){return{v3:!!ze}}:void 0,render:function(e){var t=Fe||e,n=(0,N.provideLocalizationService)(this),i=n.toLanguageString(ge,Ve[ge]),o=n.toLanguageString(ye,Ve[ye]),r=n.toLanguageString(he,Ve[he]),s=n.toLanguageString(fe,Ve[fe]),a=n.toLanguageString(ve,Ve[ve]),l=n.toLanguageString(me,Ve[me]),d=n.toLanguageString(be,Ve[be]),c=n.toLanguageString(ke,Ve[ke]),u=n.toLanguageString(we,Ve[we]),p=n.toLanguageString(Se,Ve[Se]);return t("div",{class:"k-colorgradient-inputs k-hstack"},[t("div",{class:"k-vstack"},[t(se.Button,{ariaLabel:o,attrs:this.v3?void 0:{ariaLabel:o,tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi"},tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi",class:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange,on:this.v3?void 0:{click:this.onToggleModeChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})]),"hex"===this.inputMode&&t("div",{class:"k-vstack k-flex-1"},[t("span",{class:"k-hex-value"},[t(re,{id:this.hexInputId,attrs:this.v3?void 0:{id:this.hexInputId,tabIndex:this.tabIndex,hex:this.$props.hex,disabled:this.$props.disabled},tabIndex:this.tabIndex,hex:this.$props.hex,onHexchange:this.onHexChange,on:this.v3?void 0:{hexchange:this.onHexChange},disabled:this.$props.disabled,ref:"hexinput"})]),t(z,{class:"k-colorgradient-input-label",for:this.hexInputId,attrs:this.v3?void 0:{for:this.hexInputId}},this.v3?function(){return[i]}:[i])]),("rgb"===this.inputMode||"rgba"===this.inputMode)&&[t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,disabled:this.$props.disabled},value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,onChange:this.onRgbaRChange,on:this.v3?void 0:{change:this.onRgbaRChange},disabled:this.$props.disabled}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[r]}:[r])]),t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,disabled:this.$props.disabled},value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,onChange:this.onRgbaGChange,on:this.v3?void 0:{change:this.onRgbaGChange},disabled:this.$props.disabled}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[s]}:[s])]),t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:u,disabled:this.$props.disabled},value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:u,onChange:this.onRgbaBChange,on:this.v3?void 0:{change:this.onRgbaBChange},disabled:this.$props.disabled,ref:"numericb"}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[a]}:[a])])],"rgba"===this.inputMode&&t("div",{class:"k-vstack"},[this.$props.opacity&&t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:p,disabled:this.$props.disabled},value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:p,onChange:this.onRgbaAChange,on:this.v3?void 0:{change:this.onRgbaAChange},disabled:this.$props.disabled,ref:"numerica"}),this.$props.opacity&&t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[l]}:[l])])])},methods:{onHexChange:function(e){this.$emit("hexchange",e.hex,e.value,e)},onRgbaRChange:function(e){this.dispatchRgbaChange({r:e.value},e)},onRgbaGChange:function(e){this.dispatchRgbaChange({g:e.value},e)},onRgbaBChange:function(e){this.dispatchRgbaChange({b:e.value},e)},onRgbaAChange:function(e){this.dispatchRgbaChange({a:e.value},e)},dispatchRgbaChange:function(e,t){var n=Le({},this.$props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.$emit("rgbachange",n,t)},onToggleModeChange:function(){var e=je.length-1===je.indexOf(this.inputMode)?0:je.indexOf(this.inputMode)+1;if(this.$props.opacity)this.inputMode=je[e];else{var t="rgba"===je[e]?e+1:e;this.inputMode=je[t]}},onKeyDown:function(e){e.keyCode===a.Keys.enter&&e.stopPropagation()}}},_e=s,He=_e.h,We=_e.version&&"3"===_e.version[0],Ue={name:"KendoColorContrastLabels",props:{bgColor:Object,rgba:Object},inject:{kendoLocalizationService:{default:null}},setup:We?function(){return{v3:!!We}}:void 0,render:function(e){var t=He||e,n=(0,N.provideLocalizationService)(this),i=n.toLanguageString(xe,Ve[xe]),o=n.toLanguageString(Ce,Ve[Ce]),r=n.toLanguageString($e,Ve[$e]),s=n.toLanguageString(Ie,Ve[Ie]),a=n.toLanguageString(Oe,Ve[Oe]),l=k(this.$props.rgba,this.$props.bgColor),d=4.5.toFixed(1),c=7..toFixed(1),u="".concat(i,": ").concat(l.toFixed(2)),p="".concat(o,": ").concat(d),h="".concat(r,": ").concat(c),f=l>=4.5,v=l>=7,m=t("span",{key:1,class:"k-contrast-validation k-text-success"},[s," ",t("span",{class:"k-icon k-i-check"})]),g=t("span",{key:2,class:"k-contrast-validation k-text-error"},[a," ",t("span",{class:"k-icon k-i-close"})]);return t("div",{class:"k-vbox k-colorgradient-color-contrast"},[t("div",{class:"k-contrast-ratio"},[t("span",{class:"k-contrast-ratio-text"},[u]),f?t("span",{class:"k-contrast-validation k-text-success"},[t("span",{class:"k-icon k-i-check"}),v&&t("span",{class:"k-icon k-i-check"})]):t("span",{class:"k-contrast-validation k-text-error"},[t("span",{class:"k-icon k-i-close"})])]),t("div",[t("span",[p]),f?m:g]),t("div",[t("span",[h]),v?m:g])])}},qe=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},Ge=s,Je=Ge.h,Xe=Ge.version&&"3"===Ge.version[0],Ye={name:"KendoColorContrastSvg",props:{metrics:Object,backgroundColor:String,hsva:Object},setup:Xe?function(){return{v3:!!Xe}}:void 0,render:function(e){var t,n,i=this,o=Je||e,r=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,i,o){return 0===i?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,i,o))}),"");return o("path",{d:n,attrs:this.v3?void 0:{d:n,fill:"none",stroke:"white","stroke-width":"1"},fill:"none",stroke:"white","stroke-width":"1"})},s=this.$props.metrics,a=function e(t,n,o,r,a){var l=(o+r)/2,d=Object.assign({},i.$props.hsva,{s:n/s.width,v:1-l/s.height}),c=k(v(m(d)),v(i.$props.backgroundColor||""));return o+.5>r?c<t+1&&c>t-1?l:null:a(c,t)?e(t,n,o,r-(r-o)/2,a):e(t,n,o+(r-o)/2,r,a)},l=function(e,t,n){void 0===n&&(n=!1);for(var i=[],o=0;o<=s.width;o+=s.width/t){var r=a(e,o,0,s.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==r&&i.push([o,r])}return i},d=(n=qe,t=function(e,t,i,o){var r=n(t||e,i||e),s=r.angle+(o?Math.PI:0),a=.1*r.length;return[e[0]+Math.cos(s)*a,e[1]+Math.sin(s)*a]},function(e,n,i){var o=t(i[n-1],i[n-2],e),r=o[0],s=o[1],a=t(e,i[n-1],i[n+1],!0),l=a[0],d=a[1];return"C ".concat(r,",").concat(s," ").concat(l,",").concat(d," ").concat(e[0],",").concat(e[1])});return o("svg",{xmlns:"http://www.w3.org/2000/svg",attrs:this.v3?void 0:{xmlns:"http://www.w3.org/2000/svg"},class:"k-color-contrast-svg",style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}},[r.call(this,l(4.5,16),d),r.call(this,l(4.5,16,!0),d),r.call(this,l(7,16),d),r.call(this,l(7,16,!0),d)])}},Ze=Ye,Qe=s,et=Qe.h,tt=Qe.version&&"3"===Qe.version[0],nt="rgba(255, 255, 255, 1)",it={name:"KendoColorGradient",model:{event:"changemodel"},emits:{change:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,keydown:null},inject:{kendoLocalizationService:{default:null}},props:{modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,opacity:{type:Boolean,default:!0},backgroundColor:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,innerTabIndex:{type:Number,default:void 0}},created:function(){(0,a.validatePackage)(l),this.guid=(0,a.guid)()},computed:{valueSet:function(){return this.value||this.modelValue||this.modelRgbaValue},computedValue:function(){var e=this.valueSet||this.currentValue||this.defaultValue||p(nt,"rgba");return d(p(e,"hex",this.opacity))||(e=nt),e},hsva:function(){return this.valueSet?f(this.computedValue):this.currentHsva||f(this.computedValue)},rgba:function(){return this.valueSet?v(this.computedValue):this.currentRgba},hex:function(){return this.valueSet?p(this.computedValue,"hex",this.opacity):this.currentHex},computedBgColor:function(){return this.currentBgColor||g(this.hsva.h)},computedTabIndex:function(){return void 0!==this.innerTabIndex?this.innerTabIndex:this.focused?0:-1}},data:function(){return{currentValue:void 0,currentBgColor:void 0,isFirstRender:!0,currentHsva:void 0,currentRgba:void 0,currentHex:void 0,focused:!1}},mounted:function(){this.setAlphaSliderBackground(this.computedBgColor),this.$el&&(this.draggable=this.$refs.draggable,this.gradientWrapper=this.draggable&&this.draggable.element),this.alphaSlider=this.v3?this.alphaSliderRef:this.$refs.alphaSlider,this.isFirstRender&&(this.isFirstRender=!1)},destroyed:function(){var e;e=this.guid,delete D[e]},updated:function(){this.setAlphaSliderBackground(this.computedBgColor)},setup:tt?function(){return{v3:!!tt}}:void 0,render:function(e){var t=this,n=this,i=et||e,o=(0,a.classNames)("k-colorgradient",{"k-disabled":this.$props.disabled}),r=(0,N.provideLocalizationService)(this).toLanguageString(pe,Ve[pe]),s=function(){var e={};if(!this.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.hsva.v)*t.height,o=this.hsva.s*t.width;e.top="".concat(n,"px"),e.left="".concat(o,"px")}return i("div",{class:"k-hsv-draghandle k-draghandle",role:"slider",attrs:this.v3?void 0:{role:"slider","aria-label":r+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex},"aria-label":r+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex,onKeydown:this.dragKeyDown,on:this.v3?void 0:{keydown:this.dragKeyDown},style:e,ref:(0,a.setRef)(this,"draghandle")})};return i("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},class:o,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onKeydown:this.onKeyDownHandler},[i("div",{class:"k-colorgradient-canvas k-hstack"},[i("div",{class:"k-hsv-rectangle",style:{background:this.computedBgColor}},[i(a.Draggable,{onDrag:this.onDrag,on:this.v3?void 0:{drag:this.onDrag,release:this.onRelease},onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[s.call(t)])]}:[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[s.call(t)])]),this.backgroundColor&&!this.isFirstRender&&i(Ze,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,attrs:this.v3?void 0:{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.hsva,backgroundColor:this.backgroundColor},hsva:this.hsva,backgroundColor:this.backgroundColor})]),i("div",{class:"k-hsv-controls k-hstack"},[i(jn,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,disabled:this.$props.disabled},value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,on:this.v3?void 0:{change:this.onHueSliderChange},class:"k-hue-slider k-colorgradient-slider",disabled:this.$props.disabled}),this.$props.opacity&&i(jn,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:d(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,disabled:this.$props.disabled},value:d(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,on:this.v3?void 0:{change:this.onAlphaSliderChange},class:"k-alpha-slider k-colorgradient-slider",disabled:this.$props.disabled,ref:this.v3?function(e){n.alphaSliderRef=e}:"alphaSlider"})])]),i(Ke,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,rgba:this.rgba,hex:this.hex,opacity:this.$props.opacity,disabled:this.$props.disabled},rgba:this.rgba,onRgbachange:this.onRgbaChange,on:this.v3?void 0:{rgbachange:this.onRgbaChange,hexchange:this.onHexChange},hex:this.hex,onHexchange:this.onHexChange,opacity:this.$props.opacity,disabled:this.$props.disabled,ref:"colorInput"}),this.backgroundColor&&i(Ue,{bgColor:v(this.backgroundColor),attrs:this.v3?void 0:{bgColor:v(this.backgroundColor),rgba:this.rgba},rgba:this.rgba})])},methods:{onKeyDownHandler:function(e){var t=this.$el;void 0===this.innerTabIndex&&(this.focused=(0,a.focusContainer)(e,t)),this.$emit("keydown",e)},onHexChange:function(e,t,n){var i=v(t),o=f(t);this.currentHsva=o,this.currentBgColor=g(o.h),this.currentRgba=i,this.currentHex=e,this.dispatchChangeEvent(t,n.event,e,t)},onRgbaChange:function(e,t){var n=function(e){var t=c(e.r,0,255),n=c(e.g,0,255),i=c(e.b,0,255),o=c(e.a,0,1);return u.Color.fromBytes(t,n,i,o).toCssRgba()}(e),i=p(n,"hex",this.opacity),o=f(n);this.currentHsva=o,this.currentBgColor=g(o.h),this.currentRgba=e,this.currentHex=i,this.dispatchChangeEvent(n,t.event,i,n)},onAlphaSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{a:e.value/100}),e.event)},onHueSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{h:e.value}),e.event)},onDrag:function(e){this.gradientWrapper.classList.add("k-dragging"),this.changePosition(e)},onRelease:function(){this.gradientWrapper.classList.remove("k-dragging")},onGradientWrapperClick:function(e){this.firstFocusable=(0,a.getRef)(this,"draghandle"),this.firstFocusable.focus(),this.changePosition(e)},move:function(e,t,n){var i=this.hsva;i[t]+=n*(e.shiftKey?.01:.05),i[t]<0&&(i[t]=0),i[t]>1&&(i[t]=1),e.preventDefault(),this.handleHsvaChange(i,e)},dragKeyDown:function(e){switch(e.keyCode){case a.Keys.left:this.move(e,"s",-1);break;case a.Keys.right:this.move(e,"s",1);break;case a.Keys.up:this.move(e,"v",1);break;case a.Keys.down:this.move(e,"v",-1);case a.Keys.enter:case a.Keys.esc:}},changePosition:function(e){var t=this.getGradientRectMetrics(),n=e.clientX-t.left,i=e.clientY-t.top,o=c(n,0,t.width),r=c(i,0,t.height),s=Object.assign({},this.hsva,{s:o/t.width,v:1-r/t.height});this.handleHsvaChange(s,e,e.event)},handleHsvaChange:function(e,t){var n=m(e),i=p(n,"hex",this.opacity),o=p(n,"rgba");this.currentHsva=e,this.currentBgColor=g(e.h),this.currentRgba=v(n),this.currentHex=i,this.dispatchChangeEvent(n,t,i,o)},dispatchChangeEvent:function(e,t,n,i){this.currentValue=e,this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",i),this.$emit("update:modelValue",n),this.$emit("change",{event:t,target:this,value:n,rgbaValue:i})},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},setAlphaSliderBackground:function(e){this.$props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, ".concat(e,")"))},getGradientRectMetrics:function(){var e=this.gradientWrapper.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}},focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,a.focusFirstFocusableChild)(e.$el)}),1)}}},ot=n(3266),rt=s,st=rt.h,at=rt.version&&"3"===rt.version[0],lt={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String,id: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:at?function(){return{v3:!!at}}:void 0,render:function(e){var t=st||e,n=(0,a.getDefaultSlots)(this),i=this.$props.popupSettings,o=i.popupClass,r=i.appendTo,s=i.animate,l=i.className;return t(ot.Popup,{id:this.id,attrs:this.v3?void 0:{id:this.id,anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,appendTo:r,animate:s,popupClass:o},anchor:this.$props.popupAnchor,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,appendTo:r,animate:s,popupClass:o,class:(0,a.classNames)("k-reset",l)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}},dt=lt,ct=function(){return ct=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ct.apply(this,arguments)},ut=s,pt=ut.h,ht=ut.version&&"3"===ut.version[0],ft={name:"KendoFlatColorPicker",emits:{viewchange:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,focus:null,blur:null,focusout:null,keydown:null,change:null},props:{modelValue:String,modelRgbaValue:String,value:String,prevValue:String,tabIndex:Number,disabled:Boolean,view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},gradientSettings:{type:Object,default:function(){return M}},paletteSettings:{type:Object,default:function(){return T}}},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(l)},computed:{isColorGradient:function(){return"combo"!==this.view?"gradient"===this.view:void 0!==this.selectedView?0===this.selectedView:"gradient"===this.currentView},computedColor:function(){return void 0!==this.value?this.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:this.colorValue},computedPrevColor:function(){return void 0!==this.prevValue?this.prevValue:this.currentPrevColor},previewClass:function(){return{"k-coloreditor-preview-color":!0,"k-color-preview":!0,"k-no-color":!this.colorValue}},currentClass:function(){return{"k-coloreditor-current-color":!0,"k-color-preview":!0,"k-no-color":!this.computedPrevColor}},computedTabIndex:function(){return this.focused?0:-1}},data:function(){var e=this.value||this.defaultValue||this.modelValue||this.modelRgbaValue;return{currentView:"gradient",colorValue:e,currentPrevColor:e,focused:!1}},setup:ht?function(){return{v3:!!ht}}:void 0,render:function(e){var t=this,n=this,i=pt||e,o=(0,N.provideLocalizationService)(this),r=o.toLanguageString(Te,Ve[Te]),s=o.toLanguageString(Re,Ve[Re]),l=o.toLanguageString(Be,Ve[Be]),d=o.toLanguageString(De,Ve[De]),c=o.toLanguageString(Me,Ve[Me]),u=a.templateRendering.call(this,this.$props.header,a.getListeners.call(this)),p=a.templateRendering.call(this,this.$props.footer,a.getListeners.call(this)),h=a.getTemplate.call(this,{h:i,template:u}),f=a.getTemplate.call(this,{h:i,template:p});return i("div",{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),attrs:this.v3?void 0:{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-disabled":this.$props.disabled},onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,focusout:this.onFocusout,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onFocusout:this.onFocusout,onKeydown:this.onKeyDownHandler,class:(0,a.classNames)("k-flatcolorpicker k-coloreditor",{"k-disabled":this.$props.disabled}),"aria-disabled":this.$props.disabled},[h,this.$props.showClearButton&&this.$props.showPreview&&i("div",{class:"k-coloreditor-header k-hstack"},["combo"===this.$props.view&&i("div",{class:"k-coloreditor-header-actions k-hstack"},[i(se.ButtonGroup,this.v3?function(){return[i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:r},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:r,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:s},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:s,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])]}:[i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:r},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:r,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:s},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:s,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])])]),i("div",{class:"k-spacer"}),i("div",{class:"k-coloreditor-header-actions k-hstack"},[this.$props.showClearButton&&i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button",fillMode:"flat",ariaLabel:l},type:"button",fillMode:"flat",ariaLabel:l,onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleResetColor},onClick:this.handleResetColor},this.v3?function(){return[i("span",{class:"k-icon k-i-reset-color"})]}:[i("span",{class:"k-icon k-i-reset-color"})]),this.$props.showPreview&&i("div",{class:"k-coloreditor-preview k-vstack"},[i("span",{class:this.previewClass,style:{background:this.colorValue}},[!this.colorValue&&i("span",{class:"k-color-preview-mask"})]),i("span",{class:this.currentClass,style:{background:this.computedPrevColor},onClick:this.handlePrevColorClick,on:this.v3?void 0:{click:this.handlePrevColorClick}},[!this.computedPrevColor&&i("span",{class:"k-color-preview-mask"})])])])]),i("div",{class:"k-coloreditor-views k-vstack"},[this.isColorGradient?function(){return i(it,ct({attrs:this.v3?void 0:ct({tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex},this.gradientSettings),ref:(0,a.setRef)(this,"gradient"),tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex,onChange:this.handleColorChange,onKeydown:this.innerKeyDown,on:this.v3?void 0:{change:this.handleColorChange,keydown:this.innerKeyDown}},this.gradientSettings))}.call(this):function(){return i(O,ct({on:this.v3?void 0:{change:this.handlePaletteColorChange,keydown:this.gradientKeyDown},ref:(0,a.setRef)(this,"palette"),tabIndex:this.computedTabIndex,value:this.colorValue,attrs:this.v3?void 0:ct({tabIndex:this.computedTabIndex,value:this.colorValue},this.paletteSettings),onChange:this.handlePaletteColorChange,onKeydown:this.gradientKeyDown},this.paletteSettings))}.call(this)]),this.$props.showButtons&&i("div",{class:"k-coloreditor-footer k-actions k-actions-end"},[i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-cancel",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleCancelBtnClick},onClick:this.handleCancelBtnClick},this.v3?function(){return[d]}:[d]),i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-apply k-primary",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleApplyBtnClick},onClick:this.handleApplyBtnClick},this.v3?function(){return[c]}:[c])]),f])},methods:{focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,a.focusFirstFocusableChild)(e.$el)}),1)},onKeyDownHandler:function(e){var t=this.$el;this.focused=(0,a.focusContainer)(e,t),this.$emit("keydown",e)},handleViewChange:function(e,t){this.currentView=t,this.$emit("viewchange",{event:e,viewType:t})},handleResetColor:function(){this.colorValue=null},handleColorChange:function(e){this.colorValue=e.value},handlePaletteColorChange:function(e){this.colorValue=e.value},handleApplyBtnClick:function(e){var t=p(this.colorValue,"rgba");this.currentPrevColor=this.colorValue,this.$emit("changemodel",this.colorValue),this.$emit("update:modelValue",this.colorValue),this.$emit("update:modelRgbaValue",t),this.$emit("change",{event:e,value:this.colorValue,rgbaValue:t})},innerKeyDown:function(e){e.keyCode===a.Keys.enter&&this.handleApplyBtnClick(e)},gradientKeyDown:function(e){e.stopPropagation(),this.showButtons||e.keyCode!==a.Keys.enter||this.handleApplyBtnClick(e)},handleButtonKeydown:function(e){e.keyCode===a.Keys.enter&&e.stopPropagation()},handleCancelBtnClick:function(){this.colorValue=this.computedPrevColor},handlePrevColorClick:function(){this.colorValue=this.computedPrevColor},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},onFocusout:function(e){this.$emit("focusout",{event:e,target:this})}}},vt=ft,mt=function(){return mt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mt.apply(this,arguments)},gt=s,yt=gt.h,bt=gt.version&&"3"===gt.version[0],kt={name:"KendoColorPicker",model:{event:"changemodel"},emits:{open:null,close:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,activecolorclick:null,focus:null,blur:null,change:null,viewchange:null},props:{modelValue:String,modelRgbaValue:String,value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},paletteSettings:{type:Object,default:function(){return T}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:{type:Object,default:function(){return{}}},gradientSettings:{type:Object,default:function(){return M}},flatColorPickerSettings:{type:Object,default:function(){return{}}},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)}},view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0}},data:function(){return{focused:!1,currentValue:this.$props.defaultValue,currentOpen:!1}},computed:{isValueControlled:function(){return void 0!==this.$props.value},isOpenControlled:function(){return void 0!==this.$props.open},computedValue:function(){return this.isValueControlled?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:void 0!==this.$props.modelRgbaValue?this.$props.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.defaultValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.currentOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-".concat(e)},wrapperClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded;return(e={"k-picker":!0,"k-colorpicker":!0,"k-icon-picker":!0})["k-picker-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){(0,a.validatePackage)(l),this._popupId="popup"+(0,a.guid)(),this.focusableElementGuid=(0,a.guid)()},mounted:function(){this.button=(0,a.getRef)(this,"button")},updated:function(){},setup:bt?function(){return{v3:!!bt}}:void 0,render:function(e){var t,n=this,i=this,o=yt||e,r=this.$props,s=r.disabled,l=r.tabIndex,d=r.dir,c=r.view,u=r.selectedView,p=r.showClearButton,h=r.showPreview,f=r.showButtons,v=r.popupSettings,m=function(){return o(vt,mt({onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,change:this.onFlatChangeHandler,focusout:this.onBlurHandler,viewchange:this.onViewChange},ref:(0,a.setRef)(this,"flatcolorpicker"),view:c,selectedView:u,showClearButton:p,showPreview:h,showButtons:f,value:this.computedValue||void 0,attrs:this.v3?void 0:mt({view:c,selectedView:u,showClearButton:p,showPreview:h,showButtons:f,value:this.computedValue||void 0,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings),onChange:this.onFlatChangeHandler,onFocusout:this.onBlurHandler,onViewchange:this.onViewChange,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings))};return o("span",{class:this.wrapperClassName,dir:d,attrs:this.v3?void 0:{dir:d,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,a.getTabIndex)(l,s),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabindex:(0,a.getTabIndex)(l,s),title:this.$props.title,onKeydown:this.onButtonKeyDown,on:this.v3?void 0:{keydown:this.onButtonKeyDown,focusin:this.onFocusHandler,focusout:this.onButtonBlur},onFocusin:this.onFocusHandler,onFocusout:this.onButtonBlur},[o("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[o("span",{class:(0,a.classNames)("k-value-icon","k-color-preview",{"k-no-color":!this.computedValue,"k-icon-color-preview":this.icon||this.iconClassName})},[(this.iconClassName||this.icon)&&o("span",{class:(0,a.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-".concat(this.icon)]=this.icon&&!this.iconClassName,t))}),o("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),o(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabindex:-1,rounded:null,icon:"arrow-s"},tabindex:-1,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"}),o(dt,{dir:d,attrs:this.v3?void 0:{dir:d,id:this._popupId,open:this.computedOpen,popupAnchor:this.focusableElementGuid,popupSettings:mt({},v)},id:this._popupId,open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid,popupSettings:mt({},v)},this.v3?function(){return[m.call(n)]}:[m.call(n)])])},methods:{focusElement:function(){this.$el&&this.$el.focus()},setOpen:function(e,t){e||t||!this.$el||this.$el.focus(),this.currentOpen=e,this.$emit(e?"open":"close")},onButtonKeyDown:function(e){var t=e.altKey,n=e.keyCode;return n===a.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===a.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen)):void(t&&n===a.Keys.down&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0)))},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;return n===a.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===a.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.focusElement()):void(t&&n===a.Keys.up&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1),this.focusElement()))},onOpenHandler:function(){var e=(0,a.getRef)(this,"flatcolorpicker");e&&e.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},isViewFocused:function(){return!(!document.activeElement||!document.activeElement.closest("#".concat(this._popupId)))},onButtonBlur:function(e){this.focused=this.isViewFocused(),this.$emit("blur",{event:e})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0,e.target===this.$el&&this.setOpen(!1)):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.isViewFocused();e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(){clearTimeout(this.blurTimeoutRef),this.palette=(0,a.getRef)(this,"palette"),this.gradient=(0,a.getRef)(this,"gradient"),this.blurTimeoutRef=setTimeout(this.onBlurTimeout,200)},onViewChange:function(e){this.$emit("viewchange",e)},onChangeHandler:function(e,t){var n=e.value;this.isValueControlled||(this.currentValue=n),t&&this.setOpen(!1),this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",e.rgbaValue),this.$emit("update:modelValue",n),this.$emit("change",{value:n,rgbaValue:e.rgbaValue,event:e})},onFlatChangeHandler:function(e){this.onChangeHandler(e,!0)}}},wt=kt,St=s,xt=St.h,Ct=St.version&&"3"===St.version[0],$t={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(){(0,a.validatePackage)(l),this._id=(0,a.guid)(),this.defaultValidationMessage=(0,N.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-".concat(a.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,e["k-rounded-".concat(a.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-".concat(a.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-".concat(a.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=(0,a.getRef)(this,"element"),this.input=(0,a.getRef)(this,"input"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:Ct?function(){return{v3:!!Ct}}:void 0,render:function(e){var t=xt||e,n=this.$props,i=n.disabled,o=n.id,r=n.offLabel,s=n.onLabel,l=n.tabIndex,d=n.required;return t("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},[t("span",{class:this.switchTrackClass,id:o||this._id,attrs:this.v3?void 0:{id:o||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,a.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:(0,a.setRef)(this,"element"),tabindex:(0,a.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},[t("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0},checked:this.v3?this.$props.checked:null,domProps:this.v3?void 0:{checked:this.$props.checked,value:this.computedValue},ref:(0,a.setRef)(this,"input"),tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0,value:this.v3?this.computedValue:null,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:a.noop,on:this.v3?void 0:{change:a.noop}}),t("span",{class:"k-switch-label-on"},[s]),t("span",{class:"k-switch-label-off"},[r]),t("span",{class:"k-switch-thumb-wrap"},[t("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(Ee,Ve[Ee]))},limit:function(e,t,n){var i=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>i-o?i-o: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!==a.Keys.space&&t!==a.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))}}},It=$t,Ot=n(9302),Dt=s,Mt=Dt.h,Tt=Dt.version&&"3"===Dt.version[0],Rt=(Dt.ref,{created:function(){(0,Ot.validatePackage)(l)},setup:Tt?function(){return{v3:!!Tt}}:void 0,render:function(e){return(Mt||e)("span",{class:"k-input-separator"})}}),Bt=Rt,Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nt.apply(this,arguments)},Pt=1111111.1111111,Et=/\d/,Vt=function(e,t){return void 0!==e?e:t},Lt=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},At=function(e){return(String(e).split(".")[1]||"").length},Ft=function(e,t){return Math.max(At(e),At(t))},zt=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},jt=function(e,t,n,i,o,r,s){var a=Ft(e||0,n||0),l=_t(zt((e||0)+(n||0),a),i,o);t.eventValue=l,t.currentLooseValue=Lt(l,r,s),t.selectionStart=t.selectionEnd=Gt(t.currentLooseValue,Et)},Kt=function(e,t,n,i,o,r,s){var a=Ft(e||0,n||0),l=_t(zt((e||0)-(n||0),a),i,o);t.eventValue=l,t.currentLooseValue=Lt(l,r,s),t.selectionStart=t.selectionEnd=Gt(t.currentLooseValue,Et)},_t=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},Ht=function(e,t,n,i){e.selectionStart=e.selectionEnd=t,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 o=function(e,t){var n=t.findIndex((function(t){var n=t[0];return t[1],Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}}(n,i,e)},Wt=function(e,t,n,i){e.eventValue=i.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ht(e,e.selectionStart,e.currentLooseValue,n)},Ut=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Gt(e,Et)},qt=function(e){return e.split("").reverse().join("")},Gt=function(e,t){return e.length-qt(e).search(t)},Jt=function(e){return e.split(e[e.search(Et)])[0]},Xt=function(e){var t=qt(e);return qt(t.split(t[t.search(Et)])[0])},Yt=function(e,t){return e.search(t)},Zt=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Qt=function(e,t,n,i,o){var r="0"===e.replace(o,"")[0],s="0"===t.replace(o,"")[0];if(r&&!s)return n-1;if(s&&i)return n+1;for(var a=0,l=0;l<n;l++)Et.test(e.charAt(l))&&a++;for(var d=0;a>0&&t.length>d;)Et.test(t.charAt(d))&&a--,d++;return d},en=function(e,t,n){var i=Nt({},e),o=i.prevLooseValue,r=n.numberSymbols(),s=function(e,t){var n=t.formatNumber(Pt,e),i=t.formatNumber(-Pt,e),o=t.formatNumber(0,e),r=t.formatNumber(1,e),s=t.numberSymbols(),a=new RegExp("[\\d\\".concat(s.decimal).concat(s.group,"]"),"g");return[n,i,o,r].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),l=String(o),d=new RegExp("[^\\d\\".concat(r.decimal,"]"),"g"),c=new RegExp("[^\\d\\".concat(r.decimal,"\\").concat(r.group,"]"),"g"),u=new RegExp("[\\d\\".concat(r.decimal,"\\").concat(r.group,"]")),p=a.replace(d,""),h=Yt(a,Et),f=-1===h?-1:Gt(a,Et),v=a.indexOf(r.decimal),m=(a.substring(0,h)+a.substring(h,f).replace(c,"")+a.substring(f,a.length)).split("").filter((function(e){return-1!==s.indexOf(e)||-1!==e.search(u)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(d,""),y=g.indexOf(r.decimal),b=y>-1?g.length-y-1:0,k=n.formatNumber(1,t).replace(d,""),w=k.indexOf(r.decimal),S=w>-1?k.length-w-1:0,x=function(e,t){var n=t.formatNumber(Pt,e),i=t.formatNumber(-Pt,e),o=t.formatNumber(0,e),r=t.formatNumber(1,e),s=Jt(n),a=Jt(i),l=Jt(o),d=Jt(r);return{positiveInfo:[s,Xt(n)],negativeInfo:[a,Xt(i)],zeroInfo:[l,Xt(o)],oneInfo:[d,Xt(r)]}}(t,n),C=[x.positiveInfo,x.negativeInfo,x.zeroInfo,x.oneInfo],$=1!==C.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),I=a.length>0&&a.length<l.length,O=t&&"p"===t[0]&&a&&-1===a.indexOf(r.percentSign);if(!i.isPaste){if(""===a)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===r.minusSign&&n.formatNumber(-0,t)!==l)return i.eventValue=-0,i.currentLooseValue=Lt(i.eventValue,t,n),Ht(i,Ut(i.currentLooseValue,r),i.currentLooseValue,C),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,r)){var D=n.parseNumber(o,t);i.eventValue=-(null!==D?D:0),i.currentLooseValue=Lt(i.eventValue,t,n);var M=Yt(i.currentLooseValue,Et),T=Yt(l,Et);return Ht(i,i.selectionEnd-1+(M-T),i.currentLooseValue,C),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,r))return i.eventValue=n.parseNumber(i.currentLooseValue,t),Ht(i,i.selectionStart,i.currentLooseValue,C),i;if(i.currentLooseValue===r.decimal){i.eventValue=0;var R=Lt(i.eventValue,t,n);if(0===S&&b>0){var B=Gt(R,Et);i.currentLooseValue=R.substring(0,B)+r.decimal+R.substring(B)}else i.currentLooseValue=R;return Ht(i,Ut(i.currentLooseValue,r)+1,i.currentLooseValue,C),i}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(i,r))return Wt(i,t,C,n),i;if(O)return i.eventValue=n.parseNumber(a,t)/100,i.currentLooseValue=Lt(i.eventValue,t,n),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return Wt(i,t,C,n),i;if(p!==a&&a&&$){var N=C.findIndex((function(e){var t=e[0],n=e[1],i=a.indexOf(t),o=a.indexOf(n),s=0===i,l=o===a.length-n.length,d=i+t.length!==h&&-1!==h&&a[i+t.length]!==r.decimal,c=o!==f&&-1!==f&&a[o-1]!==r.decimal;return t&&n?!d&&!c&&s&&l:t?!d&&s:!!n&&!c&&l}));if(-1===N)return Wt(i,t,C,n),i}if(p[p.length-1]===r.decimal&&b>0)return i.eventValue=n.parseNumber(a,t),i.currentLooseValue=m,i;if(i.currentLooseValue&&o&&(s+r.decimal+r.group).split("").findIndex((function(e){return a.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&a.length+1===l.length&&(e!==r.decimal||0!==Zt(l.replace(d,""),r.decimal))}))>-1)return i.eventValue=n.parseNumber(e.prevLooseValue,t),i.currentLooseValue=e.prevLooseValue,i;var P=Zt(p,r.decimal),E="0"===p[p.length-1];if(I&&E&&P<S)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=Lt(i.eventValue,t,n),i;if(P>0){var V=a.substring(0,v);if(E&&(!V||0!==l.indexOf(V))){i.eventValue=n.parseNumber(i.currentLooseValue,t);var L=Lt(i.eventValue,t,n);return Ht(i,Qt(a,L,i.selectionEnd,I,d),L,C),i.currentLooseValue=L,i}if(P>b){var A=a.indexOf(r.decimal),F=a.substring(0,A)+a.substring(A,A+1+b)+a.substring(f,String(i.currentLooseValue).length);return i.eventValue=n.parseNumber(F,t),i.currentLooseValue=F,Ht(i,i.selectionStart,F,C),i}if(S!==b&&P<=b&&E)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=m,i;if(P<S)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=Lt(i.eventValue,t,n),i}}return i.eventValue=n.parseNumber(i.currentLooseValue,t),O&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue?(L=Lt(i.eventValue,t,n),1===a.length?Ht(i,Ut(L,r),L,C):Ht(i,Qt(a,L,i.selectionEnd,I,d),L,C),i.currentLooseValue=L):i.currentLooseValue=Lt(n.parseNumber(p),t,n),i},tn=s,nn=tn.h,on=tn.version&&"3"===tn.version[0],rn=tn.ref,sn=tn.inject,an={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,ariaLabel:String,iconName:String,inputPrefix:a.templateDefinition,inputSuffix:a.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(){(0,a.validatePackage)(l),this._textBeforeInput="",this._inputId=(0,a.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=(0,N.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=(0,a.getRef)(this,"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(){a.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 Lt(this.$data.focused?this.$data.currentLooseValue:Vt(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,r=t.required,s=t.disabled,l=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!l,e["k-required"]=r,e["k-disabled"]=s,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:Vt(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,en(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=Lt(_t(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),o=_t(this.parseNumber(i),this.$props.min,this.$props.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,this.$data.valueDuringOnChange=o,this.$data.currentValue=o),t.valueIsCorrected){var r=this._elementWrapper;r&&-1===r.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();jt(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();Kt(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){a.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:jt(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:Kt(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=Lt(_t(n,this.$props.min,this.$props.max),this.$props.format,this._intl),o=_t(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=o,t.currentLooseValue=Lt(o,this.$props.format,this._intl),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var r=this._input,s=this._intl.numberSymbols();r&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=en(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){a.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:on?function(){return{v3:!!on,inputRef:rn(null),elementWrapperRef:rn(null),kendoLocalizationService:sn("kendoLocalizationService",{}),kendoIntlService:sn("kendoIntlService",{})}}:void 0,render:function(e){var t=nn||e,n=this.$props,i=n.iconName,o=n.showValidationIcon,r=n.showLoadingIcon,s=n.showClearButton,l=this.$props.id||this._inputId,d=(0,a.getDefaultSlots)(this),c=(0,N.provideLocalizationService)(this),u=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 p=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),h=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),f=a.getTemplate.call(this,{h:t,template:p,additionalProps:{value:this.computedValue,valid:u}}),v=a.getTemplate.call(this,{h:t,template:h,additionalProps:{value:this.computedValue,valid:u}}),m=t("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},[i&&t("span",{class:"k-input-icon k-icon k-i-".concat(i)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[f]),t("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-label":this.$props.ariaLabel,"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:l,"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-label":this.$props.ariaLabel,"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:l,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:(0,a.setRef)(this,"input")}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[v]),o&&u&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),o&&!u&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),r&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),s&&void 0!==this.computedValue&&null!==this.computedValue&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})]),d,this.$props.spinners&&t("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[t(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":c.toLanguageString(ae,Ve[ae]),title:c.toLanguageString(ae,Ve[ae])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":c.toLanguageString(ae,Ve[ae]),title:c.toLanguageString(ae,Ve[ae]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),t(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":c.toLanguageString(le,Ve[le]),title:c.toLanguageString(le,Ve[le])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":c.toLanguageString(le,Ve[le]),title:c.toLanguageString(le,Ve[le]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?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}},[m,this.$props.label?l?t("label",{for:l,attrs:this.v3?void 0:{for:l},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):m}},ln=an;!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(r||(r={}));var dn,cn=function(){function e(e,t,n){void 0===n&&(n=r.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: '".concat(this.value,"', rest: ").concat(this.rest," })")},e}(),un=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}(),pn=function(e){return(e||"").split("")},hn=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof un?this.parse(e):this.parse(new un(pn(e),pn(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===r.Literal},e}(),fn=function(e,t){return new hn((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new cn(t.literal(i),n)):new cn(o?t.mask(o):t.literal(i),n)}))},vn=function(e){var t=e.prompt,n=e.promptPlaceholder;return new hn((function(e){var i=e.next().char;return new cn(i===t?n:i,e)}))},mn=function(e){return new hn((function(t){var n=t.next().char;return new cn(e?n:"",t)}))},gn=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 hn((function(e){return new cn(t,e)}))));var t},yn=function(e){return new hn((function(t){for(var n=new cn([],t);!t.eof();)n=n.concat(e.run(t));return n}))},bn=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,o=void 0===i?"":i,r=e.promptPlaceholder,s=void 0===r?" ":r,a=e.rules,l=void 0===a?{}:a,d=e.includeLiterals,c=void 0!==d&&d;this.mask=n,this.prompt=o,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return gn(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?(gn(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?(gn(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 o="",r=i,s=t.split("").slice(0,n),a=t.split("").slice(i);return gn(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=s.concat(e).concat(a).join("")})),{selection:r,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",r=n,s=e.split("").slice(n),a=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return gn(this.maskTokens.slice(0,l)).run(a,t).fold((function(e){r=i.adjustPosition(e,r),o=e.concat(s).join("")})),{selection:r,value:o}},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,o="",r=n,s=e.slice(0,n);return gn(this.unmaskTokens).run(s,t).chain((function(e){r=e.join("").length;var n=t.slice(r);return gn(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:r,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new hn((function(e){return e.peek().char===t?(e.eat(),new cn(t,e,r.Literal)):new cn(t,e,r.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new hn((function(i){for(;!i.eof();){var o=i.peek(),s=o.char,a=o.control;if(s===a&&a===t)return i.eat(),new cn(t,i,r.Mask);if(e.test(s))return i.eat(),new cn(s,i,r.Mask);if(s===n)return i.eat(),new cn(t,i,r.Mask);i.eat_input()}return i.eat(),new cn(t,i,r.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 hn((function(e){return e.eof()?new cn("",e):(e.peek().char===t&&e.eat(),new cn(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new hn((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,r=i.control;if(o===n&&r===n)return t.eat(),new cn(o,t);if(e.test(o))return t.eat(),new cn(o,t);t.eat_input()}return t.eat(),new cn("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,i=e.includeLiterals;return{literal:function(e){return mn(i)},mask:function(e){return vn({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return mn(!1)},mask:function(t){return vn({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;yn(fn(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),yn(fn(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),yn(fn(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),yn(fn(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),kn={"#":/[\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]/},wn=function(){return!1},Sn=s,xn=Sn.h,Cn=Sn.version&&"3"===Sn.version[0],$n=Sn.ref,In={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 kn}},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:a.templateDefinition,inputSuffix:a.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(){(0,a.validatePackage)(l),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-".concat((0,a.guid)()),this.service=new bn,this.isPasted=!1},setup:Cn?function(){return{v3:!!Cn,inputRef:$n(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,o=this.$props.selection;(!i&&o||i&&o&&(i.start!==o.start||i.end!==o.end))&&(t=o.start,n=o.end),null!==t&&null!==n&&this.element.setSelectionRange(t,n)}var r,s;r={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules},s=this.$props,r.includeLiterals===s.includeLiterals&&r.mask===s.mask&&r.prompt===s.prompt&&r.promptPlaceholder===s.promptPlaceholder&&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}(r.rules,s.rules)||this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},kn,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,o=t.rounded,r=!this.$props.validityStyles||this.validity().valid;return(e={"k-maskedtextbox":!0,"k-input":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!r,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,o=this.currentSelection[1]||0;if(!this.$props.mask)return this.isPasted=!1,this.currentSelection=[null,null],void this.triggerOnChange(n,e);var r,s=this.computedValue();if(this.isPasted){this.isPasted=!1;var a=s.length-o,l=n.length-a;r=this.service.maskInRange(n.slice(i,l),s,i,o)}else r=this.service.maskInput(n,s,t.selectionStart||0);this.currentSelection=[r.selection,r.selection],this.triggerOnChange(r.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=xn||e,n=this.$props.id||this.inputId,i=this.$props,o=i.iconName,r=i.showValidationIcon,s=i.showLoadingIcon,l=i.showClearButton,d=!this.$props.validityStyles||this.validity().valid,c=this.computedValue(),u=(this.inputValue,a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this))),p=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),h=a.getTemplate.call(this,{h:t,template:u,additionalProps:{value:c,valid:d}}),f=a.getTemplate.call(this,{h:t,template:p,additionalProps:{value:c,valid:d}}),v=t("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&&t("span",{class:"k-input-icon k-icon k-i-".concat(o)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[h]),t("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,a.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?c:null,domProps:this.v3?void 0:{value:c},id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,a.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:(0,a.setRef)(this,"input"),onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragstart:wn,drop:wn},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragstart:wn,onDrop:wn}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[f]),r&&d&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),r&&!d&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),s&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),l&&c&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})])]);return this.$props.label?t("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[v,this.$props.label?n?t("label",{for:n,attrs:this.v3?void 0:{for:n},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):v}},On=In,Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dn.apply(this,arguments)},Mn=s,Tn=Mn.h,Rn=Mn.version&&"3"===Mn.version[0],Bn=(Mn.ref,"data-slider-label"),Nn={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:Rn?function(){return{v3:!!Rn}}:void 0,render:function(e){var t,n=Tn||e,i=this.currentDir,o=(0,a.getDefaultSlots)(this),r=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),s=this.kendoVertical?{bottom:"".concat(r,"%"),height:"1px",width:"100%"}:((t={})["rtl"===i?"right":"left"]="".concat(r,"%"),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:Dn({zIndex:1,position:"absolute"},s)},[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}},[o])])},methods:{onClick:function(e){this.$emit("click",e)}}},Pn=Nn,En=s,Vn=En.h,Ln=En.version&&"3"===En.version[0],An=En.ref,Fn=En.inject,zn={name:"KendoSlider",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,change:null,blur:null,focus:null},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(){(0,a.validatePackage)(l),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:Ln?function(){return{v3:!!Ln,inputRef:An(null),kendoLocalizationService:Fn("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=Vn||e,o=(0,N.provideLocalizationService)(this),r=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,s=(0,a.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:(0,a.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:(0,a.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:(0,a.classNames)("k-slider k-widget",{"k-focus":this.currentFocused,"k-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:(0,a.classNames)("k-slider-wrap")},[this.$props.buttons&&i(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:o.toLanguageString(ce,Ve["slider.decrement"])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:o.toLanguageString(ce,Ve["slider.decrement"]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(a.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"}},[s&&i("ul",{class:"k-reset k-slider-items"},[s]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:r+"%"}:{width:r+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(ue,Ve[ue]),attrs:n.v3?void 0:{title:o.toLanguageString(ue,Ve[ue])},style:n.$props.vertical?{bottom:r+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=r+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[s&&i("ul",{class:"k-reset k-slider-items"},[s]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:r+"%"}:{width:r+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(ue,Ve[ue]),attrs:n.v3?void 0:{title:o.toLanguageString(ue,Ve[ue])},style:n.$props.vertical?{bottom:r+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=r+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:o.toLanguageString(de,Ve["slider.increment"])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:o.toLanguageString(de,Ve["slider.increment"]),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(Bn)))return!0;t=t.parentElement}return!1},onFocus:function(e){this.currentFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.currentFocused=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=void 0;e.keyCode===a.Keys.left||e.keyCode===a.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===a.Keys.right||e.keyCode===a.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===a.Keys.home?t=this.$props.min:e.keyCode===a.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}})}}},jn=zn,Kn=function(){return Kn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kn.apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(dn||(dn={}));var _n=function(){return _n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_n.apply(this,arguments)},Hn=s,Wn=Hn.h,Un=Hn.version&&"3"===Hn.version[0],qn=Hn.ref,Gn=Hn.inject,Jn={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(){(0,a.validatePackage)(l)},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:Un?function(){return{v3:!!Un,inputRef:qn(null),kendoLocalizationService:Gn("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,i=this,o=Wn||e,r=(0,N.provideLocalizationService)(this),s=(0,a.getDefaultSlots)(this),l=this.$props,d=l.id;return l.dir,o("div",{role:"slider",attrs:this.v3?void 0:{role:"slider",id:d,dir:this.currentDir,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:d,dir:this.currentDir,class:(0,a.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-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},[o(a.Draggable,{onDrag:this.handleTrackDrag,on:this.v3?void 0:{drag:this.handleTrackDrag,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[o("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:_n({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[s&&o("ul",{class:"k-reset k-slider-items",style:_n({},i.sliderItemsStyle)},[s]),o("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&&o("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(i.computedValue.start," - ").concat(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)}),o("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue]),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}}),o("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue]),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}})])])]}:[o("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:_n({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[s&&o("ul",{class:"k-reset k-slider-items",style:_n({},i.sliderItemsStyle)},[s]),o("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&&o("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(i.computedValue.start," - ").concat(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)}),o("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue]),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}}),o("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.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:r.toLanguageString(ue,Ve[ue]),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,i;switch(t.type){case dn.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 dn.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 dn.min:n="start"===t.key?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{end:Math.max(t.min,e.start)});break;case dn.max:n="start"===t.key?Kn(Kn({},e),{start:Math.min(t.max,e.end)}):Kn(Kn({},e),{end:t.max});break;case dn.increase:if(void 0===t.step||void 0===t.key)return e;i=e[t.key]+t.step,n="start"===t.key?i<t.min?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{start:Math.min(i,e.end)}):i>t.max?Kn(Kn({},e),{end:t.max}):Kn(Kn({},e),{end:Math.max(i,e.start)});break;case dn.decrease:if(void 0===t.step||void 0===t.key)return e;i=e[t.key]-t.step,n="start"===t.key?i<t.min?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{start:Math.min(i,e.end)}):i>t.max?Kn(Kn({},e),{end:t.max}):Kn(Kn({},e),{end:Math.max(i,e.start)});break;default:n=e}return n}({start:this.computedValue.start,end:this.computedValue.end},_n(_n({},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 a.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.decrease:dn.increase,key:"start",event:e});break;case a.Keys.up:e.preventDefault(),this.dispatchStateValue({type:dn.increase,key:"start",event:e});break;case a.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.increase:dn.decrease,key:"start",event:e});break;case a.Keys.down:e.preventDefault(),this.dispatchStateValue({type:dn.decrease,key:"start",event:e});break;case a.Keys.home:e.preventDefault(),this.dispatchStateValue({type:dn.min,key:"start",event:e});break;case a.Keys.end:e.preventDefault(),this.dispatchStateValue({type:dn.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case a.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.decrease:dn.increase,key:"end",event:e});break;case a.Keys.up:e.preventDefault(),this.dispatchStateValue({type:dn.increase,key:"end",event:e});break;case a.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.increase:dn.decrease,key:"end",event:e});break;case a.Keys.down:e.preventDefault(),this.dispatchStateValue({type:dn.decrease,key:"end",event:e});break;case a.Keys.home:e.preventDefault(),this.dispatchStateValue({type:dn.min,key:"end",event:e});break;case a.Keys.end:e.preventDefault(),this.dispatchStateValue({type:dn.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 i="end"===n?dn.end:dn.start;this.dispatchStateValue({type:i,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?dn.end:dn.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?dn.end:dn.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}},Xn=Jn,Yn=s,Zn=Yn.h,Qn=Yn.version&&"3"===Yn.version[0],ei=Yn.ref,ti=Yn.inject,ni={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(){(0,a.validatePackage)(l),this.calculatedId=(0,a.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=(0,a.getRef)(this,"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=(0,a.getRef)(this,"input")),this.setValidity()},setup:Qn?function(){return{v3:!!Qn,inputRef:ei(null),kendoLocalizationService:ti("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=Zn||e,i=this.$props,o=i.ariaDescribedBy,r=i.ariaLabelledBy,s=i.disabled,l=i.id,d=i.label,c=i.labelRender,u=i.labelPlacement,p=i.name,h=i.labelOptional,f=i.tabIndex,v=i.required,m=i.validityStyles,g=i.size,y=i.rounded,b=(0,a.getDefaultSlots)(this),k=d;this.localizationService=(0,N.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(Ne),this.optionalMessage=this.localizeMessage(Pe);var w=(0,a.classNames)({"k-disabled":s}),S=(0,a.classNames)(((t={"k-checkbox":!0})["k-checkbox-".concat(a.kendoThemeMaps.sizeMap[g])]=g,t["k-rounded-".concat(a.kendoThemeMaps.roundedMap[y])]=y,t["k-indeterminate"]=this.indeterminateProp,t["k-invalid k-invalid"]=!(this.isValid||void 0!==m||!0===m),t));if(c){var x=c?a.templateRendering.call(this,c,a.getListeners.call(this)):null;k=a.getTemplate.call(this,{h:n,template:x})}return n("span","before"===u?{class:w,dir:"rtl",attrs:this.v3?void 0:{dir:"rtl"}}:{class:w,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir}},[function(){return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:p,id:l||this.calculatedId,"aria-labelledby":r,"aria-describedby":o,disabled:s,tabindex:(0,a.getTabIndex)(f,s),role:"checkbox",required:void 0!==v&&v,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":s||void 0},class:S,name:p,id:l||this.calculatedId,ref:(0,a.setRef)(this,"input"),"aria-labelledby":r,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:s,tabindex:(0,a.getTabIndex)(f,s),role:"checkbox",required:void 0!==v&&v,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":s||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})}.call(this),function(){return void 0!==k?n("label",{class:"k-checkbox-label",for:l||this.calculatedId,attrs:this.v3?void 0:{for:l||this.calculatedId},style:{userSelect:"none"}},[k,h&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null}.call(this),b])},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,Ve[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,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===a.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)}}},ii=ni,oi=s,ri=oi.h,si=oi.version&&"3"===oi.version[0],ai=oi.ref,li=(oi.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=(0,a.guid)(),(0,a.validatePackage)(l)},mounted:function(){this.input=(0,a.getRef)(this,"input")},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-".concat(a.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,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:si?function(){return{v3:!!si,inputRef:ai(null)}}:void 0,render:function(e){var t=ri||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.ariaDescribedBy,r=i.checked,s=i.disabled,l=i.id,d=i.label,c=i.labelRender,u=i.labelPlacement,p=i.name,h=i.tabIndex,f=i.value,v=i.tag,m=d;if(c){var g=c?a.templateRendering.call(this,c,a.getListeners.call(this)):null;m=a.getTemplate.call(this,{h:t,template:g})}var y=a.getTemplate.call(this,{h:t,template:this.$props.content}),b=void 0!==m?t("label",{class:"k-radio-label",for:l||this.calculatedId,attrs:this.v3?void 0:{for:l||this.calculatedId,"aria-label":d},style:{userSelect:"none"},"aria-label":d},[m]):null,k=t("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:l||this.calculatedId,name:p,disabled:s,tabindex:(0,a.getTabIndex)(h,s),"aria-describedby":o},id:l||this.calculatedId,name:p,class:this.inputClassName,ref:(0,a.setRef)(this,"input"),disabled:s,tabindex:(0,a.getTabIndex)(h,s),checked:this.v3?r:null,domProps:this.v3?void 0:{checked:r,value:f},style:this.$attrs.style,"aria-describedby":o,value:this.v3?f:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),w=t(v,"before"===u?[b,k,y,n]:[k,b,y,n]);return a.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:w,defaultSlots:n,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}}),di=li,ci=s,ui=ci.h,pi=ci.version&&"3"===ci.version[0],hi=ci.ref,fi=(ci.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=(0,a.guid)(),(0,a.validatePackage)(l),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=(0,a.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(){return this.$props.dir||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&(0,a.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:pi?function(){return{v3:!!pi,inputRef:hi(null)}}:void 0,render:function(e){var t=ui||e,n=this.$props,i=n.ariaLabelledBy,o=n.ariaDescribedBy,r=n.dataItems,s=n.disabled,l=n.name,d=n.labelPlacement,c=n.valid,u=r&&r.map((function(e,n){var i=this.checkedRadioValue===e.value,o=null===this.checkedRadioValue||void 0===this.checkedRadioValue,r=a.templateRendering.call(this,this.$props.item||e.item,a.getListeners.call(this));return t(di,{class:(0,a.classNames)("k-radio-item",{"k-disabled":e.disabled||s}),style:e.style,key:n,item:r,attrs:this.v3?void 0:{item:r,role:"radio",tag:"li",valid:c,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!s),labelPlacement:e.labelPlacement?e.labelPlacement:d,tabIndex:e.tabIndex?e.tabIndex:o&&0===n||i?0:-1,index:n,name:l||e.name||this.radioGroupName},role:"radio",tag:"li",valid:c,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!s),labelPlacement:e.labelPlacement?e.labelPlacement:d,tabIndex:e.tabIndex?e.tabIndex:o&&0===n||i?0:-1,index:n,name:l||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":o},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":o},[u])}}),vi=fi,mi=function(){return mi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mi.apply(this,arguments)},gi=s,yi=gi.h,bi=gi.version&&"3"===gi.version[0],ki={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:a.templateDefinition,inputSuffix:a.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(){(0,a.validatePackage)(l),this.calculatedId=(0,a.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,r=t.required,s=t.showLoadingIcon,l=t.resizable,d=t.autoSize,c=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=c,e["k-required"]=r,e["k-loading"]=s,e["k-resize-".concat(l)]=d?"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:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:bi?function(){return{v3:!!bi}}:void 0,render:function(e){var t=this,n=yi||e,i=this.$props,o=i.ariaDescribedBy,r=i.ariaLabelledBy,s=i.autoSize,l=i.disabled,d=i.readOnly,c=i.required,u=i.rows,p=i.id,h=i.name,f=i.placeholder,v=i.tabIndex,m=i.iconName,g=i.showValidationIcon,y=i.showLoadingIcon,b=i.showClearButton,k=mi({id:p||this.calculatedId,name:h,disabled:l,rows:u,placeholder:f,readOnly:d,required:c,tabIndex:(0,a.getTabIndex)(v,l),"aria-labelledby":r,"aria-describedby":o,"aria-multiline":!0,"aria-disabled":l||void 0},this.$attrs),w=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),S=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),x=a.getTemplate.call(this,{h:n,template:w,additionalProps:{value:this.computedValue,valid:this.isValid}}),C=a.getTemplate.call(this,{h:n,template:S,additionalProps:{value:this.computedValue,valid:this.isValid}}),$=n("textarea",mi(mi({},k),{attrs:this.v3?void 0:k,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:s?{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},[x]),n("span",{class:"k-hstack k-flex"},[m&&n("span",{class:"k-flex-wrap"},[n("span",{class:"k-input-icon k-icon k-i-".concat(m)})]),$,g&&this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-check"})]),g&&!this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-warning"})]),y&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-loading-icon k-icon k-i-loading"})]),b&&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},[C])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight="".concat(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})}}},wi=ki},4035:(e,t,n)=>{n.r(t),n.d(t,{Avatar:()=>Te,AvatarVue2:()=>Me,Card:()=>H,CardActions:()=>ce,CardActionsVue2:()=>de,CardBody:()=>re,CardBodyVue2:()=>oe,CardFooter:()=>$e,CardFooterVue2:()=>Ce,CardHeader:()=>J,CardHeaderVue2:()=>G,CardImage:()=>ve,CardImageVue2:()=>fe,CardSubtitle:()=>ke,CardSubtitleVue2:()=>be,CardTitle:()=>ee,CardTitleVue2:()=>Q,CardVue2:()=>_,Drawer:()=>Je,DrawerContent:()=>et,DrawerContentVue2:()=>Qe,DrawerItem:()=>Ve,DrawerItemVue2:()=>Ee,DrawerNavigation:()=>He,DrawerNavigationVue2:()=>_e,DrawerVue2:()=>Ge,Menu:()=>Mn,MenuItemArrow:()=>un,MenuItemArrowVue2:()=>cn,MenuItemLink:()=>nn,MenuItemLinkVue2:()=>tn,MenuVue2:()=>Dn,PanelBar:()=>xi,PanelBarItem:()=>oi,PanelBarItemVue2:()=>ii,PanelBarVue2:()=>Si,Splitter:()=>Un,SplitterPane:()=>Pn,SplitterPaneVue2:()=>Nn,SplitterVue2:()=>Wn,Step:()=>dt,StepVue2:()=>lt,Stepper:()=>xt,StepperVue2:()=>St,TabStrip:()=>N,TabStripContent:()=>I,TabStripContentVue2:()=>$,TabStripNavigation:()=>b,TabStripNavigationItem:()=>f,TabStripNavigationItemVue2:()=>h,TabStripNavigationVue2:()=>y,TabStripTab:()=>A,TabStripTabVue2:()=>L,TabStripVue2:()=>B,downArrowClass:()=>an,flatChildren:()=>pi,flatVisibleChildren:()=>hi,flatVisibleItems:()=>ui,getFirstId:()=>li,getInitialState:()=>di,isArrayEqual:()=>mi,isPresent:()=>vi,leftArrowClass:()=>dn,renderChildren:()=>ai,rightArrowClass:()=>ln});var i,o,r,s,a,l=n(1895),d=n(7984),c=l,u=c.h,p=c.version&&"3"===c.version[0],h={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,o=t.first,r=t.last;return(e={})["k-first"]=o,e["k-last"]=r,e["k-item"]=!0,e["k-disabled"]=i,e["k-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t=u||e,n=this.$props,i=n.active,o=n.title,r=void 0===o?"Untitled":o,s=this.$props.titleRender,a=d.getTemplate.call(this,{h:t,template:s,defaultRendering:r,additionalProps:this.$props,additionalListeners:{select:this.onClick}});return t("li",{"aria-selected":i,attrs:this.v3?void 0:{"aria-selected":i,role:"tab"},role:"tab",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick},class:this.itemClasses},[t("span",{class:"k-link"},[a])])}},f=h,v=l,m=v.h,g=v.version&&"3"===v.version[0],y=(v.ref,v.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:g?function(){return{v3:!!g}}:void 0,render:function(e){var t=m||e,n=this.$props,i=n.tabs,o=n.selected,r=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=r,Array.apply(null,Array(e))).map((function(e,n,r){return t(f,{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===r.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===r.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)}}}),b=y,k=n(4498),w=function(e,t){var n=this,i=[];return t.forEach((function(t){n.v3&&t.children&&t.children.length&&(i=w.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},S=l,x=S.h,C=S.version&&"3"===S.version[0],$=(S.ref,S.inject,{name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=(0,d.guid)()},setup:C?function(){return{v3:!!C}}: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=x||e,n=this.$props,i=n.tabs,o=n.selected,r=(n.showAll,n.hasTabs),s=i&&"number"==typeof o&&i[o],a=(0,d.getDefaultSlots)(this),l=r?i:w.call(this,[],a||[]),c=o<l.length&&o>-1,u=(0,d.classNames)({"k-content":c},{"k-active":c},s&&s.contentClassName),p=function(e,n){var i=this,o=n===this.$props.selected,s={position:"initial",height:o?void 0:"0px",width:o?void 0:"0px"},a=r?d.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(k.pT,{appear:!!this.v3||o,attrs:this.v3?void 0:{appear:!!this.v3||o,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:s},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},[a])]}:[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},[a])])};return t("div",{class:u,style:this.$props.style},[function(){return l.map((function(e,t){return p.call(this,e,t)}),this)}.call(this)])}}),I=$,O={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123933,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=function(){return D=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},M=l,T=M.h,R=M.version&&"3"===M.version[0],B=(M.ref,M.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=d.templateRendering.call(this,e.content,d.getListeners.call(this));return D(D({},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={})[d.Keys.left]=function(){return t.prevNavigatableTab()},e[d.Keys.right]=function(){return t.nextNavigatableTab()},e[d.Keys.down]=function(){return t.nextNavigatableTab()},e[d.Keys.up]=function(){return t.prevNavigatableTab()},e[d.Keys.home]=function(){return 0},e[d.Keys.end]=function(){return t.compTabs.length-1},e),(0,d.validatePackage)(O)},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]=D(D({},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 d.Keys.left:t=this.keyBinding[this.invertKeys(d.Keys.left,d.Keys.right)];break;case d.Keys.right:t=this.keyBinding[this.invertKeys(d.Keys.right,d.Keys.left)];break;case d.Keys.up:t=this.keyBinding[d.Keys.up];break;case d.Keys.down:t=this.keyBinding[d.Keys.down];break;case d.Keys.home:t=this.keyBinding[d.Keys.home];break;case d.Keys.end:t=this.keyBinding[d.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction?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:R?function(){return{v3:!!R}}:void 0,render:function(e){var t,n=T||e,i=this.$props,o=i.tabPosition,r=i.tabIndex,s=void 0===r?0:r,a="bottom"===o,l=(0,d.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===o,t["k-tabstrip-right"]="right"===o,t["k-tabstrip-bottom"]="bottom"===o,t["k-tabstrip-top"]="top"===o,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:l},[!a&&n(b,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:s},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:s}),function(e){var t=e.selected,i=e.tabContentStyle,o=(0,d.getDefaultSlots)(this),r={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:i,showAll:this.currentShowAll};return n(I,D(D({},r),{attrs:this.v3?void 0:D({},r)}),this.v3?function(){return o}:[o])}.call(this,this.$props),a&&n(b,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:s},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:s})])}}),N=B,P=l,E=P.h,V=P.version&&"3"===P.version[0],L=(P.ref,P.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=(0,d.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:V?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:V?function(){return{v3:!!V}}:void 0,render:function(e){var t=E||e,n=this.$props.titleRender?d.templateRendering.call(this,this.$props.titleRender,d.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[(0,d.getDefaultSlots)(this)])}}),A=L;!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"}(o||(o={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(r||(r={})),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={}));var F,z=l,j=z.h,K=z.version&&"3"===z.version[0],_={name:"KendoCard",props:{dir:String,type:{type:String,default:s.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:r.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){(0,d.validatePackage)(O)},setup:K?function(){return{v3:!!K}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==r.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-".concat(this.$props.type)]=this.$props.type!==s.DEFAULT,e["k-card-".concat(t)]=!0,e}},render:function(e){var t=j||e,n=(0,d.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}},H=_,W=l,U=W.h,q=W.version&&"3"===W.version[0],G={name:"KendoCardHeader",setup:q?function(){return{v3:!!q}}:void 0,render:function(e){return(U||e)("div",{class:"k-card-header"},[(0,d.getDefaultSlots)(this)])}},J=G,X=l,Y=X.h,Z=X.version&&"3"===X.version[0],Q={name:"KendoCardTitle",setup:Z?function(){return{v3:!!Z}}:void 0,render:function(e){return(Y||e)("div",{class:"k-card-title"},[(0,d.getDefaultSlots)(this)])}},ee=Q,te=l,ne=te.h,ie=te.version&&"3"===te.version[0],oe={name:"KendoCardBody",setup:ie?function(){return{v3:!!ie}}:void 0,render:function(e){return(ne||e)("div",{class:"k-card-body"},[(0,d.getDefaultSlots)(this)])}},re=oe,se=l,ae=se.h,le=se.version&&"3"===se.version[0],de={name:"KendoCardActions",props:{layout:{type:String,default:a.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:r.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:le?function(){return{v3:!!le}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-".concat(this.$props.layout)]=!0,e["k-card-actions-".concat(this.$props.orientation!==r.HORIZONTAL?"vertical":"horizontal")]=!0,e}},render:function(e){var t=ae||e,n=(0,d.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}},ce=de,ue=l,pe=ue.h,he=ue.version&&"3"===ue.version[0],fe={name:"KendoCardImage",props:{src:String},setup:he?function(){return{v3:!!he}}:void 0,render:function(e){var t=pe||e;return(0,d.getDefaultSlots)(this),t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}},ve=fe,me=l,ge=me.h,ye=me.version&&"3"===me.version[0],be={name:"KendoCardSubtitle",setup:ye?function(){return{v3:!!ye}}:void 0,render:function(e){return(ge||e)("div",{class:"k-card-subtitle"},[(0,d.getDefaultSlots)(this)])}},ke=be,we=l,Se=we.h,xe=we.version&&"3"===we.version[0],Ce={name:"KendoCardFooter",setup:xe?function(){return{v3:!!xe}}:void 0,render:function(e){return(Se||e)("div",{class:"k-card-footer"},[(0,d.getDefaultSlots)(this)])}},$e=Ce,Ie=l,Oe=Ie.h,De=Ie.version&&"3"===Ie.version[0],Me={name:"KendoAvatar",props:{type:{type:String,default:o.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(){(0,d.validatePackage)(O)},setup:De?function(){return{v3:!!De}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),o=t.rounded,r=t.fillMode,s=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-".concat(d.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-".concat(d.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-avatar-".concat(r)]=r,e["k-avatar-".concat(r,"-").concat(s)]=Boolean(r&&s),e},innerClass:function(){var e;return(e={})["k-avatar-".concat(this.$props.type)]=this.$props.type,e}},render:function(e){var t=Oe||e,n=(0,d.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}},Te=Me,Re=function(){return Re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)},Be=l,Ne=Be.h,Pe=Be.version&&"3"===Be.version[0],Ee={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-selected":e.selected,"k-disabled":t}}},setup:Pe?function(){return{v3:!!Pe}}:void 0,render:function(e){var t=Ne||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.text,r=i.icon,s=i.separator,a=i.disabled,l=i.selected,c=i.tabIndex,u=this.kendoDrawer,p=u.expanded,h=u.mini,f=u.item;return s?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":l,"aria-disabled":a,tabindex:(0,d.getTabIndex)(c,a)},"aria-selected":l,"aria-disabled":a,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabindex:(0,d.getTabIndex)(c,a)},[f?n:[r&&t("span",{class:"k-icon "+r}),!p&&h?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:Re(Re({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}},Ve=Ee,Le=function(){return Le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Le.apply(this,arguments)},Ae=l,Fe=Ae.h,ze=Ae.version&&"3"===Ae.version[0],je={type:"slide",duration:200},Ke={type:"slide",duration:0},_e={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:ze?function(){return{v3:!!ze}}:void 0,render:function(e){var t=Fe||e,n=(0,d.getDefaultSlots)(this),i=this.kendoDrawer,o=i.animation,r=i.expanded,s=i.mode,a=i.position,l=i.mini,c=i.dir,u=i.width,p=i.miniWidth,h=i.items,f="boolean"!=typeof o?o:!1===o?Ke:je,v=u||240,m=p||50,g={opacity:1,flexBasis:v+"px",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},y={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},b={opacity:l?1:0,flexBasis:l?m+"px":0,WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},k={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},w={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},S={transform:"translateX(0%)",WebkitTransitionDuration:(f&&f.duration)+"ms",transitionDuration:(f&&f.duration)+"ms"},x=r?"push"===s?g:y:"push"===s?b:"ltr"===c&&"start"===a||"rtl"===c&&"end"===a?l?S:k:l?S:w,C=h&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":r},title:"drawer-list","aria-expanded":r},[h.map((function(e,n){var i=this.$props.item;!i||i.type||i.render||(i=d.templateRendering.call(this,this.$props.item,d.getListeners.call(this)));var o=t(Ve,{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 d.getTemplate.call(this,{h:t,template:i,defaultRendering:o,additionalProps:Le(Le({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:x,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!r&&l&&"overlay"===s?{width:m+"px"}:{width:v+"px"}},[C||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}},He=_e,We=l,Ue=We.h,qe=We.version&&"3"===We.version[0],Ge={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(){(0,d.validatePackage)(O)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,o=e.animation,r=e.mini,s=e.width,a=e.miniWidth,l=e.items,c=e.item,u=c?d.templateRendering.call(this,c,d.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:o,mini:r,width:s,miniWidth:a,items:l,item:u}}},mounted:function(){this.currentDir=(0,d.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,o=e.animation,r=e.mini,s=e.width,a=e.miniWidth,l=e.items,c=e.item,u=c?d.templateRendering.call(this,c,d.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=o,this.drawer.mini=r,this.drawer.width=s,this.drawer.miniWidth=a,this.drawer.items=l,this.drawer.item=u},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:qe?function(){return{v3:!!qe}}:void 0,render:function(e){var t=Ue||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.items,r=i.tabIndex,s=i.mode,a=i.expanded,l=i.item,c=l?d.templateRendering.call(this,l,d.getListeners.call(this)):void 0;return t("div",{class:this.drawerClassNames,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:r},tabindex:r},["overlay"===s&&a&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),o&&t(He,{onSelect:this.handleSelect,on:this.v3?void 0:{select:this.handleSelect},item:c,attrs:this.v3?void 0:{item:c}}),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)}}},Je=Ge,Xe=l,Ye=Xe.h,Ze=Xe.version&&"3"===Xe.version[0],Qe={name:"KendoDrawerContent",setup:Ze?function(){return{v3:!!Ze}}:void 0,render:function(e){return(Ye||e)("div",{class:"k-drawer-content"},[(0,d.getDefaultSlots)(this)])}},et=Qe,tt=n(5725),nt="stepper.optionalText",it=((F={})[nt]="(Optional)",F),ot=l,rt=ot.h,st=ot.version&&"3"===ot.version[0],at=ot.inject,lt={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,o=e.index,r=e.isValid,s=e.optional;return{"k-step":!0,"k-step-first":0===o,"k-step-last":this.numOfSteps&&o===this.numOfSteps-1,"k-step-done":o<this.value,"k-step-current":t,"k-step-optional":s,"k-step-disabled":n,"k-step-focus":i,"k-step-error":void 0!==r&&!r,"k-step-success":r}},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% / ".concat(this.numOfSteps,")"),pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:st?function(){return{v3:!!st,kendoLocalizationService:at("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=rt||e,i=(0,d.getDefaultSlots)(this),o=this.$props,r=o.current,s=o.disabled,a=o.focused,l=o.icon,c=o.index,u=o.isValid,p=o.label,h=o.optional,f=o.tabIndex,v=o.text,m=o.animationDuration,g=o.item,y=o.linear,b=o.mode,k=o.value,w=o.successIcon,S=o.errorIcon,x=!y||c===k-1||c===k||c===k+1,C="labels"===b||Boolean(l)&&Boolean(p),$=(0,tt.provideLocalizationService)(this),I=(t=nt,$.toLanguageString(t,it[t])),O="number"==typeof m?m:!1!==m?400:0,D=u?w?"".concat(w):"k-icon k-i-check":S?"".concat(S):"k-icon k-i-warning",M=n("span",{class:"k-step-indicator-icon "+D,"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:p||void 0,attrs:this.v3?void 0:{title:p||void 0,tabindex:a?f:-1,"aria-current":r?"step":void 0,"aria-disabled":s||!x||void 0,"aria-invalid":void 0!==u&&!u||void 0},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,focusin:this.handleFocus},onFocusin:this.handleFocus,tabindex:a?f:-1,"aria-current":r?"step":void 0,"aria-disabled":s||!x||void 0,"aria-invalid":void 0!==u&&!u||void 0},[g?i:[function(){return"labels"!==b?n("span",{class:"k-step-indicator","aria-hidden":!0,attrs:this.v3?void 0:{"aria-hidden":!0},style:{transitionDuration:O+"ms"}},[l?C||void 0===u?n("span",{class:"k-step-indicator-icon k-icon ".concat(l)}):M:void 0!==u?M:n("span",{class:"k-step-indicator-text"},[v||c+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[p&&n("span",{class:"k-step-text"},[p]),C&&void 0!==u&&M,h&&n("span",{class:"k-step-label-optional"},[I])])}.call(this)]])])},methods:{focus:function(){this.$el&&(0,d.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)}}},dt=lt,ct=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},ut=function(e,t,n,i){var o=Math.max(n,.01),r=100/o*100;e&&t&&(e.style.width=i?"100%":"".concat(o,"%"),t.style.width=i?"100%":"".concat(r,"%"),e.style.height=i?"".concat(o,"%"):"100%",t.style.height=i?"".concat(r,"%"):"100%")},pt={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123903,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"},ht=l,ft=ht.h,vt=ht.version&&"3"===ht.version[0],mt={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(){(0,d.validatePackage)(pt),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=(0,d.getRef)(this,"progressStatus"),this._progressStatusWrap=(0,d.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,d.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=(0,k.jt)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:vt?void 0:function(){(0,k.RE)(this.animationFrame)},unmounted:function(){(0,k.RE)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=(0,k.jt)({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-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:vt?function(){return{v3:!!vt}}:void 0,render:function(e){var t=ft||e,n=this.$props,i=n.disabled,o=n.labelVisible,r=n.labelPlacement,s=n.max,a=n.min,l=n.tabIndex,c=n.emptyStyle,u=n.emptyClassName,p=n.progressStyle,h=n.progressClassName,f=this.$props.value||0,v=null===this.$props.value,m=function(e){var t=e.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(f),g={value:f},y=this.$props.labelRender?d.templateRendering.call(this,this.$props.labelRender,d.getListeners.call(this)):void 0,b=t("span",{class:"k-progress-status"},m),k=d.getTemplate.call(this,{h:t,template:y,defaultRendering:b,additionalProps:g}),w=o?this.$props.label?t("span",{class:"k-progress-status"},[this.$props.label]):k:void 0,S=(0,d.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===r,"k-progress-center":"center"===r,"k-progress-end":"end"===r||void 0===r});return t("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:(0,d.getTabIndex)(l,i),role:"progressbar","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":v?void 0:f,"aria-disabled":i},tabindex:(0,d.getTabIndex)(l,i),role:"progressbar","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":v?void 0:f,"aria-disabled":i},[t("span",{class:S+(u?" "+u:""),style:c},[w]),t("div",{class:"k-selected",style:p,ref:(0,d.setRef)(this,"progressStatus")},[t("span",{class:S+(h?" "+h:""),ref:(0,d.setRef)(this,"progressStatusWrap")},[w])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=ct(this.min,this.max,this.prevValue);ut(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=ct(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);ut(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=ct(this.min,this.max,this.value);ut(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}},gt=mt,yt=function(){return yt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yt.apply(this,arguments)},bt=l,kt=bt.h,wt=bt.version&&"3"===bt.version[0],St={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(){(0,d.validatePackage)(O),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,d.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:wt?function(){return{v3:!!wt}}:void 0,render:function(e){var t=kt||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.animationDuration,r=i.disabled,s=i.items,a=i.orientation,l=this.computedValue,c="number"==typeof o?o:!1!==o?400:0,u=s&&s.map((function(e,n){var i=this.$props.item?d.templateRendering.call(this,this.$props.item,d.getListeners.call(this)):void 0,o=t(dt,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:r||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===l,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:l,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:r||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===l,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:l,successIcon:this.successIcon,errorIcon:this.errorIcon});return d.getTemplate.call(this,{h:t,template:i,defaultRendering:o,additionalProps:yt(yt({},e),{disabled:r||e.disabled,focused:n===this.focusedIdx,current:n===l,value:l}),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},[u||n]),t(gt,{style:this.progressbarStyles,animation:{duration:c},attrs:this.v3?void 0:{animation:{duration:c},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:a,reverse:"vertical"===a,value:l,disabled:r,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:a,reverse:"vertical"===a,value:l,disabled:r,tabIndex:-1})])},methods:{focus:function(){this.$el&&(0,d.focusFirstFocusableChild)(this.$el)},dispatchChangeEvent:function(e,t){var n=t===this.computedValue-1,i=t===this.computedValue,o=t===this.computedValue+1,r=!this.linear||n||i||o;this.computedValue!==t&&!this.disabled&&r&&(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 d.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case d.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case d.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case d.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case d.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case d.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case d.Keys.space:case d.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}},xt=St,Ct="",$t="0",It="_";function Ot(e,t){if(Nt(e))return t[Number(e)];var n=t[Number(Dt(e))];return n.items?Ot(function(e){if(Bt(e))return e;var t=e.indexOf(It);return e.substring(t+1)}(e),n.items):void 0}function Dt(e){return Bt(e)?e:e.split(It)[0]}function Mt(e){return Tt("0",e)}function Tt(e,t){return t?t+It+e:e}function Rt(e){var t=e.lastIndexOf(It);return t<0?Ct:e.substring(0,t)}function Bt(e){return e===Ct||e.indexOf(It)<0}function Nt(e){return e!==Ct&&e.indexOf(It)<0}function Pt(e){var t=e.lastIndexOf(It);return t<0?e:e.substring(t+1)}function Et(e,t,n){return Nt(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}function Vt(e){return e&&e.length>0?{items:At.call(this,e),inputItems:e}:{items:[],inputItems:[]}}function Lt(e){var t={},n=e.text,i=e.url,o=e.icon,r=e.disabled,s=e.cssClass,a=e.cssStyle,l=e.render,c=e.linkRender,u=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!==r&&(t.disabled=r),void 0!==s&&(t.cssClass=s),void 0!==a&&(t.cssStyle=a),void 0!==l&&(t.render=d.templateRendering.call(this,l,d.getListeners.call(this))),void 0!==c&&(t.linkRender=d.templateRendering.call(this,c,d.getListeners.call(this))),void 0!==u&&(t.contentRender=d.templateRendering.call(this,u,d.getListeners.call(this))),void 0!==p&&(t.data=p),t}function At(e,t){for(var n=[],i=0;i<e.length;i++){var o=e[i],r=Lt.call(this,o);r.id=Tt(i.toString(),t),r.isLastFromSiblings=i===e.length-1,r.items=Ft.call(this,o,r),n.push(r)}return n}function Ft(e,t){return e.contentRender?[{contentParentItemId:t.id,id:Tt($t,t.id),isLastFromSiblings:!0,contentRender:d.templateRendering.call(this,e.contentRender,d.getListeners.call(this)),items:[]}]:e.items?At.call(this,e.items,t.id):[]}var zt=/\S/;function jt(e,t,n,i,o,r){var s,a=v();switch(n){case d.Keys.left:return o?r?p():c():r?u():l();case d.Keys.right:return o?r?c():p():r?l():u();case d.Keys.up:return o?g():Nt(t)?f():g();case d.Keys.down:return o?y():Nt(t)?h():y();case d.Keys.enter:case d.Keys.space:return a.disabled?t:m()?Mt(t):Dt(t);case d.Keys.home:return b()[0].id;case d.Keys.end:return(s=b())[s.length-1].id;case d.Keys.esc:return Nt(t)?t:Rt(t);default:return 1===i.length&&zt.test(i)?function(){var e=i.toLowerCase(),n=b(),o=Number(Pt(t)),r=n.slice(o+1).concat(n.slice(0,o+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return r?r.id:t}():t}function l(){return Nt(t)?g():1===function(e){return e.split(It).length-1}(t)?h(g(Dt(t))):Rt(t)}function c(){return Nt(t)?f():Rt(t)}function u(){return Nt(t)?y():h(m()?t:y(Dt(t)))}function p(){return h(Nt(t)||m()?t:y(Dt(t)))}function h(e){return k(!0,e)}function f(e){return k(!1,e)}function v(n,i){return void 0===n&&(n=t),void 0===i&&(i=e),Ot(n,i)}function m(e){return v(e).items.length>0}function g(e){return w(!1,e)}function y(e){return w(!0,e)}function b(){return Nt(t)?e:v(Rt(t),e).items}function k(e,n){void 0===n&&(n=t);var i=v(n);return m(n)&&!i.disabled?e?Mt(n):function(e){var t=v(e).items;return t[t.length-1].id}(n):n}function w(n,i){if(void 0===i&&(i=t),Nt(i))return Et(n,i,e.length);var o=Rt(i);return Tt(Et(n,Pt(i),v(o).items.length),o)}}var Kt=n(3266),_t={vertical:"top",horizontal:"left"},Ht={vertical:"top",horizontal:"right"},Wt={vertical:"flip",horizontal:"fit"},Ut={vertical:"fit",horizontal:"flip"},qt={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:Ht,collision:Wt},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:Ht,collision:Ut}},Gt={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:_t,collision:Wt},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:_t,collision:Ut}};function Jt(e,t,n){return Nt(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function Xt(e){return e?"rtl":"ltr"}function Yt(e,t){return"".concat(e,"_").concat(t)}var Zt=l,Qt=Zt.h,en=Zt.version&&"3"===Zt.version[0],tn={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:en?function(){return{v3:!!en}}:void 0,render:function(e){var t=Qt||e,n=(0,d.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])}},nn=tn,on=l,rn=on.h,sn=on.version&&"3"===on.version[0],an="k-i-arrow-60-down",ln="k-i-arrow-60-right",dn="k-i-arrow-60-left",cn={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:sn?function(){return{v3:!!sn}}:void 0,render:function(e){var t=rn||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=Jt(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[an]="downward"===t,e[ln]="rightward"===t,e[dn]="leftward"===t,e}}},un=cn,pn=l,hn=pn.h,fn=pn.version&&"3"===pn.version[0],vn=pn.ref,mn={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=(0,d.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=(0,d.getRef)(this,"kendoAnchor",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,t,n=this.$props;return n.item.items.length>0&&(e=n.item.id,0===(t=n.lastItemIdToBeOpened).indexOf(e)&&(t.length===e.length||t.charAt(e.length)===It))&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return(0,d.classNames)({"k-menu-popup":!0,"k-rtl":this.$props.isDirectionRightToLeft})},menuItemClassName:function(){var e,t,n=this.$props.item;return(e={"k-item":!0,"k-menu-item":!0,"k-first":(t=n.id,Pt(t)===$t),"k-last":n.isLastFromSiblings,"k-disabled":n.disabled})[n.cssClass?n.cssClass:""]=n.cssClass,e}},setup:fn?function(){return{v3:!!fn,kendoAnchorRef:vn(null)}}:void 0,render:function(e){var t=this,n=hn||e,i=this.$props.item,o=i.id,r=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-".concat(this.$props.item.icon),role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},s=function(){return this.$props.item.items.length>0?n(un,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:Xt(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:Xt(this.$props.isDirectionRightToLeft),key:"2"}):null},a=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?Yt(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?Yt(this.$props.menuGuid,o):void 0,ref:(0,d.setRef)(this,"kendoAnchor",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 d.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=d.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:a,itemId:i.id,key:"1"}}),l=n(nn,{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[[r.call(e),o,s.call(e)]]}:[[r.call(e),o,s.call(e)]]);return d.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:l,additionalProps:{item:a,itemId:i.id,opened:this.currentOpened,dir:Xt(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=function(e,t,n){var i=Jt(e,t,n);return n?"downward"===i?qt.downward:qt.leftward:"downward"===i?Gt.downward:Gt.rightward}(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(Kt.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(wn,{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(wn,{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()}}},gn=mn,yn=l,bn=yn.h,kn=yn.version&&"3"===yn.version[0],wn={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:kn?function(){return{v3:!!kn}}:void 0,render:function(e){var t=bn||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?Yt(this.$props.menuGuid,n):void 0},id:void 0!==n?Yt(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(gn,{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())}}},Sn=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}(),xn=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}(),Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cn.apply(this,arguments)},$n=l,In=$n.h,On=$n.version&&"3"===$n.version[0],Dn={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(){(0,d.validatePackage)(O),this.mouseOverHandler=new xn(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=(0,d.guid)(),this.directionHolder=new Sn,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1,this.menuWrapperEl=(0,d.getRef)(this,"menuWrapper")},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:On?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:Ct,hoveredItemId:Ct,tabbableItemId:$t,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:On?function(){return{v3:!!On}}:void 0,render:function(e){var t=In||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var n=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?Rt(this.focusedItemId):Ct;return t("div",{class:this.getMenuWrapperClassName(),ref:(0,d.setRef)(this,"menuWrapper")},[t(wn,{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:n,tabbableItemId:this.tabbableItemId,itemRender:d.templateRendering.call(this,this.$props.itemRender,d.getListeners.call(this)),linkRender:d.templateRendering.call(this,this.$props.linkRender,d.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:d.templateRendering.call(this,this.$props.itemRender,d.getListeners.call(this)),linkRender:d.templateRendering.call(this,this.$props.linkRender,d.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=Ct,this.hoveredItemId=Ct,this.tabbableItemId=$t},onKeyDown:function(e){if(this.focusedItemId!==Ct){var t=Ot(this.focusedItemId,this.currentItems),n=jt(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==d.Keys.enter&&e.keyCode!==d.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=Cn({},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(Ct),t.itemLeaveRequest=null}),void 0!==(n=Cn({},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=Ot(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(Ct)},getInputItem:function(e){return Ot(e,this.inputItems)},setFocusedItemId:function(e){var t=e===Ct?this.tabbableItemId:Dt(e),n=e===Ct||Bt(this.hoveredItemId)&&Bt(e)?this.hoveredItemId:Ct;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){Bt(e)&&Bt(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=Ct,this.tabbableItemId=$t)},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=Vt.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})}}},Mn=Dn,Tn=l,Rn=Tn.h,Bn=Tn.version&&"3"===Tn.version[0],Nn={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:Bn?function(){return{v3:!!Bn}}:void 0,render:function(e){var t,n=Rn||e,i=this.$props,o=i.size,r=i.collapsed,s=i.overlay,a=i.containsSplitter,l=i.collapsible,c=i.resizable,u=i.scrollable,p=i.keepMounted,h=o&&o.length>0,f={flexBasis:o},v=(0,d.classNames)("k-pane",((t={})["k-hidden"]=r,t.hidden=r,t["k-pane-flex"]=a,t["k-pane-static"]=!c&&!l||h,t["k-scrollable"]=u,t)),m=d.getTemplate.call(this,{h:n,template:this.$props.content,defaultRendering:null});return n("div",{style:f,class:v},[!r||p?m:void 0,s?n("div",{class:"k-splitter-overlay k-overlay"}):void 0])}},Pn=Nn,En=l,Vn=En.h,Ln=En.version&&"3"===En.version[0],An={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,o=t.collapsible||n.collapsible;return!i&&!o},isDraggable:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,o=t.collapsed||n.collapsed;return!!i&&!o},isHorizontal:function(){return"horizontal"===this.$props.orientation}},data:function(){return{focused:!1}},mounted:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:Ln?function(){return{v3:!!Ln}}:void 0,render:function(e){var t,n=this,i=this,o=Vn||e,r=this.isDraggable,s=this.isStatic,a=this.isHorizontal,l=(0,d.classNames)("k-splitbar",((t={})["k-focus"]=this.focused,t["k-splitbar-horizontal"]=a,t["k-splitbar-vertical"]=!a,t["k-splitbar-draggable-horizontal"]=a&&r,t["k-splitbar-draggable-vertical"]=!a&&r,t["k-splitbar-static-horizontal"]=a&&s,t["k-splitbar-static-vertical"]=!a&&s,t)),c=this.previousArrowClass(a),u=this.nextArrowClass(a);return o(d.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[o("div",{tabindex:s?-1:0,attrs:n.v3?void 0:{tabindex:s?-1:0,role:"separator"},role:"separator",class:l,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},[o("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("div",{class:u,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[o("div",{tabindex:s?-1:0,attrs:n.v3?void 0:{tabindex:s?-1:0,role:"separator"},role:"separator",class:l,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},[o("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("div",{class:u,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])])},methods:{onDrag:function(e,t,n){var i=e,o=this.$props.index,r=this.draggable&&this.draggable.element;!n&&i&&i.originalEvent.preventDefault(),r&&!this.isStatic&&this.isDraggable&&this.$emit("drag",i,r,o,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,o=t.next;(i.collapsible||o.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,o=this.$props.index,r=this.draggable&&this.draggable.element,s=function(n,i,o){e.preventDefault(),t.$emit("keyboardresize",n,i,o,e)};r&&(n===d.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===d.Keys.left?s(r,o,-10):i&&n===d.Keys.right?s(r,o,10):i||n!==d.Keys.up?i||n!==d.Keys.down||s(r,o,10):s(r,o,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,o=n.collapsed;return(0,d.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-prev"]=i,t["k-i-arrow-60-left"]=i&&e&&!o,t["k-i-arrow-60-right"]=i&&e&&o,t["k-i-arrow-60-up"]=i&&!e&&!o,t["k-i-arrow-60-down"]=i&&!e&&o,t))},nextArrowClass:function(e){var t,n=this.$props.next,i=n.collapsible,o=n.collapsed;return(0,d.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-next"]=i,t["k-i-arrow-60-right"]=i&&e&&!o,t["k-i-arrow-60-left"]=i&&e&&o,t["k-i-arrow-60-down"]=i&&!e&&!o,t["k-i-arrow-60-up"]=i&&!e&&o,t))}}},Fn=An,zn=function(){return zn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zn.apply(this,arguments)},jn=l,Kn=jn.h,_n=jn.version&&"3"===jn.version[0],Hn={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},Wn={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(){(0,d.validatePackage)(O)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:_n?function(){return{v3:!!_n}}:void 0,render:function(e){var t=Kn||e,n=this.panesOptions(),i=(0,d.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-".concat(this.orientation));return this.validatePanes(n),t("div",{class:i},[function(e){return e.map((function(n,i){var o,r=d.templateRendering.call(this,n.content,d.getListeners.call(this)),s=2*i,a=s+1;if(i+1<e.length){var l=e[i+1];o=t(Fn,{key:a,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:l},orientation:this.orientation,prev:n,next:l,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(Pn,{key:s,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:r},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:r}),o]}),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 o=!1;this.isDragging&&void 0!==this.dragIndex&&(o=this.dragIndex===i||this.dragIndex+1===i),n.push(zn(zn(zn({},Hn),{orientation:t,overlay:o}),e[i]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var i=t;return n===e?zn(zn({},i),{collapsed:!t.collapsed}):zn({},i)}));this.$emit("change",{newState:n,isLast:!0,nativeEvent:t})},onBarDragResize:function(e,t,n,i,o){var r=(new Date).getTime(),s=e.pageX,a=e.pageY,l=this.surroudingPanes(t),d=l.prevElement,c=l.nextElement;if(d&&c){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=r,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(d),void(this.originalNextSize=this.elementSize(c));var u,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;!i&&r-v<150||(u="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,u,o,e)),o&&this.resetDragState()}},onBarKeyboardResize:function(e,t,n,i){var o=this.surroudingPanes(e),r=o.prevElement,s=o.nextElement,a=this.elementSize(r),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["".concat(n,"Height")]:e["".concat(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,o,r,s){var a,l,d=this,c=this.panesOptions(),u=c[e],p=c[t],h=n+i,f=this.containerSize(),v=function(e){return d.toPixels(e,f)},m={index:e,initialSize:n,min:v(u.min)||h-v(p.max)||0,max:v(u.max)||h-v(p.min)||h},g={index:t,initialSize:i,min:v(p.min)||h-v(u.max)||0,max:v(p.max)||h-v(u.min)||h},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/f+"%":i+"px"};this.fixedSize(u.size)&&this.fixedSize(p.size)?(a=y(m,o),l=y(g,-o)):p.collapsible||this.fixedSize(p.size)?l=y(g,-o):a=y(m,o);var b=c.map((function(n,i){var o=n;return i===e?zn(zn({},o),{size:a}):i===t?zn(zn({},o),{size:l}):zn({},o)}));this.panesDuringOnChange=b,this.isControlledState||(this.currentPanes=b),this.$emit("change",{newState:b,isLast:r,nativeEvent:s}),this.panesDuringOnChange=void 0}}},Un=Wn,qn=function(){return qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)},Gn=l,Jn=Gn.h,Xn=Gn.version&&"3"===Gn.version[0],Yn={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:Xn?function(){return{v3:!!Xn}}:void 0,render:function(e){var t=Jn||e,n=this.$props,i=n.item,o=n.items,r=n.uniquePrivateKey,s=n.disabled,a=n.expanded,l=n.animation,c=n.keepItemsMounted,u=d.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:qn(qn({},this.$props),{show:this.show})}),p=!s&&a,h=p||c?o?t("ul",{role:"group",attrs:this.v3?void 0:{role:"group"},class:"k-panelbar-group k-panel k-group",style:{display:c?this.$data.show?"block":"none":"block"}},[o.map((function(e){return t(oi,qn(qn({props:this.v3?void 0:qn(qn({},e),{item:i})},e),{item:i}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[u]):null:null;return void 0!==l&&!l||s?h:t(k.Ue,{appear:p,attrs:this.v3?void 0:{appear:p,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!c},transitionEnterDuration:200,transitionExitDuration:200,key:r+"_animation",style:{display:"block"},unmountOnExit:!c,onEntering:this.handleEntering,on:this.v3?void 0:{entering:this.handleEntering,exited:this.handleExited},onExited:this.handleExited},this.v3?function(){return[h]}:[h])},methods:{handleEntering:function(){this.keepItemsMounted&&(this.show=!0)},handleExited:function(){this.keepItemsMounted&&(this.show=!1)}}},Zn=Yn,Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qn.apply(this,arguments)},ei=l,ti=ei.h,ni=ei.version&&"3"===ei.version[0],ii={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:ni?function(){return{v3:!!ni}}:void 0,render:function(e){var t,n=ti||e,i=this.$props,o=i.id,r=i.item,s=i.icon,a=i.items,l=i.content,c=i.title,u=i.uniquePrivateKey,p=i.disabled,h=i.selected,f=i.focused,v=i.expanded,m=i.className,g=i.level,y=i.headerClassName,b=i.animation,k=i.keepItemsMounted,w=!!a||l,S=(0,d.classNames)("k-item",{"k-panelbar-header":0===g,"k-panelbar-item":0!==g,"k-expanded":v&&w},"k-level-".concat(g),m),x=(0,d.classNames)("k-link",{"k-selected":!p&&h,"k-focus":f,"k-disabled":p},y),C=(0,d.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=v&&w,t["k-panelbar-collapse"]=v&&w,t["k-i-arrow-chevron-down"]=!v&&w,t["k-panelbar-expand"]=!v&&w,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(s){var e=(0,d.classNames)("k-panelbar-item-icon","k-icon","k-i-"+s);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),I=p||!a&&!l?null:n("span",{class:C}),O=a||l?n(Zn,{items:a,attrs:this.v3?void 0:{items:a,item:r,content:l,uniquePrivateKey:u,disabled:p,expanded:v,animation:b,keepItemsMounted:k},item:r,content:l,uniquePrivateKey:u,disabled:p,expanded:v,animation:b,keepItemsMounted:k}):null,D=d.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:Qn({},this.$props)});return n("li",{id:o,attrs:this.v3?void 0:{id:o,role:"treeitem","aria-disabled":p,"aria-hidden":!p&&!v,"aria-selected":!p&&h,"aria-expanded":!p&&v&&w},class:S,role:"treeitem","aria-disabled":p,"aria-hidden":!p&&!v,"aria-selected":!p&&h,"aria-expanded":!p&&v&&w},[n("span",{class:x,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[$,this.$props.header?D:n("span",{class:"k-panelbar-item-text"},[c]),I]),O])},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}}},oi=ii,ri=function(){return ri=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ri.apply(this,arguments)},si=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},ai=function e(t,n){var i=n.animation,o=void 0===i||i,r=n.keepItemsMounted,s=void 0!==r&&r,a=n.state,l=n.expanded,c=n.handleSelect,u=n.parentExpanded,p=void 0===u||u,h=n.level,f=void 0===h?0:h,v=n.parentPrivateKey,m=void 0===v?[]:v;return t.map((function(t,n){var i,r=ci(t,m,n),u=d.templateRendering.call(this,t.content,d.getListeners.call(this)),h=d.templateRendering.call(this,t.header,d.getListeners.call(this));if(t.items){var v={animation:o,keepItemsMounted:s,state:a,expanded:l,handleSelect:c,parentExpanded:(l||[]).indexOf(r)>-1,level:f+1,parentPrivateKey:si(si([],m,!0),[r],!1)};i=e.call(this,t.items,v)}return ri(ri({},t),{animation:void 0!==t.animation?t.animation:o,keepItemsMounted:s,id:t.id||"k-panelbar-item-default-".concat(r),uniquePrivateKey:r,parentUniquePrivateKey:m,parentExpanded:p,level:f,expanded:(l||[]).indexOf(r)>-1,focused:a.currentFocused===r&&a.wrapperFocused,selected:a.currentSelected===r,items:i,content:u,header:h})}),this)},li=function(e){var t=e.items[0];return t?ci(t,[],0):""},di=function e(t,n,i,o,r){return void 0===i&&(i={currentExpanded:t.expanded||[],currentSelected:t.selected||"",currentFocused:t.focused||"",wrapperFocused:!1}),void 0===o&&(o=!0),void 0===r&&(r=[]),t.items.forEach((function(t,s){var a=ci(t,r,s);!t.disabled&&o&&(t.selected&&(i.currentSelected=a),t.focused&&(i.currentFocused=a),t.expanded&&("multiple"===n?i.currentExpanded.push(a):"single"===n&&(i.currentExpanded=[a])),t.items&&(i=e(t,n,i,!!t.expanded,si(si([],r,!0),[a],!1))))})),i},ci=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+".".concat(n):".".concat(n)};function ui(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&ui(e.children,t))})),t}function pi(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&e&&!e.disabled&&(t.push(e),e.items&&pi(e.items,t))})),t}function hi(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&(e.expanded||e.parentExpanded)&&(t.push(e),e.items&&hi(e.items,t))})),t}var fi,vi=function(e){return null!=e},mi=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};!function(e){e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous"}(fi||(fi={}));var gi=function(){return gi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gi.apply(this,arguments)},yi=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},bi=l,ki=bi.h,wi=bi.version&&"3"===bi.version[0],Si={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,(0,d.validatePackage)(O)},data:function(){var e=di(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=li(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=gi(gi({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return ai.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:wi?function(){return{v3:!!wi}}:void 0,render:function(e){var t=ki||e,n=(0,d.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(oi,gi(gi({props:this.v3?void 0:gi(gi({},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(pi(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=yi(yi([],t.parentUniquePrivateKey,!0),[t.uniquePrivateKey],!1),mi(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?yi([],t.parentUniquePrivateKey,!0):[]);break;case"multiple":var o=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===o?n.push(t.uniquePrivateKey):n.splice(o,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,o=hi(this.computedItems);o.forEach((function(r,s){if(r.uniquePrivateKey===(e.uniquePrivateKey||n.currentFocused)){var a=s+t<0?0:s+t>o.length?o.length-1:s+t;i=o[a]}})),i&&(this.activeDescendant=i.id,this.currentFocused=i.uniquePrivateKey)},onNavigate:function(e,t){var n;switch(t){case fi.Previous:n=-1,this.onFocus(e,n);break;case fi.Next:n=1,this.onFocus(e,n);break;case fi.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 d.Keys.left:n=t?fi.Next:fi.Previous;break;case d.Keys.up:n=fi.Previous;break;case d.Keys.right:n=t?fi.Previous:fi.Next;break;case d.Keys.down:n=fi.Next;break;case d.Keys.space:case d.Keys.enter:n=fi.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}},xi=Si},9606:(e,t,n)=>{n.r(t),n.d(t,{GridPdfExport:()=>q,GridPdfExportVue2:()=>U,PDFExport:()=>S,PDFExportVue2:()=>w,savePDF:()=>x});var i=n(1895),o=n(4407);function r(e,t,n){void 0===n&&(n={});var i=c;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(a()&&(i=d),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,"),o=i[0],r=atob(i[1]),s=new Uint8Array(r.length),a=0;a<r.length;a++)s[a]=r.charCodeAt(a);n=new Blob([s.buffer],{type:o})}navigator.msSaveBlob(n,t)}function d(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=s();i.download=t,i.href=n;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(n)}))}function c(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 o=n.proxyData||{};o.fileName=t;var r=e.split(";base64,");for(var s in o.contentType=r[0].replace("data:",""),o.base64=r[1],o)if(o.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",o[s]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}}String.fromCharCode;var u=n(7984),p=i,h=p.h,f=p.createApp,v=function(){function e(e,t,n,i,o){void 0===o&&(o={});var r=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=i,this.options=o,this.convertPageTemplateToHtml=function(e){if(h&&f&&u.canUseDOM){var t=r,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var i,o=document.createElement("div");n.appendChild(o),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(o),o.outerHTML}var a=new(p.extend(r.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}();const m=v;var g={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123974,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"},y=i,b=y.h,k=y.version&&"3"===y.version[0],w={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 m(o.drawDOM,o.exportPDF,r,this.$el,this.$props).savePDF(e)}},setup:k?function(){return{v3:!!k}}:void 0,created:function(){(0,u.validatePackage)(g)},render:function(e){return(b||e)("div",[(0,u.getDefaultSlots)(this)])}},S=w;function x(e,t,n){void 0===t&&(t={}),new m(o.drawDOM,o.exportPDF,r,e,t).savePDF(n)}var C,$={},I=function(e){return String(e).trim().split(" ")},O=function(e){return function(t){return function(e,t){var n=I(t);return Boolean(I(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},D=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=D(e,t);if(i)return i}e=e.nextSibling}}},M="k-grid-header",T="k-grid-footer",R=($[C="TABLE"]||($.TABLE=function(e){return String(e.nodeName).toLowerCase()===C.toLowerCase()}),$.TABLE),B=function(e){return e?"locked":"wrap"},N=function(){function e(e){this.element=e,this.list=D(e,O("k-grid-container"))}return e.prototype.content=function(e){return D(this.list,O("k-grid-content".concat(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||D(this.element,O(M)),D(this.headerWrap,O("".concat(M,"-").concat(B(e))))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||D(this.element,O(T)),D(this.footerWrap,O("".concat(T,"-").concat(B(e))))},e.prototype.table=function(){return D(this.element,R)},e}(),P="k-first",E=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},L=function(e){var t=e.length,n=e[0].cloneNode(!0),i=n.rows.length;if(t>1)for(var o=0;o<i;o++)for(var r=1;r<t;r++)E(n.rows[o],e[r].rows[o].cells);return n},A=function(){return A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)},F=i,z=F.h,j=F.createApp;function K(e){return function(t,n,i,o,r){return void 0===n&&(n={}),function(e,t,n,i,o,r){var s,a,l,d;function c(){e(h.call(this),n,p)}function p(){d.unmount?d.unmount():d.$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 N(e),i=n.content();if(i){var o=[i.querySelector("colgroup")],r=[n.header().querySelector("thead")],s=[i.querySelector("tbody")],a=n.footer();t=function(e,t,n,i){for(var o=document.createElement("table"),r=e[0].cloneNode(!0),s=1;s<e.length;s++)E(r,e[s].querySelectorAll("col"));var a=L(t),l=L(n);if(a.className=M,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,o=e.rows[n].cells[i];-1===String(o.className).indexOf(P)&&(o.className+=" ".concat(P))}}(a,t),o.appendChild(r),o.appendChild(a),o.appendChild(l),i.length){var d=L(i);d.className=T,o.appendChild(d)}return V(o)}(o,r,s,a?[a.querySelector("tfoot")]:[])}else t=V(n.table().cloneNode(!0));return t}(this.$el);return l.appendChild(e),document.body.appendChild(l),e}void 0===n&&(n={}),function(){if(u.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=o&&{dataItems:o,total:o.length,pageSize:o.length,skip:0};if(r){var n={render:function(){return z(t.type,A(A({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),c.call(this)}};(d=j(n)).mount(a)}else{var i=Object.getPrototypeOf(t).constructor;(d=new i({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){d.$el.style&&(d.$el.style.width="1000px"),c.call(d)}})).$slots=t.$slots,d.$scopedSlots=t.$scopedSlots,d.$mount(a)}}}()}(e,t,n,i,o,r)}}var _=i,H=_.h,W=_.version&&"3"===_.version[0],U={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=K(this.getSavePDF())},methods:{save:function(e,t){var n=(0,u.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 x}},setup:W?function(){return{v3:!!W}}:void 0,render:function(e){return(H||e)("div",[(0,u.getDefaultSlots)(this)])}},q=U;"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",S),window.Vue.component("kendo-grid-pdf-export",q))},3266:(e,t,n)=>{n.r(t),n.d(t,{Popup:()=>U,PopupVue2:()=>W});var i=n(1895),o=n(4498);const r="bottom",s="center",a="middle",l="right";function d(e){return e.ownerDocument||e.document||e}const c=function(e){return d(e).defaultView},u=function(e){return d(e).documentElement};var p=0;function h(){if(!p&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),p=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return p}function f(e){var t=c(e),n=u(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=h()),i}const v=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||u(e)},m=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,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}};function g(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n}function y(e){var t=u(e),n=c(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}function b(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}}function k(e,t,n){void 0===n&&(n=1);var i=t?v(t):null,o=function(e,t){var n=c(e),i=n.getComputedStyle(e),o=m(e),r=t||v(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,l={top:0,left:0};if("fixed"!==i.position&&a){var d=n.getComputedStyle(r);(l=m(r)).top+=parseInt(d.borderTopWidth,10),l.left+=parseInt(d.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}}(e,i),r=o.top,s=o.left,a=o.height,l=o.width,d=function(e,t){return e?b(e):function(e){var t=v(e);return t?b(t):{x:0,y:0}}(t)}(i,e),u=d.x,p=d.y,h=e.ownerDocument,f=i===h.body||i===h.documentElement?1:n;return{top:r+p*f,left:s+u*f,height:a,width:l}}const w="flip";var S=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},x=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,l=e.elementAlignPoint,d=0,c=2*e.margin;if(l!==r&&l!==s&&l!==a&&r!==s&&r!==a){var u="top"===r||"left"===r;t<0&&u?t+(d=n+i+c)+n>o&&(d=0):t>=0&&!u&&(t+n>o&&(d+=-(i+n+c)),t+d<0&&(d=0))}return d};function C(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function $(e,t){for(var n,i,o=g(e),r=t;r&&(n=C(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i}var I=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},O=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},D=function(){return"undefined"!=typeof document&&!!document.body},M=function(){return"undefined"!=typeof window},T=/auto|scroll/,R=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)},B=function(){if(!D())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="".concat(10,"px")}var n=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),n}(),N="left",P=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.offset,s=this._dom.hasOffsetParent(n)?this.relativeRect(t,n,r):this.absoluteRect(t,n,r);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i,o,r=this._dom,s=(i=O(r.offset(e),n),(o=r.stackingElementOffset(t))?{height:i.height,left:i.left-o.left,top:i.top-o.top,width:i.width}:i),a=r.stackingElementScroll(t),l=r.addScroll(s,a),d=this.elementScrollPosition(e,t),c=r.removeScroll(l,d);return c.left+=window.scrollX||window.pageXOffset,c.top+=window.scrollY||window.pageYOffset,c},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return O(this._dom.position(e,t),n)},e}(),E=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 function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,d=e.margin;void 0===d&&(d={});var c=n.horizontal,u=n.vertical,p=o.horizontal,h=o.vertical,f=d.horizontal||0,v=d.vertical||0,m=t.top,g=t.left;return u===r&&(m+=t.height),u!==s&&u!==a||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,v*=-1),h!==s&&h!==a||(m-=Math.round(i.height/2),v*=-1),c===l&&(g+=t.width),c!==s&&c!==a||(g+=Math.round(t.width/2)),p===l&&(g-=i.width,f*=-1),p!==s&&p!==a||(g-=Math.round(i.width/2),f*=-1),{top:m+v,left:g+f}}(e)},e.prototype.boundingOffset=function(e){return function(e){if(!e.getBoundingClientRect){var t=f(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}}(e)},e.prototype.getWindow=function(){return M()?window:null},e.prototype.isBodyOffset=function(e){return v(t=e)===t.ownerDocument.body;var t},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?m(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 o=m(e);return e.style.left=n,e.style.top=i,o},e.prototype.position=function(e,t){return e&&t?k(e,$(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,o=this.isBodyOffset(e),r=n.top,s=n.left,o&&(s=0,r=0),{top:r+i.top,left:s+i.left,height:n.height,width:n.width};var n,i,o,r,s},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var l=i.top,d=i.left,c=i.height,u=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,y="fit"===r.vertical,b="fit"===r.horizontal,k=r.vertical===w,C=r.horizontal===w;y&&(g+=S(l,c,p)),b&&(m+=S(d,u,h)),k&&(g+=x({margin:v,offset:l,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),C&&(m+=x({margin:f,offset:d,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var $=k&&0!==g,I=C&&0!==m,O=y&&0!==g,D=b&&0!==m;return{flipped:I||$,fitted:O||D,flip:{horizontal:I,vertical:$},fit:{horizontal:D,vertical:O},offset:{left:m,top:g}}}(e)},e.prototype.scrollPosition=function(e){return y(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!D()||!M())return t;for(var n=e.parentElement;n;)T.test(R(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?m(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||!B)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 f(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!D()||!M())return null;var n=$(e,t);if(!n)return null;var i=[e].concat(g(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 D()&&M()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),V=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,o=e.currentLocation,r=e.element,s=e.anchorAlign,a=e.elementAlign,l=e.collisions,d=this._dom,c=e.viewPort||d.stackingElementViewPort(r)||d.windowViewPort(r),u=O(d.offset(i),o),p=(t=d.staticOffset(r),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(r,p),f=d.restrictToView({anchorAlign:s,anchorRect:u,collisions:l,elementAlign:a,elementRect:h,viewPort:c});return{flipped:f.flipped,offset:d.addOffset(p,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),L=n(7984),A={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123587,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"},F=i,z=F.h,j=F.version&&"3"===F.version[0],K={left:-1e3,top:0},_="k-animation-container-shown",H="k-popup",W={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:"fit",vertical:"flip"}}},anchorAlign:{type:Object,default:function(){return{horizontal:N,vertical:"bottom"}}},popupAlign:{type:Object,default:function(){return{horizontal:N,vertical:"top"}}},offset:{type:Object,default:function(){return K}},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(){(0,L.validatePackage)(A),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 E,this._alignService=new P(this._domService),this._positionService=new V(this._domService),this.reposition=function(e,t,n){var i,o,r,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(o,r),i||(o=r=null)};return function(){var d=(new Date).getTime();a||!1!==n.leading||(a=d);var c=t-(d-a);return o=this,r=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),a=d,s=e.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(l,c)),s}}(this.reposition.bind(this),16.666666666666668)},setup:j?function(){return{v3:!!j}}:void 0,mounted:function(){L.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:j?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:j?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(_),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove(_),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)&&L.canUseDOM)return document.body}return t.$refs[e].$el||t.$refs[e]},position:function(e,t,n){var i=e.anchorAlign,o=e.popupAlign,r=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:o,anchorAlign:i,offset:s});return this._positionService.positionElement({anchor:a,anchorAlign:i,collisions:r,element:t,currentLocation:l,elementAlign:o})},calculatePosition:function(e,t){if(!t||!M()||!L.canUseDOM)return{flipped:!1,offset:e.offset};var n=(0,L.getDefaultSlots)(this),i=document.createElement("div"),o=this.$el&&this.$el.firstChild&&this.$el.firstChild.firstChild?this.$el.firstChild.firstChild.cloneNode(!0):null,r=o&&o.getBoundingClientRect?o:this._initiallyMountedContent;if(r)i.appendChild(r);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="'.concat(s," ").concat(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 d=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(d)for(var c=0,u=Object.entries(d);c<u.length;c++){var p=u[c],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=z||e,n=this.$props,i=n.className,r=n.popupClass,s=n.show,a=n.id,l=(0,L.getDefaultSlots)(this),d=this.v3||s?l:null,c=M()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var u=this.calculatePosition(this.$props,c);this._offsetLeft=u.offset.left,this._offsetTop=u.offset.top,this._flipped=!!u.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&&c?t(o.Mi,{id:a,attrs:this.v3?void 0:{id:a,role:this.appendTo?"":"region",componentChildClassName:[r,H],className:i,direction:p,transitionEnterDuration:f,transitionExitDuration:v,appear:s},role:this.appendTo?"":"region",componentChildClassName:[r,H],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[d]}:[d]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[r,H]},[l])])}},U=W},7984:(e,t,n)=>{n.r(t),n.d(t,{Draggable:()=>B,Keys:()=>s,canUseDOM:()=>a,classNames:()=>o,clone:()=>P,cloneArray:()=>L,cloneDate:()=>N,cloneObject:()=>E,cloneValue:()=>V,firstFocusableChild:()=>u,focusContainer:()=>v,focusFirstFocusableChild:()=>h,focusLastFocusableChild:()=>f,getDefaultSlots:()=>O,getDir:()=>te,getListeners:()=>W,getRef:()=>l,getTabIndex:()=>Q,getTemplate:()=>Y,getter:()=>j,guid:()=>r,hasListener:()=>H,isObject:()=>i,isRtl:()=>ee,kendoThemeMaps:()=>oe,lastFocusableChild:()=>p,noop:()=>A,setRef:()=>d,setter:()=>_,templateDefinition:()=>J,templateRendering:()=>X,validatePackage:()=>ie});var i=function(e){return"object"==typeof e},o=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)?o.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(" ")},r=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);function l(e,t,n){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(n||t)]}function d(e,t,n){return e.v3?function(n){e["".concat(t,"Ref")]=n}:n||t}var c='input, [tabindex]:not([tabindex="-1"])',u=function(e){if(e){var t=e.querySelectorAll(c);if(t.length&&t[0].focus)return t[0]}},p=function(e){if(e){var t=e.querySelectorAll(c);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},h=function(e){if(e){var t=e.querySelectorAll(c);t.length&&t[0].focus&&t[0].focus()}},f=function(e){if(e){var t=e.querySelectorAll(c);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},v=function(e,t){var n=!0;if(e.keyCode!==s.enter&&e.target===t)return!1;if(e.keyCode===s.enter&&e.target===t)n=!0,setTimeout((function(){h(t)}),1);else if(e.keyCode===s.esc)n=!1,t.focus();else if(e.keyCode===s.tab){var i=u(t),o=p(t);o&&!e.shiftKey&&e.target===o&&(e.preventDefault(),i.focus()),i&&e.shiftKey&&e.target===i&&(e.preventDefault(),o.focus())}return n},m=n(1895),g=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},b=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},k=function(){},w=function(e){return e.preventDefault()},S=/touch/;function x(e){return e.type.match(S)?{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 C=function(e){var t=this,n=e.press;void 0===n&&(n=k);var i=e.drag;void 0===i&&(i=k);var o=e.release;void 0===o&&(o=k);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g(x,n),this._dragHandler=g(x,i),this._releaseHandler=g(x,o),this._ignoreMouse=!1,this._mouseOnly=r,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||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){b(t.document,"mousemove",t._mousemove),b(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",w),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(b(t.document,"pointermove",t._pointermove),b(t.document,"pointerup",t._pointerup),b(t.document,"pointercancel",t._pointerup),b(t.document,"contextmenu",w),t._releaseHandler(e))}},$={document:{configurable:!0}};C.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},$.document.get=function(){return this._element?this._element.ownerDocument:document},C.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},C.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},C.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return b(e,"pointerdown",this._pointerdown),b(this.document,"pointermove",this._pointermove),b(this.document,"pointerup",this._pointerup),b(this.document,"contextmenu",w),void b(this.document,"pointercancel",this._pointerup);b(e,"mousedown",this._mousedown),this._mouseOnly||(b(e,"touchstart",this._touchstart),b(e,"touchmove",this._touchmove),b(e,"touchend",this._touchend))},C.prototype._usePointers=function(){return!this._mouseOnly&&C.supportPointerEvent()},C.prototype.update=function(e){var t=e.press;void 0===t&&(t=k);var n=e.drag;void 0===n&&(n=k);var i=e.release;void 0===i&&(i=k);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=g(x,t),this._dragHandler=g(x,n),this._releaseHandler=g(x,i),this._mouseOnly=o},C.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(C.prototype,$),C.default=C;const I=C;function O(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}var D;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=m,R=(T.h,T.version&&"3"===T.version[0]),B=(M(D={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new I({press:this.press,drag:this.drag,release:this.release})},setup:R?function(){return{v3:!!R}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:R?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",R?function(){return{v3:!!R}}:void 0),M(D,"render",(function(e){return O(this)})),D),N=function(e){return e?new Date(e.getTime()):null};function P(e){var t={};return E(e,t),t}function E(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=V(i,t[n])}}function V(e,t){if(Array.isArray(e))return L(e);if(e instanceof Date)return N(e);if(e&&i(e)){var n=t||{};return E(e,n),n}return e}function L(e){return e.map((function(e){return V(e,void 0)}))}var A=function(){},F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,z={};function j(e){if(z[e])return z[e];var t=[];return e.replace(F,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),z[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},z[e]}z.undefined=function(){};var K={};function _(e){if(K[e])return K[e];var t=[];return e.replace(F,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),K[e]=function(e,n){for(var i=e,o=t.length-1,r=0;r<o&&i;r++)i=i[t[r]]=i[t[r]]||{};i[t[o]]=n},K[e]}function H(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 W(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}K.undefined=function(e){return e};var U=function(){return U=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)},q=m,G=q.version&&"3"===q.version[0],J={type:[String,Function,Object,Boolean],default:function(){}};function X(e,t){if(e||!1===e){var n=G?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 Y(e){var t,n,i,o=e.h,r=e.template,s=e.defaultRendering,a=e.defaultSlots,l=e.additionalProps,d=e.additionalListeners,c=e.swapDefaultSlots;if(!r||r&&!0===r.render)return s;if(G){var u=s?s.props:{};t=U(U({},Z(d)),r.listeners),n=U(U(U({},u),l),t),i=U(U({},n),t)}else{var p=s&&s.componentOptions,h=p?s.componentOptions.listeners:{},f=p?s.componentOptions.propsData:{};t=U(U(U(U({},h),d),Z(d)),r.listeners),i={props:n=U(U(U({},f),l),t),on:t}}if("slot"===r.type){var v=r.render({props:n,listeners:t,methods:t,defaultSlots:a});return v?v[0]:void 0}return"renderFunction"===r.type?c?r.render?r.render(o,s,a,n,t):void 0:r.render?r.render(o,s,n,t,a):void 0:o(r.render,i,G?function(){return[a]}:[a])}function Z(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];t["on"+o.charAt(0).toUpperCase()+o.slice(1)]=e[o]}return t}var Q=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 ee(e){return Boolean(a&&e&&"rtl"===getComputedStyle(e).direction)}function te(e,t){if(!t&&a&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var ne=n(9302);function ie(e){if(void 0!==ne)ne.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}var oe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},4407:e=>{e.exports=i},9302:e=>{e.exports=t},5725:e=>{e.exports=n},1895:t=>{t.exports=e}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.EditorUtils=e.EditorToolsSettings=e.Editor=e.ApplyColor=e.FindAndReplace=e.Print=e.Pdf=e.ViewHtml=e.InsertTable=e.InsertImage=e.SelectAll=e.CleanFormatting=e.Unlink=e.LinkTool=e.ProseMirrorTool=e.FormatBlock=e.FontName=e.InlineFormat=e.Outdent=e.List=e.Indent=e.Align=e.ProseMirror=void 0;var t=s(6445);Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}});var n=s(722);Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return n.EditorToolsSettings}});var i=s(6001);Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return i.EditorUtils}});var o=s(9157);e.ProseMirror={Selection:o.Selection,SelectionRange:o.SelectionRange,TextSelection:o.TextSelection,NodeSelection:o.NodeSelection,AllSelection:o.AllSelection,EditorState:o.EditorState,Plugin:o.Plugin,PluginKey:o.PluginKey,Transaction:o.Transaction,Decoration:o.Decoration,DecorationSet:o.DecorationSet,EditorView:o.EditorView,Node:o.Node,ResolvedPos:o.ResolvedPos,NodeRange:o.NodeRange,Fragment:o.Fragment,Slice:o.Slice,ReplaceError:o.ReplaceError,Mark:o.Mark,Schema:o.Schema,NodeType:o.NodeType,MarkType:o.MarkType,ContentMatch:o.ContentMatch,DOMParser:o.DOMParser,DOMSerializer:o.DOMSerializer,Transform:o.Transform,Step:o.Step,StepResult:o.StepResult,joinPoint:o.joinPoint,canJoin:o.canJoin,canSplit:o.canSplit,insertPoint:o.insertPoint,dropPoint:o.dropPoint,liftTarget:o.liftTarget,findWrapping:o.findWrapping,StepMap:o.StepMap,MapResult:o.MapResult,Mapping:o.Mapping,AddMarkStep:o.AddMarkStep,RemoveMarkStep:o.RemoveMarkStep,ReplaceStep:o.ReplaceStep,ReplaceAroundStep:o.ReplaceAroundStep,replaceStep:o.replaceStep,deleteSelection:o.deleteSelection,joinBackward:o.joinBackward,selectNodeBackward:o.selectNodeBackward,joinForward:o.joinForward,selectNodeForward:o.selectNodeForward,joinUp:o.joinUp,joinDown:o.joinDown,lift:o.lift,newlineInCode:o.newlineInCode,exitCode:o.exitCode,createParagraphNear:o.createParagraphNear,liftEmptyBlock:o.liftEmptyBlock,splitBlock:o.splitBlock,splitBlockKeepMarks:o.splitBlockKeepMarks,selectParentNode:o.selectParentNode,selectAll:o.selectAll,wrapIn:o.wrapIn,setBlockType:o.setBlockType,toggleMark:o.toggleMark,autoJoin:o.autoJoin,chainCommands:o.chainCommands,pcBaseKeymap:o.pcBaseKeymap,macBaseKeymap:o.macBaseKeymap,baseKeymap:o.baseKeymap,history:o.history,undo:o.undo,redo:o.redo,undoDepth:o.undoDepth,redoDepth:o.redoDepth,InputRule:o.InputRule,inputRules:o.inputRules,undoInputRule:o.undoInputRule,emDash:o.emDash,ellipsis:o.ellipsis,openDoubleQuote:o.openDoubleQuote,closeDoubleQuote:o.closeDoubleQuote,openSingleQuote:o.openSingleQuote,closeSingleQuote:o.closeSingleQuote,smartQuotes:o.smartQuotes,wrappingInputRule:o.wrappingInputRule,textblockTypeInputRule:o.textblockTypeInputRule,keymap:o.keymap,keydownHandler:o.keydownHandler,orderedList:o.orderedList,bulletList:o.bulletList,listItem:o.listItem,addListNodes:o.addListNodes,wrapInList:o.wrapInList,splitListItem:o.splitListItem,liftListItem:o.liftListItem,sinkListItem:o.sinkListItem,dropCursor:o.dropCursor,gapCursor:o.gapCursor,tableEditing:o.tableEditing,fixTables:o.fixTables,fixTablesKey:o.fixTablesKey,cellAround:o.cellAround,isInTable:o.isInTable,selectionCell:o.selectionCell,moveCellForward:o.moveCellForward,inSameTable:o.inSameTable,findCell:o.findCell,colCount:o.colCount,nextCell:o.nextCell,removeColSpan:o.removeColSpan,addColSpan:o.addColSpan,columnIsHeader:o.columnIsHeader,tableNodes:o.tableNodes,tableNodeTypes:o.tableNodeTypes,CellSelection:o.CellSelection,TableMap:o.TableMap,tableEditingKey:o.tableEditingKey,columnResizing:o.columnResizing,columnResizingPluginKey:o.columnResizingPluginKey,updateColumnsOnResize:o.updateColumnsOnResize,selectedRect:o.selectedRect,addColumn:o.addColumn,addColumnBefore:o.addColumnBefore,addColumnAfter:o.addColumnAfter,deleteColumn:o.deleteColumn,rowIsHeader:o.rowIsHeader,addRow:o.addRow,addRowBefore:o.addRowBefore,addRowAfter:o.addRowAfter,deleteRow:o.deleteRow,mergeCells:o.mergeCells,splitCell:o.splitCell,splitCellWithType:o.splitCellWithType,setCellAttr:o.setCellAttr,toggleHeader:o.toggleHeader,toggleHeaderRow:o.toggleHeaderRow,toggleHeaderColumn:o.toggleHeaderColumn,toggleHeaderCell:o.toggleHeaderCell,goToNextCell:o.goToNextCell,deleteTable:o.deleteTable};var r=s(3530);Object.defineProperty(e,"Align",{enumerable:!0,get:function(){return r.Align}});var l=s(8060);Object.defineProperty(e,"Indent",{enumerable:!0,get:function(){return l.Indent}});var d=s(3684);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return d.List}});var c=s(674);Object.defineProperty(e,"Outdent",{enumerable:!0,get:function(){return c.Outdent}});var u=s(7947);Object.defineProperty(e,"InlineFormat",{enumerable:!0,get:function(){return u.InlineFormat}});var p=s(1198);Object.defineProperty(e,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=s(423);Object.defineProperty(e,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=s(8356);Object.defineProperty(e,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=s(1013);Object.defineProperty(e,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=s(84);Object.defineProperty(e,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=s(4165);Object.defineProperty(e,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var y=s(9343);Object.defineProperty(e,"SelectAll",{enumerable:!0,get:function(){return y.SelectAll}});var b=s(3976);Object.defineProperty(e,"InsertImage",{enumerable:!0,get:function(){return b.InsertImage}});var k=s(8799);Object.defineProperty(e,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=s(3381);Object.defineProperty(e,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=s(8086);Object.defineProperty(e,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var x=s(4312);Object.defineProperty(e,"Print",{enumerable:!0,get:function(){return x.Print}});var C=s(1217);Object.defineProperty(e,"FindAndReplace",{enumerable:!0,get:function(){return C.FindAndReplace}});var $=s(5555);Object.defineProperty(e,"ApplyColor",{enumerable:!0,get:function(){return $.ApplyColor}})})(),a})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing","@progress/kendo-vue-intl","@progress/kendo-drawing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):e.KendoVueEditor=t(e.Vue,e.KendoLicensing,e.KendoVueIntl,e.KendoDrawing)}(self,(function(e,t,n,i){return(()=>{"use strict";var r={6445:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=a.markRaw,u=n(2857),p=n(9680),h=n(9157),f=n(1394),v=n(319),m=n(722),g=n(4361),y=n(6001),b=n(7578),k=n(709),w=m.EditorToolsSettings.link,S=m.EditorToolsSettings.bold,C=m.EditorToolsSettings.italic,x=m.EditorToolsSettings.underline,O=n(4056),I=n(169),$=n(3530),D=n(8060),M=n(3684),T=n(674),P=n(7947),R=n(1198),E=n(423),V=n(8356),B=n(1013),A=n(84),N=n(4165),L=n(9343),_=n(3976),F=n(8799),j=n(3381),z=n(8086),K=n(4312),H=n(1217),W=n(5555);t.allTools={Bold:{comp:P.InlineFormat,props:m.EditorToolsSettings.bold},Italic:{comp:P.InlineFormat,props:m.EditorToolsSettings.italic},Underline:{comp:P.InlineFormat,props:m.EditorToolsSettings.underline},Strikethrough:{comp:P.InlineFormat,props:m.EditorToolsSettings.strikethrough},Subscript:{comp:P.InlineFormat,props:m.EditorToolsSettings.subscript},Superscript:{comp:P.InlineFormat,props:m.EditorToolsSettings.superscript},AlignLeft:{comp:$.Align,props:m.EditorToolsSettings.alignLeft},AlignCenter:{comp:$.Align,props:m.EditorToolsSettings.alignCenter},AlignRight:{comp:$.Align,props:m.EditorToolsSettings.alignRight},AlignJustify:{comp:$.Align,props:m.EditorToolsSettings.alignJustify},Indent:{comp:D.Indent,props:m.EditorToolsSettings.indent},Outdent:{comp:T.Outdent,props:m.EditorToolsSettings.outdent},OrderedList:{comp:M.List,props:m.EditorToolsSettings.orderedList},UnorderedList:{comp:M.List,props:m.EditorToolsSettings.bulletList},FontSize:{comp:R.FontName,props:m.EditorToolsSettings.fontSize},FontName:{comp:R.FontName,props:m.EditorToolsSettings.fontName},FormatBlock:{comp:E.FormatBlock,props:m.EditorToolsSettings.formatBlock},Undo:{comp:V.ProseMirror,props:m.EditorToolsSettings.undo},Redo:{comp:V.ProseMirror,props:m.EditorToolsSettings.redo},Link:{comp:B.LinkTool,props:m.EditorToolsSettings.link},Unlink:{comp:A.Unlink,props:m.EditorToolsSettings.unlink},InsertImage:{comp:_.InsertImage,props:m.EditorToolsSettings.image},ViewHtml:{comp:j.ViewHtml,props:m.EditorToolsSettings.viewHtml},CleanFormatting:{comp:N.CleanFormatting,props:m.EditorToolsSettings.cleanFormatting},SelectAll:{comp:L.SelectAll,props:m.EditorToolsSettings.selectAll},InsertTable:{comp:F.InsertTable,props:m.EditorToolsSettings.insertTable},MergeCells:{comp:V.ProseMirror,props:m.EditorToolsSettings.mergeCells},SplitCell:{comp:V.ProseMirror,props:m.EditorToolsSettings.splitCell},AddRowBefore:{comp:V.ProseMirror,props:m.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:V.ProseMirror,props:m.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:V.ProseMirror,props:m.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:V.ProseMirror,props:m.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:V.ProseMirror,props:m.EditorToolsSettings.deleteRow},DeleteColumn:{comp:V.ProseMirror,props:m.EditorToolsSettings.deleteColumn},DeleteTable:{comp:V.ProseMirror,props:m.EditorToolsSettings.deleteTable},Print:{comp:K.Print,props:m.EditorToolsSettings.print},Pdf:{comp:z.Pdf,props:m.EditorToolsSettings.pdf},InsertFile:{comp:B.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:(0,p.guid)(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,(0,p.validatePackage)(I.packageMetadata)},mounted:function(){this.iframe=(0,p.getRef)(this,"iframe"),this.contentElement=(0,p.getRef)(this,"contentElement"),this.iframe&&O.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&&((0,k.updateEditorValue)(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:d?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:d?function(){return{v3:!!d}}:void 0,render:function(e){var n=l||e,r=100,o=this.$props,s=o.tools,a=void 0===s?[]:s,d=o.defaultEditMode,h=void 0===d?"iframe":d,f=o.preserveWhitespace,v=void 0===f?"full":f,m=o.style,y=this.getView();this.view&&(b.editorPropsKey.getState(this.view.state).preserveWhitespace=v);var k=this.$props.contentStyle;void 0===k&&void 0===(m||{}).height&&(k={height:"300px"});var S=function(e,o){var s=t.allTools[e]||e;if(t.allTools[e]){r++;var a=i({view:y,dir:this.$props.dir,key:r,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return n(this.v3?c(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return n(u.ToolbarSeparator,{key:r});var l=p.templateRendering.call(this,s.render,p.getListeners.call(this));return p.getTemplate.call(this,{h:n,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:y,dir:this.$props.dir,updateGuid:this.updateGuid,key:r,settings:s.props}})},C=function(e,t){return e.map((function(e){return S.call(this,e,t)}),this)},x=a.map((function(e,t){var i=this;return Array.isArray(e)?n(u.ButtonGroup,{key:t},this.v3?function(){return[C.call(i,e,t)]}:[C.call(i,e,t)]):S.call(this,e,t)}),this);return n("div",{class:(0,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}},[x.length>0&&n(u.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[x]}:[x]),"iframe"===h?n("div",{class:"k-editor-content"},[n("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:(0,p.setRef)(this,"iframe"),frameborder:"0",attrs:this.v3?void 0:{frameborder:"0"},style:k,class:"k-iframe"})]):n("div",{style:k,class:"k-editor-content"},[n("div",{ref:(0,p.setRef)(this,"contentElement")})]),function(){return this.linkDialog&&n(g.InsertLinkDialog,{view:y,attrs:this.v3?void 0:{view:y,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?y.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&y.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=(0,p.guid)())},iframeLoad:function(){O.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 a=this.$props.preserveWhitespace,l=void 0===a?"full":a,d=[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:b.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),(0,h.spacesFix)(),(0,h.history)(),(0,h.dropCursor)(),(0,h.gapCursor)(),(0,h.tableEditing)()],u=i(i({},y.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=(0,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,O=k&&"string"!=typeof k?k:y.EditorUtils.createDocument(new h.Schema({nodes:f.nodes,marks:f.marks}),k||g,{preserveWhitespace:l}),I={state:h.EditorState.create({plugins:s(s([],d,!0),[(0,h.keymap)(u),(0,h.keymap)(h.baseKeymap)],!1),doc:O}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},$={plugins:d,shortcuts:u,target:this,viewProps:I,dom:o};this.$emit("loaded",$);var D=this.$props.extendView&&this.$props.extendView($)||new h.EditorView({mount:o},I);this.v3?this.view=c(D):this._view=D}},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=y.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 G=U;t.Editor=G},319:(e,t)=>{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 }"},1394:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var r=n(9157);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=(0,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 d=i(i({},r.nodes),l);t.nodes=d},8826:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var r=n(9157),o=n(722),s=o.EditorToolsSettings.bold,a=o.EditorToolsSettings.underline,l=o.EditorToolsSettings.italic,d="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=(0,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(0,r.toggleInlineFormat)(o.bold||s)(e,t)},"Mod-i":function(e,t){return(0,r.toggleInlineFormat)(o.italic||l)(e,t)},"Mod-u":function(e,t){return(0,r.toggleInlineFormat)(o.underline||a)(e,t)},"Mod-z":r.undo,"Shift-Mod-z":r.redo},i({},d?{}:{"Mod-y":r.redo})),{Backspace:r.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},d?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return(0,r.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,r.goToNextCell)(1),"Shift-Tab":(0,r.goToNextCell)(-1)})}},722:(e,t,n)=>{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},i.apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var o,s,a=n(623),l=n(9157),d=i({},l.indentRules.listsTypes);o=t.EditorToolsSettings||(t.EditorToolsSettings={}),s={type:"button"},o.bold=i(i({},l.bold),{props:i({icon:"bold"},s),messages:{title:a.keys.bold},commandName:"Bold"}),o.italic=i(i({},l.italic),{props:i({icon:"italic"},s),messages:{title:a.keys.italic},commandName:"Italic"}),o.underline=i(i({},l.underline),{props:i({icon:"underline"},s),messages:{title:a.keys.underline},commandName:"Underline"}),o.strikethrough=i(i({},l.strikethrough),{props:i({icon:"strikethrough"},s),messages:{title:a.keys.strikethrough},commandName:"Strikethrough"}),o.subscript=i(i({},l.subscript),{props:i({icon:"subscript"},s),messages:{title:a.keys.subscript},commandName:"Subscript"}),o.superscript=i(i({},l.superscript),{props:i({icon:"superscript"},s),messages:{title:a.keys.superscript},commandName:"Superscript"}),o.link=i(i({},l.link),{props:i({icon:"link-horizontal"},s),messages:{insertHyperlink:a.keys.insertHyperlink,insertHyperlinkDialogTitle:a.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:a.keys.insertHyperlinkAddress,insertHyperlinkTitle:a.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:a.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:a.keys.insertHyperlinkCancel,insertHyperlinkInsert:a.keys.insertHyperlinkInsert},commandName:"Link"}),o.insertFile=i(i({},l.link),{props:i({icon:"file-add"},s),messages:{insertHyperlink:a.keys.insertFile,insertHyperlinkDialogTitle:a.keys.insertFileDialogTitle,insertHyperlinkAddress:a.keys.insertFileAddress,insertHyperlinkTitle:a.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:a.keys.insertFileCancel,insertHyperlinkInsert:a.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),o.insertTable={props:i({icon:"table-insert"},s),messages:{createTable:a.keys.createTable,createTableHint:a.keys.createTableHint},commandName:"InsertTable"},o.addRowBefore={command:l.addRowBefore,props:i({icon:"table-row-insert-above"},s),messages:{title:a.keys.addRowBefore},commandName:"AddRowBefore"},o.addRowAfter={command:l.addRowAfter,props:i({icon:"table-row-insert-below"},s),messages:{title:a.keys.addRowAfter},commandName:"AddRowAfter"},o.addColumnBefore={command:l.addColumnBefore,props:i({icon:"table-column-insert-left"},s),messages:{title:a.keys.addColumnBefore},commandName:"AddColumnBefore"},o.addColumnAfter={command:l.addColumnAfter,props:i({icon:"table-column-insert-right"},s),messages:{title:a.keys.addColumnAfter},commandName:"AddColumnAfter"},o.deleteRow={command:l.deleteRow,props:i({icon:"table-row-delete"},s),messages:{title:a.keys.deleteRow},commandName:"DeleteRow"},o.deleteColumn={command:l.deleteColumn,props:i({icon:"table-column-delete"},s),messages:{title:a.keys.deleteColumn},commandName:"DeleteColumn"},o.deleteTable={command:l.deleteTable,props:i({icon:"table-delete"},s),messages:{title:a.keys.deleteTable},commandName:"DeleteTable"},o.mergeCells={command:l.mergeCells,props:i({icon:"cells-merge"},s),messages:{title:a.keys.mergeCells},commandName:"MergeCells"},o.splitCell={command:l.splitCell,props:i({icon:"cell-split-horizontally"},s),messages:{title:a.keys.splitCell},commandName:"SplitCell"},o.print={props:i({icon:"print"},s),messages:{title:a.keys.print}},o.selectAll={props:i({icon:"select-all"},s),messages:{title:a.keys.selectAll}},o.pdf={props:i({icon:"pdf"},s),messages:{title:a.keys.pdf}},o.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},o.cleanFormatting={props:i({icon:"clear-css"},s),messages:{title:a.keys.cleanFormatting},commandName:"CleanFormatting"},o.image={node:"image",props:i({icon:"image"},s),messages:{insertImage:a.keys.insertImage,insertImageDialogTitle:a.keys.insertImageDialogTitle,insertImageAddress:a.keys.insertImageAddress,insertImageTitle:a.keys.insertImageTitle,insertImageAltText:a.keys.insertImageAltText,insertImageWidth:a.keys.insertImageWidth,insertImageHeight:a.keys.insertImageHeight,insertImageCancel:a.keys.insertImageCancel,insertImageInsert:a.keys.insertImageInsert},commandName:"InsertImage"},o.viewHtml={props:i({icon:"html"},s),messages:{viewHtml:a.keys.viewHtml,viewHtmlDialogTitle:a.keys.viewHtmlDialogTitle,viewHtmlCancel:a.keys.viewHtmlCancel,viewHtmlUpdate:a.keys.viewHtmlUpdate},commandName:"SetContent"},o.findAndReplace={props:i({icon:"find"},s),messages:{findReplaceToolTitle:a.keys.findReplaceToolTitle,findReplaceDialogTitle:a.keys.findReplaceDialogTitle,findReplaceTabFind:a.keys.findReplaceTabFind,findReplaceTabReplace:a.keys.findReplaceTabReplace,findReplaceFindWhat:a.keys.findReplaceFindWhat,findReplaceReplaceWith:a.keys.findReplaceReplaceWith,findReplaceReplace:a.keys.findReplaceReplace,findReplaceReplaceAll:a.keys.findReplaceReplaceAll,findReplaceMatchCase:a.keys.findReplaceMatchCase,findReplaceMatchWord:a.keys.findReplaceMatchWord,findReplaceMatchCyclic:a.keys.findReplaceMatchCyclic,findReplaceUseRegExp:a.keys.findReplaceUseRegExp,findReplacePrevMatch:a.keys.findReplacePrevMatch,findReplaceNextMatch:a.keys.findReplaceNextMatch,findReplaceMatches:a.keys.findReplaceMatches}},o.unlink=i(i({},l.link),{props:i({icon:"unlink-horizontal"},s),messages:{title:a.keys.unlink},commandName:"Unlink"}),o.undo={command:l.undo,props:i({icon:"undo"},s),messages:{title:a.keys.undo},commandName:"Undo"},o.redo={command:l.redo,props:i({icon:"redo"},s),messages:{title:a.keys.redo},commandName:"Redo"},o.fontSize={style:"font-size",defaultItem:{text:a.messages[a.keys.fontSize],value:"",localizationKey:a.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"},o.fontName={style:"font-family",defaultItem:{text:a.messages[a.keys.fontName],value:"",localizationKey:a.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"},o.formatBlock={defaultItem:{text:a.messages[a.keys.format],value:"",localizationKey:a.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"},o.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:a.keys.foregroundColor},commandName:"ForeColor"},o.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:a.keys.backgroundColor},commandName:"BackColor"},o.alignLeft={actions:r([],l.alignLeftRules,!0),props:i({icon:"align-left"},s),messages:{title:a.keys.alignLeft},commandName:"AlignLeft"},o.alignRight={actions:r([],l.alignRightRules,!0),props:i({icon:"align-right"},s),messages:{title:a.keys.alignRight},commandName:"AlignRight"},o.alignCenter={actions:r([],l.alignCenterRules,!0),props:i({icon:"align-center"},s),messages:{title:a.keys.alignCenter},commandName:"AlignCenter"},o.alignJustify={actions:r([],l.alignJustifyRules,!0),props:i({icon:"align-justify"},s),messages:{title:a.keys.alignJustify},commandName:"AlignJustify"},o.alignRemove={actions:r([],l.alignRemoveRules,!0),props:i({icon:"align-remove"},s),messages:{},commandName:"AlignRemove"},o.indent={actions:l.indentRules.nodes,listsTypes:d,props:i({icon:"indent-increase"},s),messages:{title:a.keys.indent},commandName:"Indent"},o.outdent={actions:l.outdentRules.nodes,listsTypes:d,props:i({icon:"indent-decrease"},s),messages:{title:a.keys.outdent},commandName:"Outdent"},o.orderedList={listType:d.orderedList,props:i({icon:"list-ordered"},s),messages:{title:a.keys.orderedList},commandName:"OrderedList",types:i({},d)},o.bulletList={listType:d.bulletList,props:i({icon:"list-unordered"},s),messages:{title:a.keys.bulletList},commandName:"UnorderedList",types:i({},d)}},9259:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(2857),d=n(1660),c=n(9231),u=n(5725),p=n(623),h=n(722),f=n(5901),v=n(9157),m=h.EditorToolsSettings.findAndReplace,g={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return m}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:(0,v.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(v.textHighlightKey,o),r.setSelection(t||v.TextSelection.create(i.doc,i.selection.from)),n.dispatch(r)}},destroyed:a?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=(0,u.provideLocalizationService)(this),r=this.settings.messages,o=r.findReplaceDialogTitle,a=r.findReplaceTabFind,h=r.findReplaceTabReplace,f=r.findReplaceFindWhat,v=r.findReplaceReplaceWith,m=r.findReplaceReplace,g=r.findReplaceReplaceAll,y=r.findReplaceMatchCase,b=r.findReplaceMatchWord,k=r.findReplaceMatchCyclic,w=r.findReplaceUseRegExp,S=r.findReplacePrevMatch,C=r.findReplaceNextMatch,x=r.findReplaceMatches,O=this,I=O.matchCase,$=O.matchWord,D=O.matchCyclic,M=O.useRegExp,T=O.searchText,P=O.replaceText,R=O.nextMatch,E=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?I:null,domProps:this.v3?void 0:{checked:I},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(y,p.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-whole"},id:"match-whole",checked:this.v3?$:null,domProps:this.v3?void 0:{checked:$},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(b,p.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-cyclic"},id:"match-cyclic",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},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,p.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?M:null,domProps:this.v3?void 0:{checked:M},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,p.messages[w])])])]),V=function(e){var t="rtl"===this.$props.dir,r=n(l.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-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]),o=n(l.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,p.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]}:[i.toLanguageString(C,p.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[r,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(x,p.messages[x]))]),o])},B=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,p.messages[f])])])},A=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?T:null,domProps:this.v3?void 0:{value:T},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},N=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,p.messages[v])])]),L=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?P:null,domProps:this.v3?void 0:{value:P},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(d.Window,{title:i.toLanguageString(o,p.messages[o]),attrs:this.v3?void 0:{title:i.toLanguageString(o,p.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(c.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(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")])])]}:[n(c.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(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatFind"),A.call(t,"findWhatFind")]),E,V.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[B.call(t,"findWhatReplace"),A.call(t,"findWhatReplace"),N,L]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),E,V.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(v.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(0,f.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=(0,v.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=(0,v.replace)(t,n,e.state.tr);o.setSelection(v.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((0,v.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=(0,v.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=g;var y=g;t.FindAndReplaceDialog=y},3270:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(1660),d=n(2857),c=n(9157),u=n(5725),p=n(623),h=n(9680),f={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=(0,h.getRef)(this,"src"),this.altText=(0,h.getRef)(this,"altText"),this.title=(0,h.getRef)(this,"title"),this.width=(0,h.getRef)(this,"width"),this.height=(0,h.getRef)(this,"height"),this.src&&this.src.focus()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,r=i.view,o=i.settings,a=i.dir,f=o.messages,v=f.insertImageDialogTitle,m=f.insertImageAddress,g=f.insertImageTitle,y=f.insertImageAltText,b=f.insertImageWidth,k=f.insertImageHeight,w=f.insertImageCancel,S=f.insertImageInsert,C=(0,u.provideLocalizationService)(this),x=r&&r.state,O={};x&&x.selection instanceof c.NodeSelection&&x.selection.node.type===x.schema.nodes[o.node]&&(O=x.selection.node.attrs);var I=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[C.toLanguageString(m,p.messages[m])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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?O.src:null,domProps:this.v3?void 0:{value:O.src},ref:(0,h.setRef)(this,"src")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[C.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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?O.alt:null,domProps:this.v3?void 0:{value:O.alt},ref:(0,h.setRef)(this,"altText")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[C.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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?O.title:null,domProps:this.v3?void 0:{value:O.title},ref:(0,h.setRef)(this,"title")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[C.toLanguageString(b,p.messages[b])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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?O.width:null,domProps:this.v3?void 0:{value:O.width},ref:(0,h.setRef)(this,"width")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[C.toLanguageString(k,p.messages[k])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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?O.height:null,domProps:this.v3?void 0:{value:O.height},ref:(0,h.setRef)(this,"height")})])])]),$=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[C.toLanguageString(w,p.messages[w])]}:[C.toLanguageString(w,p.messages[w])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:a,key:"insert"},this.v3?function(){return[C.toLanguageString(S,p.messages[S])]}:[C.toLanguageString(S,p.messages[S])])];return n(l.Dialog,{title:C.toLanguageString(v,p.messages[v]),attrs:this.v3?void 0:{title:C.toLanguageString(v,p.messages[v]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[I,n(l.DialogActionsBar,t.v3?function(){return[$]}:[$])]}:[I,n(l.DialogActionsBar,t.v3?function(){return[$]}:[$])])},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);(0,c.insertNode)(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",o))})),this.onClose()}}};t.InsertImageDialogVue2=f;var v=f;t.InsertImageDialog=v},4361:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(1660),d=n(2857),c=n(9157),u=n(5725),p=n(623),h=n(9680),f={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:a?function(){return{v3:!!a}}:void 0,mounted:function(){this.href=(0,h.getRef)(this,"href"),this.title=(0,h.getRef)(this,"title"),this.target=(0,h.getRef)(this,"target"),this.href&&this.href.focus()},render:function(e){var t=this,n=s||e,i=this.$props,r=i.view,o=i.settings,a=i.dir,f=(0,u.provideLocalizationService)(this),v=o.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,y=v.insertHyperlinkTitle,b=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!r&&(0,c.getMark)(r.state,r.state.schema.marks[o.mark]),C=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[f.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:(0,h.setRef)(this,"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}})])]),n("div",{class:"k-edit-label k-editor-link-text-row"},[n("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[f.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field k-editor-link-text-row"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("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:(0,h.setRef)(this,"title"),value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==o.linkTarget&&n("div",{class:"k-edit-field"},[n("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:(0,h.setRef)(this,"target"),checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),n("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[f.toLanguageString(b,p.messages[b])])])]);return n(l.Dialog,{title:f.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[C,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])])]}:[C,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.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};(0,c.applyLink)({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=f;var v=f;t.InsertLinkDialog=v},6607:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(1660),d=n(2857),c=n(9157),u=n(5725),p=n(623),h=n(7578),f=n(9680),v={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=(0,f.getRef)(this,"htmlArea")},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,r=i.view,o=i.settings,a=i.dir,h=(0,u.provideLocalizationService)(this),v=o.messages,m=v.viewHtmlDialogTitle,g=v.viewHtmlCancel,y=v.viewHtmlUpdate,b=n("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:(0,f.setRef)(this,"htmlArea"),value:this.v3?(0,c.indentHtml)((0,c.getHtml)(r.state)):null,domProps:this.v3?void 0:{value:(0,c.indentHtml)((0,c.getHtml)(r.state))}}),k=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[h.toLanguageString(g,p.messages[g])]}:[h.toLanguageString(g,p.messages[g])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:a,key:"update"},this.v3?function(){return[h.toLanguageString(y,p.messages[y])]}:[h.toLanguageString(y,p.messages[y])])];return n(l.Dialog,{title:h.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:h.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=(0,c.trimWhitespace)(this.htmlArea?this.htmlArea.value:""),r=h.editorPropsKey.getState(t.state).preserveWhitespace;(0,c.setHtml)(i,n.commandName,{preserveWhitespace:r})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=v;var m=v;t.ViewHtmlDialog=m},623:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var i="editor.bold",r="editor.italic",o="editor.underline",s="editor.strikethrough",a="editor.subscript",l="editor.superscript",d="editor.hyperlink",c="editor.insertFile",u="editor.print",p="editor.selectAll",h="editor.cleanFormatting",f="editor.pdf",v="editor.foregroundColor",m="editor.backgroundColor",g="editor.createTable",y="editor.insertTableHint",b="editor.addRowBefore",k="editor.addRowAfter",w="editor.addColumnBefore",S="editor.addColumnAfter",C="editor.deleteRow",x="editor.deleteColumn",O="editor.deleteTable",I="editor.mergeCells",$="editor.splitCell",D="editor.hyperlink-dialog-title",M="editor.hyperlink-dialog-content-address",T="editor.hyperlink-dialog-content-title",P="editor.hyperlink-dialog-content-newwindow",R="editor.hyperlink-dialog-cancel",E="editor.hyperlink-dialog-insert",V="editor.insertfile-dialog-title",B="editor.insertfile-dialog-content-address",A="editor.insertfile-dialog-content-title",N="editor.insertfile-dialog-cancel",L="editor.insertfile-dialog-insert",_="editor.image",F="editor.image-dialog-title",j="editor.image-address",z="editor.image-title",K="editor.image-altText",H="editor.image-width",W="editor.image-height",U="editor.image-cancel",G="editor.image-insert",q="editor.viewHtml",J="editor.viewHtml-dialog-title",Z="editor.viewHtml-cancel",X="editor.viewHtml-update",Y="editor.unlink",Q="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",ie="editor.format",re="editor.alignLeft",oe="editor.alignRight",se="editor.alignCenter",ae="editor.alignJustify",le="editor.indent",de="editor.outdent",ce="editor.orderedList",ue="editor.bulletList",pe="editor.findReplace-tool-title",he="editor.findReplace-dialog-title",fe="editor.findReplace-tab-find",ve="editor.findReplace-tab-replace",me="editor.findReplace-findWhat",ge="editor.findReplace-replaceWith",ye="editor.findReplace-replace",be="editor.findReplace-replaceAll",ke="editor.findReplace-matchCase",we="editor.findReplace-matchWord",Se="editor.findReplace-matchCyclic",Ce="editor.findReplace-useRegExp",xe="editor.findReplace-prevMatch",Oe="editor.findReplace-nextMatch",Ie="editor.findReplace-matches";t.messages=((n={})[i]="Bold",n[r]="Italic",n[o]="Underline",n[s]="Strikethrough",n[a]="Subscript",n[l]="Superscript",n[Y]="Remove hyperlink",n[Q]="Undo",n[ee]="Redo",n[te]="Font Size",n[ne]="Font Name",n[ie]="Format",n[re]="Align text left",n[oe]="Align text right",n[se]="Center text",n[ae]="Justify",n[le]="Indent",n[de]="Outdent",n[ce]="Insert ordered list",n[ue]="Insert unordered list",n[u]="Print",n[p]="Select All",n[h]="Clean formatting",n[f]="Export as PDF",n[v]="Color",n[m]="Background color",n[g]="Create a table",n[y]="Create a {0} x {1} table",n[b]="Add row above",n[k]="Add row below",n[w]="Add column on the left",n[S]="Add column on the right",n[C]="Delete row",n[x]="Delete column",n[O]="Delete table",n[I]="Merge cells",n[$]="Split cell",n[d]="Insert hyperlink",n[D]="Insert hyperlink",n[M]="Web address",n[T]="Title",n[P]="Open link in new window",n[R]="Cancel",n[E]="Insert",n[c]="Insert file",n[V]="Insert file",n[B]="Web address",n[A]="Title",n[N]="Cancel",n[L]="Insert",n[_]="Insert image",n[F]="Insert image",n[j]="Web address",n[z]="Title",n[K]="Alternate text",n[H]="Width (px)",n[W]="Height (px)",n[U]="Cancel",n[G]="Insert",n[q]="View HTML",n[J]="View HTML",n[Z]="Cancel",n[X]="Update",n[pe]="Find and Replace",n[he]="Find and Replace",n[fe]="Find",n[ve]="Replace",n[me]="Find What:",n[ge]="Replace With",n[ye]="Replace",n[be]="Replace All",n[ke]="Match Case",n[we]="Match whole word only",n[Se]="Match cyclic (Wrap around)",n[Ce]="Regular Expression",n[xe]="Prev",n[Oe]="Next",n[Ie]="{0} of {1} matches",n),t.keys={bold:i,italic:r,underline:o,strikethrough:s,subscript:a,superscript:l,unlink:Y,undo:Q,redo:ee,fontSize:te,fontName:ne,format:ie,alignLeft:re,alignRight:oe,alignCenter:se,alignJustify:ae,indent:le,outdent:de,orderedList:ce,bulletList:ue,print:u,selectAll:p,cleanFormatting:h,pdf:f,foregroundColor:v,backgroundColor:m,createTable:g,createTableHint:y,addRowBefore:b,addRowAfter:k,addColumnBefore:w,addColumnAfter:S,deleteRow:C,deleteColumn:x,deleteTable:O,mergeCells:I,splitCell:$,insertHyperlink:d,insertHyperlinkDialogTitle:D,insertHyperlinkAddress:M,insertHyperlinkTitle:T,insertHyperlinkNewWindow:P,insertHyperlinkCancel:R,insertHyperlinkInsert:E,insertFile:c,insertFileDialogTitle:V,insertFileAddress:B,insertFileTitle:A,insertFileCancel:N,insertFileInsert:L,insertImage:_,insertImageDialogTitle:F,insertImageAddress:j,insertImageTitle:z,insertImageAltText:K,insertImageWidth:H,insertImageHeight:W,insertImageCancel:U,insertImageInsert:G,viewHtml:q,viewHtmlDialogTitle:J,viewHtmlCancel:Z,viewHtmlUpdate:X,findReplaceToolTitle:pe,findReplaceDialogTitle:he,findReplaceTabFind:fe,findReplaceTabReplace:ve,findReplaceFindWhat:me,findReplaceReplaceWith:ge,findReplaceReplace:ye,findReplaceReplaceAll:be,findReplaceMatchCase:ke,findReplaceMatchWord:we,findReplaceMatchCyclic:Se,findReplaceUseRegExp:Ce,findReplacePrevMatch:xe,findReplaceNextMatch:Oe,findReplaceMatches:Ie}},169:(e,t)=>{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:1660633237,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"}},3530:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(722),u=n(9157),p=n(5725),h=n(623),f=c.EditorToolsSettings.alignRemove,v={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=r&&r.state,c=!!l&&(0,u.isAligned)(l,o.actions),f=(0,p.provideLocalizationService)(this),v=o.messages.title,m=i(i(i({},s),{selected:c,togglable:!0,title:f.toLanguageString(v,h.messages[v])}),o.props);return t(d.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:m},m))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,r=!!i&&(0,u.isAligned)(i,n.actions),o=r?f.actions:n.actions,s=r?f.commandName:n.commandName;return t&&(0,u.alignBlocks)(o,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=v;var m=v;t.Align=m},5555:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(5042),c=n(9157),u=n(5725),p=n(623),h={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.colorPickerProps,o=n.dir,s=r.title,l=(0,u.provideLocalizationService)(this),c=i(i({},r),{dir:o,showButtons:!1,showClearButton:!1,showPreview:!1,title:s?l.toLanguageString(s,p.messages[s]):s});return t(d.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:c},c))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,r=t.colorPickerProps,o=t.commandName;if(n){(0,c.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=h;var f=h;t.ApplyColor=f},4165:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.cleanFormatting,f=(0,p.cleanFormatting)(),v={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return h}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=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}(n,["view","render","settings"]),l=o.messages.title,p=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{disabled:!r||!f(r.state),title:p.toLanguageString(l,u.messages[l])}),o.props);return t(d.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:h},h))},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},1217:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9259),u=n(623),p=n(722),h=n(5725),f=p.EditorToolsSettings.findAndReplace,v={name:"KendoFindAndReplace",props:i({view:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=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}(n,["view"]),s=(0,h.provideLocalizationService)(this),l=f.messages.findReplaceToolTitle,p=i(i(i({},o),{key:"tool",disabled:!r,title:s.toLanguageString(l,u.messages[l])}),f.props),v=t(d.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:p},p));return t("span",[v,this.showDialog&&r&&t(c.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},1198:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(3922),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=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}(n,["view","render","dataItems","settings","defaultItem"]),v=s.style,m=r?(0,u.getInlineStyles)(r.state,{name:v,value:/^.+$/}):[],g=1===new Set(m).size?m[0]:null,y=o||s.items,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:g?y.find((function(e){return e.value===g})):g,dataItems:y,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},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},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=i.style,o=e.target.value;if(n){(0,u.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},423:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(3922),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=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}(n,["view","render","dataItems","settings","defaultItem"]),v=o||s.items,m=r&&r.state,g=m?(0,u.getBlockFormats)(m):[],y=1===new Set(g).size?g[0]:null,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:y?v.find((function(e){return e.value===y})):y,dataItems:v,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},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},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=e.target.value;if(n&&(0,u.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},8060:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(5725),p=n(623),h={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=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}(n,["view","render","settings"]),l=r&&r.state,h=l&&l.schema.nodes,f=h&&h[o.listsTypes.listItem],v=o.actions,m=!!l&&((0,c.isIndented)(l,v,s.dir)||v.some((function(e){return h[e.node]&&(0,c.hasNode)(l,h[e.node])})))&&!(0,c.hasNode)(l,f),g=!!l&&(0,c.canIndentAsListItem)(l,f),y=m||g,b=(0,u.provideLocalizationService)(this),k=o.messages.title,w=i(i(i({},s),{disabled:!y,title:b.toLanguageString(k,p.messages[k])}),o.props);return t(d.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:w},w))},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&&((0,c.isIndented)(e,i,this.dir)||i.some((function(n){return t[n.node]&&(0,c.hasNode)(e,t[n.node])})))&&!(0,c.hasNode)(e,n),o=!!e&&(0,c.canIndentAsListItem)(e,n);this.view&&o?(0,c.sinkListItem)(n)(this.view.state,this.view.dispatch):this.view&&r&&(0,c.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},7947:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(5725),p=n(623),h={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=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}(n,["view","render","settings"]),l=r&&r.state,h={mark:o.mark,altMarks:o.altMarks,altStyle:o.altStyle},f=(0,u.provideLocalizationService)(this),v=o.messages.title,m=i(i(i({},s),{selected:!!l&&(0,c.hasMark)(l,h),togglable:!0,title:f.toLanguageString(v,p.messages[v])}),o.props);return t(d.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:m},m))},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&&(0,c.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},3976:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(9157),c=n(2857),u=n(3270),p=n(5725),h=n(623),f={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=r&&r.state,f=l?l.schema.nodes[o.node]:void 0,v=(0,p.provideLocalizationService)(this),m=o.messages.insertImage,g=i(i(i({},s),{key:"insertImage",disabled:!f||!l||!(0,d.canInsert)(l,f),title:v.toLanguageString(m,h.messages[m])}),o.props),y=[t(c.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:g},g)),this.openedDialog&&r&&t(u.InsertImageDialog,{key:"insertImageDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:g.dir},settings:o,dir:g.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},1013:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(4361),p=n(5725),h=n(623),f={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},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=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=r&&r.state,f=!l||l.selection.empty,v=l&&(0,c.getMark)(l,l.schema.marks[o.mark]),m=(0,p.provideLocalizationService)(this),g=o.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:f&&!v,title:m.toLanguageString(g,h.messages[g])}),o.props),b=[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:y},y)),this.openedDialog&&r&&t(u.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",[b])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=f;var v=f;t.LinkTool=v},5085:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(4866),d=n(6764),c={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:a?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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,r=i.show,o=i.anchor,a=i.dir,c=i.rows,u=i.columns,p="rtl"===a?"right":"left";return n(l.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-border-up",show:r},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:r,style:"rtl"===a?{direction:"rtl"}:void 0},this.v3?function(){return[n(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,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(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,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=c;var u=c;t.InsertTablePopup=u},6764:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(1895)),s=o.h,a=o.version&&"3"===o.version[0],l=n(5901),d={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=[],r=this.$props.columns*this.$props.rows,o=this.$data,a=o.row,d=o.col,c=this.$props.createTableMessage;d>-1&&(c=(0,l.formatString)(this.$props.createTableHintMessage,a+1,d+1));for(var u=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-disabled"+(s<=i&&o<=t?" ".concat("k-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(u.call(this,p,a,d));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},[c])];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=d;var c=d;t.PopupGrid=c},8799:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9680),u=n(5085),p=n(5725),h=n(623),f=n(9157),v={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},d.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=(0,c.guid)()},data:function(){return{openedPopup:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=r&&r.state,c=(0,p.provideLocalizationService)(this),v=o.messages,m=v.createTable,g=v.createTableHint,y=c.toLanguageString(m,h.messages[m]),b=c.toLanguageString(g,h.messages[g]),k=i(i(i({},s),{disabled:!l||!(0,f.canInsert)(l,l.schema.nodes.table),key:"InsertTable",title:y}),o.props),w=[t(d.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:k},k)),r&&t(u.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:b,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:b,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",[w])},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=(0,f.createTable)(n.state.schema.nodes,e,t);i&&(0,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},3684:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(5725),p=n(623),h={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=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}(n,["view","render","settings"]),l=!1,h=(0,u.provideLocalizationService)(this),f=o.messages.title,v=o.types,m=o.listType;if(r){var g=r.state,y=g.schema.nodes,b=(0,c.hasNode)(g,y[v.orderedList]),k=(0,c.hasNode)(g,y[v.bulletList]);l=m===v.orderedList?b&&!k:!b&&k}var w=i(i(i({},s),{selected:l,togglable:!0,title:h.toLanguageString(f,p.messages[f])}),o.props);return t(d.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:w},w))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,r=n.types,o=n.listType;this.view&&(0,c.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},674:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(5725),p=n(623),h={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=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}(n,["view","render","settings"]),l=r&&r.state,h=!!l&&(0,c.isIndented)(l,o.actions,s.dir),f=(l&&l.schema.nodes[o.listsTypes.listItem],!!l&&(0,c.canOutdentAsListItem)(l,{nodes:o.actions,listsTypes:o.listsTypes})),v=h||f,m=(0,u.provideLocalizationService)(this),g=o.messages.title,y=i(i(i({},s),{disabled:!v,title:m.toLanguageString(g,p.messages[g])}),o.props);return t(d.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&&(0,c.isIndented)(r,n.actions,i),s=r&&r.schema.nodes[n.listsTypes.listItem],a=!!r&&(0,c.canOutdentAsListItem)(r,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?(0,c.liftListItem)(s)(t.state,t.dispatch):t&&o&&(0,c.indentBlocks)(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=h;var f=h;t.Outdent=f},8086:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(5725),u=n(3477),p=n(623),h=n(722),f=h.EditorToolsSettings.pdf,v=h.EditorToolsSettings.savePdfOptions,m={name:"KendoPdf",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=(n.view,n.render,n.settings),o=void 0===r?f:r,s=(n.savePdfOptions,n.savePdfCallback,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}(n,["view","render","settings","savePdfOptions","savePdfCallback"])),l=o.messages.title,u=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{title:u.toLanguageString(l,p.messages[l])}),o.props);return t(d.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:h},h))},methods:{handleClick:function(){this.view&&(0,u.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},4312:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(5725),u=n(623),p=n(722).EditorToolsSettings.print,h={name:"KendoPrint",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=void 0===o?p:o,l=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}(n,["view","render","settings"]),h=r&&r.dom,f=h&&h.ownerDocument,v=f&&f.defaultView,m=s.messages.title,g=(0,c.provideLocalizationService)(this),y=i(i(i({},l),{disabled:!v||v===window,title:g.toLanguageString(m,u.messages[m])}),s.props);return t(d.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},8356:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9680),u=n(5725),p=n(623),h={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||c.noop}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),c=o.messages.title,h=r&&r.state,f=!!h&&!this.command(h),v=i(i(i({},s),{disabled:f,title:l.toLanguageString(c,p.messages[c])}),o.props);return t(d.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:v},v))},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},9343:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.selectAll,f={name:"KendoSelectAll",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=(n.view,n.settings),o=void 0===r?h:r,s=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}(n,["view","settings"]),l=o.messages.title,p=(0,c.provideLocalizationService)(this),f=i(i(i({},s),{title:p.toLanguageString(l,u.messages[l])}),o.props);return t(d.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:f},f))},methods:{handleClick:function(){this.view&&((0,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},84:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(9157),u=n(5725),p=n(623),h={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l={mark:o.mark},h=!!r&&(0,c.hasMark)(r.state,l),f=(0,u.provideLocalizationService)(this),v=o.messages.title,m=i(i(i({},s),{disabled:!h,title:f.toLanguageString(v,p.messages[v])}),o.props);return t(d.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.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&(0,c.removeLink)(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=h;var f=h;t.Unlink=f},5901:(e,t)=>{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}},3381:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(2857),c=n(6607),u=n(5725),p=n(623),h={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},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=a||e,n=this.$props,r=n.view,o=n.settings,s=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}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),h=o.messages.viewHtml,f=i(i(i({},s),{key:"viewHtml",title:l.toLanguageString(h,p.messages[h])}),o.props),v=[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:f},f)),this.openedDialog&&r&&t(c.ViewHtmlDialog,{key:"viewHtmlDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:f.dir},settings:o,dir:f.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[v])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=h;var f=h;t.ViewHtml=f},4056:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(9157),r=n(6001),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})}},6001:(e,t,n)=>{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},i.apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}: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};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var s,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}(n(8826)),l=n(1394),d=n(9157),c=n(7578);(s=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,d.alignBlocks)(t,n)(e.state,e.dispatch))},s.applyInlineStyle=function(e,t,n){return(0,d.applyInlineStyle)(t,n)(e.state,e.dispatch)},s.applyLink=function(e,t,n){return(0,d.applyLink)(t,n)(e.state,e.dispatch)},s.canIndentList=function(e,t){return(0,d.canIndentAsListItem)(e,t)},s.canInsert=function(e,t){return(0,d.canInsert)(e,t)},s.canOutdentList=function(e,t){return(0,d.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},s.convertMsLists=function(e){return(0,d.convertMsLists)(e)},s.createDocument=function(e,t,n){return(0,d.parseContent)((0,d.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},s.createTable=function(e,t,n){return(0,d.createTable)(e,t,n)},s.formatBlockElements=function(e,t,n){return(0,d.formatBlockElements)(t,n)(e.state,e.dispatch)},s.getBlockFormats=function(e){return(0,d.getBlockFormats)(e)},s.getHtml=function(e){return(0,d.getHtml)(e)},s.getInlineStyles=function(e,t){return(0,d.getInlineStyles)(e,t)},s.getMark=function(e,t){return(0,d.getMark)(e,t)},s.hasMark=function(e,t){return(0,d.hasMark)(e,t)},s.hasNode=function(e,t){return(0,d.hasNode)(e,t)},s.indentBlocks=function(e,t,n,i){return Boolean((0,d.indentBlocks)(t,n,i)(e.state,e.dispatch))},s.indentHtml=function(e){return(0,d.indentHtml)(e)},s.insertNode=function(e,t,n){(0,d.insertNode)(t,n)(e.state,e.dispatch)},s.isAligned=function(e,t){return(0,d.isAligned)(e,t)},s.isIndented=function(e,t,n){return(0,d.isIndented)(e,t,n)},s.removeComments=function(e){return(0,d.removeComments)(e)},s.removeTag=function(e,t){return(0,d.removeTag)(e,t)},s.pasteCleanup=function(e,t){return(0,d.pasteCleanup)(e,t)},s.sanitizeClassAttr=function(e){(0,d.sanitizeClassAttr)(e)},s.sanitizeStyleAttr=function(e){(0,d.sanitizeStyleAttr)(e)},s.removeAttribute=function(e){(0,d.removeAttribute)(e)},s.sanitize=function(e){return(0,d.sanitize)(e)},s.replaceImageSourcesFromRtf=function(e,t){return(0,d.replaceImageSourcesFromRtf)(e,t)},s.textHighlight=function(e){return(0,d.textHighlight)(e)},s.imageResizing=function(e){return(0,d.imageResizing)(e)},s.setHtml=function(e,t,n,i){var r=(0,d.trimWhitespace)(t);(0,d.setHtml)(r,n,i)(e.state,e.dispatch)},s.toggleInlineFormat=function(e,t,n,i){return(0,d.toggleInlineFormat)(t,n,i)(e.state,e.dispatch)},s.toggleList=function(e,t,n){return(0,d.toggleList)(e.state,e.dispatch,e,t,n)},s.getShortcuts=function(e){return a.getShortcuts(e)},s.propsKey=c.editorPropsKey,s.imageResizeKey=d.imageResizeKey,s.marks=i({},l.marks),s.nodes=i({},l.nodes)},7578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(9157);t.editorPropsKey=new i.PluginKey("editor-props")},4941:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationVue2=t.Animation=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9389),a=n(9680),l=n(8420),d=n(1947).default.styles,c={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:o?function(){return{v3:!!o}}:void 0,created:function(){(0,a.validatePackage)(l.packageMetadata)},render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=(i.id,i.tag,i.role),l=i.className,c=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,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]])}}(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[d["animation-container"],d["animation-container-relative"],l]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:o},class:c,role:o},[t(s.AnimationChild,{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])])}};t.AnimationVue2=c;var u=c;t.Animation=u},9389:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationChildVue2=t.AnimationChild=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=r.Transition,d=n(1947),c=n(9680),u=d.default.styles,p={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:s?function(){return{v3:!!s,elementRef:a(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=o||e,r=this.$props,s=r.appear,a=r.enter,d=r.exit,p=r.transitionName,h=r.transitionEnterDuration,f=r.transitionExitDuration,v=(r.className,r.componentChildClassName),m=(r.mountOnEnter,r.unmountOnExit,r.animationEnteringStyle),g=r.animationEnteredStyle,y=r.animationExitingStyle,b=r.animationExitedStyle,k=(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]])}}(r,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),(0,c.getDefaultSlots)(this)),w=this.v3?s:!!k,S=this.v3?l:"transition",C=[v,u["child-animation-container"]],x=a?h:0,O=d?f:0,I=[i({transitionDelay:"0ms",transitionDuration:"".concat(w?x:O,"ms")},this.$props.transitionStyle),{entering:i({transitionDuration:"".concat(x,"ms")},m),entered:i({},g),exiting:i({transitionDuration:"".concat(O,"ms")},y),exited:i({},b)}[this.animationStep]],$={enter:x,leave:O},D=[w?n("div",{style:I,class:C,ref:this.v3?function(e){t.elementRef=e}:"element"},[k]):null];return n(S,{duration:$,attrs:this.v3?null:{duration:$,name:p,appear:s,appearClass:u["".concat(p,"-appear")]||"".concat(p,"-appear"),appearToClass:u["".concat(p,"-appear-active")]||"".concat(p,"-appear-active"),enterClass:u["".concat(p,"-enter")]||"".concat(p,"-enter"),enterToClass:u["".concat(p,"-enter-active")]||"".concat(p,"-enter-active"),leaveClass:u["".concat(p,"-exit")]||"".concat(p,"-exit"),leaveToClass:u["".concat(p,"-exit-active")]||"".concat(p,"-exit-active")},name:p,appear:s,appearFromClass:u["".concat(p,"-appear")]||"".concat(p,"-appear"),enterFromClass:u["".concat(p,"-enter")]||"".concat(p,"-enter"),leaveFromClass:u["".concat(p,"-exit")]||"".concat(p,"-exit"),appearToClass:u["".concat(p,"-appear-active")]||"".concat(p,"-appear-active"),enterToClass:u["".concat(p,"-enter-active")]||"".concat(p,"-enter-active"),leaveToClass:u["".concat(p,"-exit-active")]||"".concat(p,"-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)}};t.AnimationChildVue2=p;var h=p;t.AnimationChild=h},78:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandVue2=t.Expand=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(9680),l={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},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=(i.direction,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]])}}(i,["direction"]),"expand-".concat(this.$props.direction));return t(s.Animation,{transitionName:o,attrs:this.v3?void 0:{transitionName:o,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])}};t.ExpandVue2=l;var d=l;t.Expand=d},367:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FadeVue2=t.Fade=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(9680),l={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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this);return t(s.Animation,{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])}};t.FadeVue2=l;var d=l;t.Fade=d},5756:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PushVue2=t.Push=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(9680),l={position:"absolute",top:"0",left:"0"},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},childFactory:Object,className:String,direction:{type:String,default:"right"},tag:String,id:String},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i="push-".concat(this.$props.direction);return t(s.Animation,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?l:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?l:void 0},this.v3?function(){return[n]}:[n])}};t.PushVue2=d;var c=d;t.Push=c},7468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RevealVue2=t.Reveal=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(1947),l=n(9680),d=function(){},c={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=d);var n=e?e.firstElementChild:null;if(n){var i=a.default.outerHeight(n),r=a.default.outerWidth(n);this.$data.maxHeight=i,this.$data.maxWidth=r,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?"".concat(this.maxHeight,"px"):null}:{maxWidth:this.maxWidth?"".concat(this.maxWidth,"px"):null}).maxHeight,maxWidth:e.maxWidth}}}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,l.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.childFactory,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]])}}(i,["direction","childFactory"]),"reveal-".concat(this.$props.direction));return t(s.Animation,{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:o},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:o},this.v3?function(){return[n]}:[n])}};t.RevealVue2=c;var u=c;t.Reveal=u},1929:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SlideVue2=t.Slide=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(9680),l={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,role: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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.id),l=(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]])}}(i,["direction","id"]),"slide-".concat(this.$props.direction));return t(s.Animation,{id:o,attrs:this.v3?void 0:{id:o,transitionName:l,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:l,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])}};t.SlideVue2=l;var d=l;t.Slide=d},7524:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomVue2=t.Zoom=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4941),a=n(9680),l={position:"absolute",top:"0",left:"0"},d={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},stackChildren:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"out"},tag:String,id:String},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i="zoom-".concat(this.$props.direction);return t(s.Animation,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?l:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?l:void 0},this.v3?function(){return[n]}:[n])}};t.ZoomVue2=d;var c=d;t.Zoom=c},5173:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAnimation=t.animate=void 0,t.animate=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,r=e.duration,o=t&&1-t;return e.onStart&&e.onStart(),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)}))},t.cancelAnimation=function(e){e&&window.cancelAnimationFrame(e)}},8895:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAnimation=t.animate=t.RevealVue2=t.Reveal=t.ZoomVue2=t.Zoom=t.SlideVue2=t.Slide=t.PushVue2=t.Push=t.ExpandVue2=t.Expand=t.FadeVue2=t.Fade=t.AnimationChildVue2=t.AnimationChild=t.AnimationVue2=t.Animation=void 0;var i=n(4941);Object.defineProperty(t,"Animation",{enumerable:!0,get:function(){return i.Animation}}),Object.defineProperty(t,"AnimationVue2",{enumerable:!0,get:function(){return i.AnimationVue2}});var r=n(9389);Object.defineProperty(t,"AnimationChild",{enumerable:!0,get:function(){return r.AnimationChild}}),Object.defineProperty(t,"AnimationChildVue2",{enumerable:!0,get:function(){return r.AnimationChildVue2}});var o=n(367);Object.defineProperty(t,"Fade",{enumerable:!0,get:function(){return o.Fade}}),Object.defineProperty(t,"FadeVue2",{enumerable:!0,get:function(){return o.FadeVue2}});var s=n(78);Object.defineProperty(t,"Expand",{enumerable:!0,get:function(){return s.Expand}}),Object.defineProperty(t,"ExpandVue2",{enumerable:!0,get:function(){return s.ExpandVue2}});var a=n(5756);Object.defineProperty(t,"Push",{enumerable:!0,get:function(){return a.Push}}),Object.defineProperty(t,"PushVue2",{enumerable:!0,get:function(){return a.PushVue2}});var l=n(1929);Object.defineProperty(t,"Slide",{enumerable:!0,get:function(){return l.Slide}}),Object.defineProperty(t,"SlideVue2",{enumerable:!0,get:function(){return l.SlideVue2}});var d=n(7524);Object.defineProperty(t,"Zoom",{enumerable:!0,get:function(){return d.Zoom}}),Object.defineProperty(t,"ZoomVue2",{enumerable:!0,get:function(){return d.ZoomVue2}});var c=n(7468);Object.defineProperty(t,"Reveal",{enumerable:!0,get:function(){return c.Reveal}}),Object.defineProperty(t,"RevealVue2",{enumerable:!0,get:function(){return c.RevealVue2}});var u=n(5173);Object.defineProperty(t,"animate",{enumerable:!0,get:function(){return u.animate}}),Object.defineProperty(t,"cancelAnimation",{enumerable:!0,get:function(){return u.cancelAnimation}})},8420:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660632763,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"}},1947:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={outerHeight: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},outerWidth: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},styles:{"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"}}},9795:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonVue2=t.Button=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(4071),l=n(4606).default.styles,d={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null,keydown:null},props:{ariaLabel:String,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(){(0,s.validatePackage)(a.packageMetadata),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,r=t.iconClass,o=t.imageUrl,a=t.dir,d=t.size,c=t.shape,u=t.rounded,p=t.fillMode,h=t.themeColor,f=void 0!==i||void 0!==r||void 0!==o,v=(0,s.getDefaultSlots)(this);return(e={})[l.button]=!0,e["k-button-".concat(s.kendoThemeMaps.sizeMap[d]||d)]=d,e["k-button-".concat(c)]=c&&"rectangle"!==c,e["k-rounded-".concat(s.kendoThemeMaps.roundedMap[u]||u)]=u,e["k-icon-button"]=!v&&f,e["k-disabled"]=n,e["k-selected"]=this.computedSelected,e["k-rtl"]="rtl"===a,e["k-button-".concat(p)]=p,e["k-button-".concat(p,"-").concat(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)},handleKeydown:function(e){this.disabled||this.$emit("keydown",e)}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.togglable,o=n.icon,a=n.iconClass,l=n.imageUrl,d=n.imageAlt,c=(0,s.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,keydown:this.handleKeydown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,onKeydown:this.handleKeydown,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},[function(){if(l)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:d,src:l},class:"k-image",alt:d,src:l});if(o){var e=(0,s.classNames)("k-icon","k-button-icon","k-i-"+o);return t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return a?t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:a}):null}.call(this),c])}};t.ButtonVue2=d;var c=d;t.Button=c},5053:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupVue2=t.ButtonGroup=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(949),l=n(4071),d=n(4606).default.styles,c={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){(0,s.validatePackage)(l.packageMetadata)},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t,n=r||e,i=(0,s.getDefaultSlots)(this),o=function(e,t,i,r){var o,l=(0,s.classNames)(((o={})[d["state-disabled"]]=this.$props.disabled,o[d["group-start"]]=r?i:0===t,o[d["group-end"]]=r?0===t:i,o));return n(a.ButtonWrap,{class:l,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},l=(0,s.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},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:l},[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")}}};t.ButtonGroupVue2=c;var u=c;t.ButtonGroup=u},949:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonWrapVue2=t.ButtonWrap=void 0;var i=n(1895),r=(i.h,i.version&&"3"===i.version[0]),o=n(9680),s={name:"KendoButtonWrap",props:{},setup:r?function(){return{v3:!!r}}:void 0,render:function(e){return(0,o.getDefaultSlots)(this)[0]}};t.ButtonWrapVue2=s;var a=s;t.ButtonWrap=a},2695:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChipVue2=t.Chip=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),l=n(1880),d=n(5273),c=n(5395),u=n(4071),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:a.noop},handleDispatchSelection:{default:a.noop},handleDispatchFocus:{default:a.noop}},created:function(){this.currentDir=void 0,(0,a.validatePackage)(u.packageMetadata)},mounted:function(){this.chip=(0,a.getRef)(this,"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:c.SELECTION_ACTION.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:d.DATA_ACTION.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:l.FOCUS_ACTION.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:c.SELECTION_ACTION.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case a.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.FOCUS_ACTION.prev,payload:this.$props.value,event:e});break;case a.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.FOCUS_ACTION.next,payload:this.$props.value,event:e});break;case a.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:c.SELECTION_ACTION.toggle,payload:this.$props.value,event:e});break;case a.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:l.FOCUS_ACTION.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:o?function(){return{v3:!!o,chipRef:s(null)}}:void 0,render:function(e){var t,n=r||e,i=this.$props,o=i.size,s=i.rounded,l=i.themeColor,d=i.fillMode,c=i.look,u=i.type;return n("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabindex:(0,a.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:(0,a.setRef)(this,"chip"),dir:this.currentDir,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,a.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-".concat(a.kendoThemeMaps.sizeMap[o]||o)]=o,t["k-rounded-".concat(a.kendoThemeMaps.roundedMap[s]||s)]=s,t["k-chip-".concat(d)]=d,t["k-chip-".concat(d,"-").concat(l)]=Boolean(d&&l),t["k-chip-success"]="success"===u,t["k-chip-warning"]="warning"===u,t["k-chip-error"]="error"===u,t["k-chip-info"]="info"===u,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&&n("span",{class:(0,a.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&n("span",{class:(0,a.classNames)("k-chip-icon","k-icon",this.$props.icon)}),n("span",{class:"k-chip-content"},[this.$props.text&&n("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&&n("span",{class:"k-chip-actions"},[n("span",{class:"k-chip-action k-chip-remove-action"},[n("span",{class:(0,a.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}};t.ChipVue2=p;var h=p;t.Chip=h},2483:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChipListVue2=t.ChipList=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(9680),d=n(5395),c=n(1880),u=n(5273),p=n(2695),h=n(4071),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(){(0,l.validatePackage)(h.packageMetadata),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=(0,d.selectionReducer)(this.computedValue,i(i({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=(0,c.focusReducer)(e.payload,i(i({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=(0,u.dataReducer)(this.computedDataItems,i(i({},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:s?function(){return{v3:!!s,chipListRef:a(null)}}:void 0,render:function(e){var t,n=o||e,i=this.$props.size;return n("div",{ref:(0,l.setRef)(this,"chipList"),role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabindex:(0,l.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:(0,l.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,l.classNames)("k-chip-list",(t={},t["k-chip-list-".concat(l.kendoThemeMaps.sizeMap[i]||i)]=i,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=l.templateRendering.call(this,this.$props.chip,l.getListeners.call(this)),i=n(p.Chip,{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 l.getTemplate.call(this,{h:n,template:t,defaultRendering:i,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}};t.ChipListVue2=f;var v=f;t.ChipList=v},5273:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.dataReducer=t.DATA_ACTION=void 0,function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(n=t.DATA_ACTION||(t.DATA_ACTION={})),t.dataReducer=function(e,t){switch(t.type){case n.add:break;case n.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case n.reorder:break;default:return e}}},1880:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.focusReducer=t.FOCUS_ACTION=void 0,function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(n=t.FOCUS_ACTION||(t.FOCUS_ACTION={})),t.focusReducer=function(e,t){var i=t.items.findIndex((function(t){return t===e}));switch(t.type){case n.next:return i===t.items.length-1?e:t.items[i+1];case n.prev:return 0===i?e:t.items[i-1];case n.current:return t.payload;case n.reset:return null;default:return e}}},5395:(e,t)=>{var n,i,r=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.selectionReducer=t.SELECTION_ACTION=t.SELECTION_TYPE=void 0,function(e){e.single="single",e.multiple="multiple",e.none="none"}(n=t.SELECTION_TYPE||(t.SELECTION_TYPE={})),function(e){e.toggle="toggle",e.remove="remove"}(i=t.SELECTION_ACTION||(t.SELECTION_ACTION={})),t.selectionReducer=function(e,t){switch(t.selection){case n.single:switch(t.type){case i.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 i.remove:return t.payload===e?null:e;default:return e}case n.multiple:switch(t.type){case i.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):r(r([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case i.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):r(r([],e,!0),[t.payload],!1):e;default:return e}case n.none:return null;default:return e}}},9665:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingActionButtonVue2=t.FloatingActionButton=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),l=n(1426),d=n(4071),c=n(4661),u=n(4866),p={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(){(0,a.validatePackage)(d.packageMetadata),this.element=void 0,this._anchor=(0,a.guid)(),this.listId=(0,a.guid)(),this.buttonId=(0,a.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=(0,a.getRef)(this,"list"),this.popup=(0,a.getRef)(this,"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&&(0,c.position)(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){(0,c.position)(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),r=t.themeColor,o=t.fillMode,s=t.rounded;return(e={"k-fab":!0})["k-fab-".concat(i||"rectangle")]=null!==i,e["k-fab-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[s]||s)]=s,e["k-fab-".concat(o)]=o,e["k-fab-".concat(o,"-").concat(r)]=o&&r,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-".concat(this.$props.align.vertical,"-").concat(this.$props.align.horizontal)]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return(0,a.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){a.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 a.Keys.enter:case a.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case a.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case a.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case a.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case a.Keys.down:case a.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case a.Keys.up:case a.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:o?function(){return{v3:!!o,chipRef:s(null),kendoAnchorRef:s(null)}}:void 0,render:function(e){var t=this,n=this,i=r||e,o=this.$props,s=o.align,d=o.disabled,p=o.icon,h=o.iconClass,f=o.id,v=o.items,m=o.text,g=o.tabIndex,y=o.accessKey,b=o.popupSettings,k=a.templateRendering.call(this,this.$props.item,a.getListeners.call(this)),w=function(){return v&&v.map((function(e,t){return i(l.FloatingActionButtonItem,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:"".concat(this.listId,"-").concat(t),disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:k},id:"".concat(this.listId,"-").concat(t),disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:k,class:(0,a.classNames)(e.className,(0,c.getTextDirectionClass)(this.currentDir||"ltr",s.horizontal)),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown})}),this)},S=p&&!m,C=(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:v?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":v?this.computedOpened:void 0,"aria-haspopup":!!v,"aria-label":"".concat(m||""," floatingactionbutton"),"aria-owns":v?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&v?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,a.getTabIndex)(g,d),accesskey:y,dir:this.currentDir,disabled:d},role:v?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":v?this.computedOpened:void 0,"aria-haspopup":!!v,"aria-label":"".concat(m||""," floatingactionbutton"),"aria-owns":v?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&v?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,a.getTabIndex)(g,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},[p?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:(0,a.classNames)("k-fab-icon k-icon k-i-".concat(p))}):h?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:h}):null,m&&i("span",{class:"k-fab-text"},[m])]),i(u.Popup,{ref:(0,a.setRef)(this,"popup"),show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:b.animate,popupClass:(0,a.classNames)("k-popup-transparent k-fab-popup",b.popupClass),anchorAlign:b.anchorAlign||(0,c.getAnchorAlign)(s,this.isRtl),popupAlign:b.popupAlign||(0,c.getPopupAlign)(s,this.isRtl)},anchor:this._anchor,animate:b.animate,popupClass:(0,a.classNames)("k-popup-transparent k-fab-popup",b.popupClass),anchorAlign:b.anchorAlign||(0,c.getAnchorAlign)(s,this.isRtl),popupAlign:b.popupAlign||(0,c.getPopupAlign)(s,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:(0,a.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:(0,a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:S?C+"px":void 0,paddingRight:S?C+"px":void 0}},[w.call(t)])]}:[i("ul",{ref:(0,a.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:(0,a.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:S?C+"px":void 0,paddingRight:S?C+"px":void 0}},[w.call(t)])])])}};t.FloatingActionButtonVue2=p;var h=p;t.FloatingActionButton=h},1426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingActionButtonItemVue2=t.FloatingActionButtonItem=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),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=(0,a.getRef)(this,"element")},computed:{itemClassNames:function(){return(0,a.classNames)("k-fab-item",{"k-focus":this.focused,"k-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:o?function(){return{v3:!!o,elementRef:s(null)}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.disabled,o=n.id,s=n.tabIndex,l=n.dataItem,d=(n.customProp,l.text),c=l.icon,u=t("li",{ref:(0,a.setRef)(this,"element"),id:o,attrs:this.v3?void 0:{id:o,role:"menuitem",tabindex:(0,a.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(d||""," floatingactionbutton item")},class:this.itemClassNames,role:"menuitem",tabindex:(0,a.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(d||""," 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},[d&&t("span",{class:"k-fab-item-text"},[d]),c&&t("span",{class:(0,a.classNames)("k-fab-item-icon k-icon k-i-".concat(c))})]);return a.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:u,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}};t.FloatingActionButtonItemVue2=l;var d=l;t.FloatingActionButtonItem=d},1937:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4661:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.position=t.getTextDirectionClass=t.getPopupAlign=t.getAnchorAlign=t.toStringValues=t.DEFAULT_OFFSET=void 0,t.DEFAULT_OFFSET="16px",t.toStringValues=function(e){return"number"==typeof e?e+"px":e},t.getAnchorAlign=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},t.getPopupAlign=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},t.getTextDirectionClass=function(e,t){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e]["end"===t?"end":"start"]},t.position=function(e,r,o,s){var a=r.horizontal,l=r.vertical;if(e){var d=o&&void 0!==o.x?(0,t.toStringValues)(o.x):t.DEFAULT_OFFSET,c=o&&void 0!==o.x?"calc(50% + ".concat((0,t.toStringValues)(o.x),")"):"50%",u=o&&void 0!==o.y?(0,t.toStringValues)(o.y):t.DEFAULT_OFFSET,p=o&&void 0!==o.y?"calc(50% + ".concat((0,t.toStringValues)(o.y),")"):"50%";e.style.setProperty(n(r,s),"center"===a?c:d),e.style.setProperty(i(r),"middle"===l?p:u),s&&("top"!==l&&"bottom"!==l||"start"!==a||e.style.setProperty("left","unset"),"middle"===l&&"end"===a&&e.style.setProperty("right","unset"),"middle"===l&&"start"===a&&e.style.setProperty("left","unset"))}};var n=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},i=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}},322:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonItemVue2=t.ButtonItem=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={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=r||e,n=this.$props,i=n.dataItem,o=n.id,a=n.render,l=t("li",{id:o,attrs:this.v3?void 0:{id:o,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,r=e.index,o=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-".concat(i.icon):i.iconClass,d=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"}),o&&t("span",{class:"k-menu-link-text"},[o])]);return s.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||a,defaultRendering:d,additionalProps:{item:i,itemIndex:r,innerClass:this.innerClass,focused:this.focused}})}.call(this)]);return l}};t.ButtonItemVue2=a;var l=a;t.ButtonItem=l},2806:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownButtonVue2=t.DropDownButton=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(9795),d=n(9680),c=n(2601),u=n(322),p=n(4866),h=n(897),f=n(9680),v=n(4071),m={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=(0,d.guid)(),this.wrapper=null,this.mainButton=null,this.guid=(0,d.guid)(),this.buttonsData=[],(0,f.validatePackage)(v.packageMetadata)},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:s?function(){return{v3:!!s,kendoAnchorRef:a(null)}}:void 0,render:function(e){var t=this,n=o||e,r=this.isRtl(),s=r?"rtl":void 0,a=this.$props,c=a.tabIndex,v=a.disabled,m=(0,d.getDefaultSlots)(this);this.buttonsData=this.$props.items;var g=function(){var e=this.$props,t=e.item,r=e.itemRender,o=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var a="string"!=typeof e?i(i({},e),{render:f.templateRendering.call(this,e.render,f.getListeners.call(this))}):e;return n(u.ButtonItem,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:o,focused:this.focusedIndex===s,render:f.templateRendering.call(this,r,f.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(s)},textField:o,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:f.templateRendering.call(this,r,f.getListeners.call(this)),item:t,index:s,key:s,id:"".concat(this.guid,"-").concat(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(l.Button,{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:v||void 0,tabIndex:c,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":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(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:v||void 0,tabIndex:c,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":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,m]}:[t.$props.text,m]),function(){var e=this,t=this.$props,i=t.popupSettings,o=void 0===i?{}:i,s=t.size;return n(p.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:o.animate,popupClass:(0,d.classNames)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||(0,h.getAnchorAlign)(r),popupAlign:o.popupAlign||(0,h.getPopupAlign)(r)},show:this.computedOpened,animate:o.animate,popupClass:(0,d.classNames)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||(0,h.getAnchorAlign)(r),popupAlign:o.popupAlign||(0,h.getPopupAlign)(r),style:r?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(d.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(d.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!==d.Keys.down?this.computedOpened&&e.keyCode===d.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===d.Keys.enter||e.keyCode===d.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===d.Keys.esc&&(this.focusedIndex=-1,this.currentOpened=!1,this.dispatchPopupEvent(e,this.currentOpened)),this.computedOpened){var t=(0,c.default)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);this.focusedIndex=t;var n=e.keyCode===d.Keys.up||e.keyCode===d.Keys.down||e.keyCode===d.Keys.left||e.keyCode===d.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(){f.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}}};t.DropDownButtonVue2=m;var g=m;t.DropDownButton=g},5577:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitButtonVue2=t.SplitButton=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(9795),d=n(9680),c=n(322),u=n(2601),p=n(4866),h=n(897),f=n(9680),v=n(4071),m={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=(0,d.guid)(),this.mainButton=null,this.guid=(0,d.guid)(),this.buttonsData=[],(0,f.validatePackage)(v.packageMetadata)},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:s?function(){return{v3:!!s,kendoAnchorRef:a(null)}}:void 0,render:function(e){var t=this,n=this,r=o||e;this.buttonsData=this.$props.items;var s=this.isRtl(),a=s?"rtl":void 0,u=this.$props,v=u.tabIndex,m=u.disabled,g=(0,d.getDefaultSlots)(this),y=function(){var e=this.$props,t=e.item,n=e.itemRender,o=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var a="string"!=typeof e?i(i({},e),{render:f.templateRendering.call(this,e.render,f.getListeners.call(this))}):e;return r(c.ButtonItem,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:o,focused:this.focusedIndex===s,render:f.templateRendering.call(this,n,f.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(s)},textField:o,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:f.templateRendering.call(this,n,f.getListeners.call(this)),item:t,key:s,index:s,id:"".concat(this.guid,"-").concat(s)})}),this):null};return r("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:a,attrs:this.v3?void 0:{dir:a}},[r(l.Button,{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:m||void 0,tabIndex:v,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:a,type:"button","aria-disabled":m,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(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:m||void 0,tabIndex:v,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:a,ref:this._anchor,type:"button","aria-disabled":m,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,g]}:[t.$props.text,g]),r(l.Button,{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:m||void 0,tabIndex:-1,look:this.$props.look,dir:a,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:m||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:a,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,i=void 0===n?{}:n,o=t.size;return r(p.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:i.animate,popupClass:(0,d.classNames)("k-menu-popup",i.popupClass),anchorAlign:i.anchorAlign||(0,h.getAnchorAlign)(s),popupAlign:i.popupAlign||(0,h.getPopupAlign)(s)},show:this.computedOpened,animate:i.animate,popupClass:(0,d.classNames)("k-menu-popup",i.popupClass),anchorAlign:i.anchorAlign||(0,h.getAnchorAlign)(s),popupAlign:i.popupAlign||(0,h.getPopupAlign)(s),style:s?{direction:"rtl"}:void 0},this.v3?function(){return[r("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(d.kendoThemeMaps.sizeMap[o]||o),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[y.call(e)])]}:[r("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(d.kendoThemeMaps.sizeMap[o]||o),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[y.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==d.Keys.down?this.computedOpened&&e.keyCode===d.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===d.Keys.enter||e.keyCode===d.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===d.Keys.esc&&(t={focusedIndex:-1,currentOpened:!1},this.dispatchPopupEvent(e,t.currentOpened)),this.computedOpened){var n=(0,u.default)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);n!==this.focusedIndex&&((t=t||{}).focusedIndex=n);var i=e.keyCode===d.Keys.up||e.keyCode===d.Keys.down||e.keyCode===d.Keys.left||e.keyCode===d.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(){f.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}}};t.SplitButtonVue2=m;var g=m;t.SplitButton=g},2601:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(9680);t.default=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}}},897:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getPopupAlign=t.getAnchorAlign=void 0,t.getAnchorAlign=function(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t},t.getPopupAlign=function(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}},2857:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingActionButtonItemVue2=t.FloatingActionButtonItem=t.FloatingActionButtonVue2=t.FloatingActionButton=t.ChipListVue2=t.ChipList=t.ChipVue2=t.Chip=t.ButtonItem=t.DropDownButtonVue2=t.DropDownButton=t.SplitButtonVue2=t.SplitButton=t.ButtonGroupVue2=t.ButtonGroup=t.ButtonVue2=t.Button=t.ToolbarSpacerVue2=t.ToolbarSpacer=t.ToolbarSeparatorVue2=t.ToolbarSeparator=t.ToolbarItemVue2=t.ToolbarItem=t.ToolbarVue2=t.Toolbar=void 0;var o=n(9795);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return o.Button}}),Object.defineProperty(t,"ButtonVue2",{enumerable:!0,get:function(){return o.ButtonVue2}});var s=n(5053);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return s.ButtonGroup}}),Object.defineProperty(t,"ButtonGroupVue2",{enumerable:!0,get:function(){return s.ButtonGroupVue2}});var a=n(2695);Object.defineProperty(t,"Chip",{enumerable:!0,get:function(){return a.Chip}}),Object.defineProperty(t,"ChipVue2",{enumerable:!0,get:function(){return a.ChipVue2}});var l=n(2483);Object.defineProperty(t,"ChipList",{enumerable:!0,get:function(){return l.ChipList}}),Object.defineProperty(t,"ChipListVue2",{enumerable:!0,get:function(){return l.ChipListVue2}});var d=n(9665);Object.defineProperty(t,"FloatingActionButton",{enumerable:!0,get:function(){return d.FloatingActionButton}}),Object.defineProperty(t,"FloatingActionButtonVue2",{enumerable:!0,get:function(){return d.FloatingActionButtonVue2}});var c=n(1426);Object.defineProperty(t,"FloatingActionButtonItem",{enumerable:!0,get:function(){return c.FloatingActionButtonItem}}),Object.defineProperty(t,"FloatingActionButtonItemVue2",{enumerable:!0,get:function(){return c.FloatingActionButtonItemVue2}}),r(n(1937),t);var u=n(5577);Object.defineProperty(t,"SplitButton",{enumerable:!0,get:function(){return u.SplitButton}}),Object.defineProperty(t,"SplitButtonVue2",{enumerable:!0,get:function(){return u.SplitButtonVue2}});var p=n(2806);Object.defineProperty(t,"DropDownButton",{enumerable:!0,get:function(){return p.DropDownButton}}),Object.defineProperty(t,"DropDownButtonVue2",{enumerable:!0,get:function(){return p.DropDownButtonVue2}});var h=n(322);Object.defineProperty(t,"ButtonItem",{enumerable:!0,get:function(){return h.ButtonItem}});var f=n(7473);Object.defineProperty(t,"Toolbar",{enumerable:!0,get:function(){return f.Toolbar}}),Object.defineProperty(t,"ToolbarVue2",{enumerable:!0,get:function(){return f.ToolbarVue2}});var v=n(9538);Object.defineProperty(t,"ToolbarItem",{enumerable:!0,get:function(){return v.ToolbarItem}}),Object.defineProperty(t,"ToolbarItemVue2",{enumerable:!0,get:function(){return v.ToolbarItemVue2}});var m=n(2737);Object.defineProperty(t,"ToolbarSeparator",{enumerable:!0,get:function(){return m.ToolbarSeparator}}),Object.defineProperty(t,"ToolbarSeparatorVue2",{enumerable:!0,get:function(){return m.ToolbarSeparatorVue2}});var g=n(303);Object.defineProperty(t,"ToolbarSpacer",{enumerable:!0,get:function(){return g.ToolbarSpacer}}),Object.defineProperty(t,"ToolbarSpacerVue2",{enumerable:!0,get:function(){return g.ToolbarSpacerVue2}})},4071:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660632938,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"}},7473:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarVue2=t.Toolbar=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(4606),d=n(4071),c={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(","),(0,a.validatePackage)(d.packageMetadata)},computed:{selectors:function(){return this.$props.buttons||l.toolbarButtons}},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:s?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=(0,a.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(l.internalButtons)):[]},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===a.Keys.left||e.keyCode===a.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===a.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,r=t.offsetHeight;if(this.offsetWidth!==n||this.offsetHeight!==r){this.offsetWidth=n,this.offsetHeight=r;var o={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",i(i({target:this},o),{nativeEvent:e}))}}}}};t.ToolbarVue2=c;var u=c;t.Toolbar=u},9538:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarItemVue2=t.ToolbarItem=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("span",[(0,s.getDefaultSlots)(this)])}};t.ToolbarItemVue2=a;var l=a;t.ToolbarItem=l},2737:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarSeparatorVue2=t.ToolbarSeparator=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9538),a={name:"KendoToolbarItem",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)(s.ToolbarItem,{class:"k-separator"})}};t.ToolbarSeparatorVue2=a;var l=a;t.ToolbarSeparator=l},303:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarSpacerVue2=t.ToolbarSpacer=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s={name:"KendoToolbarItem",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("span",{class:"k-spacer"})}};t.ToolbarSpacerVue2=s;var a=s;t.ToolbarSpacer=a},4606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toolbarButtons=t.internalButtons=void 0,t.internalButtons=".k-dropdownlist > .k-button,.k-colorpicker > .k-button",t.toolbarButtons=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"],t.default={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"}}},4810:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogVue2=t.Dialog=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(1941),a=n(9680),l=n(621),d=n(9008),c={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:a.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:d.DEFAULT_DIALOGS_ZINDEX}},created:function(){(0,a.validatePackage)(l.packageMetadata),this.titleId=this.generateTitleId()},setup:o?function(){return{v3:!!o}}: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:o?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===a.Keys.esc&&a.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"+(0,a.guid)()}},render:function(e){var t=r||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,o=i.title,l=i.width,d=i.height,c=i.minWidth,u=i.dir,p=i.contentStyle,h=i.wrapperId,f=this.$props.titleRender?a.templateRendering.call(this,this.$props.titleRender,a.getListeners.call(this)):null,v=(0,a.getDefaultSlots)(this)||[];l=this.transformDimesion(l),d=this.transformDimesion(d),c=this.transformDimesion(c);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var y=void 0===this.$props.closeIcon||this.$props.closeIcon,b=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:u},id:h,dir:u},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":o||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":o||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:l,height:d,minWidth:c}},[(o||f)&&t(s.DialogTitleBar,{closeIcon:y,attrs:this.v3?void 0:{closeIcon:y,id:n,title:o,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:o,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:p},[v]),m])]);return this.$props.appendTo?t("div",[b]):b}};t.DialogVue2=c;var u=c;t.Dialog=u},2450:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBarVue2=t.DialogActionsBar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:o?function(){return{v3:!!o}}: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=r||e,n=(0,s.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}};t.DialogActionsBarVue2=a;var l=a;t.DialogActionsBar=l},1941:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBarVue2=t.DialogTitleBar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(2857),l={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:o?function(){return{v3:!!o}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=r||e,i=this.$props,o=i.id,l=i.closeIcon,d=i.titleRender,c=i.title;return t=s.getTemplate.call(this,{h:n,template:d,defaultRendering:c}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:o,attrs:this.v3?void 0:{id:o}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[l&&n(a.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}})])])}};t.DialogTitleBarVue2=l;var d=l;t.DialogTitleBar=d},1423:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(n=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",n.FULLSCREEN="FULLSCREEN",n.MINIMIZED="MINIMIZED"},5767:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.WindowVue2=t.Window=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(3540),l=n(9680),d=n(6078),c=n(1423),u=n(621),p=n(9008),h={name:"KendoWindow",emits:{resize:null,move:null,close:null,stagechange:null},provide:function(){return{kCurrentZIndex:p.DEFAULT_DIALOGS_ZINDEX}},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:l.templateDefinition,closeButton:l.templateDefinition,minimizeButton:l.templateDefinition,maximizeButton:l.templateDefinition,restoreButton:l.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(){(0,l.validatePackage)(u.packageMetadata),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||c.windowStage.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!==c.windowStage.FULLSCREEN?Math.max(this.$props.top||this.currentTop,0):0},computedLeft:function(){return this.windowStage!==c.windowStage.FULLSCREEN?Math.max(this.$props.left||this.currentLeft,0):0},computedWidth:function(){var e=this.$props.width||this.currentWidth;return this.windowStage===c.windowStage.FULLSCREEN&&(e=window.innerWidth),e},computedHeight:function(){var e=this.$props.height||this.currentHeight;return this.windowStage===c.windowStage.FULLSCREEN?e=window.innerHeight:this.windowStage===c.windowStage.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!==c.windowStage.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!==c.windowStage.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 l.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case l.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case l.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case l.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 l.Keys.up:this.windowStage===c.windowStage.MINIMIZED?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:c.windowStage.DEFAULT})):this.windowStage===c.windowStage.DEFAULT&&(this.handleFullscreen(e),this.$emit("stagechange",e,this,{state:c.windowStage.FULLSCREEN}));break;case l.Keys.down:this.windowStage===c.windowStage.FULLSCREEN?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:c.windowStage.DEFAULT})):this.windowStage===c.windowStage.DEFAULT&&(this.handleMinimize(e),this.$emit("stagechange",e,this,{state:c.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case l.Keys.esc:return void this.handleCloseWindow(e);case l.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case l.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case l.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case l.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=c.windowStage.MINIMIZED,this.currentHeight=0,this.$emit("stagechange",e,this,{state:c.windowStage.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=c.windowStage.FULLSCREEN,this.$emit("stagechange",e,this,{state:c.windowStage.FULLSCREEN})},handleRestore:function(e){e.preventDefault(),this.windowStage===c.windowStage.FULLSCREEN?(this.currentStage=c.windowStage.DEFAULT,this.currentLeft=this.windowCoordinatesState.leftBeforeAction,this.currentTop=this.windowCoordinatesState.topBeforeAction,this.currentWidth=this.windowCoordinatesState.widthBeforeAction,this.currentHeight=this.windowCoordinatesState.heightBeforeAction):this.windowStage===c.windowStage.MINIMIZED&&(this.currentStage=c.windowStage.DEFAULT,this.currentHeight=this.windowCoordinatesState.heightBeforeAction),this.$emit("stagechange",e,this,{state:c.windowStage.DEFAULT})},handleCloseWindow:function(e){e.preventDefault(),this.$emit("close",e,this,{state:void 0})},handleDoubleClick:function(e){this.$props.doubleClickStageChange&&(this.windowStage===c.windowStage.FULLSCREEN||this.windowStage===c.windowStage.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,d=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-d<0&&(this.currentHeight=d),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===c.windowStage.FULLSCREEN&&(this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight)}},render:function(e){var t=this,n=o||e,r=(0,l.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=l.templateRendering.call(this,this.$props.titleRender,l.getListeners.call(this)),u=l.templateRendering.call(this,this.$props.closeButton,l.getListeners.call(this)),p=l.templateRendering.call(this,this.$props.minimizeButton,l.getListeners.call(this)),h=l.templateRendering.call(this,this.$props.maximizeButton,l.getListeners.call(this)),f=l.templateRendering.call(this,this.$props.restoreButton,l.getListeners.call(this)),v=(0,l.getDefaultSlots)(this),m=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-focus")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-focus")},blur:function(e){return e.target.classList.remove("k-focus")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-focus")},onKeydown:this.handleKeyDown,ref:"windowElement",class:r,style:i({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||0},this.$props.windowStyle)},[n(l.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(a.WindowTitleBar,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:u,minimizeButton:p,maximizeButton:h,restoreButton:f},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:u,minimizeButton:p,maximizeButton:h,restoreButton:f})]}:[n(a.WindowTitleBar,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:u,minimizeButton:p,maximizeButton:h,restoreButton:f},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:u,minimizeButton:p,maximizeButton:h,restoreButton:f})]),this.windowStage!==c.windowStage.MINIMIZED?n("div",{class:"k-content k-window-content"},[v]):null,this.windowStage===c.windowStage.DEFAULT&&this.$props.resizable?n(d.ResizeHandlers,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[m]):m}};t.WindowVue2=h;var f=h;t.Window=f},6078:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlersVue2=t.ResizeHandlers=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=["n","e","s","w","se","sw","ne","nw"],l={name:"ResizeHandlers",emits:{resize:null},setup:o?function(){return{v3:!!o}}: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=r||e;return t("div",[a.map((function(e,n){var i=this;return t(s.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)])}};t.ResizeHandlersVue2=l;var d=l;t.ResizeHandlers=d},3540:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBarVue2=t.WindowTitleBar=void 0;var i=n(9680),r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(2857),l=n(1423),d={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:s?function(){return{v3:!!s}}: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=o||e,n=this.$props,r=n.stage,s=n.title,d=n.titleRender,c=n.minimizeButton,u=n.maximizeButton,p=n.restoreButton,h=n.closeButton,f=i.getTemplate.call(this,{h:t,template:d,defaultRendering:s}),v=t(a.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}}),m=i.getTemplate.call(this,{h:t,template:c,defaultRendering:v}),g=t(a.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}}),y=i.getTemplate.call(this,{h:t,template:u,defaultRendering:g}),b=t(a.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=i.getTemplate.call(this,{h:t,template:p,defaultRendering:b}),w=t(a.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=i.getTemplate.call(this,{h:t,template:h,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"},[f]),t("div",{class:"k-window-actions"},[r===l.windowStage.DEFAULT&&m,r===l.windowStage.DEFAULT&&y,r!==l.windowStage.DEFAULT&&k]),S])}};t.WindowTitleBarVue2=d;var c=d;t.WindowTitleBar=c},9008:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DIALOGS_ZINDEX=void 0,t.DEFAULT_DIALOGS_ZINDEX=10002},1660:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowVue2=t.Window=t.DialogActionsBarVue2=t.DialogActionsBar=t.DialogVue2=t.Dialog=void 0;var i=n(4810);Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return i.Dialog}}),Object.defineProperty(t,"DialogVue2",{enumerable:!0,get:function(){return i.DialogVue2}});var r=n(2450);Object.defineProperty(t,"DialogActionsBar",{enumerable:!0,get:function(){return r.DialogActionsBar}}),Object.defineProperty(t,"DialogActionsBarVue2",{enumerable:!0,get:function(){return r.DialogActionsBarVue2}});var o=n(5767);Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return o.Window}}),Object.defineProperty(t,"WindowVue2",{enumerable:!0,get:function(){return o.WindowVue2}})},621:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-dialogs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660632976,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"}},1190:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCompleteVue2=t.AutoComplete=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(2684),d=n(9622),c=n(9945),u=n(965),p=n(6665),h=n(3729),f=n(9680),v=f.kendoThemeMaps.sizeMap,m=f.kendoThemeMaps.roundedMap,g={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 u.default(this),this.anchor=(0,f.guid)(),this.inputId=(0,f.guid)()},setup:s?function(){return{v3:!!s,inputRef:a(null),kendoAnchorRef:a(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,f.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,f.getRef)(this,"kendoAnchor",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?(0,h.getItemValue)(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=void 0===n?[]:n,r=(0,h.getItemValue)(i[e],this.$props.textField);this.triggerOnChange(r,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=r[e];(0,h.areSame)(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,d=void 0!==this.$data.focusedItem?s.findIndex((function(e){return(0,h.areSame)(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf((0,h.getFocusedItem)(s,i,a)),c=this.base.navigation.navigate({keyCode:t,current:d,max:s.length-1,min:0});void 0!==c&&this.itemFocus(c,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,s=void 0===o?[]:o,a=r.textField;if(this.suggested="",i&&n===f.Keys.enter){var l=(0,h.getItemValue)(s[this.focusedIndex(e)],a);this.triggerOnChange(l,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,d=a&&a.length>i.length,c=this.$props.suggest,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==c&&!1!==c){l||d||!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);(!u&&i||u&&!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(),r=this.computedValue();i.event=e;var o=function(){n&&e.preventDefault()};t===f.Keys.enter||n&&t===f.Keys.esc||e.altKey&&t===f.Keys.up?(o(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):e.altKey||t!==f.Keys.up&&t!==f.Keys.down?n||t!==f.Keys.esc?!n&&r&&e.altKey&&t===f.Keys.down&&(this.togglePopup(i),this.applyState(i)):this.clearButtonClick(e):(o(),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(i({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[(0,h.itemIndexStartsWith)(i,e,r)];if(o){var s=(0,h.getItemValue)(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(0,h.areSame)(e,t.$data.focusedItem,o)})):s?s(r,a,o):Math.max(0,r.indexOf((0,h.getFocusedItem)(r,a,o)))}},render:function(e){var t,n=o||e,r=this.$props,s=r.dir,a=r.disabled,u=r.label,h=r.size,g=r.rounded,y=r.fillMode,b=r.style,k=r.loading,w=r.suggest,S=!this.$props.validityStyles||this.validity().valid,C=this.currentFocused,x=this.base,O=this.computedValue(),I=!k&&!!O,$=this.$props.id||this.inputId,D=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof w&&(this.suggested=w);var M=function(){var e=this.$props,t=e.textField,i=e.dataItems,r=void 0===i?[]:i,o=f.templateRendering.call(this,this.$props.itemRender,f.getListeners.call(this)),s=f.templateRendering.call(this,this.$props.listNoDataRender,f.getListeners.call(this)),a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(c.List,{id:x.listBoxId,attrs:this.v3?void 0:{id:x.listBoxId,show:a,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:O,textField:t,valueField:t,highlightSelected:!1,optionsGuid:x.guid,wrapperStyle:{maxHeight:D.height},wrapperCssClass:"k-list-content",itemRender:o,noDataRender:s},show:a,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:O,textField:t,valueField:t,highlightSelected:!1,optionsGuid:x.guid,ref:"list",wrapperStyle:{maxHeight:D.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:o,noDataRender:s})},T=n("span",{class:(0,f.classNames)("k-autocomplete k-input",(t={},t["k-input-".concat(v[h]||h)]=h,t["k-rounded-".concat(m[g]||g)]=g,t["k-input-".concat(y)]=y,t["k-invalid"]=!S,t["k-focus"]=C&&!a,t["k-loading"]=k,t["k-required"]=this.required,t["k-disabled"]=a,t)),ref:(0,f.setRef)(this,"kendoAnchor",this.anchor),style:u?i(i({},b),{width:void 0}):b,dir:s,attrs:this.v3?void 0:{dir:s}},[function(e,t){var i=this,r=this.$props,o=r.placeholder,s=r.tabIndex,d=r.readonly,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(l.SearchBar,{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:C,name:this.$props.name,disabled:a,readOnly:d,expanded:c,owns:x.listBoxId,activedescendant:"option-"+x.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:C,name:this.$props.name,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:x.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:x.handleFocus,onBlur:this.handleBlur,disabled:a,readOnly:d,expanded:c,owns:x.listBoxId,activedescendant:"option-"+x.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,O||"",$),function(e){return e?n(p.ClearButton,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,I),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,k),function(){var e,t=this,r=f.templateRendering.call(this,this.$props.header,f.getListeners.call(this)),o=f.templateRendering.call(this,this.$props.footer,f.getListeners.call(this)),a=f.getTemplate.call(this,{h:n,template:r}),l=f.getTemplate.call(this,{h:n,template:o}),c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=void 0!==D.width?D.width:x.popupWidth;return n(d.ListContainer,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:u,attrs:this.v3?void 0:{width:u,popupSettings:i(i({},D),{anchor:this.anchor,show:c,popupClass:(0,f.classNames)(D.popupClass,"k-list",(e={},e["k-list-".concat(v[h]||h)]=h,e)),className:(0,f.classNames)("k-list-container",D.className)}),dir:void 0!==s?s:this.base.dirCalculated},ref:"container",popupSettings:i(i({},D),{anchor:this.anchor,show:c,popupClass:(0,f.classNames)(D.popupClass,"k-list",(e={},e["k-list-".concat(v[h]||h)]=h,e)),className:(0,f.classNames)("k-list-container",D.className)}),dir:void 0!==s?s:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),M.call(t),l&&n("div",{class:"k-list-footer"},[l])]}:[a&&n("div",{class:"k-list-header"},[a]),M.call(t),l&&n("div",{class:"k-list-footer"},[l])])}.call(this)]);return u?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[T,this.$props.label?$?n("label",{for:$,attrs:this.v3?void 0:{for:$},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):T}};t.AutoCompleteVue2=g;var y=g;t.AutoComplete=y},755:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ComboBoxVue2=t.ComboBox=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=r.inject,d=n(965),c=n(9680),u=n(2857),p=c.kendoThemeMaps.sizeMap,h=c.kendoThemeMaps.roundedMap,f=n(3729),v=n(2684),m=n(9622),g=n(9945),y=n(6665),b=n(5725),k=n(313),w={name:"KendoComboBox",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,filterchange:null,pagechange: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)}}},inject:{kendoLocalizationService:{default:null}},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 d.default(this),this.anchor=(0,c.guid)(),this.inputId=(0,c.guid)()},setup:s?function(){return{v3:!!s,inputRef:a(null),elementRef:a(null),kendoAnchorRef:a(null),kendoLocalizationService:l("kendoLocalizationService",{})}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,c.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,c.getRef)(this,"kendoAnchor",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,d=this.$refs.scrollElement,c=this.computedValue();if(this.valueOnDidUpdate=c,l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),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 u=this.prevCurrentValue,p=n.findIndex((function(e){return(0,f.areSame)(e,c,i)})),h=!(0,f.areSame)(u,c,i);a&&r?(this.base.scrollToVirtualItem(r,p),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):o&&s&&c&&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(0,f.areSame)(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(0,f.getItemValue)(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?(0,f.getItemValue)(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=!(0,f.areSame)(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(),d=this.base.vs,c=this.computedValue();if(this.suggested="",-1===l||(0,f.isPresent)(c))if(""===a)this.handleItemSelect(0,e);else{var u=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:u,max:(d.enabled?d.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,d=(0,f.getItemValue)(this.computedValue(),s)===e?this.index:(0,f.getItemIndexByText)(o,e,s),c=-1!==d,u=void 0;if(this.suggested="",c)u=o[d];else{if(!a)return this.selectFocusedItem(e,t);u=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(u,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,d=(0,f.getItemValue)(this.computedValue(),s);if(this.suggested="",e===d||""===e&&!(0,f.isPresent)(d))return l&&this.base.togglePopup(t),this.applyState(t);var c=(0,f.getItemIndexByText)(o,e,s,!0),u=null;-1!==c?u=o[c]:a&&(u=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(u,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,d=i.focusedItemIndex,c=void 0===d?f.itemIndexStartsWith:d,u=l.skip,p=""===e&&0===u?0:c(o,e,s);return-1!==p?this.handleItemSelect(p+u,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===c.Keys.up||n===c.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===c.Keys.up?o():n===c.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,r)):n===c.Keys.esc&&o():e.altKey&&n===c.Keys.down?o():n===c.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,r)},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;(0,f.isPresent)(s)||(s=(0,f.getItemValue)(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,d=void 0===l?f.itemIndexStartsWith:l,c=this.$props.filter?this.$props.filter:this.currentText;return(0,f.isPresent)(e)&&void 0===c?i.findIndex((function(t){return(0,f.areSame)(t,e,o)})):c?d(i,c,r):0===a.skip?0:-1},suggestValue:function(e){var t=this.$props,n=t.dataItems,i=t.textField;this.suggested=(0,f.suggestValue)(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();!(0,f.isPresent)(n)&&!(0,f.isPresent)(e)||(0,f.areSame)(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=o||e,r=this.$props,s=r.dir,a=r.disabled,l=r.clearButton,d=r.label,w=r.textField,S=r.className,C=r.style,x=r.loading,O=r.iconClassName,I=r.virtual,$=r.size,D=r.fillMode,M=r.rounded,T=this.currentFocused,P=!this.$props.validityStyles||this.validity().valid,R=void 0!==this.$props.filter?this.$props.filter:this.currentText,E=(0,f.getItemValue)(this.computedValue(),w),V=(0,f.isPresent)(R)?R:E,B=l&&(!!V||(0,f.isPresent)(this.computedValue())),A=this.base,N=A.vs,L=this.$props.id||this.inputId,_=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),F=(0,b.provideLocalizationService)(this).toLanguageString(k.expandButton,k.messages[k.expandButton]);N.enabled=void 0!==I,void 0!==I&&(N.skip=I.skip,N.total=I.total,N.pageSize=I.pageSize);var j=function(){var e=this,t=this.$props,i=t.dataItemKey,r=t.dataItems,o=void 0===r?[]:r,s=c.templateRendering.call(this,this.$props.itemRender,c.getListeners.call(this)),a=c.templateRendering.call(this,this.$props.listNoDataRender,c.getListeners.call(this));I||(I={skip:0});var l=I.skip,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u="translateY(".concat(N.translate,"px)"),p=d?this.getFocusedIndex():void 0,h=(0,f.isPresent)(R)&&R!==E?null:this.computedValue();return n(g.List,{id:A.listBoxId,attrs:this.v3?void 0:{id:A.listBoxId,show:d,dataItems:o,focusedIndex:p,value:h,textField:w,valueField:i,optionsGuid:A.guid,wrapperStyle:{maxHeight:_.height},wrapperCssClass:"k-list-content",listStyle:N.enabled?{transform:u}:void 0,skip:l,itemRender:s,noDataRender:a},show:d,dataItems:o,focusedIndex:p,value:h,textField:w,valueField:i,optionsGuid:A.guid,ref:"list",wrapperStyle:{maxHeight:_.height},wrapperCssClass:"k-list-content",listStyle:N.enabled?{transform:u}:void 0,key:"listkey",skip:l,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:N.scrollHandler},itemRender:s,noDataRender:a,onScroll:N.scrollHandler},this.v3?function(){return[z.call(e)]}:[z.call(e)])},z=function(){return N.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},K=n("span",{class:(0,c.classNames)("k-combobox k-input",(t={},t["k-input-".concat(p[$]||$)]=$,t["k-rounded-".concat(h[M]||M)]=M,t["k-input-".concat(D)]=D,t["k-invalid"]=!P,t["k-loading"]=x,t["k-required"]=this.required,t["k-disabled"]=a,t["k-focus"]=T&&!a,t),S),ref:(0,c.setRef)(this,"kendoAnchor",this.anchor),style:d?i(i({},C),{width:void 0}):C,dir:s,attrs:this.v3?void 0:{dir:s}},[function(e,t){var i=this,r=this.$props,o=r.placeholder,s=r.tabIndex,l=r.dataItems,d=void 0===l?[]:l,c=r.dataItemKey;I||(I={skip:0});var u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,d.findIndex((function(e){return(0,f.areSame)(e,p,c)})));return this.suggested&&!(0,f.areSame)(this.valueOnDidUpdate,p,c)&&(this.suggested=""),n(v.SearchBar,{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:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+I.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){i.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:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+I.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,V||"",L),B&&!x&&n(y.ClearButton,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),x&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(u.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,"aria-label":F,size:$,fillMode:D,rounded:null,iconClass:(0,c.classNames)("k-icon k-i-arrow-s",O)},tabIndex:-1,"aria-label":F,size:$,fillMode:D,rounded:null,class:"k-input-button",iconClass:(0,c.classNames)("k-icon k-i-arrow-s",O),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,r=c.templateRendering.call(this,this.$props.header,c.getListeners.call(this)),o=c.templateRendering.call(this,this.$props.footer,c.getListeners.call(this)),a=c.getTemplate.call(this,{h:n,template:r}),l=c.getTemplate.call(this,{h:n,template:o}),d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=void 0!==_.width?_.width:A.popupWidth;return n(m.ListContainer,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:u,attrs:this.v3?void 0:{width:u,popupSettings:i(i({},_),{anchor:this.anchor,show:d,popupClass:(0,c.classNames)(_.popupClass,"k-list",(e={},e["k-list-".concat(p[$]||$)]=$,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,c.classNames)("k-list-container",_.className)}),dir:void 0!==s?s:this.base.dirCalculated},popupSettings:i(i({},_),{anchor:this.anchor,show:d,popupClass:(0,c.classNames)(_.popupClass,"k-list",(e={},e["k-list-".concat(p[$]||$)]=$,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,c.classNames)("k-list-container",_.className)}),dir:void 0!==s?s:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),j.call(t),l&&n("div",{class:"k-list-footer"},[l])]}:[a&&n("div",{class:"k-list-header"},[a]),j.call(t),l&&n("div",{class:"k-list-footer"},[l])])}.call(this)]);return d?n("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}},[K,this.$props.label?L?n("label",{for:L,attrs:this.v3?void 0:{for:L},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):K}};t.ComboBoxVue2=w;var S=w;t.ComboBox=S},3781:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownListVue2=t.DropDownList=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(9680),d=n(2857),c=l.kendoThemeMaps.sizeMap,u=l.kendoThemeMaps.roundedMap,p=n(9622),h=n(5516),f=n(6866),v=n(9945),m=n(965),g=n(3729),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},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 m.default(this),this.anchor=(0,l.guid)(),this.inputId=(0,l.guid)()},setup:s?function(){return{v3:!!s,selectRef:a(null),baseWrapperRef:a(null),kendoAnchorRef:a(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=(0,l.getRef)(this,"select"),this.base.wrapper=(0,l.getRef)(this,"kendoAnchor",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,d=this.$refs.filterInput,c=this.$refs.scrollElement;if(this.$refs.scroller,l&&(this.base.vs.list=l.list,this.base.list=l.list),c&&(this.base.vs.scrollElement=c),d&&(this.filterInput=d),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 u=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return(0,g.areSame)(e,u,i)})),f=!(0,g.areSame)(p,u,i);a&&r?(this.base.scrollToVirtualItem(r,h),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):o&&s&&u&&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(0,g.areSame)(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),(0,g.isPresent)(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(0,g.getItemValue)(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?(0,g.getItemValue)(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,d=-1===e&&void 0!==a?a:r[e-l],c=!(0,g.areSame)(d,this.computedValue(),s);this.triggerOnChange(d,t),c&&this.base.triggerPageChangeCornerItems(d,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,d=this.base.vs,c=this.computedValue(),u=r.findIndex((function(e){return(0,g.areSame)(e,c,s)})),p=this.base.navigation.navigate({current:l.skip+u,max:(d.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,d=this.searchState.last,c=(0,g.sameCharsOnly)(l,d),u=a.length,p=Math.max(0,o.findIndex((function(e){return(0,g.areSame)(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},u+=1,p+=1),p+=c?1:0,a=(0,g.shuffleData)(a,p,t);for(var h,f,v,m=0,y=this.$props,b=y.textField,k=y.ignoreCase;m<u;m++)if(h=(0,g.getItemValue)(a[m].item,b),f=c&&(0,g.matchText)(h,d,k),v=(0,g.matchText)(h,l,k),f||v){m=a[m].itemIndex;break}if(m!==u){var w=this.base.initState();w.event=e,this.handleItemSelect(m,w),this.applyState(w),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,s=t.disabled,a=t.virtual,d=void 0===a?{skip:0,total:0,pageSize:0}:a,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=e.keyCode,p=u===l.Keys.home||u===l.Keys.end,h=u===l.Keys.up||u===l.Keys.down,f=!c&&(e.altKey&&u===l.Keys.down||u===l.Keys.enter||u===l.Keys.space),v=c&&(e.altKey&&u===l.Keys.up||u===l.Keys.esc),m=r&&(u===l.Keys.left||u===l.Keys.right),g=h||!o&&(m||p),y=this.base.initState();if(y.event=e,!s){if(p&&this.base.vs.enabled)u===l.Keys.home?0!==d.skip?(this.base.triggerOnPageChange(y,0,d.pageSize),this._navigated=!0):this.triggerOnChange(i[0],y):d.skip<d.total-d.pageSize?(this.base.triggerOnPageChange(y,d.total-d.pageSize,d.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],y);else if(c&&u===l.Keys.enter){var b=this.focusedIndex();void 0!==b&&this.handleItemSelect(b,y),this.base.togglePopup(y),e.preventDefault()}else f||v?(this.base.togglePopup(y),e.preventDefault()):g&&(this.onNavigate(y,u),e.preventDefault());this.applyState(y)}},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!==l.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=(0,g.isPresent)(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,d=this.computedValue(),c=!(i.findIndex((function(e){return(0,g.areSame)(e,d,s)}))<0&&!this.$props.defaultItem);return!c&&e&&0===o.skip?l?l(i,e,a):i.indexOf((0,g.getFocusedItem)(i,e,a)):c||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){(0,g.areSame)(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=o||e,r=this.$props,s=r.style,a=r.className,m=r.label,y=r.dir,b=r.virtual,k=void 0===b?{skip:0}:b,w=r.size,S=r.rounded,C=r.fillMode,x=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,O=(0,g.getItemValue)(this.computedValue(),this.$props.textField),I=!this.$props.validityStyles||this.validity().valid,$=this.base,D=$.vs,M=this.$props.id||this.inputId;D.enabled=void 0!==this.$props.virtual;var T=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),P=this.$props,R=P.dataItemKey,E=P.dataItems,V=void 0===E?[]:E,B=P.disabled,A=P.tabIndex,N=P.loading,L=P.iconClassName,_=l.templateRendering.call(this,this.$props.valueRender,l.getListeners.call(this)),F=this.currentFocused,j=this.primitiveValue(),z=V.findIndex((function(e){return(0,g.areSame)(e,j,R)})),K=n("span",{class:"k-input-inner"},[n("span",{class:"k-input-value-text"},[O])]),H=l.getTemplate.call(this,{h:n,template:_,defaultRendering:K,additionalProps:i({value:this.computedValue()},this.$data)}),W=function(){var e=this.$props,t=e.textField,i=e.defaultItem;return void 0!==i&&n(f.ListDefaultItem,{defaultItem:i,attrs:this.v3?void 0:{defaultItem:i,textField:t,selected:(0,g.areSame)(this.computedValue(),i,R)},textField:t,selected:(0,g.areSame)(this.computedValue(),i,R),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},U=function(){var e=this,t=this.$props.textField,i=l.templateRendering.call(this,this.$props.itemRender,l.getListeners.call(this)),r=l.templateRendering.call(this,this.$props.listNoDataRender,l.getListeners.call(this)),o=k.skip,s="translateY(".concat(D.translate,"px)");return n(v.List,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:x,dataItems:V.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:R,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:s}:void 0,skip:o,itemRender:i,noDataRender:r},show:x,dataItems:V.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:R,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:T.height},wrapperCssClass:"k-list-content",listStyle:D.enabled?{transform:s}:void 0,key:"listkey",skip:o,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:D.scrollHandler},itemRender:i,noDataRender:r,onScroll:D.scrollHandler},this.v3?function(){return[q.call(e)]}:[q.call(e)])},G=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&n(h.ListFilter,{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})},q=function(){return D.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&($.vs.skip=k.skip,$.vs.total=k.total,$.vs.pageSize=k.pageSize);var J=n("span",{ref:(0,l.setRef)(this,"kendoAnchor",this.anchor),class:(0,l.classNames)("k-dropdownlist k-picker",a,(t={},t["k-picker-".concat(c[w]||w)]=w,t["k-rounded-".concat(u[S]||S)]=S,t["k-picker-".concat(C)]=C,t["k-focus"]=F,t["k-disabled"]=B,t["k-invalid"]=!I,t["k-loading"]=N,t["k-required"]=this.required,t)),style:m?i(i({},s),{width:void 0}):s,dir:y,attrs:this.v3?void 0:{dir:y,tabindex:(0,l.getTabIndex)(A,B),accesskey:this.$props.accessKey,role:"listbox","aria-disabled":B||void 0,"aria-haspopup":!0,"aria-expanded":x||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":x?"option-"+this.base.guid+"-"+(z+(k?k.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:x?g.preventDefaultNonInputs:l.noop,on:this.v3?void 0:{mousedown:x?g.preventDefaultNonInputs:l.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:B?l.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabindex:(0,l.getTabIndex)(A,B),accesskey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:B?l.noop:this.handleWrapperClick,"aria-disabled":B||void 0,"aria-haspopup":!0,"aria-expanded":x||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":x?"option-"+this.base.guid+"-"+(z+(k?k.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},[H,N&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:w,fillMode:C,rounded:null,iconClass:(0,l.classNames)("k-icon k-i-arrow-s",L)},tabIndex:-1,size:w,fillMode:C,rounded:null,class:"k-input-button",iconClass:(0,l.classNames)("k-icon k-i-arrow-s",L)}),function(e){return n("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:M,tabindex:-1,"aria-hidden":!0,title:this.$props.label},id:M,ref:(0,l.setRef)(this,"select"),tabindex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[n("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,j),function(){var e,t=this,r=l.templateRendering.call(this,this.$props.header,l.getListeners.call(this)),o=l.templateRendering.call(this,this.$props.footer,l.getListeners.call(this)),s=l.getTemplate.call(this,{h:n,template:r}),a=l.getTemplate.call(this,{h:n,template:o}),d=void 0!==T.width?T.width:$.popupWidth;return n(p.ListContainer,{onMousedown:g.preventDefaultNonInputs,on:this.v3?void 0:{mousedown:g.preventDefaultNonInputs,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==y?y:$.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==y?y:$.dirCalculated,width:d,popupSettings:i(i({},T),{popupClass:(0,l.classNames)(T.popupClass,"k-list",(e={},e["k-list-".concat(c[w]||w)]=w,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,l.classNames)("k-list-container",T.className),anchor:this.anchor,show:x})},width:d,popupSettings:i(i({},T),{popupClass:(0,l.classNames)(T.popupClass,"k-list",(e={},e["k-list-".concat(c[w]||w)]=w,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,l.classNames)("k-list-container",T.className),anchor:this.anchor,show:x}),onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[G.call(t),W.call(t),s&&n("div",{class:"k-list-header"},[s]),U.call(t),a&&n("div",{class:"k-list-footer"},[a])]}:[G.call(t),W.call(t),s&&n("div",{class:"k-list-header"},[s]),U.call(t),a&&n("div",{class:"k-list-footer"},[a])])}.call(this)]);return m?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}},[J,this.$props.label?M?n("label",{for:M,attrs:this.v3?void 0:{for:M},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):J}};t.DropDownListVue2=y;var b=y;t.DropDownList=b},7050:(e,t,n)=>{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},i.apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectVue2=t.MultiSelect=void 0;var o,s=n(1895),a=s.h,l=s.version&&"3"===s.version[0],d=s.ref,c=n(9680),u=c.kendoThemeMaps.sizeMap,p=c.kendoThemeMaps.roundedMap,h=n(9622),f=n(9945),v=n(9029),m=n(2684),g=n(965),y=n(6665),b=n(2124),k=n(3729),w=function(e){return e.preventDefault()},S=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||(0,k.matchDataCollections)(e.data,t.data,n))},C=function(e){return e===o.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(o||(o={}));var x={name:"KendoMultiSelect",emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,pagechange: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:l?function(){return{v3:!!l,inputRef:d(null),kendoAnchorRef:d(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||(0,k.getItemValue)(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 g.default(this),this.anchor=(0,c.guid)(),this.inputId=(0,c.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:b.ActiveDescendant.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 d=this.getFocusedState(),c=d.focusedItem,u=d.focusedIndex;r&&e?(this.base.scrollToVirtualItem(e,u-t),this.prevCurrentOpened=!0):r&&!e?(this.base.scrollToItem(u),this.prevCurrentOpened=!0):n&&i&&c&&this.scrollToFocused&&this.base.scrollToItem(u-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=(0,c.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,c.getRef)(this,"kendoAnchor",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(0,k.getItemValue)(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return(0,k.getItemValue)(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,o=void 0===i?[]:i,s=n.dataItemKey,a=n.virtual,l=this.computedValue(),d=o[e-(a?a.skip:0)],c=l.findIndex((function(e){return(0,k.areSame)(e,d,s)})),u=[];-1!==c?(u=l).splice(c,1):u=r(r([],l,!0),[d],!1),(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(u,t),this.base.triggerPageChangeCornerItems(d,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();(0,k.removeDataItems)(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,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=void 0!==this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedState(),d=l.focusedType,u=l.focusedIndex,p=i&&a,h=C(d),f=this.base,v=f.vs;if(s&&t===c.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:u,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,r=void 0===i?[]:i,o=n.allowCustom,s=n.virtual,a=s?s.skip:0,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=o&&l,u=r[e-a];u&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=b.ActiveDescendant.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(u,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;(0,k.isPresent)(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,s=this.base.initState();if(s.event=e,!i&&this.computedValue().length>0&&(n===c.Keys.left||n===c.Keys.right||n===c.Keys.home||n===c.Keys.end||n===c.Keys.delete||n===c.Keys.backspace))return this.onTagsNavigate(e,s);var a=function(){e.preventDefault(),t.base.togglePopup(s),t.applyState(s)};r?e.altKey&&n===c.Keys.up?a():n===c.Keys.up||n===c.Keys.down?(e.preventDefault(),this.onNavigate(s,n)):n===c.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===o?this.customItemSelect(e):this.selectFocusedItem(e)):n===c.Keys.esc&&a():e.altKey&&n===c.Keys.down&&a()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,r=this._tags,o=this.$props.dataItemKey,s=i?r.findIndex((function(e){return S(e,i,o)})):-1,a=void 0,l=-1!==s;if(n===c.Keys.left)a=r[s=l?Math.max(0,s-1):r.length-1];else if(n===c.Keys.right)s===r.length-1?a=void 0:l&&(a=r[s=Math.min(r.length-1,s+1)]);else if(n===c.Keys.home)a=r[0];else if(n===c.Keys.end)a=r[r.length-1];else if(n===c.Keys.delete){if(l){var d=this.computedValue();(0,k.removeDataItems)(d,r[s].data,o),this.triggerOnChange(d,t)}}else if(n===c.Keys.backspace)if(d=this.computedValue(),l)(0,k.removeDataItems)(d,r[s].data,o),this.triggerOnChange(d,t);else if(!l&&r.length){var u=r.pop();(0,k.removeDataItems)(d,u.data,o),this.triggerOnChange(d,t)}a!==i&&(t.data.currentFocusedTag=a,t.data.activedescendant=b.ActiveDescendant.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=r([],e,!0)),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,s=i.dataItems,a=void 0===s?[]:s,l=i.dataItemKey,d=i.virtual,c=i.textField,u=i.focusedItemIndex,p=void 0===u?k.itemIndexStartsWith:u,h=d&&d.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-h],focusedType:o.ListItem};var f=this.computedValue();if(r&&n)return{focusedItem:null,focusedIndex:-1,focusedType:o.CustomItem};if(n)return{focusedItem:a[e=p(a,n,c)],focusedIndex:e+h,focusedType:o.ListItem};if(f.length){var v=f[f.length-1];return e=a.findIndex((function(e){return(0,k.areSame)(e,v,l)})),void 0!==a[e]?{focusedIndex:e+h,focusedItem:a[e],focusedType:o.ListItem}:{focusedType:o.None,focusedIndex:-1}}return 0===h?{focusedItem:a[0],focusedIndex:0,focusedType:o.ListItem}:{focusedType:o.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 o=this.base.initState();o.event=e;var s=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(o.data.currentText=""),o.data.currentFocusedIndex=void 0,this.base.filterChanged("",o);var a=r(r([],this.computedValue(),!0),[s],!1);this.triggerOnChange(a,o),this.base.togglePopup(o),this.applyState(o)}},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=a||e,r=this.$props,o=r.style,s=r.label,l=r.dir,d=r.disabled,g=r.tags,x=r.textField,O=r.dataItemKey,I=r.virtual,$=r.loading,D=r.size,M=r.fillMode,T=r.rounded,P=r.tagsRounded,R=this.currentFocused,E=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),V=this.currentFocusedTag,B=this.computedValue(),A=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",N=!$&&(!!A||B.length>0),L=this.base.vs,_=this.$props.id||this.inputId,F=c.templateRendering.call(this,this.$props.tagRender,c.getListeners.call(this));L.enabled=void 0!==I,void 0!==I&&(L.skip=I.skip,L.total=I.total,L.pageSize=I.pageSize);var j=[];void 0===g?this.computedValue().forEach((function(e){j.push({text:(0,k.getItemValue)(e,x),data:[e]})})):j.push.apply(j,g),this.setItems(j,this._tags);var z=!this.$props.validityStyles||this.validity().valid,K=function(){var e=this,t=this.$props.dataItems,i=void 0===t?[]:t,r=c.templateRendering.call(this,this.$props.itemRender,c.getListeners.call(this)),o=c.templateRendering.call(this,this.$props.listNoDataRender,c.getListeners.call(this)),s=I?I.skip:0,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=this.getFocusedState().focusedIndex,d="translateY(".concat(L.translate,"px)");return n(f.List,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:a,dataItems:i.slice(),focusedIndex:l-s,value:this.computedValue(),textField:x,valueField:O,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:E.height},wrapperCssClass:"k-list-content",listStyle:L.enabled?{transform:d}:void 0,skip:s,itemRender:r,noDataRender:o},show:a,dataItems:i.slice(),focusedIndex:l-s,value:this.computedValue(),textField:x,valueField:O,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:E.height},wrapperCssClass:"k-list-content",listStyle:L.enabled?{transform:d}:void 0,key:"listKey",skip:s,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:L.scrollHandler},itemRender:r,noDataRender:o,onScroll:L.scrollHandler},this.v3?function(){return[H.call(e)]}:[H.call(e)])},H=function(){return L.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},W=n("span",{ref:(0,c.setRef)(this,"kendoAnchor",this.anchor),class:(0,c.classNames)("k-multiselect","k-input",(t={},t["k-input-".concat(u[D]||D)]=D,t["k-rounded-".concat(p[T]||T)]=T,t["k-input-".concat(M)]=M,t["k-focus"]=R&&!d,t["k-disabled"]=d,t["k-invalid"]=!z,t["k-loading"]=$,t["k-required"]=this.required,t)),style:s?i(i({},o),{width:void 0}):o,dir:l,attrs:this.v3?void 0:{dir:l},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:k.preventDefaultNonInputs},onClick:this.handleWrapperClick,onMousedown:k.preventDefaultNonInputs},[j.length>0&&n(v.TagList,{tagsRounded:P,attrs:this.v3?void 0:{tagsRounded:P,size:D,fillMode:M,tagRender:F,dataItems:j,guid:this.base.guid,focused:V?j.find((function(e){return S(e,V,O)})):void 0},size:D,fillMode:M,tagRender:F,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:j,guid:this.base.guid,focused:V?j.find((function(e){return S(e,V,O)})):void 0}),function(e){var t=this,i=this.activedescendant,r=this.$props.placeholder,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=this.getFocusedState().focusedIndex,a=0!==B.length||A?void 0:r,l=i===b.ActiveDescendant.TagsList&&void 0!==V?"tag-".concat(this.base.guid,"-").concat(V.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(s);return n(m.SearchBar,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((a||"").length,A.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:A,disabled:d,expanded:o,owns:this.base.listBoxId,activedescendant:l,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((a||"").length,A.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:A,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:d,expanded:o,owns:this.base.listBoxId,activedescendant:l,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,_),function(e){return e?n(y.ClearButton,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,N),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,$),function(){var e,t=this,r=this.base,o=this.$props,s=o.allowCustom,a=o.dataItems,d=void 0===a?[]:a,p=c.templateRendering.call(this,this.$props.header,c.getListeners.call(this)),f=c.templateRendering.call(this,this.$props.footer,c.getListeners.call(this)),v=c.getTemplate.call(this,{h:n,template:p}),m=c.getTemplate.call(this,{h:n,template:f}),g=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,y=void 0!==this.$props.filter?this.$props.filter:this.currentText,b=void 0!==E.width?E.width:r.popupWidth,k=this.getFocusedState().focusedType,S=s&&y&&n("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[n("div",{class:(0,c.classNames)("k-item k-custom-item",{"k-focus":C(k)})},[y,n("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return n(h.ListContainer,{ref:"container",onMousedown:w,on:this.v3?void 0:{mousedown:w,blur:this.handleBlur},dir:void 0!==l?l:r.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==l?l:r.dirCalculated,width:b,popupSettings:i(i({},E),{anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,c.classNames)(E.popupClass,"k-list",(e={},e["k-list-".concat(u[D]||D)]=D,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,c.classNames)("k-list-container",E.className)}),itemsCount:d.length},onBlur:this.handleBlur,width:b,popupSettings:i(i({},E),{anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,c.classNames)(E.popupClass,"k-list",(e={},e["k-list-".concat(u[D]||D)]=D,e["k-virtual-list"]=this.base.vs.enabled,e)),className:(0,c.classNames)("k-list-container",E.className)}),itemsCount:d.length},this.v3?function(){return[v&&n("div",{class:"k-list-header"},[v]),S,K.call(t),m&&n("div",{class:"k-list-footer"},[m]),I&&v]}:[v&&n("div",{class:"k-list-header"},[v]),S,K.call(t),m&&n("div",{class:"k-list-footer"},[m]),I&&v])}.call(this)]);return s?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[W,this.$props.label?_?n("label",{for:_,attrs:this.v3?void 0:{for:_},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):W}};t.MultiSelectVue2=x;var O=x;t.MultiSelect=O},9029:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TagListVue2=t.TagList=void 0;var r=n(9680),o=n(1895),s=o.h,a=o.version&&"3"===o.version[0],l=(o.ref,function(e){return e.preventDefault()}),d=function(e){return e.stopPropagation()},c={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-".concat(r.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,o=t.tagsRounded,s=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-".concat(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-chip-".concat(s)]=s,e["k-chip-".concat(s,"-base")]=Boolean(s),e}},setup:a?function(){return{v3:!!a}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=s||e,n=this.$props,o=n.dataItems,a=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+a},id:"tagslist-"+a},[o.map((function(e,n){var s=this,c="tag-".concat(a,"-").concat(e.text.toString().replace(/\s+/g,"-")),u=t("div",{class:i(i({},this.chipClass),{"k-focus":e===this.$props.focused}),key:c,id:c,attrs:this.v3?void 0:{id:c,"aria-selected":!0,role:"option","aria-setsize":o.length},onMousedown:l,on:this.v3?void 0:{mousedown:l,click:d},onClick:d,"aria-selected":!0,role:"option","aria-setsize":o.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 s.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return s.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return r.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:u,additionalProps:i(i({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}};t.TagListVue2=c;var u=c;t.TagList=u},6665:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClearButtonVue2=t.ClearButton=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.inject,a=n(5725),l=n(313),d={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:o?function(){return{v3:!!o,kendoLocalizationService:s("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=r||e,n=(0,a.provideLocalizationService)(this).toLanguageString(l.clear,l.messages[l.clear]);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"})])}};t.ClearButtonVue2=d;var c=d;t.ClearButton=c},965:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(8057),o=n(2033),s=n(3729),a=n(9680),l=n(407),d=function(){function e(e){var t=this;this.vs=new r.default,this.navigation=new o.Navigation,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)},(0,a.validatePackage)(l.packageMetadata),this.listBoxId=(0,a.guid)(),this.guid=(0,a.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 a=void 0!==t?t:r.enabled;(0,s.scrollToItem)(o,i.offsetHeight,e,r.translate,a)}}},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(),r={event:e.event,component:this.component,target:{name:this.component.$props.name,value:n},value:n};e.events.forEach((function(e){var o=e.type;delete e.type,o&&("change"===o&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(o,i(i({},r),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,a=n.virtual,l=void 0!==n.opened?n.opened:this.component.currentOpened;e&&a&&this.vs.enabled&&(a.skip>0&&(0,s.areSame)(e,r[0],o)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!l&&a.skip+a.pageSize<a.total&&(0,s.areSame)(e,r[r.length-1],o)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();t.default=d},9945:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=i.inject,l=n(226),d=n(3729),c=n(9680),u=n(5725),p=n(313),h={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:o?function(){return{v3:!!o,listRef:s(null),kendoLocalizationService:a("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=(0,c.getRef)(this,"list")},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=r||e,n=(0,c.getDefaultSlots)(this),i=(0,u.provideLocalizationService)(this),o=this.$props,s=o.id,a=o.show,h=o.wrapperCssClass,f=o.wrapperStyle,v=o.listStyle,m=(o.listRef,function(){var e=this.$props,n=e.textField,i=e.valueField,r=e.optionsGuid,o=e.skip,s=void 0===o?0:o,a=e.focusedIndex,c=e.highlightSelected,u=e.value,p=e.itemRender,h=Array.isArray(u);return this.$props.dataItems.map((function(e,o){var f=s+o,v=c&&(!h&&(0,d.areSame)(e,u,i)||h&&-1!==u.findIndex((function(t){return(0,d.areSame)(t,e,i)})));return t(l.ListItem,{id:"option-".concat(r,"-").concat(f),attrs:this.v3?void 0:{id:"option-".concat(r,"-").concat(f),dataItem:e,selected:v,focused:a===o,index:f,textField:n,render:p},dataItem:e,selected:v,focused:a===o,index:f,key:f,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:n,render:p})}),this)}.call(this));return m.length?t("div",{class:h,style:f,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[t("ul",{id:s,attrs:this.v3?void 0:{id:s,role:"listbox","aria-live":"polite","aria-hidden":!a||void 0},role:"listbox","aria-live":"polite","aria-hidden":!a||void 0,class:"k-list-ul",ref:(0,c.setRef)(this,"list"),style:v},[m]),n]):function(){var e=this.$props.noDataRender,n=t("div",{class:"k-nodata"},[t("div",[i.toLanguageString(p.nodata,p.messages[p.nodata])])]);return c.getTemplate.call(this,{h:t,template:e,defaultRendering:n})}.call(this)}};t.ListVue2=h;var f=h;t.List=f},9622:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListContainerVue2=t.ListContainer=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4866),a=n(9680),l={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:o?function(){return{v3:!!o}}: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=r||e,i=(0,a.getDefaultSlots)(this),o=this.$props,l=(o.onMouseDown,o.onBlur,o.width),d=o.dir,c=o.popupSettings,u=c.popupClass,p=c.className,h=c.animate,f=c.anchor,v=c.show,m=(c.open,c.close,c.itemsCount),g=c.appendTo;return n(s.Popup,{style:{width:l,direction:d},popupClass:p,attrs:this.v3?void 0:{popupClass:p,animate:h,anchor:f,show:v,contentKey:m,appendTo:g},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,appendTo:g},this.v3?function(){return[n("div",{class:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}};t.ListContainerVue2=l;var d=l;t.ListContainer=d},6866:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListDefaultItemVue2=t.ListDefaultItem=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(3729),l={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=r||e,n=this.$props,i=n.selected,o=n.defaultItem,l=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:(0,s.classNames)("k-list-optionlabel",{"k-selected":i})},[(0,a.getItemValue)(o,l)||""])}};t.ListDefaultItemVue2=l;var d=l;t.ListDefaultItem=d},5516:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListFilterVue2=t.ListFilter=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),l=a.kendoThemeMaps.sizeMap,d=a.kendoThemeMaps.roundedMap,c={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-".concat(l[n]||n)]=n,e["k-rounded-".concat(d[i]||i)]=i,e["k-input-".concat(r)]=r,e}},setup:o?function(){return{v3:!!o,inputRef:s(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=(0,a.getRef)(this,"input")},render:function(e){var t=r||e;return t("span",{class:"k-list-filter"},[t("span",{class:this.spanClass},[t("span",{class:"k-input-icon k-icon k-i-search"}),t("input",{ref:(0,a.setRef)(this,"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})])])}};t.ListFilterVue2=c;var u=c;t.ListFilter=u},226:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListItemVue2=t.ListItem=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(3729),d={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:s?function(){return{v3:!!s}}: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=o||e,n=this.$props.selected,r=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:(0,a.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"},[(0,l.getItemValue)(this.$props.dataItem,this.$props.textField).toString()])]);return a.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:r,additionalProps:i(i({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}};t.ListItemVue2=d;var c=d;t.ListItem=c},2033:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Navigation=void 0;var i=n(3729),r=n(9680),o=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===r.Keys.up||t===r.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===r.Keys.down||t===r.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===r.Keys.home?0:t===r.Keys.end?e.max:void 0},e.prototype.next=function(e){return(0,i.isPresent)(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}();t.Navigation=o},2684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SearchBarVue2=t.SearchBar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),l={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,s=o&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&r&&a.canUseDOM&&document.activeElement!==r&&r.focus(),n&&o&&!s&&r&&r.setSelectionRange(t.length-n.length,t.length)},setup:o?function(){return{v3:!!o,inputRef:s(null)}}:void 0,mounted:function(){this.input=(0,a.getRef)(this,"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){return(r||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:"combobox",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-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":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:"combobox",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:(0,a.setRef)(this,"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-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}};t.SearchBarVue2=l;var d=l;t.SearchBar=d},8057:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=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),Math.min(this.containerHeight,e)},e}();t.default=n},2124:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ActiveDescendant=void 0,(n=t.ActiveDescendant||(t.ActiveDescendant={}))[n.PopupList=0]="PopupList",n[n.TagsList=1]="TagsList"},3729:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.suggestValue=t.preventDefaultNonInputs=t.getFocusedItem=t.areSame=t.removeDataItems=t.matchDataCollections=t.getItemValue=t.getItemIndexByText=t.itemIndexStartsWith=t.scrollToItem=t.matchText=t.shuffleData=t.sameCharsOnly=t.isPresent=void 0;var n=function(e){return null!=e};t.isPresent=n,t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))},t.matchText=function(e,t,i){if(!n(e))return!1;var r=String(e);return i&&(r=r.toLowerCase()),0===r.indexOf(t)},t.scrollToItem=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)};var i=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var r=0;r<e.length;r++){var s=(o(e[r],n)||"")+"";if(s&&s.toLowerCase().startsWith(t)){i=r;break}}}return i};t.itemIndexStartsWith=i;var r=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(o(e,n))===r(t):r(t)===r(e.toString())}))};t.getItemIndexByText=r;var o=function(e,t){if(t&&n(e)){var i=t.split("."),r=e;return i.forEach((function(e){r=r?r[e]:void 0})),r}return e};t.getItemValue=o,t.matchDataCollections=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(!s(e[i],t[i],n))return!1;return!0},t.removeDataItems=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return s(e,t,n)}));-1!==i&&e.splice(i,1)}))};var s=function(e,t,i){return e===t||n(e)===n(t)&&o(e,i)===o(t,i)};t.areSame=s,t.getFocusedItem=function(e,t,n){if(t){var o=r(e,t,n,!0);return-1!==o?e[o]:e[i(e,t,n)]}return e[0]},t.suggestValue=function(e,t,n){void 0===t&&(t=[]);var r="";if(e){var s=t[i(t,e,n)];if(s){var a=o(s,n);e.toLowerCase()!==a.toLowerCase()&&(r=a.substring(e.length))}}return r},t.preventDefaultNonInputs=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()}},3922:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectVue2=t.MultiSelect=t.ComboBoxVue2=t.ComboBox=t.DropDownListVue2=t.DropDownList=t.AutoCompleteVue2=t.AutoComplete=void 0;var i=n(3781);Object.defineProperty(t,"DropDownList",{enumerable:!0,get:function(){return i.DropDownList}}),Object.defineProperty(t,"DropDownListVue2",{enumerable:!0,get:function(){return i.DropDownListVue2}});var r=n(755);Object.defineProperty(t,"ComboBox",{enumerable:!0,get:function(){return r.ComboBox}}),Object.defineProperty(t,"ComboBoxVue2",{enumerable:!0,get:function(){return r.ComboBoxVue2}});var o=n(1190);Object.defineProperty(t,"AutoComplete",{enumerable:!0,get:function(){return o.AutoComplete}}),Object.defineProperty(t,"AutoCompleteVue2",{enumerable:!0,get:function(){return o.AutoCompleteVue2}});var s=n(7050);Object.defineProperty(t,"MultiSelect",{enumerable:!0,get:function(){return s.MultiSelect}}),Object.defineProperty(t,"MultiSelectVue2",{enumerable:!0,get:function(){return s.MultiSelectVue2}})},313:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.clear=t.expandButton=t.nodata=void 0,t.nodata="dropdowns.nodata",t.expandButton="dropdowns.expandbutton",t.clear="dropdowns.clear",t.messages=((n={})[t.clear]="clear",n[t.expandButton]="expand button",n[t.nodata]="NO DATA FOUND.",n)},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633011,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"}},9157:(e,t,n)=>{function i(e){this.content=e}n.r(t),n.d(t,{AddMarkStep:()=>Ue,AllSelection:()=>ht,CellSelection:()=>Va,ContentMatch:()=>_,DOMParser:()=>se,DOMSerializer:()=>ge,Decoration:()=>Fs,DecorationSet:()=>Hs,EditorState:()=>St,EditorView:()=>ia,Fragment:()=>a,GapCursor:()=>Gc,HistoryState:()=>dd,InputRule:()=>Od,MapResult:()=>Se,Mapping:()=>xe,Mark:()=>p,MarkType:()=>ie,Node:()=>B,NodeRange:()=>R,NodeSelection:()=>ut,NodeType:()=>Q,Plugin:()=>It,PluginKey:()=>Mt,RemoveMarkStep:()=>Ge,ReplaceAroundStep:()=>Ee,ReplaceError:()=>h,ReplaceStep:()=>Re,ResolvedPos:()=>$,Schema:()=>re,Selection:()=>st,SelectionRange:()=>lt,Slice:()=>f,Step:()=>Te,StepMap:()=>Ce,StepResult:()=>Pe,TableMap:()=>fa,TableView:()=>$l,TextSelection:()=>dt,Transaction:()=>gt,Transform:()=>Ie,TransformError:()=>Oe,__clipCells:()=>_a,__endComposition:()=>Ts,__insertCells:()=>za,__parseFromClipboard:()=>Xo,__pastedCells:()=>Na,__serializeForClipboard:()=>Zo,activeNode:()=>Rn,addColSpan:()=>Ra,addColumn:()=>rl,addColumnAfter:()=>sl,addColumnBefore:()=>ol,addListNodes:()=>Kn,addRow:()=>cl,addRowAfter:()=>iu,addRowBefore:()=>nu,alignBlocks:()=>En,alignCenterRules:()=>er,alignJustifyRules:()=>tr,alignLeftRules:()=>Yi,alignRemoveRules:()=>nr,alignRightRules:()=>Qi,applyInlineStyle:()=>bn,applyLink:()=>wn,autoJoin:()=>Ii,baseKeymap:()=>Ei,blockNodes:()=>On,blockquote:()=>Vi,bold:()=>Ld,buildKeymap:()=>Ud,buildListKeymap:()=>Gd,bulletList:()=>Fn,canBeIndented:()=>Fi,canIndentAsListItem:()=>Li,canInsert:()=>Wt,canJoin:()=>Fe,canOutdentAsListItem:()=>_i,canSplit:()=>_e,caretColor:()=>Hc,caretColorKey:()=>Kc,cellAround:()=>wa,chainCommands:()=>$i,changeTextBlock:()=>xn,cleanFormatting:()=>Bn,cleanMarks:()=>ln,cleanTextBlockFormatting:()=>$n,closeDoubleQuote:()=>Rd,closeHistory:()=>gd,closeSingleQuote:()=>Vd,colCount:()=>Da,columnIsHeader:()=>Ea,columnResizing:()=>Tl,columnResizingPluginKey:()=>Ml,convertMsLists:()=>nc,createParagraphNear:()=>hi,createTable:()=>eu,deleteColumn:()=>ll,deleteRow:()=>fl,deleteSelection:()=>Qn,deleteTable:()=>Il,domToPmDoc:()=>Lt,dropCursor:()=>Wc,dropPoint:()=>He,ellipsis:()=>Td,emDash:()=>Md,exitCode:()=>pi,expandSelection:()=>tn,expandToWordWrap:()=>nn,find:()=>Sc,findAll:()=>Cc,findAt:()=>wc,findCell:()=>$a,findWrapping:()=>Ne,fixTables:()=>nl,fixTablesKey:()=>el,formatBlockElements:()=>In,gapCursor:()=>Jc,getActiveMarks:()=>hn,getBlockFormats:()=>Dn,getHtml:()=>Ft,getInlineStyles:()=>mn,getMark:()=>pn,getNodeFromSelection:()=>Xt,getSelectionText:()=>Zt,goToNextCell:()=>Ol,handlePaste:()=>Ja,hasMark:()=>dn,hasNode:()=>Tn,hasSameMarkup:()=>Jt,history:()=>kd,htmlToFragment:()=>At,imageResizeKey:()=>Bc,imageResizing:()=>zc,inSameTable:()=>Ia,indent:()=>ji,indentBlocks:()=>Ai,indentHtml:()=>Qt,indentRules:()=>Xn,inputRules:()=>Id,insertImage:()=>Cn,insertNode:()=>qt,insertPoint:()=>Ke,insertText:()=>Sn,isAligned:()=>Vn,isInTable:()=>Sa,isIndented:()=>Ni,italic:()=>_d,joinBackward:()=>ei,joinDown:()=>li,joinForward:()=>ri,joinPoint:()=>ze,joinUp:()=>ai,keydownHandler:()=>vr,keymap:()=>fr,lift:()=>di,liftBlockquote:()=>Bi,liftEmptyBlock:()=>fi,liftListItem:()=>Un,liftTarget:()=>Ae,link:()=>Hd,listItem:()=>jn,listStyle:()=>Gi,macBaseKeymap:()=>Pi,marks:()=>Jl,mergeCells:()=>ml,moveCellForward:()=>Oa,newlineInCode:()=>ci,nextCell:()=>Ma,nodes:()=>td,openDoubleQuote:()=>Pd,openSingleQuote:()=>Ed,orderedList:()=>_n,outdent:()=>zi,outdentRules:()=>Yn,parentBlockFormat:()=>Pn,parseContent:()=>_t,pasteCleanup:()=>uc,pcBaseKeymap:()=>Ti,placeholder:()=>Mc,pmAddRowAfter:()=>pl,pmAddRowBefore:()=>ul,pmDocToFragment:()=>Nt,pointsAtCell:()=>xa,redo:()=>Sd,redoDepth:()=>xd,removeAllMarks:()=>an,removeAttribute:()=>sc,removeColSpan:()=>Pa,removeColumn:()=>al,removeComments:()=>rc,removeLink:()=>kn,removeRow:()=>hl,removeTag:()=>oc,replace:()=>xc,replaceAll:()=>Oc,replaceImageSourcesFromRtf:()=>kc,replaceStep:()=>qe,rowIsHeader:()=>dl,sanitize:()=>ic,sanitizeClassAttr:()=>ac,sanitizeStyleAttr:()=>cc,selectAll:()=>yi,selectNodeBackward:()=>ni,selectNodeForward:()=>oi,selectParentNode:()=>gi,selectTextblockEnd:()=>Si,selectTextblockStart:()=>wi,selectedLineTextOnly:()=>Yt,selectedRect:()=>il,selectionCell:()=>Ca,selectionMarks:()=>un,setAttr:()=>Ta,setBlockType:()=>xi,setCellAttr:()=>bl,setHtml:()=>jt,sinkListItem:()=>Gn,smartQuotes:()=>Bd,spacesFix:()=>Rc,splitBlock:()=>vi,splitBlockKeepMarks:()=>mi,splitCell:()=>gl,splitCellWithType:()=>yl,splitListItem:()=>Wn,strikethrough:()=>jd,subscript:()=>zd,superscript:()=>Kd,tableEditing:()=>Al,tableEditingKey:()=>ka,tableNodeTypes:()=>ba,tableNodes:()=>ya,textHighlight:()=>Vc,textHighlightKey:()=>Ec,textblockTypeInputRule:()=>Nd,toggleHeader:()=>wl,toggleHeaderCell:()=>xl,toggleHeaderColumn:()=>Cl,toggleHeaderRow:()=>Sl,toggleInlineFormat:()=>yn,toggleList:()=>qi,toggleMark:()=>Oi,toggleOrderedList:()=>Zi,toggleUnorderedList:()=>Ji,trimWhitespace:()=>Bt,underline:()=>Fd,undo:()=>wd,undoDepth:()=>Cd,undoInputRule:()=>Dd,updateColumnsOnResize:()=>Dl,wrapIn:()=>Ci,wrapInList:()=>Hn,wrappingInputRule:()=>Ad}),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)};const r=i;function o(e,t,n){for(var i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;var r=e.child(i),s=t.child(i);if(r!=s){if(!r.sameMarkup(s))return n;if(r.isText&&r.text!=s.text){for(var a=0;r.text[a]==s.text[a];a++)n++;return n}if(r.content.size||s.content.size){var l=o(r.content,s.content,n+1);if(null!=l)return l}n+=r.nodeSize}else n+=r.nodeSize}}function s(e,t,n,i){for(var r=e.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:n,b:i};var a=e.child(--r),l=t.child(--o),d=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:i};if(a.isText&&a.text!=l.text){for(var c=0,u=Math.min(a.text.length,l.text.length);c<u&&a.text[a.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(a.content.size||l.content.size){var p=s(a.content,l.content,n-1,i-1);if(p)return p}n-=d,i-=d}else n-=d,i-=d}}var a=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},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};a.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 d=s+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,t-d),n,i+d)}s=l}},a.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},a.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},a.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 a(i,this.size+e.size)},a.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,o=0;o<t;r++){var s=this.content[r],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),i+=s.nodeSize),o=l}return new a(n,i)},a.prototype.cutByIndex=function(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))},a.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 a(i,r)},a.prototype.addToStart=function(e){return new a([e].concat(this.content),this.size+e.nodeSize)},a.prototype.addToEnd=function(e){return new a(this.content.concat(e),this.size+e.nodeSize)},a.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},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},a.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},a.prototype.maybeChild=function(e){return this.content[e]},a.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}},a.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),o(this,e,t)},a.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),s(this,e,t,n)},a.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return c(0,e);if(e==this.size)return c(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?c(n+1,r):c(n,i);i=r}},a.prototype.toString=function(){return"<"+this.toStringInner()+">"},a.prototype.toStringInner=function(){return this.content.join(", ")},a.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},a.fromJSON=function(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))},a.fromArray=function(e){if(!e.length)return a.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 a(t||e,n)},a.from=function(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([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(a.prototype,l);var d={index:0,offset:0};function c(e,t){return d.index=e,d.offset=t,d}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}a.empty=new a([],0);var p=function(e,t){this.type=e,this.attrs=t};function h(e){var t=Error.call(this,e);return t.__proto__=h.prototype,t}p.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},p.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},p.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},p.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},p.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},p.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)},p.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},p.setFrom=function(e){if(!e||0==e.length)return p.none;if(e instanceof p)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},p.none=[],h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.name="ReplaceError";var f=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},v={size:{configurable:!0}};function m(e,t,n){var i=e.findIndex(t),r=i.index,o=i.offset,s=e.maybeChild(r),a=e.findIndex(n),l=a.index,d=a.offset;if(o==t||s.isText){if(d!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(r,s.copy(m(s.content,t-o-1,n-o-1)))}function g(e,t,n,i){var r=e.findIndex(t),o=r.index,s=r.offset,a=e.maybeChild(o);if(s==t||a.isText)return i&&!i.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=g(a.content,t-s-1,n);return l&&e.replaceChild(o,a.copy(l))}function y(e,t,n){if(n.openStart>e.depth)throw new h("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new h("Inconsistent open depths");return b(e,t,n,0)}function b(e,t,n,i){var r=e.index(i),o=e.node(i);if(r==t.index(i)&&i<e.depth-n.openStart){var s=b(e,t,n,i+1);return o.copy(o.content.replaceChild(r,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=i||t.depth!=i){var l=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(a.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(n,e);return x(o,O(e,l.start,l.end,t,i))}var d=e.parent,c=d.content;return x(d,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return x(o,I(e,t,i))}function k(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function w(e,t,n){var i=e.node(n);return k(i,t.node(n)),i}function S(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 C(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&&(S(e.nodeAfter,i),o++));for(var a=o;a<s;a++)S(r.child(a),i);t&&t.depth==n&&t.textOffset&&S(t.nodeBefore,i)}function x(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function O(e,t,n,i,r){var o=e.depth>r&&w(e,t,r+1),s=i.depth>r&&w(n,i,r+1),l=[];return C(null,e,r,l),o&&s&&t.index(r)==n.index(r)?(k(o,s),S(x(o,O(e,t,n,i,r+1)),l)):(o&&S(x(o,I(e,t,r+1)),l),C(t,n,r,l),s&&S(x(s,I(n,i,r+1)),l)),C(i,null,r,l),new a(l)}function I(e,t,n){var i=[];return C(null,e,n,i),e.depth>n&&S(x(w(e,t,n+1),I(e,t,n+1)),i),C(t,null,n,i),new a(i)}v.size.get=function(){return this.content.size-this.openStart-this.openEnd},f.prototype.insertAt=function(e,t){var n=g(this.content,e+this.openStart,t,null);return n&&new f(n,this.openStart,this.openEnd)},f.prototype.removeBetween=function(e,t){return new f(m(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},f.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},f.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},f.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},f.fromJSON=function(e,t){if(!t)return f.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 f(a.fromJSON(e,t.content),n,i)},f.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 f(e,n,i)},Object.defineProperties(f.prototype,v),f.empty=new f(a.empty,0,0);var $=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},D={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};$.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},D.parent.get=function(){return this.node(this.depth)},D.doc.get=function(){return this.node(0)},$.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},$.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},$.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},$.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},$.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},$.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]},$.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},D.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},D.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},D.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)},$.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},$.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return p.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},$.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},$.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},$.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 R(this,e,n)},$.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},$.prototype.max=function(e){return e.pos>this.pos?e:this},$.prototype.min=function(e){return e.pos<this.pos?e:this},$.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},$.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,d=r-l;if(n.push(o,a,i+l),!d)break;if((o=o.child(a)).isText)break;r=d-1,i+=l+1}return new $(t,n,r)},$.resolveCached=function(e,t){for(var n=0;n<M.length;n++){var i=M[n];if(i.pos==t&&i.doc==e)return i}var r=M[T]=$.resolve(e,t);return T=(T+1)%P,r},Object.defineProperties($.prototype,D);var M=[],T=0,P=12,R=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},E={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};E.start.get=function(){return this.$from.before(this.depth+1)},E.end.get=function(){return this.$to.after(this.depth+1)},E.parent.get=function(){return this.$from.node(this.depth)},E.startIndex.get=function(){return this.$from.index(this.depth)},E.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(R.prototype,E);var V=Object.create(null),B=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||a.empty,this.marks=i||p.none},A={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}};A.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},A.childCount.get=function(){return this.content.childCount},B.prototype.child=function(e){return this.content.child(e)},B.prototype.maybeChild=function(e){return this.content.maybeChild(e)},B.prototype.forEach=function(e){this.content.forEach(e)},B.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},B.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},A.textContent.get=function(){return this.textBetween(0,this.content.size,"")},B.prototype.textBetween=function(e,t,n,i){return this.content.textBetween(e,t,n,i)},A.firstChild.get=function(){return this.content.firstChild},A.lastChild.get=function(){return this.content.lastChild},B.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},B.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},B.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||V)&&p.sameSet(this.marks,n||p.none)},B.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},B.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},B.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},B.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return f.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 f(a,i.depth-o,r.depth-o)},B.prototype.replace=function(e,t,n){return y(this.resolve(e),this.resolve(t),n)},B.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}},B.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}},B.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}},B.prototype.resolve=function(e){return $.resolveCached(this,e)},B.prototype.resolveNoCache=function(e){return $.resolve(this,e)},B.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},A.isBlock.get=function(){return this.type.isBlock},A.isTextblock.get=function(){return this.type.isTextblock},A.inlineContent.get=function(){return this.type.inlineContent},A.isInline.get=function(){return this.type.isInline},A.isText.get=function(){return this.type.isText},A.isLeaf.get=function(){return this.type.isLeaf},A.isAtom.get=function(){return this.type.isAtom},B.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()+")"),L(this.marks,e)},B.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},B.prototype.canReplace=function(e,t,n,i,r){void 0===n&&(n=a.empty),void 0===i&&(i=0),void 0===r&&(r=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,i,r),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(var l=i;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},B.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},B.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},B.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=p.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!p.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()}))},B.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},B.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=a.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(B.prototype,A);var N=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):L(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}(B);function L(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var _=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},F={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};_.parse=function(e,t){var n=new j(e,t);if(null==n.next)return _.empty;var i=K(n);n.next&&n.err("Unexpected trailing text");var r,o,s=(r=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 d=n();return r(e(t.expr,o),d),r(e(t.expr,d),d),[i(d)]}if("opt"==t.type)return[i(o)].concat(e(t.expr,o));if("range"==t.type){for(var c=o,u=0;u<t.min;u++){var p=n();r(e(t.expr,c),p),c=p}if(-1==t.max)r(e(t.expr,c),c);else for(var h=t.min;h<t.max;h++){var f=n();i(c,f),r(e(t.expr,c),f),c=f}return[i(c)]}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),o=Object.create(null),function e(t){var n=[];t.forEach((function(e){r[e].forEach((function(e){var t=e.term,i=e.to;if(t){var o=n.indexOf(t),s=o>-1&&n[o+1];J(r,i).forEach((function(e){s||n.push(t,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var i=o[t.join(",")]=new _(t.indexOf(r.length-1)>-1),s=0;s<n.length;s+=2){var a=n[s+1].sort(q);i.next.push(n[s],o[a.join(",")]||e(a))}return i}(J(r,0)));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],d=r.next[a+1];s.push(l.name),!o||l.isText||l.hasRequiredAttrs()||(o=!1),-1==i.indexOf(d)&&i.push(d)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,n),s},_.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},_.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},F.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},F.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}},_.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},_.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function r(o,s){var l=o.matchFragment(e,n);if(l&&(!t||l.validEnd))return a.from(s.map((function(e){return e.createAndFill()})));for(var d=0;d<o.next.length;d+=2){var c=o.next[d],u=o.next[d+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==i.indexOf(u)){i.push(u);var p=r(u,s.concat(c));if(p)return p}}}(this,[])},_.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},_.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)}}},F.edgeCount.get=function(){return this.next.length>>1},_.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]}},_.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(_.prototype,F),_.empty=new _(!0);var j=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()},z={next:{configurable:!0}};function K(e){var t=[];do{t.push(H(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function H(e){var t=[];do{t.push(W(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function W(e){for(var t=function(e){if(e.eat("(")){var t=K(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)}return 0==r.length&&e.err("No node type or group '"+t+"' found"),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=G(e,t)}return t}function U(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function G(e,t){var n=U(e),i=n;return e.eat(",")&&(i="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function q(e,t){return t-e}function J(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(q)}function Z(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 X(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 Y(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new te(e[n]);return t}z.next.get=function(){return this.tokens[this.pos]},j.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},j.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(j.prototype,z);var Q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=Y(n.attrs),this.defaultAttrs=Z(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},ee={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};ee.isInline.get=function(){return!this.isBlock},ee.isTextblock.get=function(){return this.isBlock&&this.inlineContent},ee.isLeaf.get=function(){return this.contentMatch==_.empty},ee.isAtom.get=function(){return this.isLeaf||this.spec.atom},ee.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:X(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 B(this,this.computeAttrs(e),a.from(t),p.setFrom(n))},Q.prototype.createChecked=function(e,t,n){if(t=a.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new B(this,this.computeAttrs(e),t,p.setFrom(n))},Q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=a.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var r=this.contentMatch.matchFragment(t).fillBefore(a.empty,!0);return r?new B(this,e,t.append(r),p.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:p.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,ee);var te=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ne={isRequired:{configurable:!0}};ne.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(te.prototype,ne);var ie=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=Y(i.attrs),this.rank=t,this.excluded=null;var r=Z(this.attrs);this.instance=r&&new p(this,r)};ie.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,X(this.attrs,e))},ie.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,r){return n[e]=new ie(e,i++,t,r)})),n},ie.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},ie.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ie.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var re=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=ie.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]=_.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?oe(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(var l in this.marks){var d=this.marks[l],c=d.spec.excludes;d.excluded=null==c?[d]:""==c?[]:oe(this,c.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 oe(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}re.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)},re.prototype.text=function(e,t){var n=this.nodes.text;return new N(n,n.defaultAttrs,e,p.setFrom(t))},re.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},re.prototype.nodeFromJSON=function(e){return B.fromJSON(this,e)},re.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},re.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var se=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)}))};se.prototype.parse=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},se.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!0);return n.addAll(e,null,t.from,t.to),f.maxOpen(n.finish())},se.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(fe(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}}},se.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}}},se.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,r=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ve(e)),e.mark=t}))};for(var o in e.marks)r(o);for(var s in e.nodes)i=void 0,(i=e.nodes[s].spec.parseDOM)&&i.forEach((function(e){n(e=ve(e)),e.node=s}));return t},se.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new se(e,se.schemaRules(e)))};var ae={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},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},de={ol:!0,ul:!0};function ce(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var ue=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=p.none,this.pendingMarks=i,this.stashMarks=[]};ue.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(a.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)},ue.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=a.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},ue.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]},ue.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):me(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},ue.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ae.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var pe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,r=t.topNode,o=ce(null,t.preserveWhitespace,0)|(n?4:0);i=r?new ue(r.type,r.attrs,p.none,p.none,!0,t.topMatch||r.type.contentMatch,o):new ue(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,o),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},he={top:{configurable:!0},currentPos:{configurable:!0}};function fe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ve(e){var t={};for(var n in e)t[n]=e[n];return t}function me(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}}he.top.get=function(){return this.nodes[this.open]},pe.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){for(var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];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)}},pe.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)},pe.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();de.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&&de.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:le.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(ae.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)},pe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},pe.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},pe.prototype.readStyles=function(e){var t=p.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},pe.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)},pe.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&&ae.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,r)},pe.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},pe.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},pe.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},pe.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=ce(e,i,r.options);4&r.options&&0==r.content.length&&(o|=4),this.nodes.push(new ue(e,t,r.activeMarks,r.pendingMarks,n,null,o)),this.open++},pe.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}},pe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},pe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},he.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},pe.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)},pe.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)},pe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++)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)},pe.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))},pe.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 d=a>0||0==a&&r?t.nodes[a].type:i&&a>=o?i.node(a-o).type:null;if(!d||d.name!=l&&-1==d.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},pe.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}},pe.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)},pe.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(pe.prototype,he);var ge=function(e,t){this.nodes=e||{},this.marks=t||{}};function ye(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function be(e){return e.document||window.document}ge.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=be(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++],d=i.serializeMark(l,e.isInline,t);d&&(o.push(l,r),r.appendChild(d.dom),r=d.contentDOM||d.dom)}}r.appendChild(i.serializeNodeInner(e,t))})),n},ge.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ge.renderSpec(be(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},ge.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},ge.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ge.renderSpec(be(n),i(e,t))},ge.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 d in l=2,a)if(null!=a[d]){var c=d.indexOf(" ");c>0?s.setAttributeNS(d.slice(0,c),d.slice(c+1),a[d]):s.setAttribute(d,a[d])}for(var u=l;u<t.length;u++){var p=t[u];if(0===p){if(u<t.length-1||u>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ge.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}},ge.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ge(this.nodesFromSchema(e),this.marksFromSchema(e)))},ge.nodesFromSchema=function(e){var t=ye(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ge.marksFromSchema=function(e){return ye(e.marks)};var ke=Math.pow(2,16);function we(e){return 65535&e}var Se=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},Ce=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};Ce.prototype.recover=function(e){var t=0,n=we(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))/ke}(e)},Ce.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},Ce.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},Ce.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],d=this.ranges[s+o],c=a+l;if(e<=c){var u=a+i+((l?e==a?-1:e==c?1:t:t)<0?0:d);return n?u:new Se(u,t<0?e!=a:e!=c,e==(t<0?a:c)?null:s/3+(e-a)*ke)}i+=d-l}return n?e+i:new Se(e+i)},Ce.prototype.touches=function(e,t){for(var n=0,i=we(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},Ce.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],d=this.ranges[i+n];e(s,s+l,a,a+d),r+=d-l}},Ce.prototype.invert=function(){return new Ce(this.ranges,!this.inverted)},Ce.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},Ce.offset=function(e){return 0==e?Ce.empty:new Ce(e<0?[0,-e,0]:[0,0,e])},Ce.empty=new Ce([]);var xe=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function Oe(e){var t=Error.call(this,e);return t.__proto__=Oe.prototype,t}xe.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new xe(this.maps,this.mirror,e,t)},xe.prototype.copy=function(){return new xe(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},xe.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},xe.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)}},xe.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)]},xe.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},xe.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)}},xe.prototype.invert=function(){var e=new xe;return e.appendMappingInverted(this),e},xe.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},xe.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},xe.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 Se(e,i)},Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe.prototype.name="TransformError";var Ie=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new xe},$e={before:{configurable:!0},docChanged:{configurable:!0}};function De(){throw new Error("Override me")}$e.before.get=function(){return this.docs.length?this.docs[0]:this.doc},Ie.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new Oe(t.failed);return this},Ie.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},$e.docChanged.get=function(){return this.steps.length>0},Ie.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(Ie.prototype,$e);var Me=Object.create(null),Te=function(){};Te.prototype.apply=function(e){return De()},Te.prototype.getMap=function(){return Ce.empty},Te.prototype.invert=function(e){return De()},Te.prototype.map=function(e){return De()},Te.prototype.merge=function(e){return null},Te.prototype.toJSON=function(){return De()},Te.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Me[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},Te.jsonID=function(e,t){if(e in Me)throw new RangeError("Duplicate use of step JSON ID "+e);return Me[e]=t,t.prototype.jsonID=e,t};var Pe=function(e,t){this.doc=e,this.failed=t};Pe.ok=function(e){return new Pe(e,null)},Pe.fail=function(e){return new Pe(null,e)},Pe.fromReplace=function(e,t,n,i){try{return Pe.ok(e.replace(t,n,i))}catch(e){if(e instanceof h)return Pe.fail(e.message);throw e}};var Re=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&&Ve(e,this.from,this.to)?Pe.fail("Structure replace would overwrite content"):Pe.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new Ce([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?f.empty:new f(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?f.empty:new f(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,f.fromJSON(e,n.slice),!!n.structure)},t}(Te);Te.jsonID("replace",Re);var Ee=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&&(Ve(e,this.from,this.gapFrom)||Ve(e,this.gapTo,this.to)))return Pe.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Pe.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Pe.fromReplace(e,this.from,this.to,n):Pe.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new Ce([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,f.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(Te);function Ve(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 Be(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ae(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||!Be(i,r,o))break}}function Ne(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);return a&&a.validEnd?s:null}(i,t);return o?r.map(Le).concat({type:t,attrs:n}).concat(o.map(Le)):null}function Le(e){return{type:e,attrs:null}}function _e(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 d=r.node(a),c=r.index(a);if(d.type.spec.isolating)return!1;var u=d.content.cutByIndex(c,d.childCount),p=i&&i[l]||d;if(p!=d&&(u=u.replaceChild(0,p.type.create(p.attrs))),!d.canReplace(c+1,d.childCount)||!p.type.validContent(u))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 Fe(e,t){var n=e.resolve(t),i=n.index();return je(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function je(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function ze(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&&je(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 Ke(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 He(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,d=i.index(a)+(l>0?1:0),c=i.node(a),u=!1;if(1==s)u=c.canReplace(d,d,r);else{var p=c.contentMatchAt(d).findWrapping(r.firstChild.type);u=p&&c.canReplaceWith(d,d,p[0])}if(u)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function We(e,t,n){for(var i=[],r=0;r<e.childCount;r++){var o=e.child(r);o.content.size&&(o=o.copy(We(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return a.fromArray(i)}Te.jsonID("replaceAround",Ee),Ie.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,r=e.depth,o=n.before(r+1),s=i.after(r+1),l=o,d=s,c=a.empty,u=0,p=r,h=!1;p>t;p--)h||n.index(p)>0?(h=!0,c=a.from(n.node(p).copy(c)),u++):l--;for(var v=a.empty,m=0,g=r,y=!1;g>t;g--)y||i.after(g+1)<i.end(g)?(y=!0,v=a.from(i.node(g).copy(v)),m++):d++;return this.step(new Ee(l,d,o,s,new f(c.append(v),u,m),c.size-u,!0))},Ie.prototype.wrap=function(e,t){for(var n=a.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=a.from(t[i].type.create(t[i].attrs,n))}var o=e.start,s=e.end;return this.step(new Ee(o,s,o,s,new f(n,0,0),t.length,!0))},Ie.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 o=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(o).map(t),n)){r.clearIncompatible(r.mapping.slice(o).map(t,1),n);var s=r.mapping.slice(o),l=s.map(t,1),d=s.map(t+e.nodeSize,1);return r.step(new Ee(l,d,l+1,d-1,new f(a.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},Ie.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 o=t.create(n,null,i||r.marks);if(r.isLeaf)return this.replaceWith(e,e+r.nodeSize,o);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ee(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new f(a.from(o),0,0),1,!0))},Ie.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),r=a.empty,o=a.empty,s=i.depth,l=i.depth-t,d=t-1;s>l;s--,d--){r=a.from(i.node(s).copy(r));var c=n&&n[d];o=a.from(c?c.type.create(c.attrs,o):i.node(s).copy(o))}return this.step(new Re(e,e,new f(r.append(o),t,t),!0))},Ie.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Re(e-t,e+t,f.empty,!0);return this.step(n)};var Ue=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 f(We(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 Pe.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new Ge(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}(Te);Te.jsonID("addMark",Ue);var Ge=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 f(We(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return Pe.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Ue(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}(Te);function qe(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=f.empty),t==n&&!i.size)return null;var r=e.resolve(t),o=e.resolve(n);return Je(r,o,i)?new Re(t,n,i):new Ze(r,o,i).fit()}function Je(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Te.jsonID("removeMark",Ge),Ie.prototype.addMark=function(e,t,n){var i=this,r=[],o=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,d){if(i.isInline){var c=i.marks;if(!n.isInSet(c)&&d.type.allowsMarkType(n.type)){for(var u=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(c),f=0;f<c.length;f++)c[f].isInSet(h)||(s&&s.to==u&&s.mark.eq(c[f])?s.to=p:r.push(s=new Ge(u,p,c[f])));a&&a.to==u?a.to=p:o.push(a=new Ue(u,p,n))}}})),r.forEach((function(e){return i.step(e)})),o.forEach((function(e){return i.step(e)})),this},Ie.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 ie)for(var l,d=i.marks;l=n.isInSet(d);)(a||(a=[])).push(l),d=l.removeFromSet(d);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var c=Math.min(s+i.nodeSize,t),u=0;u<a.length;u++){for(var p=a[u],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=c,h.step=o):r.push({style:p,from:Math.max(s,e),to:c,step:o})}}})),r.forEach((function(e){return i.step(new Ge(e.from,e.to,e.style))})),this},Ie.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),r=[],o=e+1,s=0;s<i.childCount;s++){var l=i.child(s),d=o+l.nodeSize,c=n.matchType(l.type,l.attrs);if(c){n=c;for(var u=0;u<l.marks.length;u++)t.allowsMarkType(l.marks[u].type)||this.step(new Ge(o,d,l.marks[u]))}else r.push(new Re(o,d,f.empty));o=d}if(!n.validEnd){var p=n.fillBefore(a.empty,!0);this.replace(o,o,new f(p,0,0))}for(var h=r.length-1;h>=0;h--)this.step(r[h]);return this},Ie.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=f.empty);var i=qe(this.doc,e,t,n);return i&&this.step(i),this},Ie.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new f(a.from(n),0,0))},Ie.prototype.delete=function(e,t){return this.replace(e,t,f.empty)},Ie.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var Ze=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=a.empty;for(var o=e.depth;o>0;o--)this.placed=a.from(e.node(o).copy(this.placed))},Xe={depth:{configurable:!0}};function Ye(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ye(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 et(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function tt(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,tt(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(a.empty,!0)))),e.copy(i)}function nt(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 it(e,t,n,i,r){if(t<n){var o=e.firstChild;e=e.replaceChild(0,o.copy(it(o.content,t+1,n,i,o)))}if(t>i){var s=r.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(a.empty,!0))}return e}function rt(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}Xe.depth.get=function(){return this.frontier.length-1},Ze.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 f(o,s,a);return t>-1?new Ee(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new Re(i.pos,r.pos,l):void 0},Ze.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=et(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,r=this.depth;r>=0;r--){var o=this.frontier[r],s=o.type,l=o.match,d=void 0,c=void 0;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(a.from(i),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:r,parent:n,inject:c};if(2==e&&i&&(d=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:r,parent:n,wrap:d};if(n&&l.matchType(n.type))break}},Ze.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=et(t,n);return!(!r.childCount||r.firstChild.isLeaf||(this.unplaced=new f(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),0))},Ze.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=et(t,n);if(r.childCount<=1&&n>0){var o=t.size-n<=n+r.size;this.unplaced=new f(Ye(t,n-1,1),n-1,o?n-1:i)}else this.unplaced=new f(Ye(t,n,1),n,i)},Ze.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,r=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var s=0;s<o.length;s++)this.openFrontierNode(o[s]);var l=this.unplaced,d=i?i.content:l.content,c=l.openStart-t,u=0,p=[],h=this.frontier[n],v=h.match,m=h.type;if(r){for(var g=0;g<r.childCount;g++)p.push(r.child(g));v=v.matchFragment(r)}for(var y=d.size+t-(l.content.size-l.openEnd);u<d.childCount;){var b=d.child(u),k=v.matchType(b.type);if(!k)break;(++u>1||0==c||b.content.size)&&(v=k,p.push(tt(b.mark(m.allowedMarks(b.marks)),1==u?c:0,u==d.childCount?y:-1)))}var w=u==d.childCount;w||(y=-1),this.placed=Qe(this.placed,n,a.from(p)),this.frontier[n].match=v,w&&y<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,C=d;S<y;S++){var x=C.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),C=x.content}this.unplaced=w?0==t?f.empty:new f(Ye(l.content,t-1,1),t-1,y<0?l.openEnd:t-1):new f(Ye(l.content,t,u),l.openStart,l.openEnd)},Ze.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||!nt(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},Ze.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=nt(e,t,r,i,o);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],d=l.match,c=nt(e,a,l.type,d,!0);if(!c||c.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}},Ze.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},Ze.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,a.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},Ze.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(a.empty,!0);e.childCount&&(this.placed=Qe(this.placed,this.frontier.length,e))},Object.defineProperties(Ze.prototype,Xe),Ie.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(Je(i,r,n))return this.step(new Re(e,t,n));var o=rt(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 d=i.node(a).type.spec;if(d.defining||d.isolating)break;o.indexOf(a)>-1?s=a:i.before(a)==l&&o.splice(1,0,-a)}for(var c=o.indexOf(s),u=[],p=n.openStart,h=n.content,v=0;;v++){var m=h.firstChild;if(u.push(m),v==n.openStart)break;h=m.content}p>0&&u[p-1].type.spec.defining&&i.node(c).type!=u[p-1].type?p-=1:p>=2&&u[p-1].isTextblock&&u[p-2].type.spec.defining&&i.node(c).type!=u[p-2].type&&(p-=2);for(var g=n.openStart;g>=0;g--){var y=(g+p+1)%(n.openStart+1),b=u[y];if(b)for(var k=0;k<o.length;k++){var w=o[(k+c)%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,b.type,b.marks))return this.replace(i.before(w),S?r.after(w):t,new f(it(n.content,0,n.openStart,y),y,n.openEnd))}}for(var O=this.steps.length,I=o.length-1;I>=0&&(this.replace(e,t,n),!(this.steps.length>O));I--){var $=o[I];$<0||(e=i.before($),t=r.after($))}return this},Ie.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=Ke(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new f(a.from(n),0,0))},Ie.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),r=rt(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 ot=Object.create(null),st=function(e,t,n){this.ranges=n||[new lt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},at={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};at.anchor.get=function(){return this.$anchor.pos},at.head.get=function(){return this.$head.pos},at.from.get=function(){return this.$from.pos},at.to.get=function(){return this.$to.pos},at.$from.get=function(){return this.ranges[0].$from},at.$to.get=function(){return this.ranges[0].$to},at.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},st.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},st.prototype.replace=function(e,t){void 0===t&&(t=f.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],d=l.$from,c=l.$to,u=e.mapping.slice(o);e.replaceRange(u.map(d.pos),u.map(c.pos),a?f.empty:t),0==a&&mt(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}},st.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),d=l.map(s.pos),c=l.map(a.pos);r?e.deleteRange(d,c):(e.replaceRangeWith(d,c,t),mt(e,n,t.isInline?-1:1))}},st.findFrom=function(e,t,n){var i=e.parent.inlineContent?new dt(e):vt(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?vt(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):vt(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}},st.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new ht(e.node(0))},st.atStart=function(e){return vt(e,e,0,0,1)||new ht(e)},st.atEnd=function(e){return vt(e,e,e.content.size,e.childCount,-1)||new ht(e)},st.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=ot[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},st.jsonID=function(e,t){if(e in ot)throw new RangeError("Duplicate use of selection JSON ID "+e);return ot[e]=t,t.prototype.jsonID=e,t},st.prototype.getBookmark=function(){return dt.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(st.prototype,at),st.prototype.visible=!0;var lt=function(e,t){this.$from=e,this.$to=t},dt=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=f.empty),e.prototype.replace.call(this,t,n),n==f.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 ct(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}(st);st.jsonID("text",dt);var ct=function(e,t){this.anchor=e,this.head=t};ct.prototype.map=function(e){return new ct(e.map(this.anchor),e.map(this.head))},ct.prototype.resolve=function(e){return dt.between(e.resolve(this.anchor),e.resolve(this.head))};var ut=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 f(a.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 pt(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}(st);ut.prototype.visible=!1,st.jsonID("node",ut);var pt=function(e){this.anchor=e};pt.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new ct(i,i):new pt(i)},pt.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ut.isSelectable(n)?new ut(t):st.near(t)};var ht=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=f.empty),n==f.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 ft},t}(st);st.jsonID("all",ht);var ft={map:function(){return this},resolve:function(e){return new ht(e)}};function vt(e,t,n,i,r,o){if(t.inlineContent)return dt.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&&ut.isSelectable(a))return ut.create(e,n-(r<0?a.nodeSize:0))}else{var l=vt(e,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}}function mt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var r,o=e.steps[i];(o instanceof Re||o instanceof Ee)&&(e.mapping.maps[i].forEach((function(e,t,n,i){null==r&&(r=i)})),e.setSelection(st.near(e.doc.resolve(r),n)))}}var gt=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 p.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)||p.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(st.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}(Ie);function yt(e,t){return t&&e?e.bind(t):e}var bt=function(e,t,n){this.name=e,this.init=yt(t.init,n),this.apply=yt(t.apply,n)},kt=[new bt("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new bt("selection",{init:function(e,t){return e.selection||st.atStart(t.doc)},apply:function(e){return e.selection}}),new bt("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new bt("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],wt=function(e,t){var n=this;this.schema=e,this.fields=kt.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 bt(e.key,e.spec.state,e))}))},St=function(e){this.config=e},Ct={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};Ct.schema.get=function(){return this.config.schema},Ct.plugins.get=function(){return this.config.plugins},St.prototype.apply=function(e){return this.applyTransaction(e).state},St.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},St.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,d=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(d&&n.filterTransaction(d,o)){if(d.setMeta("appendedTransaction",e),!i){i=[];for(var c=0;c<this.config.plugins.length;c++)i.push(c<o?{state:n,n:t.length}:{state:this,n:0})}t.push(d),n=n.applyInner(d),r=!0}i&&(i[o]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}},St.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new St(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<xt.length;o++)xt[o](this,e,t);return t},Ct.tr.get=function(){return new gt(this)},St.create=function(e){for(var t=new wt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new St(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},St.prototype.reconfigure=function(e){for(var t=new wt(this.schema,e.plugins),n=t.fields,i=new St(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},St.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},St.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 wt(e.schema,e.plugins),r=new St(i);return i.fields.forEach((function(i){if("doc"==i.name)r.doc=B.fromJSON(e.schema,t.doc);else if("selection"==i.name)r.selection=st.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},St.addApplyListener=function(e){xt.push(e)},St.removeApplyListener=function(e){var t=xt.indexOf(e);t>-1&&xt.splice(t,1)},Object.defineProperties(St.prototype,Ct);var xt=[];function Ot(e,t,n){for(var i in e){var r=e[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=Ot(r,t,{})),n[i]=r}return n}var It=function(e){this.props={},e.props&&Ot(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:Dt("plugin")};It.prototype.getState=function(e){return e[this.key]};var $t=Object.create(null);function Dt(e){return e in $t?e+"$"+ ++$t[e]:($t[e]=0,e+"$")}var Mt=function(e){void 0===e&&(e="key"),this.key=Dt(e)};Mt.prototype.get=function(e){return e.config.pluginsByKey[this.key]},Mt.prototype.getState=function(e){return e[this.key]};var Tt="k-parent-node",Pt="k-colgroup-data",Rt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],Et=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Tt)===t})).forEach((function(e){e.removeAttribute(Tt),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Vt=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(Tt,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},Bt=function(e,t){void 0===t&&(t=Rt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},At=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},Nt=function(e){var t=ge.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){Et(e,"thead"),Et(e,"tbody"),Et(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},Lt=function(e,t,n){return se.fromSchema(t).parse(e,n)},_t=function(e,t,n){var i,r=At(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}))&&(Vt(t,"thead"),Vt(t,"tbody"),Vt(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute(Pt,n.outerHTML),n.remove())})),Lt(r,t,n)},Ft=function(e){var t=Nt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},jt=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 ht(i.doc)).replaceSelectionWith(_t(e,i.schema,n)).setMeta("commandName",t))}},zt=function(){return zt=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},zt.apply(this,arguments)};function Kt(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 Ht=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}},Wt=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},Ut=function(e){return e instanceof B?e.type.name:e.name},Gt=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 Ut(t)===Ut(e)}),t)(n)}},qt=function(e,t){return function(n,i){var r=n.tr.replaceSelectionWith(e);t&&r.scrollIntoView(),i(r)}},Jt=function(e,t,n,i){var r=a.from(_t(e,n,i)),o=a.from(_t(t,n,i));return r.eq(o)},Zt=function(e){var t=e.selection;if(t instanceof dt||t instanceof ht){var n=t.content().content;return n.textBetween(0,n.size)}return""},Xt=function(e){if(e.selection instanceof ut)return e.selection.node},Yt=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=Zt(e))),t},Qt=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$/,"")},en={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},tn=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?en: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 d=[];s.$head.parent.descendants((function(e,t){return d.push({node:e,pos:t}),!1}));for(var c=s.$head.parentOffset,u=d.findIndex((function(e){var t=e.node,n=e.pos;return n<=c&&n+t.nodeSize>=c})),p=d[u].node.text,h=!1,f=u-1;f>=0;f--){var v=d[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,c-=v.node.nodeSize)}for(f=u+1;f<d.length&&((v=d[f])&&"text"===v.node.type.name);f++)p+=v.node.text;var m=p.substring(0,c),g=p.substring(c),y=i.before.exec(m),b=i.after.exec(g);if(y&&b){var k=y[0].length,w=b[0].length,S=r=s.from;return o.setSelection(dt.create(e.doc,S-k,S+w)),{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(dt.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},nn=function(e,t){return function(n,i,r){var o=tn(n,i,t),s=o.state,a=o.dispatch;return e(t)(s,a)}},rn=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},on=function(e,t,n){return function(i,r){var o=i.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!rn(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 d=!1,c=0;!d&&c<l.length;c++){var u=l[c],p=u.$from,h=u.$to;d=i.doc.rangeHasMark(p.pos,h.pos,e)}for(c=0;c<l.length;c++){var f=l[c];p=f.$from,h=f.$to,d?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}r(n.scrollIntoView())}return!0}},sn=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 ie){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 d=Math.min(s+e.nodeSize,n),c=0;c<a.length;c++){for(var u=a[c],p=void 0,h=0;h<r.length;h++){var f=r[h];f.step===o-1&&u.eq(f.style)&&(p=f)}p?(p.to=d,p.step=o):r.push({style:u,from:Math.max(s,t),to:d,step:o})}}})),r.forEach((function(t){return e.step(new Ge(t.from,t.to,t.style))})),e},an=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,r=e.tr;ln(r,{except:(i=n,i instanceof Array?i:[i])}),r.docChanged&&t(r)}},ln=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 d=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;d.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},dn=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,d=s.to,c=s.empty,u=i[t.mark],p=e.doc,h=!1;return c?(n=e.storedMarks||l.marks(),h=u&&u.isInSet(n)||r.some((function(e){return i[e].isInSet(n)}))):h=u&&p.rangeHasMark(a,d,u)||r.some((function(e){return p.rangeHasMark(a,d,i[e])})),!h&&o&&i.style?un(e,i.style).some((function(e){return null!==cn(e,o)})):Boolean(h)},cn=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},un=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},pn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},hn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},fn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return Ht(i,t)},vn=function(e,t,n,i,r){var o=r.create({style:i.style}),s=[],a=[],l=null,d=null;return e.doc.nodesBetween(t,n,(function(e,c,u){if(e.isInline){var p=e.marks;if(!o.isInSet(p)&&u.type.allowsMarkType(o.type)){var h=Math.max(c,t),f=Math.min(c+e.nodeSize,n),v=fn(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,y=g?zt({},g.attrs,m):m,b=r.create(y),k=b.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 Ge(h,f,p[w]),s.push(l)));var S=d&&d.to===h,C=S&&b.attrs.style===d.mark.attrs.style;S&&C?d.to=f:Object.keys(y).some((function(e){return null!==y[e]}))&&(d=new Ue(h,f,b),a.push(d))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},mn=function(e,t){var n=e.schema.marks.style;return(n?un(e,n):[]).map((function(e){return cn(e,t)})).filter((function(e){return null!==e}))},gn=function(e,t){return function(n,i,r){var o=n.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!rn(n.doc,l,e))return!1;var d,c,u,p,h=!1;if(i){var f=r||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=fn(v,t),g=v.find((function(e){return"style"===e.type.name})),y=zt({},g?g.attrs:{},{style:m.style||null});if(d=g.attrs,c=y,u=Object.keys(d),p=Object.keys(c),u.length===p.length&&u.every((function(e){return d[e]===c[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(y).some((function(e){return null!==y[e]}))&&i(f.addStoredMark(e.create(y))),h=!0}}else{for(var b=0;b<l.length;b++){var k=l[b],w=k.$from,S=k.$to;h=vn(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},yn=function(e,t,n){return function(i,r){var o=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,d=e.mark,c=t||i.tr,u=!1,p=!1,h=function(){return p=!0};s&&o.style&&(u=gn(o.style,{style:s.name,value:s.value})(i,h,c));var f=[d].concat(l).filter((function(e){return o[e]})).map((function(e){return dn(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){sn(i,r.pos,o.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,c):u||on(o[d],n,c)(i,h),p&&r(c),p}},bn=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,d=a.$cursor,c=a.ranges;if(l&&!d||!r||!rn(n.doc,c,r))return!1;if(d){var u=n.storedMarks||d.marks(),p=r.isInSet(u)?u.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Ht(p.attrs.style,o);f.changed&&f.style&&(h.style=f.style)}else o.newValue&&(h.style=[o.style]+": "+o.newValue+";");var v=p?zt({},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 gn(r,o)(n,i,s)}},kn=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})),d=o.childCount,c=r.pos-r.textOffset,u=o.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(o.child(p).marks);)u+=h=o.child(p).nodeSize,c-=h,p-=1;for(p=s+1;p<d&&l.isInSet(o.child(p).marks);)u+=o.child(p).nodeSize,p+=1;i(sn(t||n.tr,c,c+u,l))}else yn(e,t)(n,i)}},wn=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=un(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 d=o.parent,c=o.index(),u=d.child(c).marks.find((function(e){return e.type===l})),p=d.childCount,h=o.pos-o.textOffset,f=d.child(c).nodeSize,v=void 0,m=void 0;for(v=c-1;v>=0&&u.isInSet(d.child(v).marks);)f+=m=d.child(v).nodeSize,h-=m,v-=1;for(v=c+1;v<p&&u.isInSet(d.child(v).marks);)f+=d.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 d=e;dn(e,{mark:n})&&(kn({mark:n,attrs:i},s)(e,l),d=St.create({doc:s.doc,selection:s.selection})),a?on(o[n],i,s)(d,l):yn({mark:n},s,i)(d,l)}return a&&r(s),a}},Sn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},Cn=function(e){return function(t,n){var i=t.schema.nodes.image.createAndFill(e);qt(i)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},xn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(r){var o=e.steps.length,s=r.$from.pos,l=r.$to.pos;e.doc.nodesBetween(s,l,(function(r,s){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(o).map(s),n)){e.clearIncompatible(e.mapping.slice(o).map(s,1),n);var l=e.mapping.slice(o),d=l.map(s,1),c=l.map(s+r.nodeSize,1),u=new f(a.from(n.create(i,null,r.marks)),0,0);return e.step(new Ee(d,c,d+1,c-1,u,1,!0)),!1}}))}))},On=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 ut?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},In=function(e,t){return function(n,i){var r=On(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=Kt(n,["level"]);xn(s,t,o.paragraph,r)}else if(/^h[1-6]$/i.test(e))i=parseInt(e.substr(1),10),xn(s,t,o.heading,zt({},t.attrs,{level:i}));else if("blockquote"===e){var a=t.attrs;i=a.level,r=Kt(a,["level"]),xn(s,t,o.blockquote,r)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},$n=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,r=t.blocksInSelection,o=t.blockNodeType;On({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=Kt(n,["style","class"]),d=o||t.type;(r||a||d!==t.type)&&xn(e,t,d,l)}))},Dn=function(e){var t=On(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},Mn=function(e,t){var n,i,r=e.attrs.style;return r&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=Ht(r,i),r=n.changed?n.style:r})),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})},Tn=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},Pn=function(e){var t=Dn(e);return 1===new Set(t).size?t[0]:null},Rn=function(e){return{tag:Pn(e)||""}},En=function(e,t){return function(n,i){var r=On(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=Mn(t,i.style)),xn(o,t,t.type,n)}}));var s=o.docChanged;return s&&i(o.scrollIntoView()),s}},Vn=function(e,t){var n=On(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},Bn=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);ln(i,{except:s}),$n(i,{blocksInSelection:r,blockNodeType:o});var a=i.docChanged;return a&&n&&n(i),a}},An=["ol",0],Nn=["ul",0],Ln=["li",0],_n={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?An:["ol",{start:e.attrs.order},0]}},Fn={parseDOM:[{tag:"ul"}],toDOM:function(){return Nn}},jn={parseDOM:[{tag:"li"}],toDOM:function(){return Ln},defining:!0};function zn(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 Kn(e,t,n){return e.append({ordered_list:zn(_n,{content:"list_item+",group:n}),bullet_list:zn(Fn,{content:"list_item+",group:n}),list_item:zn(jn,{content:t})})}function Hn(e,t){return function(n,i){var r=n.selection,o=r.$from,s=r.$to,l=o.blockRange(s),d=!1,c=l;if(!l)return!1;if(l.depth>=2&&o.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==o.index(l.depth-1))return!1;var u=n.doc.resolve(l.start-2);c=new R(u,u,l.depth),l.endIndex<l.parent.childCount&&(l=new R(o,n.doc.resolve(s.end(l.depth)),l.depth)),d=!0}var p=Ne(c,e,t,l);return!!p&&(i&&i(function(e,t,n,i,r){for(var o=a.empty,s=n.length-1;s>=0;s--)o=a.from(n[s].type.create(n[s].attrs,o));e.step(new Ee(t.start-(i?2:0),t.end,t.start,t.end,new f(o,0,0),n.length,!0));for(var l=0,d=0;d<n.length;d++)n[d].type==r&&(l=d+1);for(var c=n.length-l,u=t.start+n.length-(i?2:0),p=t.parent,h=t.startIndex,v=t.endIndex,m=!0;h<v;h++,m=!1)!m&&_e(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=p.child(h).nodeSize;return e}(n.tr,l,p,d,e).scrollIntoView()),!0)}}function Wn(e){return function(t,n){var i=t.selection,r=i.$from,o=i.$to,s=i.node;if(s&&s.isBlock||r.depth<2||!r.sameParent(o))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 d=a.empty,c=r.index(-1)?1:r.index(-2)?2:3,u=r.depth-c;u>=r.depth-3;u--)d=a.from(r.node(u).copy(d));var p=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;d=d.append(a.from(e.createAndFill()));var h=r.before(r.depth-(c-1)),v=t.tr.replace(h,r.after(-p),new f(d,4-c,0)),m=-1;v.doc.nodesBetween(h,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=o.pos==r.end()?l.contentMatchAt(0).defaultType:null,y=t.tr.delete(r.pos,o.pos),b=g&&[null,{type:g}];return!!_e(y.doc,r.pos,2,b)&&(n&&n(y.split(r.pos,2,b).scrollIntoView()),!0)}}function Un(e){return function(t,n){var i=t.selection,r=i.$from,o=i.$to,s=r.blockRange(o,(function(t){return t.childCount&&t.firstChild.type==e}));return!!s&&(!n||(r.node(s.depth-1).type==e?function(e,t,n,i){var r=e.tr,o=i.end,s=i.$to.end(i.depth);return o<s&&(r.step(new Ee(o-1,s,o,s,new f(a.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new R(r.doc.resolve(i.$from.pos),r.doc.resolve(s),i.depth)),t(r.lift(i,Ae(i)).scrollIntoView()),!0}(t,n,e,s):function(e,t,n){for(var i=e.tr,r=n.parent,o=n.end,s=n.endIndex-1,l=n.startIndex;s>l;s--)o-=r.child(s).nodeSize,i.delete(o-1,o+1);var d=i.doc.resolve(n.start),c=d.nodeAfter;if(i.mapping.map(n.end)!=n.start+d.nodeAfter.nodeSize)return!1;var u=0==n.startIndex,p=n.endIndex==r.childCount,h=d.node(-1),v=d.index(-1);if(!h.canReplace(v+(u?0:1),v+1,c.content.append(p?a.empty:a.from(r))))return!1;var m=d.pos,g=m+c.nodeSize;return i.step(new Ee(m-(u?1:0),g+(p?1:0),m+1,g-1,new f((u?a.empty:a.from(r.copy(a.empty))).append(p?a.empty:a.from(r.copy(a.empty))),u?0:1,p?0:1),u?0:1)),t(i.scrollIntoView()),!0}(t,n,s)))}}function Gn(e){return function(t,n){var i=t.selection,r=i.$from,o=i.$to,s=r.blockRange(o,(function(t){return t.childCount&&t.firstChild.type==e}));if(!s)return!1;var l=s.startIndex;if(0==l)return!1;var d=s.parent,c=d.child(l-1);if(c.type!=e)return!1;if(n){var u=c.lastChild&&c.lastChild.type==d.type,p=a.from(u?e.create():null),h=new f(a.from(e.create(null,a.from(d.type.create(null,p)))),u?3:1,0),v=s.start,m=s.end;n(t.tr.step(new Ee(v-(u?3:1),m,v,m,h,1,!0)).scrollIntoView())}return!0}}var qn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},Jn={listType:qn.orderedList,types:zt({},qn)},Zn={listType:qn.bulletList,types:zt({},qn)},Xn={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:zt({},qn)},Yn={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:zt({},qn)};function Qn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function ei(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var r=ii(i);if(!r){var o=i.blockRange(),s=o&&Ae(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}var a=r.nodeBefore;if(!a.type.spec.isolating&&bi(e,r,t))return!0;if(0==i.parent.content.size&&(ti(a,"end")||ut.isSelectable(a))){var l=qe(e.doc,i.before(),i.after(),f.empty);if(l.slice.size<l.to-l.from){if(t){var d=e.tr.step(l);d.setSelection(ti(a,"end")?st.findFrom(d.doc.resolve(d.mapping.map(r.pos,-1)),-1):ut.create(d.doc,r.pos-a.nodeSize)),t(d.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 ti(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 ni(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=ii(r)}var s=o&&o.nodeBefore;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),0))}function ii(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 ri(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=si(i);if(!r)return!1;var o=r.nodeAfter;if(bi(e,r,t))return!0;if(0==i.parent.content.size&&(ti(o,"start")||ut.isSelectable(o))){var s=qe(e.doc,i.before(),i.after(),f.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(ti(o,"start")?st.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):ut.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 oi(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=si(r)}var s=o&&o.nodeAfter;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,o.pos)).scrollIntoView()),0))}function si(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 ai(e,t){var n,i=e.selection,r=i instanceof ut;if(r){if(i.node.isTextblock||!Fe(e.doc,i.from))return!1;n=i.from}else if(null==(n=ze(e.doc,i.from,-1)))return!1;if(t){var o=e.tr.join(n);r&&o.setSelection(ut.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0}function li(e,t){var n,i=e.selection;if(i instanceof ut){if(i.node.isTextblock||!Fe(e.doc,i.to))return!1;n=i.to}else if(null==(n=ze(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function di(e,t){var n=e.selection,i=n.$from,r=n.$to,o=i.blockRange(r),s=o&&Ae(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}function ci(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 ui(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 pi(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=ui(o.contentMatchAt(s));if(!o.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),d=e.tr.replaceWith(l,l,a.createAndFill());d.setSelection(st.near(d.doc.resolve(l),1)),t(d.scrollIntoView())}return!0}function hi(e,t){var n=e.selection,i=n.$from,r=n.$to;if(n instanceof ht||i.parent.inlineContent||r.parent.inlineContent)return!1;var o=ui(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(dt.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function fi(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(_e(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var r=n.blockRange(),o=r&&Ae(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}function vi(e,t){var n=e.selection,i=n.$from,r=n.$to;if(e.selection instanceof ut&&e.selection.node.isBlock)return!(!i.parentOffset||!_e(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 dt||e.selection instanceof ht)&&s.deleteSelection();var a=0==i.depth?null:ui(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=o&&a?[{type:a}]:null,d=_e(s.doc,s.mapping.map(i.pos),1,l);if(l||d||!_e(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],d=!0),d&&(s.split(s.mapping.map(i.pos),1,l),!o&&!i.parentOffset&&i.parent.type!=a)){var c=s.mapping.map(i.before()),u=s.doc.resolve(c);i.node(-1).canReplaceWith(u.index(),u.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function mi(e,t){return vi(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function gi(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(ut.create(e.doc,n))),!0)}function yi(e,t){return t&&t(e.tr.setSelection(new ht(e.doc))),!0}function bi(e,t,n){var i,r,o=t.nodeBefore,s=t.nodeAfter;if(o.type.spec.isolating||s.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&&!Fe(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=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&r.matchType(i[0]||s.type).validEnd){if(n){for(var d=t.pos+s.nodeSize,c=a.empty,u=i.length-1;u>=0;u--)c=a.from(i[u].create(null,c));c=a.from(o.copy(c));var p=e.tr.step(new Ee(t.pos-1,d,t.pos,d,new f(c,1,0),i.length,!0)),h=d+2*i.length;Fe(p.doc,h)&&p.join(h),n(p.scrollIntoView())}return!0}var v=st.findFrom(t,1),m=v&&v.$from.blockRange(v.$to),g=m&&Ae(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(l&&ti(s,"start",!0)&&ti(o,"end")){for(var y=o,b=[];b.push(y),!y.isTextblock;)y=y.lastChild;for(var k=s,w=1;!k.isTextblock;k=k.firstChild)w++;if(y.canReplace(y.childCount,y.childCount,k.content)){if(n){for(var S=a.empty,C=b.length-1;C>=0;C--)S=a.from(b[C].copy(S));n(e.tr.step(new Ee(t.pos-b.length,t.pos+s.nodeSize,t.pos+w,t.pos+s.nodeSize-w,new f(S,b.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ki(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(dt.create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}var wi=ki(-1),Si=ki(1);function Ci(e,t){return function(n,i){var r=n.selection,o=r.$from,s=r.$to,a=o.blockRange(s),l=a&&Ne(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function xi(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 Oi(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,d=n.tr,c=0;!l&&c<a.length;c++){var u=a[c],p=u.$from,h=u.$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)d.removeMark(m.pos,g.pos,e);else{var y=m.pos,b=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;y+S<b&&(y+=S,b-=C),d.addMark(y,b,e.create(t))}}i(d.scrollIntoView())}return!0}}function Ii(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 d=i[l],c=i[l+1],u=n.doc.resolve(d),p=u.sharedDepth(c),h=u.node(p),f=u.indexAfter(p),v=u.after(p+1);v<=c;++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 y=a.length-1;y>=0;y--)Fe(n.doc,a[y])&&n.join(a[y]);e(n)}}(i,t),r)}}function $i(){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 Di=$i(Qn,ei,ni),Mi=$i(Qn,ri,oi),Ti={Enter:$i(ci,hi,fi,vi),"Mod-Enter":pi,Backspace:Di,"Mod-Backspace":Di,"Shift-Backspace":Di,Delete:Mi,"Mod-Delete":Mi,"Mod-a":yi},Pi={"Ctrl-h":Ti.Backspace,"Alt-Backspace":Ti["Mod-Backspace"],"Ctrl-d":Ti.Delete,"Ctrl-Alt-Backspace":Ti["Mod-Delete"],"Alt-Delete":Ti["Mod-Delete"],"Alt-d":Ti["Mod-Delete"],"Ctrl-a":wi,"Ctrl-e":Si};for(var Ri in Ti)Pi[Ri]=Ti[Ri];Ti.Home=wi,Ti.End=Si;var Ei=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Pi:Ti,Vi=function(e,t){return Ci(e.schema.nodes.blockquote)(e,t)},Bi=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 d=-1!==a;return t&&d&&t(e.tr.lift(l,s.resolve(a).depth)),d},Ai=function(e,t,n){return function(i,r){var o=On(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"),d=t.attrs.style.match(l);if(d){var c=parseFloat(d[1])+r.step;c=c<=0?"":c,a.value=""+c+(c?r.unit:"")}}i=Mn(t,[a])}i&&xn(s,t,t.type,i)}}));var a=s.docChanged;return a&&r(s.scrollIntoView()),a}},Ni=function(e,t,n){var i=On(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},Li=function(e,t){return Gn(t)(e)},_i=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=!!Gt(i,2)(e.selection),s=!!Gt(r,2)(e.selection);return(o||s)&&Un(n)(e)},Fi=function(e,t){var n=e.schema.nodes,i=n[Xn.listsTypes.listItem];return(Ni(e,t.nodes)||Xn.nodes.some((function(t){return n[t.node]&&Tn(e,n[t.node])})))&&!Tn(e,i)},ji=function(e,t){var n=e.schema.nodes[Xn.listsTypes.listItem],i=Fi(e,Xn);Li(e,n)?Gn(n)(e,t):i&&Ai(Xn.nodes)(e,t)},zi=function(e,t){var n=e.schema.nodes,i=n[Yn.listsTypes.listItem],r=Fi(e,Yn);Tn(e,n.blockquote)?Bi(e,t):_i(e,Yn)?Un(i)(e,t):r&&Ai(Yn.nodes)(e,t)},Ki=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 Hi(e,t,n,i){var r=i||e.schema.nodes.listItem,o=t.$from,s=t.$to,l=o.blockRange(s,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||o.node(l.depth-1).type!==r)return n;var d=l.end,c=s.end(l.depth);return d<c&&(n.step(new Ee(d-1,c,d,c,new f(a.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new R(n.doc.resolve(o.pos),n.doc.resolve(c),l.depth)),n.lift(l,Ae(l)).scrollIntoView()}function Wi(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 ut(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&&Ae(s);if(null==a)return!1;i.lift(s,a)}})),n&&n(i),!0}}var Ui=/list\-style\-type:\s?([\w-]+)/,Gi=function(e){var t=e.style||"",n=Ui.exec(t);return n&&n[1]||""},qi=function(e,t,n,i,r){var o=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,d=l.$from.node(l.$from.depth-2),c=l.$to.node(l.$to.depth-2);if(d&&d.type.name===o&&Gi(d.attrs)===Gi(a)&&c&&c.type.name===o&&Gi(c.attrs)===Gi(a)){var u=n.state.schema.nodes,p={bulletList:u[i.bulletList],orderedList:u[i.orderedList],listItem:u[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 d=r.doc.resolve(r.mapping.map(a));l=d.depth;var c=r.doc.resolve(r.mapping.map(a+n.textContent.length)),u=new dt(d,c);r=Hi(e,u,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,d=[];t.doc.nodesBetween(r,o,(function(e,t){e.type!==a&&e.type!==l||d.push({node:e,pos:t})}));for(var c=d.length-1;c>=0;c--){var u=d[c],p=t.doc.resolve(t.mapping.map(u.pos));if(p.depth>0){var h;h=u.node.textContent&&u.node.textContent.length>0?t.doc.resolve(t.mapping.map(u.pos+u.node.textContent.length)):t.doc.resolve(t.mapping.map(u.pos+1));var f=p.blockRange(h);f&&t.lift(f,Ki(e.schema,p,n))}}return t}(e,f,i),f.setMeta("commandName",r),t(f),!0}return function(e){return function(t,n,i){if(!i)return!1;var r,o,s=(t=i.state).schema.nodes[e.listType],a=t.selection,l=a.$from,d=a.$to,c=l.node(-2),u=l.node(-3),p=function(e,t,n,i){return 0===function(e,t,n){for(var i=Array(),r=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var i=t.node(t.depth),r=t;t.depth>=1;)(i=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(i.type.name)&&(r=t);return r}(e,t).depth,o=e.resolve(t.start(r));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,l,d,s);return(c&&c.type===s||u&&u.type===s)&&p?Wi(e)(t,n):(p||(Wi(e)(t,n),t=i.state),(r=s,void 0===(o=e.listAttrs)&&(o={}),Ii(Hn(r,o),(function(e,t){return e.type===t.type&&e.type===r})))(t,n))}}(i)(e,t,n)};function Ji(e,t,n){return qi(e,t,n,zt({listType:Zn.listType},Zn.types))}function Zi(e,t,n){return qi(e,t,n,zt({listType:Jn.listType},Jn.types))}for(var Xi=function(e,t){return{name:e,value:t}},Yi=[{node:"paragraph",style:[Xi("text-align","left")]},{node:"heading",style:[Xi("text-align","left")]}],Qi=[{node:"paragraph",style:[Xi("text-align","right")]},{node:"heading",style:[Xi("text-align","right")]}],er=[{node:"paragraph",style:[Xi("text-align","center")]},{node:"heading",style:[Xi("text-align","center")]}],tr=[{node:"paragraph",style:[Xi("text-align","justify")]},{node:"heading",style:[Xi("text-align","justify")]}],nr=[{node:"paragraph",style:[Xi("text-align","")]},{node:"heading",style:[Xi("text-align","")]}],ir={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:"'"},rr={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},or="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),sr=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),ar="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),lr=sr||or&&+or[1]<57,dr=0;dr<10;dr++)ir[48+dr]=ir[96+dr]=String(dr);for(dr=1;dr<=24;dr++)ir[dr+111]="F"+dr;for(dr=65;dr<=90;dr++)ir[dr]=String.fromCharCode(dr+32),rr[dr]=String.fromCharCode(dr);for(var cr in ir)rr.hasOwnProperty(cr)||(rr[cr]=ir[cr]);var ur="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function pr(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);ur?r=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),r&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function hr(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 fr(e){return new It({props:{handleKeyDown:vr(e)}})}function vr(e){var t=function(e){var t=Object.create(null);for(var n in e)t[pr(n)]=e[n];return t}(e);return function(e,n){var i,r=function(e){var t=!(lr&&(e.ctrlKey||e.altKey||e.metaKey)||ar&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?rr:ir)[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[hr(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=ir[n.keyCode])&&i!=r){var a=t[hr(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(o&&n.shiftKey){var l=t[hr(r,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var mr={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var gr=/Edge\/(\d+)/.exec(navigator.userAgent),yr=/MSIE \d/.test(navigator.userAgent),br=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),kr=mr.ie=!!(yr||br||gr);mr.ie_version=yr?document.documentMode||6:br?+br[1]:gr?+gr[1]:null,mr.gecko=!kr&&/gecko\/(\d+)/i.test(navigator.userAgent),mr.gecko_version=mr.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var wr=!kr&&/Chrome\/(\d+)/.exec(navigator.userAgent);mr.chrome=!!wr,mr.chrome_version=wr&&+wr[1],mr.safari=!kr&&/Apple Computer/.test(navigator.vendor),mr.ios=mr.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),mr.mac=mr.ios||/Mac/.test(navigator.platform),mr.android=/Android \d/.test(navigator.userAgent),mr.webkit="webkitFontSmoothing"in document.documentElement.style,mr.webkit_version=mr.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var Sr=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Cr=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},xr=null,Or=function(e,t,n){var i=xr||(xr=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},Ir=function(e,t,n,i){return n&&(Dr(e,t,n,i,-1)||Dr(e,t,n,i,1))},$r=/^(img|br|input|textarea|hr)$/i;function Dr(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Mr(e))){var o=e.parentNode;if(1!=o.nodeType||Tr(e)||$r.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Sr(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?Mr(e):0}}}function Mr(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Tr(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 Pr=function(e){var t=e.isCollapsed;return t&&mr.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Rr(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Er(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Vr(e,t){return"number"==typeof e?e:e[t]}function Br(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 Ar(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=Cr(s))if(1==s.nodeType){var a=s==o.body||1!=s.nodeType,l=a?Er(o):Br(s),d=0,c=0;if(t.top<l.top+Vr(i,"top")?c=-(l.top-t.top+Vr(r,"top")):t.bottom>l.bottom-Vr(i,"bottom")&&(c=t.bottom-l.bottom+Vr(r,"bottom")),t.left<l.left+Vr(i,"left")?d=-(l.left-t.left+Vr(r,"left")):t.right>l.right-Vr(i,"right")&&(d=t.right-l.right+Vr(r,"right")),d||c)if(a)o.defaultView.scrollBy(d,c);else{var u=s.scrollLeft,p=s.scrollTop;c&&(s.scrollTop+=c),d&&(s.scrollLeft+=d);var h=s.scrollLeft-u,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=Cr(e));return t}function Lr(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 _r=null;function Fr(e,t){for(var n,i,r=2e8,o=0,s=t.top,a=t.top,l=e.firstChild,d=0;l;l=l.nextSibling,d++){var c=void 0;if(1==l.nodeType)c=l.getClientRects();else{if(3!=l.nodeType)continue;c=Or(l).getClientRects()}for(var u=0;u<c.length;u++){var p=c[u];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=d+(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=d+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=Hr(i,1);if(o.top!=o.bottom&&jr(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}:Fr(n,i)}function jr(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function zr(e,t,n){var i=e.childNodes.length;if(i&&n.top<n.bottom)for(var r=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),o=r;;){var s=e.childNodes[o];if(1==s.nodeType)for(var a=s.getClientRects(),l=0;l<a.length;l++){var d=a[l];if(jr(t,d))return zr(s,t,d)}if((o=(o+1)%i)==r)break}return e}function Kr(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 d,c=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!c||!e.dom.contains(1!=c.nodeType?c.parentNode:c)){var u=e.dom.getBoundingClientRect();if(!jr(t,u))return null;if(!(c=zr(e.dom,t,u)))return null}if(mr.safari)for(var p=c;r&&p;p=Cr(p))p.draggable&&(r=o=null);if(c=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(c,t),r){if(mr.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?d=e.state.doc.content.size:0!=o&&1==r.nodeType&&"BR"==r.childNodes[o-1].nodeName||(d=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==d&&(d=function(e,t,n){var i=Fr(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,c,t));var v=e.docView.nearestDesc(c,!0);return{pos:d,inside:v?v.posAtStart-v.border:-1}}function Hr(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Wr=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ur(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),r=i.node,o=i.offset,s=mr.webkit||mr.gecko;if(3==r.nodeType){if(!s||!Wr.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){var a=o,l=o,d=n<0?1:-1;return n<0&&!o?(l++,d=-1):n>=0&&o==r.nodeValue.length?(a--,d=1):n<0?a--:l++,Gr(Hr(Or(r,a,l),d),d<0)}var c=Hr(Or(r,o,o),n);if(mr.gecko&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){var u=Hr(Or(r,o-1,o-1),-1);if(u.top==c.top){var p=Hr(Or(r,o,o+1),-1);if(p.top!=c.top)return Gr(p,p.left<u.left)}}return c}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==Mr(r))){var h=r.childNodes[o-1];if(1==h.nodeType)return qr(h.getBoundingClientRect(),!1)}if(o<Mr(r)){var f=r.childNodes[o];if(1==f.nodeType)return qr(f.getBoundingClientRect(),!0)}return qr(r.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==Mr(r))){var v=r.childNodes[o-1],m=3==v.nodeType?Or(v,Mr(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return Gr(Hr(m,1),!1)}if(o<Mr(r)){for(var g=r.childNodes[o];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var y=g?3==g.nodeType?Or(g,0,s?0:1):1==g.nodeType?g:null:null;if(y)return Gr(Hr(y,-1),!0)}return Gr(Hr(3==r.nodeType?Or(r):r,-n),n>=0)}function Gr(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 qr(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 Jr(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 Zr=/[\u0590-\u08ac]/,Xr=null,Yr=null,Qr=!1;var eo=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},to={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}};eo.prototype.matchesWidget=function(){return!1},eo.prototype.matchesMark=function(){return!1},eo.prototype.matchesNode=function(){return!1},eo.prototype.matchesHack=function(e){return!1},eo.prototype.parseRule=function(){return null},eo.prototype.stopEvent=function(){return!1},to.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},to.border.get=function(){return 0},eo.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()},eo.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}},to.posBefore.get=function(){return this.parent.posBeforeChild(this)},to.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},to.posAfter.get=function(){return this.posBefore+this.size},to.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},eo.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>Sr(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 d=e;;d=d.parentNode){if(d==this.dom){a=!0;break}if(d.parentNode.lastChild!=d)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},eo.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}}},eo.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},eo.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},eo.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}},eo.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 co){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 io&&a.widget.type.side>=0;n--);if(t<=0){for(var l,d=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,d=!1);return l&&t&&d&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?Sr(l.dom)+1:0}}for(var c,u=!0;(c=n<this.children.length?this.children[n]:null)&&c.dom.parentNode!=this.contentDOM;n++,u=!1);return c&&u&&!c.border&&!c.domAtom?c.domFromPos(0,t):{node:this.contentDOM,offset:c?Sr(c.dom):this.contentDOM.childNodes.length}},eo.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 d=o+a.border;if(e>=d&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,d);e=o;for(var c=s;c>0;c--){var u=this.children[c-1];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(1)){i=Sr(u.dom)+1;break}e-=u.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=Sr(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}},eo.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)},eo.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]},eo.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],d=a+l.size;if(r>a&&o<d)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=d}var c=this.domFromPos(e,e?-1:1),u=t==e?c:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((mr.gecko||mr.safari)&&e==t){var f=c.node,v=c.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&&(c=u={node:g.parentNode,offset:Sr(g)+1});break}var y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{var b=f.childNodes[v-1];h=b&&("BR"==b.nodeName||"false"==b.contentEditable)}}if(mr.gecko&&p.focusNode&&p.focusNode!=u.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&mr.safari||!Ir(c.node,c.offset,p.anchorNode,p.anchorOffset)||!Ir(u.node,u.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(c.node,c.offset);try{e!=t&&p.extend(u.node,u.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=c;c=u,u=S}var C=document.createRange();C.setEnd(u.node,u.offset),C.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(C)}}},eo.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},to.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},eo.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},eo.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)}},to.domAtom.get=function(){return!1},to.ignoreForCoords.get=function(){return!1},Object.defineProperties(eo.prototype,to);var no=[],io=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,no,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}(eo),ro=function(e){function t(t,n,i,r){e.call(this,t,no,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}(eo),oo=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=ge.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=Co(o,n,s,i)),e>0&&(o=Co(o,0,e,i));for(var a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r},t}(eo),so=function(e){function t(t,n,i,r,o,s,a,l,d){e.call(this,t,n.isLeaf?no:[],o,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=r,s&&this.updateChildren(l,d)}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,d=o.nodeViews[n.type.name],c=d&&d(n,o,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,r),u=c&&c.dom,p=c&&c.contentDOM;if(n.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(n.text);else u||(u=(a=ge.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable=!1),n.type.spec.draggable&&(u.draggable=!0));var h=u;return u=yo(u,i,n),c?l=new uo(e,n,i,r,u,p,h,c,o,s+1):n.isText?new lo(e,n,i,r,u,h,o):new t(e,n,i,r,u,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?a.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&bo(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 wo(this,s&&s.node);!function(e,t,n,i){var r=t.locals(e),o=0;if(0!=r.length)for(var s=0,a=[],l=null,d=0;;){if(s<r.length&&r[s].to==o){for(var c=r[s++],u=void 0;s<r.length&&r[s].to==o;)(u||(u=[c])).push(r[s++]);if(u){u.sort(So);for(var p=0;p<u.length;p++)n(u[p],d,!!l)}else n(c,d,!!l)}var h=void 0,f=void 0;if(l)f=-1,h=l,l=null;else{if(!(d<e.childCount))break;f=d,h=e.child(d++)}for(var v=0;v<a.length;v++)a[v].to<=o&&a.splice(v--,1);for(;s<r.length&&r[s].from<=o&&r[s].to>o;)a.push(r[s++]);var m=o+h.nodeSize;if(h.isText){var g=m;s<r.length&&r[s].from<g&&(g=r[s].from);for(var y=0;y<a.length;y++)a[y].to<g&&(g=a[y].to);g<m&&(l=h.cut(g-o),h=h.cut(0,g-o),m=g,f=-1)}i(h,a.length?h.isInline&&!h.isLeaf?a.filter((function(e){return!e.inline})):a.slice():no,t.forChild(o,h),f),o=m}else for(var b=0;b<e.childCount;b++){var k=e.child(b);i(k,r,t.forChild(o,k),b),o+=k.nodeSize}}(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?p.none:n.node.child(o).marks,i,e),l.placeWidget(t,e,r)}),(function(t,n,s,d){var c;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,d)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(c=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,n,s,c,e)||l.updateNextNode(t,n,s,e,d)||l.addNode(t,n,s,e,r),r+=t.nodeSize})),l.syncToMarks(no,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),po(this.contentDOM,this.children,e),mr.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 dt)||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];t=Mr(e=e.childNodes[t-1])}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 d=e.child(r++);if(o+=d.nodeSize,!d.isText)break;l+=d.text}if(o>=n&&a<i){var c=l.lastIndexOf(t,i-a-1);if(c>=0&&c+t.length+a>=n)return a+c}}}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 ro(this,o,n,r);e.compositionNodes.push(s),this.children=Co(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(!bo(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=mo(this.dom,this.nodeDOM,vo(this.outerDeco,this.node,t),vo(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}(eo);function ao(e,t,n,i,r){return yo(i,t,e),new so(null,e,t,n,i,i,i,r,0)}var lo=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}(so),co=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}(eo),uo=function(e){function t(t,n,i,r,o,s,a,l,d,c){e.call(this,t,n,i,r,o,s,a,d,c),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}(so);function po(e,t,n){for(var i=e.firstChild,r=!1,o=0;o<t.length;o++){var s=t[o],a=s.dom;if(a.parentNode==e){for(;a!=i;)i=ko(i),r=!0;i=i.nextSibling}else r=!0,e.insertBefore(a,i);if(s instanceof oo){var l=i?i.previousSibling:e.lastChild;po(s.contentDOM,s.children,n),i=l?l.nextSibling:e.firstChild}}for(;i;)i=ko(i),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}function ho(e){e&&(this.nodeName=e)}ho.prototype=Object.create(null);var fo=[new ho];function vo(e,t,n){if(0==e.length)return fo;for(var i=n?fo[0]:new ho,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 ho(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==r.length&&r.push(i=new ho(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 mo(e,t,n,i){if(n==fo&&i==fo)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=fo[0]),r=l}go(r,a||fo[0],s)}return r}function go(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):no,s=n.class?n.class.split(" ").filter(Boolean):no,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 d,c=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;d=c.exec(t.style);)e.style.removeProperty(d[1]);n.style&&(e.style.cssText+=n.style)}}function yo(e,t,n){return mo(e,e,fo,vo(t,n,1!=e.nodeType))}function bo(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 ko(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var wo=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 oo)){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 d=a.node;if(d){if(d!=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 So(e,t){return e.type.side-t.type.side}function Co(e,t,n,i,r){for(var o=[],s=0,a=0;s<e.length;s++){var l=e[s],d=a,c=a+=l.size;d>=n||c<=t?o.push(l):(d<t&&o.push(l.slice(0,t-d,i)),r&&(o.push(r),r=null),c>n&&o.push(l.slice(n-d,l.size,i)))}return o}function xo(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,d=i.resolve(s);if(Pr(n)){for(a=d;r&&!r.node;)r=r.parent;if(r&&r.node.isAtom&&ut.isSelectable(r.node)&&r.parent&&(!r.node.isInline||!function(e,t,n){for(var i=0==t,r=t==Mr(e);i||r;){if(e==n)return!0;var o=Sr(e);if(!(e=e.parentNode))return!1;i=i&&0==o,r=r&&o==Mr(e)}}(n.focusNode,n.focusOffset,r.dom))){var c=r.posBefore;l=new ut(s==c?d:i.resolve(c))}}else{var u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(u<0)return null;a=i.resolve(u)}return l||(l=Eo(e,a,d,"pointer"==t||e.state.selection.head<d.pos&&!o?1:-1)),l}function Oo(e){return e.editable?e.hasFocus():Vo(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Io(e,t){var n=e.state.selection;if(Po(e,n),Oo(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&mr.chrome){var i=e.root.getSelection(),r=e.domObserver.currentSelection;if(i.anchorNode&&Ir(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,Sr(i)+1):n.setEnd(i,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&mr.ie&&mr.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var o,s,a=n.anchor,l=n.head;!$o||n instanceof dt||(n.$from.parent.inlineContent||(o=Do(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=Do(e,n.to))),e.docView.setSelection(a,l,e.root,t),$o&&(o&&To(o),s&&To(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(){Oo(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}wo.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}},wo.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},wo.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=oo.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++}},wo.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))},wo.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)},wo.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}},wo.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 so){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&&bo(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},wo.prototype.addNode=function(e,t,n,i,r){this.top.children.splice(this.index++,0,so.create(this.top,e,t,n,i,r)),this.changed=!0},wo.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 io(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++},wo.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof oo;)e=e.children[e.children.length-1];e&&e instanceof lo&&!/\n$/.test(e.node.text)||((mr.safari||mr.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},wo.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 co(this.top,no,t,null)),this.changed=!0}};var $o=mr.safari||mr.chrome&&mr.chrome_version<63;function Do(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(mr.safari&&o&&"false"==o.contentEditable)return Mo(o);if(!(o&&"false"!=o.contentEditable||s&&"false"!=s.contentEditable)){if(o)return Mo(o);if(s)return Mo(s)}}function Mo(e){return e.contentEditable="true",mr.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function To(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Po(e,t){if(t instanceof ut){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ro(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ro(e)}function Ro(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Eo(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||dt.between(t,n,i)}function Vo(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 Bo(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&&st.findFrom(s,t)}function Ao(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function No(e,t,n){var i=e.state.selection;if(!(i instanceof dt)){if(i instanceof ut&&i.node.isInline)return Ao(e,new dt(t>0?i.$to:i.$from));var r=Bo(e.state,t);return!!r&&Ao(e,r)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var o=Bo(e.state,t);return!!(o&&o instanceof ut)&&Ao(e,o)}if(!(mr.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 d=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(d))&&!s.contentDOM)&&(ut.isSelectable(l)?Ao(e,new ut(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!mr.webkit&&Ao(e,new dt(e.state.doc.resolve(t<0?d:d+l.nodeSize))))}}function Lo(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function _o(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Fo(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var r,o,s=!1;for(mr.gecko&&1==n.nodeType&&i<Lo(n)&&_o(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(_o(a))r=n,o=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(zo(n))break;for(var l=n.previousSibling;l&&_o(l);)r=n.parentNode,o=Sr(l),l=l.previousSibling;if(l)i=Lo(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?Ko(e,t,n,i):r&&Ko(e,t,r,o)}}function jo(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var r,o,s=Lo(n);;)if(i<s){if(1!=n.nodeType)break;if(!_o(n.childNodes[i]))break;r=n,o=++i}else{if(zo(n))break;for(var a=n.nextSibling;a&&_o(a);)r=a.parentNode,o=Sr(a)+1,a=a.nextSibling;if(a)i=0,s=Lo(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}r&&Ko(e,t,r,o)}}function zo(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ko(e,t,n,i){if(Pr(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&&Io(e)}),50)}function Ho(e,t,n){var i=e.state.selection;if(i instanceof dt&&!i.empty||n.indexOf("s")>-1)return!1;if(mr.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=Bo(e.state,t);if(s&&s instanceof ut)return Ao(e,s)}if(!r.parent.inlineContent){var a=t<0?r:o,l=i instanceof ht?st.near(a,t):st.findFrom(a,t);return!!l&&Ao(e,l)}return!1}function Wo(e,t){if(!(e.state.selection instanceof dt))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 Uo(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Go(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(mr.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||mr.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function qo(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Eo(e,t.resolve(n.anchor),t.resolve(n.head))}function Jo(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 Zo(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")||ge.fromSchema(e.state.schema),l=as(),d=l.createElement("div");d.appendChild(a.serializeFragment(i,{document:l}));for(var c,u=d.firstChild;u&&1==u.nodeType&&(c=rs[u.nodeName.toLowerCase()]);){for(var p=c.length-1;p>=0;p--){for(var h=l.createElement(c[p]);d.firstChild;)h.appendChild(d.firstChild);d.appendChild(h),"tbody"!=c[p]&&(r++,o++)}u=d.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",r+" "+o+" "+JSON.stringify(n)),{dom:d,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function Xo(e,t,n,i,r){var o,s,l=r.parent.type.spec.code;if(!n&&!t)return null;var d=t&&(i||l||!n);if(d){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new f(a.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):f.empty;var c=e.someProp("clipboardTextParser",(function(e){return e(t,r,i)}));if(c)s=c;else{var u=r.marks(),p=e.state.schema,h=ge.fromSchema(p);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=o.appendChild(document.createElement("p"));e&&t.appendChild(h.serializeNode(p.text(e,u)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),o=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=as().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);if((n=r&&rs[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join("")),i.innerHTML=e,n)for(var o=0;o<n.length;o++)i=i.querySelector(n[o])||i;return i}(n),mr.webkit&&function(e){for(var t=e.querySelectorAll(mr.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)}}(o);var v=o&&o.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!s){var g=e.someProp("clipboardParser")||e.someProp("domParser")||se.fromSchema(e.state.schema);s=g.parseSlice(o,{preserveWhitespace:!(!d&&!m),context:r,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Yo.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)s=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,o=e.openStart,s=e.openEnd,l=n.length-2;l>=0;l-=2){var d=i.nodes[n[l]];if(!d||d.hasRequiredAttrs())break;r=a.from(d.create(n[l+1],r)),o++,s++}return new f(r,o,s)}(is(s,+m[1],+m[2]),m[3]);else if(s=f.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,o=[];if(e.forEach((function(e){if(o){var t,n=i.findWrapping(e.type);if(!n)return o=null;if(t=o.length&&r.length&&es(n,r,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=ts(o[o.length-1],r.length));var s=Qo(e,n);o.push(s),i=i.matchType(s.type,s.attrs),r=n}}})),o)return{v:a.from(o)}},i=t.depth;i>=0;i--){var r=n(i);if(r)return r.v}return e}(s.content,r),!0),s.openStart||s.openEnd){for(var y=0,b=0,k=s.content.firstChild;y<s.openStart&&!k.type.spec.isolating;y++,k=k.firstChild);for(var w=s.content.lastChild;b<s.openEnd&&!w.type.spec.isolating;b++,w=w.lastChild);s=is(s,y,b)}return e.someProp("transformPasted",(function(e){s=e(s)})),s}var Yo=/^(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 Qo(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,a.from(e));return e}function es(e,t,n,i,r){if(r<e.length&&r<t.length&&e[r]==t[r]){var o=es(e,t,n,i.lastChild,r+1);if(o)return i.copy(i.content.replaceChild(i.childCount-1,o));if(i.contentMatchAt(i.childCount).matchType(r==e.length-1?n.type:e[r+1]))return i.copy(i.content.append(a.from(Qo(n,e,r+1))))}}function ts(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,ts(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(a.empty,!0);return e.copy(n.append(i))}function ns(e,t,n,i,r,o){var s=t<0?e.firstChild:e.lastChild,l=s.content;return r<i-1&&(l=ns(l,t,n,i,r+1,o)),r>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||o<=r).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(a.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function is(e,t,n){return t<e.openStart&&(e=new f(ns(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new f(ns(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var rs={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},ss=null;function as(){return ss||(ss=document.implementation.createHTMLDocument("title"))}var ls={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ds=mr.ie&&mr.ie_version<=11,cs=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};cs.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},cs.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var us=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]);mr.ie&&mr.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 cs,ds&&(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};us.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},us.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},us.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ls),ds&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},us.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()}ds&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},us.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},us.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},us.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},us.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Vo(e)){var e;if(this.suppressingSelectionUpdates)return Io(this.view);if(mr.ie&&mr.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&Ir(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},us.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},us.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},us.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)&&Vo(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(mr.gecko&&s.length>1){var d=s.filter((function(e){return"BR"==e.nodeName}));if(2==d.length){var c=d[0],u=d[1];c.parentNode&&c.parentNode.parentNode==u.parentNode?u.remove():c.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,r),p=this.view,ps||(ps=!0,"normal"==getComputedStyle(p.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.handleDOMChange(i,r,o,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Io(this.view),this.currentSelection.set(t))}var p},us.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(mr.ie&&mr.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,d=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(o=d)}var c=r&&r.parentNode==e.target?Sr(r)+1:0,u=n.localPosFromDOM(e.target,c,-1),p=o&&o.parentNode==e.target?Sr(o):e.target.childNodes.length;return{from:u,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 ps=!1,hs={},fs={};function vs(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ms(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return gs(e,t)})}))}function gs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ys(e){return{left:e.clientX,top:e.clientY}}function bs(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 ks(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function ws(e,t,n,i){return bs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function Ss(e,t,n,i){return bs(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&&(ks(e,dt.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)ks(e,dt.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ut.isSelectable(s))continue;ks(e,ut.create(i,a),"pointer")}return!0}}(e,n,i)}function Cs(e){return Ts(e)}fs.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!Is(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!mr.android||!mr.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!mr.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||function(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||mr.mac&&72==n&&"c"==i?Wo(e,-1)||Fo(e):46==n||mr.mac&&68==n&&"c"==i?Wo(e,1)||jo(e):13==n||27==n||(37==n?No(e,-1,i)||Fo(e):39==n?No(e,1,i)||jo(e):38==n?Ho(e,-1,i)||Fo(e):40==n?function(e){if(mr.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;Uo(e,r,!0),setTimeout((function(){return Uo(e,r,!1)}),20)}}}(e)||Ho(e,1,i)||jo(e):i==(mr.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}(e,t)?t.preventDefault():vs(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,Rr(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},fs.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},fs.keypress=function(e,t){if(!(Is(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||mr.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof dt&&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 xs=mr.mac?"metaKey":"ctrlKey";hs.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=Cs(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[xs]&&("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(ys(t));o&&("singleClick"==r?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new Os(e,o,t,n)):("doubleClick"==r?ws:Ss)(e,o.pos,o.inside,t)?t.preventDefault():vs(e,"pointer"))};var Os=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[xs],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,d=l?e.docView.nearestDesc(l,!0):null;this.target=d?d.dom:null;var c=e.state.selection;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof ut&&c.from<=o&&c.to>o)&&(this.mightDrag={node:r,pos:o,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&mr.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)),vs(e,"pointer")};function Is(e,t){return!!e.composing||!!(mr.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Os.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 Io(e.view)})),this.view.mouseDown=null},Os.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(ys(e))),this.allowDefault||!t?vs(this.view,"pointer"):function(e,t,n,i,r){return bs(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 ut&&(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(ut.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&&(ks(e,ut.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&&ut.isSelectable(i))&&(ks(e,new ut(n),"pointer"),!0)}(e,n))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||mr.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||mr.chrome&&!(this.view.state.selection instanceof dt)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(ks(this.view,st.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):vs(this.view,"pointer")}},Os.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),vs(this.view,"pointer"),0==e.buttons&&this.done()},hs.touchdown=function(e){Cs(e),vs(e,"pointer")},hs.contextmenu=function(e){return Cs(e)};var $s=mr.android?5e3:-1;function Ds(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Ts(e)}),t))}function Ms(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 Ts(e,t){if(!(mr.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ms(e),t||e.docView.dirty){var n=xo(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}fs.compositionstart=fs.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(),Ts(e,!0),e.markCursor=null;else if(Ts(e),mr.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}Ds(e,$s)},fs.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Ds(e,20))};var Ps=mr.ie&&mr.ie_version<15||mr.ios&&mr.webkit_version<604;function Rs(e,t,n,i){var r=Xo(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,r||f.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}hs.copy=fs.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var r=Ps?null:t.clipboardData,o=Zo(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"))}},fs.paste=function(e,t){if(!e.composing||mr.android){var n=Ps?null:t.clipboardData;n&&Rs(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?Rs(e,i.value,null,t):Rs(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Es=function(e,t){this.slice=e,this.move=t},Vs=mr.mac?"altKey":"ctrlKey";for(var Bs in hs.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(ys(t));if(r&&r.pos>=i.from&&r.pos<=(i instanceof ut?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ut.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(ut.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),a=Zo(e,s),l=a.dom,d=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Ps?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Ps||t.dataTransfer.setData("text/plain",d),e.dragging=new Es(s,!t[Vs])}},hs.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},fs.dragover=fs.dragenter=function(e,t){return t.preventDefault()},fs.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ys(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=Xo(e,t.dataTransfer.getData(Ps?"Text":"text/plain"),Ps?null:t.dataTransfer.getData("text/html"),!1,r);var s=n&&!t[Vs];if(e.someProp("handleDrop",(function(n){return n(e,t,o||f.empty,s)})))t.preventDefault();else if(o){t.preventDefault();var a=o?He(e.state.doc,r.pos,o):r.pos;null==a&&(a=r.pos);var l=e.state.tr;s&&l.deleteSelection();var d=l.mapping.map(a),c=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,u=l.doc;if(c?l.replaceRangeWith(d,d,o.content.firstChild):l.replaceRange(d,d,o),!l.doc.eq(u)){var p=l.doc.resolve(d);if(c&&ut.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new ut(p));else{var h=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return h=i})),l.setSelection(Eo(e,p,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},hs.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())&&Io(e)}),20))},hs.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)},hs.beforeinput=function(e,t){if(mr.chrome&&mr.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,Rr(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)}},fs)hs[Bs]=fs[Bs];function As(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||Ks,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 Fs(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&&As(this.spec,e.spec))},Ns.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var Ls=function(e,t){this.spec=t||Ks,this.attrs=e};Ls.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 Fs(r,o,this)},Ls.prototype.valid=function(e,t){return t.from<t.to},Ls.prototype.eq=function(e){return this==e||e instanceof Ls&&As(this.attrs,e.attrs)&&As(this.spec,e.spec)},Ls.is=function(e){return e.type instanceof Ls};var _s=function(e,t){this.spec=t||Ks,this.attrs=e};_s.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 Fs(r.pos-n,o.pos-n,this)},_s.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},_s.prototype.eq=function(e){return this==e||e instanceof _s&&As(this.attrs,e.attrs)&&As(this.spec,e.spec)};var Fs=function(e,t,n){this.from=e,this.to=t,this.type=n},js={spec:{configurable:!0},inline:{configurable:!0}};Fs.prototype.copy=function(e,t){return new Fs(e,t,this.type)},Fs.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},Fs.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Fs.widget=function(e,t,n){return new Fs(e,e,new Ns(t,n))},Fs.inline=function(e,t,n,i){return new Fs(e,t,new Ls(n,i))},Fs.node=function(e,t,n,i){return new Fs(e,t,new _s(n,i))},js.spec.get=function(){return this.type.spec},js.inline.get=function(){return this.type instanceof Ls},Object.defineProperties(Fs.prototype,js);var zs=[],Ks={},Hs=function(e,t){this.local=e&&e.length?e:zs,this.children=t&&t.length?t:zs};Hs.create=function(e,t){return t.length?Zs(t,e,0,Ks):Ws},Hs.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Hs.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)}},Hs.prototype.map=function(e,t,n){return this==Ws||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Ks)},Hs.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],d=void 0;-1==l||e>l+o||(t>=a[s]+o?a[s+1]=-1:n>=r&&(d=i-n-(t-e))&&(a[s]+=d,a[s+1]+=d))}},d=0;d<n.maps.length;d++)n.maps[d].forEach(l);for(var c=!1,u=0;u<a.length;u+=3)if(-1==a[u+1]){var p=n.map(e[u]+o),h=p-r;if(h<0||h>=i.content.size){c=!0;continue}var f=n.map(e[u+1]+o,-1)-r,v=i.content.findIndex(h),m=v.index,g=v.offset,y=i.maybeChild(m);if(y&&g==h&&g+y.nodeSize==f){var b=a[u+2].mapInner(n,y,p+1,e[u]+o+1,s);b!=Ws?(a[u]=h,a[u+1]=f,a[u+2]=b):(a[u+1]=-2,c=!0)}else c=!0}if(c){var k=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 d=0;d<e.children.length;d+=3)a(e.children[d+2],e.children[d]+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),w=Zs(k,i,0,s);t=w.local;for(var S=0;S<a.length;S+=3)a[S+1]<0&&(a.splice(S,3),S-=3);for(var C=0,x=0;C<w.children.length;C+=3){for(var O=w.children[C];x<a.length&&a[x]<O;)x+=3;a.splice(x,0,w.children[C],w.children[C+1],w.children[C+2])}}return new Hs(t&&t.sort(Xs),a)}(this.children,o,e,t,n,i,r):o?new Hs(o.sort(Xs)):Ws},Hs.prototype.add=function(e,t){return t.length?this==Ws?Hs.create(e,t):this.addInner(e,t,0):this},Hs.prototype.addInner=function(e,t,n){var i,r=this,o=0;e.forEach((function(e,s){var a,l=s+n;if(a=qs(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,Zs(a,e,l+1,Ks)),o+=3}}));for(var s=Gs(o?Js(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Hs(s.length?this.local.concat(s).sort(Xs):this.local,i||this.children)},Hs.prototype.remove=function(e){return 0==e.length||this==Ws?this:this.removeInner(e,0)},Hs.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,d=void 0;l<e.length;l++)(d=e[l])&&d.from>s&&d.to<a&&(e[l]=null,(o||(o=[])).push(d));if(o){n==this.children&&(n=this.children.slice());var c=n[r+2].removeInner(o,s+1);c!=Ws?n[r+2]=c:(n.splice(r,3),r-=3)}}if(i.length)for(var u=0,p=void 0;u<e.length;u++)if(p=e[u])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 Hs(i,n):Ws},Hs.prototype.forChild=function(e,t){if(this==Ws)return this;if(t.isLeaf)return Hs.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 Ls){var d=Math.max(o,l.from)-o,c=Math.min(s,l.to)-o;d<c&&(i||(i=[])).push(l.copy(d,c))}}if(i){var u=new Hs(i.sort(Xs));return n?new Us([u,n]):u}return n||Ws},Hs.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Hs)||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},Hs.prototype.locals=function(e){return Ys(this.localsInner(e))},Hs.prototype.localsInner=function(e){if(this==Ws)return zs;if(e.inlineContent||!this.local.some(Ls.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Ls||t.push(this.local[n]);return t};var Ws=new Hs;Hs.empty=Ws,Hs.removeOverlap=Ys;var Us=function(e){this.members=e};function Gs(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(new Fs(r.from+t,r.to+t,r.type))}return n}function qs(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 Js(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Zs(e,t,n,i){var r=[],o=!1;t.forEach((function(t,s){var a=qs(e,t,s+n);if(a){o=!0;var l=Zs(a,t,n+s+1,i);l!=Ws&&r.push(s,s+t.nodeSize,l)}}));for(var s=Gs(o?Js(e):e,-n).sort(Xs),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 Hs(s,r):Ws}function Xs(e,t){return e.from-t.from||e.to-t.to}function Ys(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),Qs(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),Qs(t,r+1,o.copy(i.to,o.to)))}}return t}function Qs(e,t,n){for(;t<e.length&&Xs(n,e[t])>0;)t++;e.splice(t,0,n)}function ea(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Ws&&t.push(i)})),e.cursorWrapper&&t.push(Hs.create(e.state.doc,[e.cursorWrapper.deco])),Us.from(t)}Us.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,Ks)}));return Us.from(n)},Us.prototype.forChild=function(e,t){if(t.isLeaf)return Hs.empty;for(var n=[],i=0;i<this.members.length;i++){var r=this.members[i].forChild(e,t);r!=Ws&&(r instanceof Us?n=n.concat(r.members):n.push(r))}return Us.from(n)},Us.prototype.eq=function(e){if(!(e instanceof Us)||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},Us.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?Ys(n?t:t.sort(Xs)):zs},Us.from=function(e){switch(e.length){case 0:return Ws;case 1:return e[0];default:return new Us(e)}};var ta,na,ia=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(da),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=aa(this),this.markCursor=null,this.cursorWrapper=null,sa(this),this.nodeViews=la(this),this.docView=ao(this.state.doc,oa(this),ea(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 us(e,(function(t,n,i,r){return function(e,t,n,i,r){if(t<0){var o=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,s=xo(e,o);if(s&&!e.state.selection.eq(s)){var l=e.state.tr.setSelection(s);"pointer"==o?l.setMeta("pointer",!0):"key"==o&&l.scrollIntoView(),e.dispatch(l)}}else{var d=e.state.doc.resolve(t),c=d.sharedDepth(n);t=d.before(c+1),n=e.state.doc.resolve(n).after(c+1);var u=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,d=e.root.getSelection(),c=null,u=d.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:d.anchorOffset}],Pr(d)||c.push({node:d.focusNode,offset:d.focusOffset})),mr.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")||se.fromSchema(e.state.schema),g=v.resolve(a),y=null,b=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:c,ruleFromNode:Go,context:g});if(c&&null!=c[0].pos){var k=c[0].pos,w=c[1]&&c[1].pos;null==w&&(w=k),y={anchor:k+a,head:w+a}}return{doc:b,sel:y,from:a,to:l}}(e,t,n);if(mr.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,y=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 b=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;return"end"==r&&(i-=a+Math.max(0,o-Math.min(a,l))-o),a<o&&e.size<t.size?(l=(o-=i<=o&&i>=a?o-i:0)+(l-a),a=o):l<o&&(a=(o-=i<=o&&i>=l?o-i:0)+(a-l),l=o),{start:o,endA:a,endB:l}}(y.content,p.doc.content,p.from,v,m);if(!b){if(!(i&&u instanceof dt&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((mr.ios&&e.lastIOSEnter>Date.now()-225||mr.android)&&r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,Rr(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=qo(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}b={start:u.from,endA:u.to,endB:u.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&b.start==b.endB&&e.state.selection instanceof dt&&(b.start>e.state.selection.from&&b.start<=e.state.selection.from+2?b.start=e.state.selection.from:b.endA<e.state.selection.to&&b.endA>=e.state.selection.to-2&&(b.endB+=e.state.selection.to-b.endA,b.endA=e.state.selection.to)),mr.ie&&mr.ie_version<=11&&b.endB==b.start+1&&b.endA==b.start&&b.start>p.from&&"  "==p.doc.textBetween(b.start-p.from-1,b.start-p.from+1)&&(b.start--,b.endA--,b.endB--);var w,S=p.doc.resolveNoCache(b.start-p.from),C=p.doc.resolveNoCache(b.endB-p.from),x=S.sameParent(C)&&S.parent.inlineContent;if((mr.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=st.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==C.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Rr(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>b.start&&function(e,t,n,i,r){if(!i.parent.isTextblock||n-t<=r.pos-i.pos||Jo(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(Jo(o,!0,!0));return!(!s.parent.isTextblock||s.pos>n||Jo(s,!0,!1)<n)&&i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,b.start,b.endA,S,C)&&e.someProp("handleKeyDown",(function(t){return t(e,Rr(8,"Backspace"))})))mr.android&&mr.chrome&&e.domObserver.suppressSelectionUpdates();else{mr.chrome&&mr.android&&b.toB==b.from&&(e.lastAndroidDelete=Date.now()),mr.android&&!x&&S.start()!=C.start()&&0==C.parentOffset&&S.depth==C.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==b.endA&&(b.endB-=2,C=p.doc.resolveNoCache(b.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Rr(13,"Enter"))}))}),20));var O,I,$,D,M=b.start,T=b.endA;if(x)if(S.pos==C.pos)mr.ie&&mr.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Io(e)}),20)),O=e.state.tr.delete(M,T),I=g.resolve(b.start).marksAcross(g.resolve(b.endA));else if(b.endA==b.endB&&(D=g.resolve(b.start))&&($=function(e,t){for(var n,i,r,o=e.firstChild.marks,s=t.firstChild.marks,l=o,d=s,c=0;c<s.length;c++)l=s[c].removeFromSet(l);for(var u=0;u<o.length;u++)d=o[u].removeFromSet(d);if(1==l.length&&0==d.length)i=l[0],n="add",r=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=d.length)return null;i=d[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(a.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,C.parentOffset),D.parent.content.cut(D.parentOffset,b.endA-D.start()))))O=e.state.tr,"add"==$.type?O.addMark(M,T,$.mark):O.removeMark(M,T,$.mark);else if(S.parent.child(S.index()).isText&&S.index()==C.index()-(C.textOffset?0:1)){var P=S.parent.textBetween(S.parentOffset,C.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,M,T,P)})))return;O=e.state.tr.insertText(P,M,T)}if(O||(O=e.state.tr.replace(M,T,p.doc.slice(b.start-p.from,b.endB-p.from))),p.sel){var R=qo(e,O.doc,p.sel);R&&!(mr.chrome&&mr.android&&e.composing&&R.empty&&(b.start!=b.endB||e.lastAndroidDelete<Date.now()-100)&&(R.head==M||R.head==O.mapping.map(T)-1)||mr.ie&&R.empty&&R.head==M)&&O.setSelection(R)}I&&O.ensureMarks(I),e.dispatch(O.scrollIntoView())}}}(e,t,n,i,r)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=hs[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)||gs(e,t)||!e.editable&&t.type in fs||n(e,t)})};for(var n in hs)t(n);mr.safari&&e.dom.addEventListener("input",(function(){return null})),ms(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},ra={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function oa(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]))})),[Fs.node(0,e.state.doc.content.size,t)]}function sa(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Fs.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function aa(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function la(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 da(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(ra.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},ia.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ms(this),this._props=e,e.plugins&&(e.plugins.forEach(da),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},ia.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)},ia.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},ia.prototype.updateStateInner=function(e,t){var n=this,i=this.state,r=!1,o=!1;if(e.storedMarks&&this.composing&&(Ms(this),o=!0),this.state=e,t){var s=la(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),ms(this)}this.editable=aa(this),sa(this);var a=ea(this),l=oa(this),d=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",c=r||!this.docView.matchesNode(e.doc,l,a);!c&&e.selection.eq(i.selection)||(o=!0);var u,p,h,f,v,m,g,y,b,k,w="preserve"==d&&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 S=c&&(mr.ie||mr.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(c){var C=mr.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=ao(e.doc,l,a,this.dom,this)),C&&!this.trackWrites&&(S=!0)}S||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(u=this,p=u.docView.domFromPos(u.state.selection.anchor,0),h=u.root.getSelection(),Ir(p.node,p.offset,h.anchorNode,h.anchorOffset)))?Io(this,S):(Po(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var x=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ut?Ar(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),x):Ar(this,this.coordsAtPos(e.selection.head,1),x))}else w&&(y=(g=w).refDOM,b=g.refTop,Lr(g.stack,0==(k=y?y.getBoundingClientRect().top:0)?0:k-b))},ia.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},ia.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))}}},ia.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}},ia.prototype.hasFocus=function(){return this.root.activeElement==this.dom},ia.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(_r)return e.focus(_r);var t=Nr(e);e.focus(null==_r?{get preventScroll(){return _r={preventScroll:!0},!0}}:void 0),_r||(_r=!1,Lr(t,0))}(this.dom),Io(this),this.domObserver.start()},ra.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},ia.prototype.posAtCoords=function(e){return Kr(this,e)},ia.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Ur(this,e,t)},ia.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},ia.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},ia.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},ia.prototype.endOfTextblock=function(e,t){return function(e,t,n){return Xr==t&&Yr==n?Qr:(Xr=t,Yr=n,Qr="up"==n||"down"==n?function(e,t,n){var i=t.selection,r="up"==n?i.$from:i.$to;return Jr(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=Ur(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=Or(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var d=a[l];if(d.bottom>d.top+1&&("up"==n?o.top-d.top>2*(d.bottom-o.top):d.bottom-o.bottom>2*(o.bottom-d.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 Zr.test(i.parent.textContent)&&a.modify?Jr(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))}(this,t||this.state,e)},ia.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,[],ea(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},ra.isDestroyed.get=function(){return null==this.docView},ia.prototype.dispatchEvent=function(e){return function(e,t){gs(e,t)||!hs[t.type]||!e.editable&&t.type in fs||hs[t.type](e,t)}(this,e)},ia.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(ia.prototype,ra),"undefined"!=typeof WeakMap){var ca=new WeakMap;ta=function(e){return ca.get(e)},na=function(e,t){return ca.set(e,t),t}}else{var ua=[],pa=0;ta=function(e){for(var t=0;t<ua.length;t+=2)if(ua[t]==e)return ua[t+1]},na=function(e,t){return 10==pa&&(pa=0),ua[pa++]=e,ua[pa++]=t}}var ha=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},fa=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function va(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ma(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 ga(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 ya(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 ma(e,t)}}],toDOM:function(e){return["td",ga(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ma(e,t)}}],toDOM:function(e){return["th",ga(e,t),0]}}}}function ba(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}fa.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 ha(i,r,o,s)}}throw new RangeError("No cell with offset "+e+" found")},fa.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")},fa.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)]},fa.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,d=a.right,c=a.top,u=a.bottom;return new ha(Math.min(i,l),Math.min(o,c),Math.max(r,d),Math.max(s,u))},fa.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},fa.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}},fa.get=function(e){return ta(e)||na(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 d=a.child(l);s+d.attrs.rowspan>i&&(o+=d.attrs.colspan)}for(var c=0;c<r.childCount;c++){var u=r.child(c);o+=u.attrs.colspan,u.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 d=0,c=0;d<n;d++){var u=e.child(d);c++;for(var p=0;;p++){for(;r<i.length&&0!=i[r];)r++;if(p==u.childCount)break;for(var h=u.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,y=0;y<m;y++){if(y+d>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:c,n:m-y});break}for(var b=r+y*t,k=0;k<v;k++){0==i[b+k]?i[b+k]=c:(o||(o=[])).push({type:"collision",row:d,pos:c,n:v-k});var w=g&&g[k];if(w){var S=(b+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,c+=h.nodeSize}for(var x=(d+1)*t,O=0;r<x;)0==i[r++]&&O++;O&&(o||(o=[])).push({type:"missing",row:d,n:O}),c++}for(var I=new fa(t,n,i,o),$=!1,D=0;!$&&D<s.length;D+=2)null!=s[D]&&s[D+1]<n&&($=!0);return $&&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 d=t[(i+l)%e.width*2];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=va(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}}(I,s,e),I}(e))};var ka=new Mt("selectingCells");function wa(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 Sa(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 Ca(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:wa(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 xa(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function Oa(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Ia(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function $a(e){return fa.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Da(e){return fa.get(e.node(-1)).colCount(e.pos-e.start(-1))}function Ma(e,t,n){var i=e.start(-1),r=fa.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==r?null:e.node(0).resolve(i+r)}function Ta(e,t,n){var i={};for(var r in e)i[r]=e[r];return i[t]=n,i}function Pa(e,t,n){void 0===n&&(n=1);var i=Ta(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 Ra(e,t,n){void 0===n&&(n=1);var i=Ta(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 Ea(e,t,n){for(var i=ba(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 Va=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),r=fa.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 d=l.map((function(e){var t=i.nodeAt(e),n=e+o+1;return new lt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,d[0].$from,d[0].$to,d),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(xa(i)&&xa(r)&&Ia(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 dt.between(i,r)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=fa.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},o=[],s=i.top;s<i.bottom;s++){for(var l=[],d=s*t.width+i.left,c=i.left;c<i.right;c++,d++){var u=t.map[d];if(!r[u]){r[u]=!0;var p=t.findCell(u),h=e.nodeAt(u),v=i.left-p.left,m=p.right-i.right;if(v>0||m>0){var g=h.attrs;v>0&&(g=Pa(g,0,v)),m>0&&(g=Pa(g,g.colspan-m,m)),h=p.left<i.left?h.type.createAndFill(g):h.type.create(g,h.content)}if(p.top<i.top||p.bottom>i.bottom){var y=Ta(h.attrs,"rowspan",Math.min(p.bottom,i.bottom)-Math.max(p.top,i.top));h=p.top<i.top?h.type.createAndFill(y):h.type.create(y,h.content)}l.push(h)}}o.push(e.child(s).copy(a.from(l)))}var b=this.isColSelection()&&this.isRowSelection()?e:o;return new f(a.from(b),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=f.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,d=t.mapping.slice(i);t.replace(d.map(a.pos),d.map(l.pos),o?f.empty:n)}var c=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);c&&t.setSelection(c)},t.prototype.replaceWith=function(e,t){this.replace(e,new f(a.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=fa.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=fa.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=fa.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=fa.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 Ba(this.$anchorCell.pos,this.$headCell.pos)},t}(st);Va.prototype.visible=!1,st.jsonID("cell",Va);var Ba=function(e,t){this.anchor=e,this.head=t};function Aa(e){if(!(e.selection instanceof Va))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(Fs.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Hs.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,o=r.type.spec.tableRole,s=r.type.schema,l=[];if("row"==o)for(var d=0;d<t.childCount;d++){var c=t.child(d).content,u=d?0:Math.max(0,n-1),p=d<t.childCount-1?0:Math.max(0,i-1);(u||p)&&(c=La(ba(s).row,new f(c,u,p)).content),l.push(c)}else{if("cell"!=o&&"header_cell"!=o)return null;l.push(n||i?La(ba(s).row,new f(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var r=t[i],o=r.childCount-1;o>=0;o--)for(var s=r.child(o).attrs,l=s.rowspan,d=s.colspan,c=i;c<i+l;c++)n[c]=(n[c]||0)+d;for(var u=0,p=0;p<n.length;p++)u=Math.max(u,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(a.empty),n[h]<u){for(var f=ba(e).cell.createAndFill(),v=[],m=n[h];m<u;m++)v.push(f);t[h]=t[h].append(a.from(v))}return{height:t.length,width:u,rows:t}}(s,l)}function La(e,t){var n=e.createAndFill();return new Ie(n).replace(0,n.content.size,t).doc}function _a(e,t,n){var i=e.width,r=e.height,o=e.rows;if(i!=t){for(var s=[],l=[],d=0;d<o.length;d++){for(var c=o[d],u=[],p=s[d]||0,h=0;p<t;h++){var f=c.child(h%c.childCount);p+f.attrs.colspan>t&&(f=f.type.create(Pa(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),u.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)s[d+v]=(s[d+v]||0)+f.attrs.colspan}l.push(a.from(u))}o=l,i=t}if(r!=n){for(var m=[],g=0,y=0;g<n;g++,y++){for(var b=[],k=o[y%r],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create(Ta(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),b.push(S)}m.push(a.from(b))}o=m,r=n}return{width:i,height:r,rows:o}}function Fa(e,t,n,i,r,o,s,a){if(0==s||s==t.height)return!1;for(var l=!1,d=r;d<o;d++){var c=s*t.width+d,u=t.map[c];if(t.map[c-t.width]==u){l=!0;var p=n.nodeAt(u),h=t.findCell(u),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(u+i),null,Ta(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill(Ta(p.attrs,"rowspan",f+p.attrs.rowspan-s))),d+=p.attrs.colspan-1}}return l}function ja(e,t,n,i,r,o,s,a){if(0==s||s==t.width)return!1;for(var l=!1,d=r;d<o;d++){var c=d*t.width+s,u=t.map[c];if(t.map[c-1]==u){l=!0;var p=n.nodeAt(u),h=t.colCount(u),f=e.mapping.slice(a).map(u+i);e.setNodeMarkup(f,null,Pa(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill(Pa(p.attrs,0,s-h))),d+=p.attrs.rowspan-1}}return l}function za(e,t,n,i,r){var o=n?e.doc.nodeAt(n-1):e.doc,s=fa.get(o),l=i.top,d=i.left,c=d+r.width,u=l+r.height,p=e.tr,h=0;function v(){o=n?p.doc.nodeAt(n-1):p.doc,s=fa.get(o),h=p.mapping.maps.length}(function(e,t,n,i,r,o,s){var l,d,c=ba(e.doc.type.schema);if(r>t.width)for(var u=0,p=0;u<t.height;u++){var h=n.child(u);p+=h.nodeSize;var f,v=[];f=null==h.lastChild||h.lastChild.type==c.cell?l||(l=c.cell.createAndFill()):d||(d=c.header_cell.createAndFill());for(var m=t.width;m<r;m++)v.push(f);e.insert(e.mapping.slice(s).map(p-1+i),v)}if(o>t.height){for(var g=[],y=0,b=(t.height-1)*t.width;y<Math.max(t.width,r);y++){var k=!(y>=t.width)&&n.nodeAt(t.map[b+y]).type==c.header_cell;g.push(k?d||(d=c.header_cell.createAndFill()):l||(l=c.cell.createAndFill()))}for(var w=c.row.create(null,a.from(g)),S=[],C=t.height;C<o;C++)S.push(w);e.insert(e.mapping.slice(s).map(i+n.nodeSize-2),S)}return!(!l&&!d)})(p,s,o,n,c,u,h)&&v(),Fa(p,s,o,n,d,c,l,h)&&v(),Fa(p,s,o,n,d,c,u,h)&&v(),ja(p,s,o,n,l,u,d,h)&&v(),ja(p,s,o,n,l,u,c,h)&&v();for(var m=l;m<u;m++){var g=s.positionAt(m,d,o),y=s.positionAt(m,c,o);p.replace(p.mapping.slice(h).map(g+n),p.mapping.slice(h).map(y+n),new f(r.rows[m-l],0,0))}v(),p.setSelection(new Va(p.doc.resolve(n+s.positionAt(l,d,o)),p.doc.resolve(n+s.positionAt(u-1,c-1,o)))),t(p)}Ba.prototype.map=function(e){return new Ba(e.map(this.anchor),e.map(this.head))},Ba.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&&Ia(t,n)?new Va(t,n):st.near(n,1)};var Ka=vr({ArrowLeft:Wa("horiz",-1),ArrowRight:Wa("horiz",1),ArrowUp:Wa("vert",-1),ArrowDown:Wa("vert",1),"Shift-ArrowLeft":Ua("horiz",-1),"Shift-ArrowRight":Ua("horiz",1),"Shift-ArrowUp":Ua("vert",-1),"Shift-ArrowDown":Ua("vert",1),Backspace:Ga,"Mod-Backspace":Ga,Delete:Ga,"Mod-Delete":Ga});function Ha(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Wa(e,t){return function(n,i,r){var o=n.selection;if(o instanceof Va)return Ha(n,i,st.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=Xa(r,e,t);if(null==s)return!1;if("horiz"==e)return Ha(n,i,st.near(n.doc.resolve(o.head+t),t));var a,l=n.doc.resolve(s),d=Ma(l,e,t);return a=d?st.near(d,1):t<0?st.near(n.doc.resolve(l.before(-1)),-1):st.near(n.doc.resolve(l.after(-1)),1),Ha(n,i,a)}}function Ua(e,t){return function(n,i,r){var o=n.selection;if(!(o instanceof Va)){var s=Xa(r,e,t);if(null==s)return!1;o=new Va(n.doc.resolve(s))}var a=Ma(o.$headCell,e,t);return!!a&&Ha(n,i,new Va(o.$anchorCell,a))}}function Ga(e,t){var n=e.selection;if(!(n instanceof Va))return!1;if(t){var i=e.tr,r=ba(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 f(r,0,0))})),i.docChanged&&t(i)}return!0}function qa(e,t){var n=wa(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Va(n))),!0)}function Ja(e,t,n){if(!Sa(e.state))return!1;var i=Na(n),r=e.state.selection;if(r instanceof Va){i||(i={width:1,height:1,rows:[a.from(La(ba(e.state.schema).cell,n))]});var o=r.$anchorCell.node(-1),s=r.$anchorCell.start(-1),l=fa.get(o).rectBetween(r.$anchorCell.pos-s,r.$headCell.pos-s);return i=_a(i,l.right-l.left,l.bottom-l.top),za(e.state,e.dispatch,s,l,i),!0}if(i){var d=Ca(e.state),c=d.start(-1);return za(e.state,e.dispatch,c,fa.get(d.node(-1)).findCell(d.pos-c),i),!0}return!1}function Za(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=Ya(e,t.target);if(t.shiftKey&&e.state.selection instanceof Va)r(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=wa(e.state.selection.$anchor))&&Qa(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=Qa(e,n),r=null==ka.getState(e.state);if(!i||!Ia(t,i)){if(!r)return;i=t}var o=new Va(t,i);if(r||!e.state.selection.eq(o)){var s=e.state.tr.setSelection(o);r&&s.setMeta(ka,t.pos),e.dispatch(s)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=ka.getState(e.state)&&e.dispatch(e.state.tr.setMeta(ka,-1))}function s(n){var s,a=ka.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(Ya(e,n.target)!=i&&!(s=Qa(e,t)))return o();s&&r(s,n)}}function Xa(e,t,n){if(!(e.state.selection instanceof dt))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 Ya(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Qa(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?wa(e.state.doc.resolve(n.pos)):null}var el=new Mt("fix-tables");function tl(e,t,n,i){var r=e.childCount,o=t.childCount;e:for(var s=0,a=0;s<o;s++){for(var l=t.child(s),d=a,c=Math.min(r,s+3);d<c;d++)if(e.child(d)==l){a=d+1,n+=l.nodeSize;continue e}i(l,n),a<r&&e.child(a).sameMarkup(l)?tl(e.child(a),l,n+1,i):l.nodesBetween(0,l.content.size,i,n+1),n+=l.nodeSize}}function nl(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var r=fa.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 d=0;d<r.problems.length;d++){var c=r.problems[d];if("collision"==c.type){for(var u=t.nodeAt(c.pos),p=0;p<u.attrs.rowspan;p++)a[c.row+p]+=c.n;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Pa(u.attrs,u.attrs.colspan-c.n,c.n))}else if("missing"==c.type)a[c.row]+=c.n;else if("overlong_rowspan"==c.type){var h=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(h.attrs,"rowspan",h.attrs.rowspan-c.n))}else if("colwidth mismatch"==c.type){var f=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(f.attrs,"colwidth",c.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 y=t.child(m),b=g+y.nodeSize,k=a[m];if(k>0){var w="cell";y.firstChild&&(w=y.firstChild.type.spec.tableRole);for(var S=[],C=0;C<k;C++)S.push(ba(e.schema)[w].createAndFill());var x=0!=m&&o!=m-1||s!=m?b-1:g+1;i.insert(i.mapping.map(x),S)}g=b}return i.setMeta(el,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&tl(t.doc,e.doc,0,i):e.doc.descendants(i),n}function il(e){var t,n=e.selection,i=Ca(e),r=i.node(-1),o=i.start(-1),s=fa.get(r);return(t=n instanceof Va?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 rl(e,t,n){var i=t.map,r=t.tableStart,o=t.table,s=n>0?-1:0;Ea(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 d=i.map[l],c=o.nodeAt(d);e.setNodeMarkup(e.mapping.map(r+d),null,Ra(c.attrs,n-i.colCount(d))),a+=c.attrs.rowspan-1}else{var u=null==s?ba(o.type.schema).cell:o.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,o);e.insert(e.mapping.map(r+p),u.createAndFill())}}return e}function ol(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(rl(e.tr,n,n.left))}return!0}function sl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(rl(e.tr,n,n.right))}return!0}function al(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,d=i.map[l],c=r.nodeAt(d);if(n>0&&i.map[l-1]==d||n<i.width-1&&i.map[l+1]==d)e.setNodeMarkup(e.mapping.slice(s).map(o+d),null,Pa(c.attrs,n-i.colCount(d)));else{var u=e.mapping.slice(s).map(o+d);e.delete(u,u+c.nodeSize)}a+=c.attrs.rowspan}}function ll(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var r=n.right-1;al(i,n,r),r!=n.left;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function dl(e,t,n){for(var i=ba(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 cl(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=[],d=n>0?-1:0;dl(i,o,n+d)&&(d=0==n||n==i.height?null:0);for(var c=0,u=i.width*n;c<i.width;c++,u++)if(n>0&&n<i.height&&i.map[u]==i.map[u-i.width]){var p=i.map[u],h=o.nodeAt(p).attrs;e.setNodeMarkup(r+p,null,Ta(h,"rowspan",h.rowspan+1)),c+=h.colspan-1}else{var f=null==d?ba(o.type.schema).cell:o.nodeAt(i.map[u+d*i.width]).type;l.push(f.createAndFill())}return e.insert(s,ba(o.type.schema).row.create(null,l)),e}function ul(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.top))}return!0}function pl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.bottom))}return!0}function hl(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,d=e.mapping.maps.length;e.delete(s+o,l+o);for(var c=0,u=n*i.width;c<i.width;c++,u++){var p=i.map[u];if(n>0&&p==i.map[u-i.width]){var h=r.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(d).map(p+o),null,Ta(h,"rowspan",h.rowspan-1)),c+=h.colspan-1}else if(n<i.width&&p==i.map[u+i.width]){var f=r.nodeAt(p),v=f.type.create(Ta(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,c,r);e.insert(e.mapping.slice(d).map(o+m),v),c+=f.attrs.colspan-1}}}function fl(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var r=n.bottom-1;hl(i,n,r),r!=n.top;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function vl(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function ml(e,t){var n=e.selection;if(!(n instanceof Va)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=il(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),d=t.top;d<t.bottom;d++){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 c=t.left;c<t.right;c++){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 o,s,l=e.tr,d={},c=a.empty,u=i.top;u<i.bottom;u++)for(var p=i.left;p<i.right;p++){var h=r.map[u*r.width+p],f=i.table.nodeAt(h);if(!d[h])if(d[h]=!0,null==o)o=h,s=f;else{vl(f)||(c=c.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(o+i.tableStart,null,Ta(Ra(s.attrs,s.attrs.colspan,i.right-i.left-s.attrs.colspan),"rowspan",i.bottom-i.top)),c.size){var m=o+1+s.content.size,g=vl(s)?o+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,c)}l.setSelection(new Va(l.doc.resolve(o+i.tableStart))),t(l)}return!0}function gl(e,t){var n=ba(e.schema);return yl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function yl(e){return function(t,n){var i,r,o=t.selection;if(o instanceof Va){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=wa(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=Ta(s,"rowspan",1)),s.colspan>1&&(s=Ta(s,"colspan",1));for(var d,c=il(t),u=t.tr,p=0;p<c.right-c.left;p++)a.push(l?Ta(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=c.top;h<c.bottom;h++){var f=c.map.positionAt(h,c.left,c.table);h==c.top&&(f+=i.nodeSize);for(var v=c.left,m=0;v<c.right;v++,m++)v==c.left&&h==c.top||u.insert(d=u.mapping.map(f+c.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}u.setNodeMarkup(r,e({node:i,row:c.top,col:c.left}),a[0]),o instanceof Va&&u.setSelection(new Va(u.doc.resolve(o.$anchorCell.pos),d&&u.doc.resolve(d))),n(u)}return!0}}function bl(e,t){return function(n,i){if(!Sa(n))return!1;var r=Ca(n);if(r.nodeAfter.attrs[e]===t)return!1;if(i){var o=n.tr;n.selection instanceof Va?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&o.setNodeMarkup(i,null,Ta(n.attrs,e,t))})):o.setNodeMarkup(r.pos,null,Ta(r.nodeAfter.attrs,e,t)),i(o)}return!0}}function kl(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 wl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!Sa(t))return!1;if(n){for(var i=ba(t.schema),r=il(t),o=t.tr,s=r.map.cellsInRect("column"==e?new ha(r.left,0,r.right,r.map.height):"row"==e?new ha(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 d=0;d<s.length;d++)o.setNodeMarkup(r.tableStart+s[d],i.header_cell,a[d].attrs);n(o)}return!0}}(e):function(t,n){if(!Sa(t))return!1;if(n){var i=ba(t.schema),r=il(t),o=t.tr,s=kl("row",r,i),a=kl("column",r,i),l=("column"===e?s:"row"===e&&a)?1:0,d="column"==e?new ha(0,l,1,r.map.height):"row"==e?new ha(l,0,r.map.width,1):r,c="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;r.map.cellsInRect(d).forEach((function(e){var t=e+r.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,c,n.attrs)})),n(o)}return!0}}var Sl=wl("row",{useDeprecatedLogic:!0}),Cl=wl("column",{useDeprecatedLogic:!0}),xl=wl("cell",{useDeprecatedLogic:!0});function Ol(e){return function(t,n){if(!Sa(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 d=s.child(a);if(d.childCount)return l+1;l+=d.nodeSize}}}(Ca(t),e);if(null!=i){if(n){var r=t.doc.resolve(i);n(t.tr.setSelection(dt.between(r,Oa(r))).scrollIntoView())}return!0}}}function Il(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 $l=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")),Dl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Dl(e,t,n,i,r,o){for(var s=0,a=!0,l=t.firstChild,d=e.firstChild,c=0,u=0;c<d.childCount;c++)for(var p=d.child(c).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,u++){var m=r==u?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 y=l.nextSibling;l.parentNode.removeChild(l),l=y}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}$l.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Dl(e,this.colgroup,this.table,this.cellMinWidth),!0)},$l.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Ml=new Mt("tableColumnResizing");function Tl(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=$l);var r=e.lastColumnResizable;void 0===r&&(r=!0);var o=new It({key:Ml,state:{init:function(e,t){return this.spec.props.nodeViews[ba(t.schema).table.name]=function(e,t){return new i(e,n,t)},new Pl(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Ml.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,r){var o=Ml.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(),d=l.left,c=l.right;t.clientX-d<=n?a=Rl(e,t,"left"):c-t.clientX<=n&&(a=Rl(e,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){var u=e.state.doc.resolve(a),p=u.node(-1),h=fa.get(p),f=u.start(-1);if(h.colCount(u.pos-f)+u.nodeAfter.attrs.colspan-1==h.width-1)return}Vl(e,a)}}}(e,n,t,0,r)},mouseleave:function(e){!function(e){var t=Ml.getState(e.state);t.activeHandle>-1&&!t.dragging&&Vl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Ml.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 d=0;d<i;d++)r[d]&&(a-=r[d],l--);return a/l}(e,i.activeHandle,r.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Ml.getState(e.state);i.dragging&&(function(e,t,n){for(var i=e.state.doc.resolve(t),r=i.node(-1),o=fa.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,d=0;d<o.height;d++){var c=d*o.width+a;if(!d||o.map[c]!=o.map[c-o.width]){var u=o.map[c],p=r.nodeAt(u).attrs,h=1==p.colspan?0:a-o.colCount(u);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():Bl(p.colspan);f[h]=n,l.setNodeMarkup(s+u,null,Ta(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,El(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Ml,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Ml.getState(e.state),r=El(i.dragging,t,n);!function(e,t,n,i){for(var r=e.state.doc.resolve(t),o=r.node(-1),s=r.start(-1),a=fa.get(o).colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Dl(o,l.firstChild,l,i,a,n)}(e,i.activeHandle,r,n)}e.dispatch(e.state.tr.setMeta(Ml,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Ml.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),r=i.node(-1),o=fa.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<o.height;l++){var d=a+l*o.width-1;if(!(a!=o.width&&o.map[d]==o.map[d+1]||0!=l&&o.map[d-1]==o.map[d-1-o.width])){var c=o.map[d],u=s+c+r.nodeAt(c).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Fs.widget(u,p))}}return Hs.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}var Pl=function(e,t){this.activeHandle=e,this.dragging=t};function Rl(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var r=i.pos,o=wa(e.state.doc.resolve(r));if(!o)return-1;if("right"==n)return o.pos;var s=fa.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 El(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Vl(e,t){e.dispatch(e.state.tr.setMeta(Ml,{setHandle:t}))}function Bl(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Al(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new It({key:ka,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(ka);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:Aa,handleDOMEvents:{mousedown:Za},createSelectionBetween:function(e){if(null!=ka.getState(e.state))return e.state.selection},handleTripleClick:qa,handleKeyDown:Ka,handlePaste:Ja},appendTransaction:function(e,n,i){return function(e,t,n){var i,r,o=(t||e).selection,s=(t||e).doc;if(o instanceof ut&&(r=o.node.type.spec.tableRole)){if("cell"==r||"header_cell"==r)i=Va.create(s,o.from);else if("row"==r){var a=s.resolve(o.from+1);i=Va.rowSelection(a,a)}else if(!n){var l=fa.get(o.node),d=o.from+1,c=d+l.map[l.width*l.height-1];i=Va.create(s,d+1,c)}}else o instanceof dt&&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=dt.create(s,o.from):o instanceof dt&&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=dt.create(s,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,nl(i,n),t)}})}Pl.prototype.apply=function(e){var t=this,n=e.getMeta(Ml);if(n&&null!=n.setHandle)return new Pl(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Pl(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);xa(e.doc.resolve(i))||(i=null),t=new Pl(i,t.dragging)}return t};var Nl=["blockquote",0],Ll=["hr"],_l=["pre",["code",0]],Fl=["ol",0],jl=["ul",0],zl=["li",0],Kl=function(e){for(var t,n={},i=e.attributes,r=0;r<i.length;r++)n[(t=i[r]).name]=t.value;return n},Hl=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Wl=function(){return Hl(["style","class","id"])},Ul=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},Gl=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},ql=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},Jl=zt({link:{attrs:zt({},Wl(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:Kl}],toDOM:function(e){return["a",Gl(e.attrs),0]}}},ql("strong"),ql("b"),ql("em"),ql("i"),ql("u"),ql("del"),ql("sub"),ql("sup"),ql("code"),{style:{attrs:zt({},Wl()),parseDOM:[{tag:"span",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["span",Gl(e.attrs),0]:["span",0]}}}),Zl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Xl=zt({},Zl("style"),Zl("class"),Zl("id"),Zl("headers")),Yl={doc:{content:"colgroup*"},col:{attrs:Hl(["id","class","style","span"]),parseDOM:[{getAttrs:Kl,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:Hl(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:Kl,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},Ql=new re({nodes:Yl,marks:{}}),ed=ya({tableGroup:"block",cellContent:"block+",cellAttributes:Xl});ed.table_row.attrs=zt({},ed.table_row.attrs,Hl([Tt,"style","class","id"])),ed.table_row.toDOM=function(e){return["tr",Gl(e.attrs),0]},ed.table_row.parseDOM=[{tag:"tr",getAttrs:Kl}],ed.table.attrs=zt({},ed.table.attrs,Hl(["style","class","id",Pt])),ed.table.toDOM=function(e){var t=Ul(e.attrs)?Gl(e.attrs,Pt):{},n=null;if(e.attrs[Pt]&&!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=Lt(At(e.attrs[Pt]),Ql,{preserveWhitespace:!1}),r=Nt(i).firstChild;if(r){var o=Array.from(r.children).map((function(e){return["col",Kl(e)]}));n=["colgroup",Kl(r)].concat(o)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},ed.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=Kl(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t[Pt]=n.outerHTML),t}}];var td=zt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:zt({},Wl()),parseDOM:[{tag:"p",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["p",Gl(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:zt({},Wl()),parseDOM:[{tag:"div",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["div",Gl(e.attrs),0]:["div",0]}},blockquote:{attrs:zt({},Wl()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["blockquote",Gl(e.attrs),0]:Nl}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Ll}},heading:{attrs:zt({},Wl(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return zt({},Kl(e),{level:1})}},{tag:"h2",getAttrs:function(e){return zt({},Kl(e),{level:2})}},{tag:"h3",getAttrs:function(e){return zt({},Kl(e),{level:3})}},{tag:"h4",getAttrs:function(e){return zt({},Kl(e),{level:4})}},{tag:"h5",getAttrs:function(e){return zt({},Kl(e),{level:5})}},{tag:"h6",getAttrs:function(e){return zt({},Kl(e),{level:6})}}],toDOM:function(e){return Ul(e.attrs,"level")?["h"+e.attrs.level,Gl(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 _l}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:zt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Wl()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["img",Gl(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:zt({},Wl()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["br",Gl(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:zt({},Wl(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return zt({},Kl(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Ul(e.attrs,"order")?["ol",Gl(e.attrs,"order"),0]:Fl:["ol",zt({},Gl(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:zt({},Wl()),parseDOM:[{tag:"ul",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["ul",Gl(e.attrs),0]:jl}},list_item:{content:"(paragraph | heading) block*",attrs:zt({},Wl()),parseDOM:[{tag:"li",getAttrs:Kl}],toDOM:function(e){return Ul(e.attrs)?["li",Gl(e.attrs),0]:zl},defining:!0}},ed),nd=200,id=function(){};id.prototype.append=function(e){return e.length?(e=id.from(e),!this.length&&e||e.length<nd&&this.leafAppend(e)||this.length<nd&&e.leafPrepend(this)||this.appendInner(e)):this},id.prototype.prepend=function(e){return e.length?id.from(e).append(this):this},id.prototype.appendInner=function(e){return new od(this,e)},id.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?id.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},id.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},id.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)},id.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},id.from=function(e){return e instanceof id?e:e&&e.length?new rd(e):id.empty};var rd=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<=nd)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=nd)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}(id);id.empty=new rd([]);var od=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}(id);const sd=id;var ad=function(e,t){this.items=e,this.eventCount=t};ad.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,d=[],c=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(o,t+1),r=i.maps.length),r--,void c.push(e);if(i){c.push(new ld(e.map));var u,p=e.step.map(i.slice(r));p&&l.maybeStep(p).doc&&(u=l.mapping.maps[l.mapping.maps.length-1],d.push(new ld(u,null,null,d.length+c.length))),r--,u&&i.appendMap(u,r)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(r)):e.selection,a=new ad(n.items.slice(0,o).append(c.reverse().concat(d)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},ad.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 d,c=e.steps[l].invert(e.docs[l]),u=new ld(e.mapping.maps[l],c,t);(d=a&&a.merge(u))&&(u=d,l?r.pop():s=s.slice(0,s.length-1)),r.push(u),t&&(o++,t=null),i||(a=u)}var p,h,f,v=o-n.depth;return v>cd&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),o-=v),new ad(s.append(r),o)},ad.prototype.remapping=function(e,t){var n=new xe;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},ad.prototype.addMaps=function(e){return 0==this.eventCount?this:new ad(this.items.append(e.map((function(e){return new ld(e)}))),this.eventCount)},ad.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 d=e.steps[i].invert(e.docs[i]),c=t.selection&&t.selection.map(r.slice(a+1,i));c&&s++,n.push(new ld(l,d,c))}else n.push(new ld(l))}}),i);for(var l=[],d=t;d<o;d++)l.push(new ld(r.maps[d]));var c=this.items.slice(0,i).append(l).append(n),u=new ad(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u},ad.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},ad.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 d=o.selection&&o.selection.map(t.slice(n));d&&r++;var c,u=new ld(l.invert(),a,d),p=i.length-1;(c=i.length&&i[p].merge(u))?i[p]=c:i.push(u)}}else o.map&&n--}),this.items.length,0),new ad(sd.from(i.reverse()),r)},ad.empty=new ad(sd.empty,0);var ld=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};ld.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new ld(t.getMap().invert(),t,this.selection)}};var dd=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},cd=20;function ud(e){var t=[];return e.forEach((function(e,n,i,r){return t.push(i,r)})),t}function pd(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 hd(e,t,n,i){var r=md(t),o=yd.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),d=new dd(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(yd,{redo:i,historyState:d}).scrollIntoView())}}var fd=!1,vd=null;function md(e){var t=e.plugins;if(vd!=t){fd=!1,vd=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){fd=!0;break}}return fd}function gd(e){return e.setMeta(bd,!0)}var yd=new Mt("history"),bd=new Mt("closeHistory");function kd(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new It({key:yd,state:{init:function(){return new dd(ad.empty,ad.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var r,o=n.getMeta(yd);if(o)return o.historyState;n.getMeta(bd)&&(e=new dd(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(yd))return s.getMeta(yd).redo?new dd(e.done.addTransform(n,null,i,md(t)),e.undone,ud(n.mapping.maps[n.steps.length-1]),e.prevTime):new dd(e.done,e.undone.addTransform(n,null,i,md(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new dd(e.done.rebased(n,r),e.undone.rebased(n,r),pd(e.prevRanges,n.mapping),e.prevTime):new dd(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),pd(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?pd(e.prevRanges,n.mapping):ud(n.mapping.maps[n.steps.length-1]);return new dd(e.done.addTransform(n,a?t.selection.getBookmark():null,i,md(t)),ad.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?wd(e.state,e.dispatch):"historyRedo"==t.inputType&&Sd(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function wd(e,t){var n=yd.getState(e);return!(!n||0==n.done.eventCount||(t&&hd(n,e,t,!1),0))}function Sd(e,t){var n=yd.getState(e);return!(!n||0==n.undone.eventCount||(t&&hd(n,e,t,!0),0))}function Cd(e){var t=yd.getState(e);return t?t.done.eventCount:0}function xd(e){var t=yd.getState(e);return t?t.undone.eventCount:0}var Od=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 Id(e){var t=e.rules,n=new It({state:{init:function(){return null},apply:function(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,r,o){return $d(e,i,r,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&$d(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function $d(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,d=0;d<r.length;d++){var c=r[d].match.exec(l),u=c&&r[d].handler(s,c,t-(c[0].length-i.length),n);if(u)return e.dispatch(u.setMeta(o,{transform:u,from:t,to:n,text:i})),!0}return!1}function Dd(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 d=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,d))}else s.delete(o.from,o.to);t(s)}return!0}}return!1}var Md=new Od(/--$/,"—"),Td=new Od(/\.\.\.$/,"…"),Pd=new Od(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Rd=new Od(/"$/,"”"),Ed=new Od(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Vd=new Od(/'$/,"’"),Bd=[Pd,Rd,Ed,Vd];function Ad(e,t,n,i){return new Od(e,(function(e,r,o,s){var a=n instanceof Function?n(r):n,l=e.tr.delete(o,s),d=l.doc.resolve(o).blockRange(),c=d&&Ne(d,t,a);if(!c)return null;l.wrap(d,c);var u=l.doc.resolve(o-1).nodeBefore;return u&&u.type==t&&Fe(l.doc,o-1)&&(!i||i(r,u))&&l.join(o-1),l}))}function Nd(e,t,n){return new Od(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 Ld={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},_d={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},Fd={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},jd={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},zd={mark:"sub"},Kd={mark:"sup"},Hd={mark:"link"},Wd="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ud=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=wd,n["Shift-Mod-z"]=Sd,n.Backspace=$i(Dd,Qn,ei,ni),n.Enter=$i(ci,hi,fi,mi),Wd||(n["Mod-y"]=Sd),e.marks.strong&&(n["Mod-b"]=nn(yn,zt({},Ld,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=nn(yn,zt({},_d,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=nn(yn,zt({},Fd,{applyToWord:i}))),e.nodes.hard_break){var r=e.nodes.hard_break,o=$i(pi,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));n["Shift-Enter"]=o}return n},Gd=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return Wn(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},qd=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Jd=function(e){return/^MsoListParagraph/.test(e.className)},Zd=function(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Xd=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Yd=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Qd=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)):Jd(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Qd(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Qd(e.children,t)})))}}))},ec=function(e){var t,n=e.innerHTML,i=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=i(Zd(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Yd(i(Zd(e)))}:void 0},tc=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?Zd(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\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},nc=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e.replace(qd,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Qd(t.children,n),n.forEach((function(e){return function(e){var t,n,i,r,o,s,a,l,d,c,u,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(d=e[l]).getAttribute("datalist"),datalevel:d.getAttribute("datalevel")}).datalist,g=ec(d);if(c=g&&g.tag){if(u=h.datalevel||parseFloat(d.style.marginLeft||0),h.datalevel||d.style.marginLeft){var y=c+m;v[u]||(v[u]={}),(!n||n<0)&&(n=u,i=m,r=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Xd(c,g&&g.style),d.parentNode.insertBefore(s,d),f=u,v[u][y]=s),o=r===d,p=v[u][y],(u>f||!p)&&(p=Xd(c,g&&g.style),v[u][y]=p,t.appendChild(p)),t=tc(d),p.appendChild(t),o?n=f=-1:f=u}}else!t||o&&!Jd(d)||(d.style.marginLeft&&(d.style.marginLeft=""),d.style.marginLeft&&(d.style.margin=""),t.appendChild(d))}}(e)})),t.innerHTML},ic=function(e){return(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,"")},rc=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},oc=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},sc=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ac=function(e){/^Mso/.test(e.value)&&sc(e)},lc=/\s*;\s*/,dc=/\s*:\s*/,cc=function(e){var t,n,i=e.value.split(lc).filter((function(e){return Boolean(e)})),r=e.ownerElement.style,o="";i.forEach((function(e){var i;i=e.split(dc),t=i[0],n=i[1],void 0!==r[t]&&(o+=t+": "+n+"; ")})),(o=o.trim())?e.value=o:sc(e)},uc=function(e,t){var n=e;if(t.convertMsLists&&(n=nc(n)),t.stripTags&&(n=oc(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 pc(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 hc=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,fc=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,vc=new RegExp("(?:("+fc.source+"))([\\da-fA-F\\s]+)\\}","g"),mc=/[^\da-fA-F]/g,gc=/file:\/[^'"]+\.(jpg|png|gif)/i,yc=/\\(png|jpeg)blip\\/,bc="text/rtf",kc=function(e,t){var n=e.match(hc);if(!n||-1===t.types.indexOf(bc))return e;var i=t.getData(bc),r=[],o=i.match(vc);if(!i||!o)return e;for(var s=0,a=o;s<a.length;s++){var l=a[s],d=yc.exec(l);if(d){var c=l.replace(fc,"").replace(mc,"");r.push("data:image/"+d[1]+";base64,"+pc(c))}}return n.length!==r.length?e:e.replace(hc,(function(e){var t=r.shift()||"";return e.replace(gc,t)}))},wc=function(e,t,n,i,r){var o,s,a,l,d,c,u=[],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 u;var g=h?"g":"gi",y=v?new RegExp(m,g):Dc(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(r(u))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(u))return!1;var b=1+h+v;if(t.isText&&b+t.nodeSize>=n){if(d=t.text||"",c=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=b?{text:d,start:b}:{text:d.slice(n-b),start:n}),c&&c.isText)return;for(s=p.map((function(e){return e.text})).join(""),o=y.exec(s);null!==o&&(a=p[0].start+o.index,l=a+o[0].length,n<=a&&i>=l&&$c(o,f)&&u.push(dt.create(e,a,l)),!r(u));)o=y.exec(s)}else p.length=0})))})),u},Sc=function(e,t){var n=t.backward,i=t.matchCyclic,r=Kt(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=wc(s,r,0,a.from,o)).length&&i&&(l=wc(s,r,a.from,s.content.size,o)):!(l=wc(s,r,a.to,s.content.size,o)).length&&i&&(l=wc(s,r,0,a.to,o)),l.length?l[l.length-1]:null},Cc=function(e,t){return wc(e,t,0,e.content.size,(function(){return!1}))},xc=function(e,t,n){var i=e.from,r=e.to;return n.insertText(t,i,r).setSelection(dt.create(n.doc,i,i+t.length)),n},Oc=function(e,t,n){var i=Cc(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},Ic=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,$c=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 Ic.test(i)&&Ic.test(r)}return t(e)}return!0},Dc=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function Mc(e){var t={class:"k-placeholder","data-placeholder":e};return new It({key:new Mt("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 Hs.empty;var r=[];return n.descendants((function(e,n){r.push(Fs.node(n,n+e.nodeSize,t))})),Hs.create(n,r)}}})}var Tc=/\s+/g,Pc=/text-align/,Rc=function(){return new It({key:new Mt("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 Pc.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Tc.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(Fs.inline(t+r,t+r+1,{style:"white-space: normal"}));n=Tc.exec(e.text||"")}})),Hs.create(s,o)}}})},Ec=new Mt("highlight");function Vc(e){return void 0===e&&(e=Ec),new It({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 Fs.inline(e.from,e.to,e.attrs)}));return Hs.create(e.doc,t)}}})}var Bc=new Mt("image-resize"),Ac={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}},Nc=Object.keys(Ac),Lc=function(e,t,n){e.style[t]=n+"px"},_c=/[^\-]width:|[^\-]height:/,Fc=/^.+$/,jc=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(Bc);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),zc=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new It({key:Bc,view:function(t){return{resize:function(){Bc.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=Bc.getState(i),a=s.rect;if(r instanceof ut&&o===r.node.type){var l=t.nodeDOM(r.from),d={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(r)||a&&(a.width!==d.width||a.height!==d.height||a.top!==d.top||a.left!==d.left)){var c=i.tr;c.setMeta(Bc,{rect:d,nodePosition:r.from}),t.dispatch(c),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new jc("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var r=Bc.getState(e.state);t.preventDefault();var o=e.state.tr;function s(t){!function(e,t,n){var i=Bc.getState(e.state),r=i.rect,o=i.dragging,s=i.nodePosition,a=i.activeHandle;if(o&&r){var l=e.nodeDOM(s),d=Ac[a],c=(t.clientX-o.startX)*d.x,u=(t.clientY-o.startY)*d.y,p=d.x?c+l.width:r.width,h=d.y?u+l.height:r.height;if(n.lockRatio&&d.x&&d.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)*d.x,o.startY=t.clientY-(h-m)*d.y,p=v,h=m}else o.startX=d.x?t.clientX:o.startX,o.startY=d.y?t.clientY:o.startY;Lc(l,"width",p),Lc(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(Bc,{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=Bc.getState(e.state),n=t.rect,i=t.dragging,r=t.nodePosition;if(i&&n){var o=e.state.selection;if(o instanceof ut){var s=o.node.attrs,a=n.width,l=n.height,d=void 0;if(_c.test(s.style||"")){var c=Ht(s.style,{style:"width",value:Fc,newValue:a+"px"}),u=Ht(c.style||"",{style:"height",value:Fc,newValue:l+"px"}).style;d=zt({},s,{style:u})}else d=zt({},s,{width:a,height:l});var p=o.node.type.createAndFill(d);if(p){var h=e.state.tr;h.replaceWith(r,r+1,p),h.setSelection(ut.create(h.doc,r)),h.setMeta("commandName","image-resize"),h.setMeta("args",d),h.setMeta(Bc,{setDragging:null,activeHandle:null,rect:n,nodePosition:r}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0}(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],r=Bc.getState(t).rect;if(r&&n instanceof ut&&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<Nc.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Nc[s],a.setAttribute("data-direction",Nc[s]),o.appendChild(a)}return Hs.create(t.doc,[Fs.widget(t.selection.from+1,o)])}return Hs.empty}}})},Kc=new Mt("caret-color");function Hc(){return new It({key:Kc,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Hs.empty;var r=cn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!r)return Hs.empty;var o=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(o)&&s.push(Fs.node(t,t+e.nodeSize,{style:"caret-color: "+r}))})),Hs.create(t,s)}}})}function Wc(e){return void 0===e&&(e={}),new It({view:function(t){return new Uc(t,e)}})}var Uc=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}}))};Uc.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)}))},Uc.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())},Uc.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Uc.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,d=this.editorView.dom.offsetParent;if(this.element||(this.element=d.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),!d||d==document.body&&"static"==getComputedStyle(d).position)a=-pageXOffset,l=-pageYOffset;else{var c=d.getBoundingClientRect();a=c.left-d.scrollLeft,l=c.top-d.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"},Uc.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Uc.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=He(this.editorView.state.doc,o,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(o),this.scheduleRemoval(5e3)}}},Uc.prototype.dragend=function(){this.scheduleRemoval(20)},Uc.prototype.drop=function(){this.scheduleRemoval(20)},Uc.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var Gc=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 f.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 qc(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 d=n>0?o.firstChild:o.lastChild;if(!d){if(o.isAtom&&!o.isText&&!ut.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),i=!1;continue e}break}o=d,r+=n;var c=e.doc.resolve(r);if(t.valid(c))return c}return null}},t}(st);Gc.prototype.visible=!1,st.jsonID("gapcursor",Gc);var qc=function(e){this.pos=e};qc.prototype.map=function(e){return new qc(e.map(this.pos))},qc.prototype.resolve=function(e){var t=e.resolve(this.pos);return Gc.valid(t)?new Gc(t):st.near(t)};var Jc=function(){return new It({props:{decorations:Qc,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&Gc.valid(n))return new Gc(n)},handleClick:Yc,handleKeyDown:Zc}})},Zc=vr({ArrowLeft:Xc("horiz",-1),ArrowRight:Xc("horiz",1),ArrowUp:Xc("vert",-1),ArrowDown:Xc("vert",1)});function Xc(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 dt){if(!r.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=Gc.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new Gc(l))),!0)}}function Yc(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!Gc.valid(i))return!1;var r=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(r>-1&&ut.isSelectable(e.state.doc.nodeAt(r))||(e.dispatch(e.state.tr.setSelection(new Gc(i))),0))}function Qc(e){if(!(e.selection instanceof Gc))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Hs.create(e.doc,[Fs.widget(e.selection.head,t,{key:"gapcursor"})])}var eu=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 d=0;d<n+1;d++)i.push(s.createAndFill());a.push(o.createAndFill(void 0,i))}return r.createAndFill(void 0,a)},tu=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},nu=function(e,t){var n=t&&function(e){var n,i=tu(e.selection,"table_row"),r=tu(e.selection,"table");if(i&&r&&i.node.attrs[Tt]){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={})[Tt]=i.node.attrs[Tt],n))}return t(e)};return ul(e,n)},iu=function(e,t){return pl(e,t&&function(e){var n,i=tu(e.selection,"table_row");if(i&&i.node.attrs[Tt]){var r=i.pos+i.node.nodeSize;e.setNodeMarkup(r,void 0,((n={})[Tt]=i.node.attrs[Tt],n))}return t(e)})}},9399:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxVue2=t.Checkbox=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=i.inject,l=n(9680),d=n(6945),c=n(5725),u=n(721),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(){(0,l.validatePackage)(d.packageMetadata),this.calculatedId=(0,l.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=(0,l.getRef)(this,"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=(0,l.getRef)(this,"input")),this.setValidity()},setup:o?function(){return{v3:!!o,inputRef:s(null),kendoLocalizationService:a("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=r||e,i=this.$props,o=i.ariaDescribedBy,s=i.ariaLabelledBy,a=i.disabled,d=i.id,p=i.label,h=i.labelRender,f=i.labelPlacement,v=i.name,m=i.labelOptional,g=i.tabIndex,y=i.required,b=i.validityStyles,k=i.size,w=i.rounded,S=(0,l.getDefaultSlots)(this),C=p;this.localizationService=(0,c.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(u.checkboxValidation),this.optionalMessage=this.localizeMessage(u.checkboxOptionalText);var x=(0,l.classNames)({"k-disabled":a}),O=(0,l.classNames)(((t={"k-checkbox":!0})["k-checkbox-".concat(l.kendoThemeMaps.sizeMap[k])]=k,t["k-rounded-".concat(l.kendoThemeMaps.roundedMap[w])]=w,t["k-indeterminate"]=this.indeterminateProp,t["k-invalid k-invalid"]=!(this.isValid||void 0!==b||!0===b),t));if(h){var I=h?l.templateRendering.call(this,h,l.getListeners.call(this)):null;C=l.getTemplate.call(this,{h:n,template:I})}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}},[function(){return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:v,id:d||this.calculatedId,"aria-labelledby":s,"aria-describedby":o,disabled:a,tabindex:(0,l.getTabIndex)(g,a),role:"checkbox",required:void 0!==y&&y,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":a||void 0},class:O,name:v,id:d||this.calculatedId,ref:(0,l.setRef)(this,"input"),"aria-labelledby":s,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:a,tabindex:(0,l.getTabIndex)(g,a),role:"checkbox",required:void 0!==y&&y,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":a||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})}.call(this),function(){return void 0!==C?n("label",{class:"k-checkbox-label",for:d||this.calculatedId,attrs:this.v3?void 0:{for:d||this.calculatedId},style:{userSelect:"none"}},[C,m&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null}.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,u.messages[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,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===l.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)}}};t.CheckboxVue2=p;var h=p;t.Checkbox=h},8703:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1370:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5149:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastLabelsVue2=t.ColorContrastLabels=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(5725),a=n(721),l=n(7760),d={name:"KendoColorContrastLabels",props:{bgColor:Object,rgba:Object},inject:{kendoLocalizationService:{default:null}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,s.provideLocalizationService)(this),i=n.toLanguageString(a.colorGradientContrastRatio,a.messages[a.colorGradientContrastRatio]),o=n.toLanguageString(a.colorGradientAALevel,a.messages[a.colorGradientAALevel]),d=n.toLanguageString(a.colorGradientAAALevel,a.messages[a.colorGradientAAALevel]),c=n.toLanguageString(a.colorGradientPass,a.messages[a.colorGradientPass]),u=n.toLanguageString(a.colorGradientFail,a.messages[a.colorGradientFail]),p=(0,l.getContrastFromTwoRGBAs)(this.$props.rgba,this.$props.bgColor),h=4.5.toFixed(1),f=7..toFixed(1),v="".concat(i,": ").concat(p.toFixed(2)),m="".concat(o,": ").concat(h),g="".concat(d,": ").concat(f),y=p>=4.5,b=p>=7,k=t("span",{key:1,class:"k-contrast-validation k-text-success"},[c," ",t("span",{class:"k-icon k-i-check"})]),w=t("span",{key:2,class:"k-contrast-validation k-text-error"},[u," ",t("span",{class:"k-icon k-i-close"})]);return t("div",{class:"k-vbox k-colorgradient-color-contrast"},[t("div",{class:"k-contrast-ratio"},[t("span",{class:"k-contrast-ratio-text"},[v]),y?t("span",{class:"k-contrast-validation k-text-success"},[t("span",{class:"k-icon k-i-check"}),b&&t("span",{class:"k-icon k-i-check"})]):t("span",{class:"k-contrast-validation k-text-error"},[t("span",{class:"k-icon k-i-close"})])]),t("div",[t("span",[m]),y?k:w]),t("div",[t("span",[g]),b?k:w])])}};t.ColorContrastLabelsVue2=d;var c=d;t.ColorContrastLabels=c},376:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastSvgVue2=t.ColorContrastSvg=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(7741),a=n(7760),l={name:"KendoColorContrastSvg",props:{metrics:Object,backgroundColor:String,hsva:Object},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=this,n=r||e,i=function(e,t){if(0===e.length)return"";var i=e.reduce((function(e,n,i,r){return 0===i?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,i,r))}),"");return n("path",{d:i,attrs:this.v3?void 0:{d:i,fill:"none",stroke:"white","stroke-width":"1"},fill:"none",stroke:"white","stroke-width":"1"})},o=this.$props.metrics,l=function e(n,i,r,s,l){var d=(r+s)/2,c=Object.assign({},t.$props.hsva,{s:i/o.width,v:1-d/o.height}),u=(0,a.getContrastFromTwoRGBAs)((0,a.getRGBA)((0,a.getColorFromHSV)(c)),(0,a.getRGBA)(t.$props.backgroundColor||""));return r+.5>s?u<n+1&&u>n-1?d:null:l(u,n)?e(n,i,r,s-(s-r)/2,l):e(n,i,r+(s-r)/2,s,l)},d=function(e,t,n){void 0===n&&(n=!1);for(var i=[],r=0;r<=o.width;r+=o.width/t){var s=l(e,r,0,o.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([r,s])}return i},c=(0,s.bezierCommand)((0,s.controlPoint)(s.line));return n("svg",{xmlns:"http://www.w3.org/2000/svg",attrs:this.v3?void 0:{xmlns:"http://www.w3.org/2000/svg"},class:"k-color-contrast-svg",style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}},[i.call(this,d(4.5,16),c),i.call(this,d(4.5,16,!0),c),i.call(this,d(7,16),c),i.call(this,d(7,16,!0),c)])}};t.ColorContrastSvgVue2=l;var d=l;t.ColorContrastSvg=d},7063:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorGradientVue2=t.ColorGradient=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(9680),l=n(6945),d=n(5042),c=n(4555),u=n(7760),p=n(6566),h=n(4915),f=n(5149),v=n(376),m=n(5725),g=n(721),y="rgba(255, 255, 255, 1)",b={name:"KendoColorGradient",model:{event:"changemodel"},emits:{change:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,keydown:null},inject:{kendoLocalizationService:{default:null}},props:{modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,opacity:{type:Boolean,default:!0},backgroundColor:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,innerTabIndex:{type:Number,default:void 0}},created:function(){(0,a.validatePackage)(l.packageMetadata),this.guid=(0,s.guid)()},computed:{valueSet:function(){return this.value||this.modelValue||this.modelRgbaValue},computedValue:function(){var e=this.valueSet||this.currentValue||this.defaultValue||(0,u.parseColor)(y,"rgba");return(0,c.isPresent)((0,u.parseColor)(e,"hex",this.opacity))||(e=y),e},hsva:function(){return this.valueSet?(0,u.getHSV)(this.computedValue):this.currentHsva||(0,u.getHSV)(this.computedValue)},rgba:function(){return this.valueSet?(0,u.getRGBA)(this.computedValue):this.currentRgba},hex:function(){return this.valueSet?(0,u.parseColor)(this.computedValue,"hex",this.opacity):this.currentHex},computedBgColor:function(){return this.currentBgColor||(0,u.getColorFromHue)(this.hsva.h)},computedTabIndex:function(){return void 0!==this.innerTabIndex?this.innerTabIndex:this.focused?0:-1}},data:function(){return{currentValue:void 0,currentBgColor:void 0,isFirstRender:!0,currentHsva:void 0,currentRgba:void 0,currentHex:void 0,focused:!1}},mounted:function(){this.setAlphaSliderBackground(this.computedBgColor),this.$el&&(this.draggable=this.$refs.draggable,this.gradientWrapper=this.draggable&&this.draggable.element),this.alphaSlider=this.v3?this.alphaSliderRef:this.$refs.alphaSlider,this.isFirstRender&&(this.isFirstRender=!1)},destroyed:function(){(0,p.removeCachedColor)(this.guid)},updated:function(){this.setAlphaSliderBackground(this.computedBgColor)},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=this,n=this,i=r||e,o=(0,s.classNames)("k-colorgradient",{"k-disabled":this.$props.disabled}),a=(0,m.provideLocalizationService)(this).toLanguageString(g.colorGradientDragHandle,g.messages[g.colorGradientDragHandle]),l=function(){var e={};if(!this.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.hsva.v)*t.height,r=this.hsva.s*t.width;e.top="".concat(n,"px"),e.left="".concat(r,"px")}return i("div",{class:"k-hsv-draghandle k-draghandle",role:"slider",attrs:this.v3?void 0:{role:"slider","aria-label":a+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex},"aria-label":a+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex,onKeydown:this.dragKeyDown,on:this.v3?void 0:{keydown:this.dragKeyDown},style:e,ref:(0,s.setRef)(this,"draghandle")})};return i("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,s.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},class:o,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,s.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onKeydown:this.onKeyDownHandler},[i("div",{class:"k-colorgradient-canvas k-hstack"},[i("div",{class:"k-hsv-rectangle",style:{background:this.computedBgColor}},[i(s.Draggable,{onDrag:this.onDrag,on:this.v3?void 0:{drag:this.onDrag,release:this.onRelease},onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[l.call(t)])]}:[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[l.call(t)])]),this.backgroundColor&&!this.isFirstRender&&i(v.ColorContrastSvg,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,attrs:this.v3?void 0:{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.hsva,backgroundColor:this.backgroundColor},hsva:this.hsva,backgroundColor:this.backgroundColor})]),i("div",{class:"k-hsv-controls k-hstack"},[i(d.Slider,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,disabled:this.$props.disabled},value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,on:this.v3?void 0:{change:this.onHueSliderChange},class:"k-hue-slider k-colorgradient-slider",disabled:this.$props.disabled}),this.$props.opacity&&i(d.Slider,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:(0,c.isPresent)(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,disabled:this.$props.disabled},value:(0,c.isPresent)(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,on:this.v3?void 0:{change:this.onAlphaSliderChange},class:"k-alpha-slider k-colorgradient-slider",disabled:this.$props.disabled,ref:this.v3?function(e){n.alphaSliderRef=e}:"alphaSlider"})])]),i(h.ColorInput,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,rgba:this.rgba,hex:this.hex,opacity:this.$props.opacity,disabled:this.$props.disabled},rgba:this.rgba,onRgbachange:this.onRgbaChange,on:this.v3?void 0:{rgbachange:this.onRgbaChange,hexchange:this.onHexChange},hex:this.hex,onHexchange:this.onHexChange,opacity:this.$props.opacity,disabled:this.$props.disabled,ref:"colorInput"}),this.backgroundColor&&i(f.ColorContrastLabels,{bgColor:(0,u.getRGBA)(this.backgroundColor),attrs:this.v3?void 0:{bgColor:(0,u.getRGBA)(this.backgroundColor),rgba:this.rgba},rgba:this.rgba})])},methods:{onKeyDownHandler:function(e){var t=this.$el;void 0===this.innerTabIndex&&(this.focused=(0,s.focusContainer)(e,t)),this.$emit("keydown",e)},onHexChange:function(e,t,n){var i=(0,u.getRGBA)(t),r=(0,u.getHSV)(t);this.currentHsva=r,this.currentBgColor=(0,u.getColorFromHue)(r.h),this.currentRgba=i,this.currentHex=e,this.dispatchChangeEvent(t,n.event,e,t)},onRgbaChange:function(e,t){var n=(0,u.getColorFromRGBA)(e),i=(0,u.parseColor)(n,"hex",this.opacity),r=(0,u.getHSV)(n);this.currentHsva=r,this.currentBgColor=(0,u.getColorFromHue)(r.h),this.currentRgba=e,this.currentHex=i,this.dispatchChangeEvent(n,t.event,i,n)},onAlphaSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{a:e.value/100}),e.event)},onHueSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{h:e.value}),e.event)},onDrag:function(e){this.gradientWrapper.classList.add("k-dragging"),this.changePosition(e)},onRelease:function(){this.gradientWrapper.classList.remove("k-dragging")},onGradientWrapperClick:function(e){this.firstFocusable=(0,s.getRef)(this,"draghandle"),this.firstFocusable.focus(),this.changePosition(e)},move:function(e,t,n){var i=this.hsva;i[t]+=n*(e.shiftKey?.01:.05),i[t]<0&&(i[t]=0),i[t]>1&&(i[t]=1),e.preventDefault(),this.handleHsvaChange(i,e)},dragKeyDown:function(e){switch(e.keyCode){case s.Keys.left:this.move(e,"s",-1);break;case s.Keys.right:this.move(e,"s",1);break;case s.Keys.up:this.move(e,"v",1);break;case s.Keys.down:this.move(e,"v",-1);case s.Keys.enter:case s.Keys.esc:}},changePosition:function(e){var t=this.getGradientRectMetrics(),n=e.clientX-t.left,i=e.clientY-t.top,r=(0,c.fitIntoBounds)(n,0,t.width),o=(0,c.fitIntoBounds)(i,0,t.height),s=Object.assign({},this.hsva,{s:r/t.width,v:1-o/t.height});this.handleHsvaChange(s,e,e.event)},handleHsvaChange:function(e,t){var n=(0,u.getColorFromHSV)(e),i=(0,u.parseColor)(n,"hex",this.opacity),r=(0,u.parseColor)(n,"rgba");this.currentHsva=e,this.currentBgColor=(0,u.getColorFromHue)(e.h),this.currentRgba=(0,u.getRGBA)(n),this.currentHex=i,this.dispatchChangeEvent(n,t,i,r)},dispatchChangeEvent:function(e,t,n,i){this.currentValue=e,this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",i),this.$emit("update:modelValue",n),this.$emit("change",{event:t,target:this,value:n,rgbaValue:i})},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},setAlphaSliderBackground:function(e){this.$props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, ".concat(e,")"))},getGradientRectMetrics:function(){var e=this.gradientWrapper.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}},focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,s.focusFirstFocusableChild)(e.$el)}),1)}}};t.ColorGradientVue2=b;var k=b;t.ColorGradient=k},4915:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorInputVue2=t.ColorInput=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(5042),l=n(8935),d=n(2857),c=n(4305),u=n(5725),p=n(721),h=n(9680),f=["rgba","rgb","hex"],v={name:"KendoColorInput",emits:{hexchange:null,rgbachange:null},props:{tabIndex:Number,rgba:{type:Object,default:function(){return{}}},hex:String,opacity:Boolean,disabled:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){this.hexInputId=(0,h.guid)()},data:function(){return{inputMode:f[1]}},mounted:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},updated:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=(0,u.provideLocalizationService)(this),i=n.toLanguageString(p.colorGradientHex,p.messages[p.colorGradientHex]),r=n.toLanguageString(p.colorGradientInputColorButton,p.messages[p.colorGradientInputColorButton]),s=n.toLanguageString(p.colorGradientR,p.messages[p.colorGradientR]),h=n.toLanguageString(p.colorGradientG,p.messages[p.colorGradientG]),f=n.toLanguageString(p.colorGradientB,p.messages[p.colorGradientB]),v=n.toLanguageString(p.colorGradientA,p.messages[p.colorGradientA]),m=n.toLanguageString(p.colorGradientRLabel,p.messages[p.colorGradientRLabel]),g=n.toLanguageString(p.colorGradientGLabel,p.messages[p.colorGradientGLabel]),y=n.toLanguageString(p.colorGradientBLabel,p.messages[p.colorGradientBLabel]),b=n.toLanguageString(p.colorGradientALabel,p.messages[p.colorGradientALabel]);return t("div",{class:"k-colorgradient-inputs k-hstack"},[t("div",{class:"k-vstack"},[t(d.Button,{ariaLabel:r,attrs:this.v3?void 0:{ariaLabel:r,tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi"},tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi",class:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange,on:this.v3?void 0:{click:this.onToggleModeChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})]),"hex"===this.inputMode&&t("div",{class:"k-vstack k-flex-1"},[t("span",{class:"k-hex-value"},[t(l.HexInput,{id:this.hexInputId,attrs:this.v3?void 0:{id:this.hexInputId,tabIndex:this.tabIndex,hex:this.$props.hex,disabled:this.$props.disabled},tabIndex:this.tabIndex,hex:this.$props.hex,onHexchange:this.onHexChange,on:this.v3?void 0:{hexchange:this.onHexChange},disabled:this.$props.disabled,ref:"hexinput"})]),t(c.Label,{class:"k-colorgradient-input-label",for:this.hexInputId,attrs:this.v3?void 0:{for:this.hexInputId}},this.v3?function(){return[i]}:[i])]),("rgb"===this.inputMode||"rgba"===this.inputMode)&&[t("div",{class:"k-vstack"},[t(a.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:m,disabled:this.$props.disabled},value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:m,onChange:this.onRgbaRChange,on:this.v3?void 0:{change:this.onRgbaRChange},disabled:this.$props.disabled}),t(c.Label,{class:"k-colorgradient-input-label"},this.v3?function(){return[s]}:[s])]),t("div",{class:"k-vstack"},[t(a.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:g,disabled:this.$props.disabled},value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:g,onChange:this.onRgbaGChange,on:this.v3?void 0:{change:this.onRgbaGChange},disabled:this.$props.disabled}),t(c.Label,{class:"k-colorgradient-input-label"},this.v3?function(){return[h]}:[h])]),t("div",{class:"k-vstack"},[t(a.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:y,disabled:this.$props.disabled},value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:y,onChange:this.onRgbaBChange,on:this.v3?void 0:{change:this.onRgbaBChange},disabled:this.$props.disabled,ref:"numericb"}),t(c.Label,{class:"k-colorgradient-input-label"},this.v3?function(){return[f]}:[f])])],"rgba"===this.inputMode&&t("div",{class:"k-vstack"},[this.$props.opacity&&t(a.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:b,disabled:this.$props.disabled},value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:b,onChange:this.onRgbaAChange,on:this.v3?void 0:{change:this.onRgbaAChange},disabled:this.$props.disabled,ref:"numerica"}),this.$props.opacity&&t(c.Label,{class:"k-colorgradient-input-label"},this.v3?function(){return[v]}:[v])])])},methods:{onHexChange:function(e){this.$emit("hexchange",e.hex,e.value,e)},onRgbaRChange:function(e){this.dispatchRgbaChange({r:e.value},e)},onRgbaGChange:function(e){this.dispatchRgbaChange({g:e.value},e)},onRgbaBChange:function(e){this.dispatchRgbaChange({b:e.value},e)},onRgbaAChange:function(e){this.dispatchRgbaChange({a:e.value},e)},dispatchRgbaChange:function(e,t){var n=i({},this.$props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.$emit("rgbachange",n,t)},onToggleModeChange:function(){var e=f.length-1===f.indexOf(this.inputMode)?0:f.indexOf(this.inputMode)+1;if(this.$props.opacity)this.inputMode=f[e];else{var t="rgba"===f[e]?e+1:e;this.inputMode=f[t]}},onKeyDown:function(e){e.keyCode===h.Keys.enter&&e.stopPropagation()}}};t.ColorInputVue2=v;var m=v;t.ColorInput=m},2825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPaletteVue2=t.ColorPalette=t.DEFAULT_PRESET=t.DEFAULT_COLUMNS_COUNT=t.DEFAULT_TILE_SIZE=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(1129),a=n(9680),l=n(6945),d=n(2869),c=n(4555),u=n(7760);t.DEFAULT_TILE_SIZE=24,t.DEFAULT_COLUMNS_COUNT=10,t.DEFAULT_PRESET="office";var p={name:"KendoColorPalette",model:{event:"changemodel"},emits:{keydown:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,change:null},props:{palette:{type:[String,Array],default:t.DEFAULT_PRESET},columns:Number,tileSize:{type:[Number,Object],default:t.DEFAULT_TILE_SIZE},modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){(0,a.validatePackage)(l.packageMetadata),this.guid=(0,a.guid)()},mounted:function(){this.wrapper=(0,a.getRef)(this,"wrapper")},updated:function(){this.wrapper=(0,a.getRef)(this,"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.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:this.$props.value,currentValue:void 0}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=this.getPaletteInfo(),i=this.paletteService=new s.ColorPaletteService;i.setColorMatrix(n.colors,n.columns);var o=i.getCellCoordsFor(this.selectedColor),l=i.getCellCoordsFor(this.focusedColor),d=(0,a.classNames)("k-colorpalette",{"k-disabled":this.$props.disabled}),c=function(e,n,i,r){var o=void 0!==i&&i.row===n,s=i&&i.col,l=void 0!==r&&r.row===n,d=r&&r.col,c="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},u=c.width+"px",p=c.height+"px";return e.map((function(e,i){var r=this,c=o&&s===i,h=(0,a.classNames)("k-colorpalette-tile",{"k-selected":c,"k-focus":l&&d===i});return t("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!c||!!this.$props.disabled&&void 0,id:this.createCellId({row:n,col:i}),role:"gridcell"},"aria-selected":!!c||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:u,height:p,minWidth:u},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:n,col:i}),key:i,role:"gridcell"})}),this)};return n.colors.length?t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":l&&this.createCellId(l),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:d,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":l&&this.createCellId(l),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:(0,a.setRef)(this,"wrapper")},[t("div",{class:"k-colorpalette-table-wrap"},[t("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[t("tbody",[function(e,n,i){return e.map((function(e,r){return t("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:r},[c.call(this,e,r,n,i)])}),this)}.call(this,i.colorRows,o,l)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(e,0,1);break;case a.Keys.up:this.handleCellNavigation(e,0,-1);break;case a.Keys.right:this.handleCellNavigation(e,1,0);break;case a.Keys.left:this.handleCellNavigation(e,-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}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,n){if(e.preventDefault(),this.focusedColorCooridanates){var i=this.paletteService.getNextCell(this.focusedColorCooridanates,t,n);this.focusedColor=this.paletteService.getColorAt(i)}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){var n=(0,u.parseColor)(e,"rgba");this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("update:modelRgbaValue",n),this.$emit("change",{event:t,component:this,value:e,rgbaValue:n})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=d.PALETTEPRESETS[this.$props.palette];return(0,c.isPresent)(e)?{colors:e.colors,columns:this.$props.columns||e.columns||t.DEFAULT_COLUMNS_COUNT}:{colors:[],columns:0}}return{colors:this.$props.palette||[],columns:this.$props.columns||t.DEFAULT_COLUMNS_COUNT}},createCellId:function(e){return"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)}}};t.ColorPaletteVue2=p;var h=p;t.ColorPalette=h},7993:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerVue2=t.ColorPicker=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(2857),l=n(9680),d=n(6945),c=n(4004),u=n(2090),p=n(6566),h={name:"KendoColorPicker",model:{event:"changemodel"},emits:{open:null,close:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,activecolorclick:null,focus:null,blur:null,change:null,viewchange:null},props:{modelValue:String,modelRgbaValue:String,value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},paletteSettings:{type:Object,default:function(){return p.DEFAULT_PALETTE_SETTINGS}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:{type:Object,default:function(){return{}}},gradientSettings:{type:Object,default:function(){return p.DEFAULT_GRADIENT_SETTINGS}},flatColorPickerSettings:{type:Object,default:function(){return{}}},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)}},view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0}},data:function(){return{focused:!1,currentValue:this.$props.defaultValue,currentOpen:!1}},computed:{isValueControlled:function(){return void 0!==this.$props.value},isOpenControlled:function(){return void 0!==this.$props.open},computedValue:function(){return this.isValueControlled?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:void 0!==this.$props.modelRgbaValue?this.$props.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.defaultValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.currentOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-".concat(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-icon-picker":!0})["k-picker-".concat(l.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-".concat(i)]=i,e["k-rounded-".concat(l.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){(0,l.validatePackage)(d.packageMetadata),this._popupId="popup"+(0,l.guid)(),this.focusableElementGuid=(0,l.guid)()},mounted:function(){this.button=(0,l.getRef)(this,"button")},updated:function(){},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=this,r=this,s=o||e,d=this.$props,p=d.disabled,h=d.tabIndex,f=d.dir,v=d.view,m=d.selectedView,g=d.showClearButton,y=d.showPreview,b=d.showButtons,k=d.popupSettings,w=function(){return s(u.FlatColorPicker,i({onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,change:this.onFlatChangeHandler,focusout:this.onBlurHandler,viewchange:this.onViewChange},ref:(0,l.setRef)(this,"flatcolorpicker"),view:v,selectedView:m,showClearButton:g,showPreview:y,showButtons:b,value:this.computedValue||void 0,attrs:this.v3?void 0:i({view:v,selectedView:m,showClearButton:g,showPreview:y,showButtons:b,value:this.computedValue||void 0,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings),onChange:this.onFlatChangeHandler,onFocusout:this.onBlurHandler,onViewchange:this.onViewChange,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings))};return s("span",{class:this.wrapperClassName,dir:f,attrs:this.v3?void 0:{dir:f,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,l.getTabIndex)(h,p),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabindex:(0,l.getTabIndex)(h,p),title:this.$props.title,onKeydown:this.onButtonKeyDown,on:this.v3?void 0:{keydown:this.onButtonKeyDown,focusin:this.onFocusHandler,focusout:this.onButtonBlur},onFocusin:this.onFocusHandler,onFocusout:this.onButtonBlur},[s("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[s("span",{class:(0,l.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:(0,l.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-".concat(this.icon)]=this.icon&&!this.iconClassName,t))}),s("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),s(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabindex:-1,rounded:null,icon:"arrow-s"},tabindex:-1,ref:this.v3?function(e){r.buttonRef=e}:"button",onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler},rounded:null,class:"k-input-button",icon:"arrow-s"}),s(c.Picker,{dir:f,attrs:this.v3?void 0:{dir:f,id:this._popupId,open:this.computedOpen,popupAnchor:this.focusableElementGuid,popupSettings:i({},k)},id:this._popupId,open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid,popupSettings:i({},k)},this.v3?function(){return[w.call(n)]}:[w.call(n)])])},methods:{focusElement:function(){this.$el&&this.$el.focus()},setOpen:function(e,t){e||t||!this.$el||this.$el.focus(),this.currentOpen=e,this.$emit(e?"open":"close")},onButtonKeyDown:function(e){var t=e.altKey,n=e.keyCode;return n===l.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===l.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen)):void(t&&n===l.Keys.down&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0)))},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;return n===l.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===l.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.focusElement()):void(t&&n===l.Keys.up&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1),this.focusElement()))},onOpenHandler:function(){var e=(0,l.getRef)(this,"flatcolorpicker");e&&e.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},isViewFocused:function(){return!(!document.activeElement||!document.activeElement.closest("#".concat(this._popupId)))},onButtonBlur:function(e){this.focused=this.isViewFocused(),this.$emit("blur",{event:e})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0,e.target===this.$el&&this.setOpen(!1)):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.isViewFocused();e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(){clearTimeout(this.blurTimeoutRef),this.palette=(0,l.getRef)(this,"palette"),this.gradient=(0,l.getRef)(this,"gradient"),this.blurTimeoutRef=setTimeout(this.onBlurTimeout,200)},onViewChange:function(e){this.$emit("viewchange",e)},onChangeHandler:function(e,t){var n=e.value;this.isValueControlled||(this.currentValue=n),t&&this.setOpen(!1),this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",e.rgbaValue),this.$emit("update:modelValue",n),this.$emit("change",{value:n,rgbaValue:e.rgbaValue,event:e})},onFlatChangeHandler:function(e){this.onChangeHandler(e,!0)}}};t.ColorPickerVue2=h;var f=h;t.ColorPicker=f},2090:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FlatColorPickerVue2=t.FlatColorPicker=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(2857),d=n(2825),c=n(7063),u=n(6945),p=n(721),h=n(7760),f=n(6566),v=n(5725),m={name:"KendoFlatColorPicker",emits:{viewchange:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,focus:null,blur:null,focusout:null,keydown:null,change:null},props:{modelValue:String,modelRgbaValue:String,value:String,prevValue:String,tabIndex:Number,disabled:Boolean,view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},gradientSettings:{type:Object,default:function(){return f.DEFAULT_GRADIENT_SETTINGS}},paletteSettings:{type:Object,default:function(){return f.DEFAULT_PALETTE_SETTINGS}}},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(u.packageMetadata)},computed:{isColorGradient:function(){return"combo"!==this.view?"gradient"===this.view:void 0!==this.selectedView?0===this.selectedView:"gradient"===this.currentView},computedColor:function(){return void 0!==this.value?this.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:this.colorValue},computedPrevColor:function(){return void 0!==this.prevValue?this.prevValue:this.currentPrevColor},previewClass:function(){return{"k-coloreditor-preview-color":!0,"k-color-preview":!0,"k-no-color":!this.colorValue}},currentClass:function(){return{"k-coloreditor-current-color":!0,"k-color-preview":!0,"k-no-color":!this.computedPrevColor}},computedTabIndex:function(){return this.focused?0:-1}},data:function(){var e=this.value||this.defaultValue||this.modelValue||this.modelRgbaValue;return{currentView:"gradient",colorValue:e,currentPrevColor:e,focused:!1}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=this,r=o||e,s=(0,v.provideLocalizationService)(this),u=s.toLanguageString(p.flatColorPickerGradientBtn,p.messages[p.flatColorPickerGradientBtn]),h=s.toLanguageString(p.flatColorPickerPaletteBtn,p.messages[p.flatColorPickerPaletteBtn]),f=s.toLanguageString(p.flatColorPickerClearBtn,p.messages[p.flatColorPickerClearBtn]),m=s.toLanguageString(p.flatColorPickerCancelBtn,p.messages[p.flatColorPickerCancelBtn]),g=s.toLanguageString(p.flatColorPickerApplyBtn,p.messages[p.flatColorPickerApplyBtn]),y=a.templateRendering.call(this,this.$props.header,a.getListeners.call(this)),b=a.templateRendering.call(this,this.$props.footer,a.getListeners.call(this)),k=a.getTemplate.call(this,{h:r,template:y}),w=a.getTemplate.call(this,{h:r,template:b});return r("div",{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),attrs:this.v3?void 0:{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-disabled":this.$props.disabled},onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,focusout:this.onFocusout,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onFocusout:this.onFocusout,onKeydown:this.onKeyDownHandler,class:(0,a.classNames)("k-flatcolorpicker k-coloreditor",{"k-disabled":this.$props.disabled}),"aria-disabled":this.$props.disabled},[k,this.$props.showClearButton&&this.$props.showPreview&&r("div",{class:"k-coloreditor-header k-hstack"},["combo"===this.$props.view&&r("div",{class:"k-coloreditor-header-actions k-hstack"},[r(l.ButtonGroup,this.v3?function(){return[r(l.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:u},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:u,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[r("span",{class:"k-icon k-i-color-canvas"})]}:[r("span",{class:"k-icon k-i-color-canvas"})]),r(l.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:h},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:h,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[r("span",{class:"k-icon k-i-palette"})]}:[r("span",{class:"k-icon k-i-palette"})])]}:[r(l.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:u},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:u,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[r("span",{class:"k-icon k-i-color-canvas"})]}:[r("span",{class:"k-icon k-i-color-canvas"})]),r(l.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:h},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:h,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[r("span",{class:"k-icon k-i-palette"})]}:[r("span",{class:"k-icon k-i-palette"})])])]),r("div",{class:"k-spacer"}),r("div",{class:"k-coloreditor-header-actions k-hstack"},[this.$props.showClearButton&&r(l.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button",fillMode:"flat",ariaLabel:f},type:"button",fillMode:"flat",ariaLabel:f,onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleResetColor},onClick:this.handleResetColor},this.v3?function(){return[r("span",{class:"k-icon k-i-reset-color"})]}:[r("span",{class:"k-icon k-i-reset-color"})]),this.$props.showPreview&&r("div",{class:"k-coloreditor-preview k-vstack"},[r("span",{class:this.previewClass,style:{background:this.colorValue}},[!this.colorValue&&r("span",{class:"k-color-preview-mask"})]),r("span",{class:this.currentClass,style:{background:this.computedPrevColor},onClick:this.handlePrevColorClick,on:this.v3?void 0:{click:this.handlePrevColorClick}},[!this.computedPrevColor&&r("span",{class:"k-color-preview-mask"})])])])]),r("div",{class:"k-coloreditor-views k-vstack"},[this.isColorGradient?function(){return r(c.ColorGradient,i({attrs:this.v3?void 0:i({tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex},this.gradientSettings),ref:(0,a.setRef)(this,"gradient"),tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex,onChange:this.handleColorChange,onKeydown:this.innerKeyDown,on:this.v3?void 0:{change:this.handleColorChange,keydown:this.innerKeyDown}},this.gradientSettings))}.call(this):function(){return r(d.ColorPalette,i({on:this.v3?void 0:{change:this.handlePaletteColorChange,keydown:this.gradientKeyDown},ref:(0,a.setRef)(this,"palette"),tabIndex:this.computedTabIndex,value:this.colorValue,attrs:this.v3?void 0:i({tabIndex:this.computedTabIndex,value:this.colorValue},this.paletteSettings),onChange:this.handlePaletteColorChange,onKeydown:this.gradientKeyDown},this.paletteSettings))}.call(this)]),this.$props.showButtons&&r("div",{class:"k-coloreditor-footer k-actions k-actions-end"},[r(l.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-cancel",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleCancelBtnClick},onClick:this.handleCancelBtnClick},this.v3?function(){return[m]}:[m]),r(l.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-apply k-primary",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleApplyBtnClick},onClick:this.handleApplyBtnClick},this.v3?function(){return[g]}:[g])]),w])},methods:{focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,a.focusFirstFocusableChild)(e.$el)}),1)},onKeyDownHandler:function(e){var t=this.$el;this.focused=(0,a.focusContainer)(e,t),this.$emit("keydown",e)},handleViewChange:function(e,t){this.currentView=t,this.$emit("viewchange",{event:e,viewType:t})},handleResetColor:function(){this.colorValue=null},handleColorChange:function(e){this.colorValue=e.value},handlePaletteColorChange:function(e){this.colorValue=e.value},handleApplyBtnClick:function(e){var t=(0,h.parseColor)(this.colorValue,"rgba");this.currentPrevColor=this.colorValue,this.$emit("changemodel",this.colorValue),this.$emit("update:modelValue",this.colorValue),this.$emit("update:modelRgbaValue",t),this.$emit("change",{event:e,value:this.colorValue,rgbaValue:t})},innerKeyDown:function(e){e.keyCode===a.Keys.enter&&this.handleApplyBtnClick(e)},gradientKeyDown:function(e){e.stopPropagation(),this.showButtons||e.keyCode!==a.Keys.enter||this.handleApplyBtnClick(e)},handleButtonKeydown:function(e){e.keyCode===a.Keys.enter&&e.stopPropagation()},handleCancelBtnClick:function(){this.colorValue=this.computedPrevColor},handlePrevColorClick:function(){this.colorValue=this.computedPrevColor},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},onFocusout:function(e){this.$emit("focusout",{event:e,target:this})}}};t.FlatColorPickerVue2=m;var g=m;t.FlatColorPicker=g},8935:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HexInputVue2=t.HexInput=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(7760),a=n(4555),l=n(6366),d={name:"KendoHexInput",emits:{hexchange:null,blur:null,focus:null},props:{tabIndex:Number,hex:String,disabled:Boolean},computed:{isHexValid:function(){return!!(0,s.parseColor)(this.currentHex,"rgba")}},data:function(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted:function(){this._input=this.$refs.input._input},setup:o?function(){return{v3:!!o}}:void 0,watch:{hex:function(e){this.currentHex=e}},render:function(e){return(r||e)(l.Input,{value:this.currentHex,attrs:this.v3?void 0:{value:this.currentHex,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex},onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,change:this.onChange,focus:this.onFocus,blur:this.onBlur},onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex,ref:"input"})},methods:{onChange:function(e){var t=e.target.value,n=(0,s.parseColor)(t,"rgba");this.currentHex=t,(0,a.isPresent)(n)&&this.$emit("hexchange",{hex:t,value:n,event:e})},onBlur:function(e){(0,a.isPresent)((0,s.parseColor)(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)}}};t.HexInputVue2=d;var c=d;t.HexInput=c},4004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PickerVue2=t.Picker=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4866),a=n(9680),l={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String,id: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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props.popupSettings,o=i.popupClass,l=i.appendTo,d=i.animate,c=i.className;return t(s.Popup,{id:this.id,attrs:this.v3?void 0:{id:this.id,anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,appendTo:l,animate:d,popupClass:o},anchor:this.$props.popupAnchor,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,appendTo:l,animate:d,popupClass:o,class:(0,a.classNames)("k-reset",c)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}};t.PickerVue2=l;var d=l;t.Picker=d},85:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},6656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7182:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1569:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2869:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS=void 0,t.PALETTEPRESETS={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}}},6566:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCachedRgba=t.getCachedHsva=t.getCachedHex=t.removeCachedColor=t.cacheHex=t.cacheRgba=t.cacheHsva=t.DEFAULT_PALETTE_SETTINGS=t.DEFAULT_GRADIENT_SETTINGS=void 0;var i=n(2825),r={};t.DEFAULT_GRADIENT_SETTINGS={opacity:!0},t.DEFAULT_PALETTE_SETTINGS={palette:i.DEFAULT_PRESET,tileSize:i.DEFAULT_TILE_SIZE},t.cacheHsva=function(e,t,n){r[e]={value:t,hsva:n}},t.cacheRgba=function(e,t,n){r[e]={value:t,rgba:n}},t.cacheHex=function(e,t,n){r[e]={value:t,hex:n}},t.removeCachedColor=function(e){delete r[e]},t.getCachedHex=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hex:void 0}},t.getCachedHsva=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.hsva:void 0}},t.getCachedRgba=function(e,t){if(e){var n=r[e];return n&&n.value===t?n.rgba:void 0}}},1129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPaletteService=void 0;var i=n(4555),r=n(4407),o=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],(0,i.isPresent)(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var r=e.slice(n,t+n);this.colorRows.push(r)}}},e.prototype.isInColors=function(e,t){return e.some((function(e){return e===t}))},e.prototype.getCellCoordsFor=function(e){if((0,i.isPresent)(e)){var t=e?(0,r.parseColor)(e,!0):e,n=[e];(0,i.isPresent)(t)&&n.push(t.toCss(),t.toCssRgba());for(var o=0;o<this.colorRows.length;o++)for(var s=0;s<this.colorRows[o].length;s++)if(this.isInColors(n,this.colorRows[o][s]))return{row:o,col:s}}},e.prototype.getColorAt=function(e){if((0,i.isPresent)(e)&&(0,i.isPresent)(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!((0,i.isPresent)(e)&&(0,i.isPresent)(e.row)&&(0,i.isPresent)(e.col)))return{row:0,col:0};var r=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:r,col:this.clampIndex(e.col+t,this.colorRows[r].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}();t.ColorPaletteService=o},7760:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContrastFromTwoRGBAs=t.getContrast=t.getLuminance=t.getRGBFromRGBA=t.getColorFromRGBA=t.getColorFromHue=t.getColorFromHSV=t.getRGBA=t.getHSV=t.getHexValue=t.parseColor=void 0;var i=n(4407),r=n(4555);t.parseColor=function(e,n,o,s){if(void 0===o&&(o=!1),void 0===s&&(s=!0),-1===["hex","rgba"].indexOf(n))throw new Error("Unsupported color output format '".concat(n,"'. The available options are 'hex' or 'rgba'."));if((0,r.isPresent)(e)){var a=(0,i.parseColor)(e.trim(),s);if((0,r.isPresent)(a))return"hex"===n?(0,t.getHexValue)(a,o):a.toCssRgba()}},t.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=(0,i.parseColor)(e,t);return(0,r.isPresent)(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=(0,i.parseColor)(e,t);return(0,r.isPresent)(n)?n.toBytes():{}},t.getColorFromHSV=function(e){var t=(0,r.fitIntoBounds)(e.h,0,359.9),n=(0,r.fitIntoBounds)(e.s,0,1),o=(0,r.fitIntoBounds)(e.v,0,1),s=(0,r.fitIntoBounds)(e.a,0,1);return i.Color.fromHSV(t,n,o,s).toCssRgba()},t.getColorFromHue=function(e){return(0,t.getColorFromHSV)({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=(0,r.fitIntoBounds)(e.r,0,255),n=(0,r.fitIntoBounds)(e.g,0,255),o=(0,r.fitIntoBounds)(e.b,0,255),s=(0,r.fitIntoBounds)(e.a,0,1);return i.Color.fromBytes(t,n,o,s).toCssRgba()},t.getRGBFromRGBA=function(e,t){var n=(0,r.fitIntoBounds)(e.r,0,255),i=(0,r.fitIntoBounds)(e.g,0,255),o=(0,r.fitIntoBounds)(e.b,0,255),s=(0,r.fitIntoBounds)(e.a,0,1),a=(0,r.fitIntoBounds)(t.r,0,255),l=(0,r.fitIntoBounds)(t.g,0,255),d=(0,r.fitIntoBounds)(t.b,0,255);return{r:Math.round((1-s)*a+s*n),g:Math.round((1-s)*l+s*i),b:Math.round((1-s)*d+s*o)}},t.getLuminance=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return(0,t.getContrast)((0,t.getLuminance)((0,t.getRGBFromRGBA)(e,n)),(0,t.getLuminance)((0,t.getRGBFromRGBA)(n,{r:0,g:0,b:0,a:1})))}},4555:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitIntoBounds=t.isPresent=void 0,t.isPresent=function(e){return null!=e},t.fitIntoBounds=function(e,n,i){return!(0,t.isPresent)(e)||isNaN(e)||e<=n?n:e>=i?i:e}},7741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=t.controlPoint=t.line=t.svgPath=void 0,t.svgPath=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,i,r){return 0===i?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,i,r))}),"");return'<path d="'.concat(n,'" fill="none" stroke="white" stroke-width="1"/>')},t.line=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},t.controlPoint=function(e){return function(t,n,i,r){var o=e(n||t,i||t),s=o.angle+(r?Math.PI:0),a=.1*o.length;return[t[0]+Math.cos(s)*a,t[1]+Math.sin(s)*a]}},t.bezierCommand=function(e){return function(t,n,i){var r=e(i[n-1],i[n-2],t),o=r[0],s=r[1],a=e(t,i[n-1],i[n+1],!0),l=a[0],d=a[1];return"C ".concat(o,",").concat(s," ").concat(l,",").concat(d," ").concat(t[0],",").concat(t[1])}}},3385:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputSeparatorVue2=t.InputSeparator=void 0;var i=n(9302),r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=(r.ref,n(6945)),l={created:function(){(0,i.validatePackage)(a.packageMetadata)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){return(o||e)("span",{class:"k-input-separator"})}};t.InputSeparatorVue2=l;var d=l;t.InputSeparator=d},6366:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputVue2=t.Input=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=n(9680),d=n(6945),c=n(4305),u={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:l.templateDefinition,inputSuffix:l.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){(0,l.validatePackage)(d.packageMetadata),this._input=void 0,this._inputId=(0,l.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:s?function(){return{v3:!!s,inputRef:a(null)}}:void 0,render:function(e){var t=this,n=o||e,r=!this.$props.validityStyles||this.validity().valid,s=this.$props,a=s.label,d=s.id,u=s.required,p=s.iconName,h=s.showValidationIcon,f=s.showLoadingIcon,v=s.showClearButton,m=s.tabIndex,g=d||this._inputId,y=n("input",i(i({domProps:this.v3?null:i(i({},this.$attrs),{placeholder:this.$props.placeholder,id:g,required:u,value:this.computedValue}),attrs:this.v3?void 0:i(i({},this.$attrs),{tabindex:m})},this.$attrs),{placeholder:this.$props.placeholder,id:g,tabindex:m,required:u,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})),b=l.templateRendering.call(this,this.$props.inputPrefix,l.getListeners.call(this)),k=l.templateRendering.call(this,this.$props.inputSuffix,l.getListeners.call(this)),w=l.getTemplate.call(this,{h:n,template:b,additionalProps:{value:this.computedValue,valid:r}}),S=l.getTemplate.call(this,{h:n,template:k,additionalProps:{value:this.computedValue,valid:r}}),C=n("span",{class:this.inputWrapperClass()},[p&&n("span",{class:"k-input-icon k-icon k-i-".concat(p)}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[w]),y,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[S]),h&&r&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),h&&!r&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),f&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),v&&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 a?n(c.FloatingLabel,{label:a,attrs:this.v3?void 0:{label:a,editorId:g,editorValue:this.computedValue,editorValid:r,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:g,editorValue:this.computedValue,editorValid:r,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[C]}:[C]):C},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 i(i({},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,o=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-".concat(l.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(l.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!o,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}}}};t.InputVue2=u;var p=u;t.Input=p},5042:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchVue2=t.Switch=t.ColorPalette=t.ColorGradient=void 0;var o=n(7063);Object.defineProperty(t,"ColorGradient",{enumerable:!0,get:function(){return o.ColorGradient}});var s=n(2825);Object.defineProperty(t,"ColorPalette",{enumerable:!0,get:function(){return s.ColorPalette}}),r(n(7993),t),r(n(85),t),r(n(8649),t),r(n(8660),t),r(n(6656),t),r(n(1302),t),r(n(295),t),r(n(7182),t),r(n(1569),t),r(n(2090),t);var a=n(2504);Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return a.Switch}}),Object.defineProperty(t,"SwitchVue2",{enumerable:!0,get:function(){return a.SwitchVue2}}),r(n(3385),t),r(n(6366),t),r(n(8977),t),r(n(3265),t),r(n(9478),t),r(n(373),t),r(n(4955),t),r(n(8846),t),r(n(1370),t),r(n(8703),t),r(n(3274),t),r(n(9399),t),r(n(829),t),r(n(3997),t),r(n(5712),t),r(n(5789),t),r(n(1781),t),r(n(3881),t),r(n(1740),t),r(n(8619),t),r(n(847),t),r(n(1201),t),r(n(1178),t),r(n(1075),t)},3265:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaskedTextBoxVue2=t.MaskedTextBox=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(5166),l=n(2831),d=n(9680),c=n(6945),u={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 l.defaultRules}},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:d.templateDefinition,inputSuffix:d.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(){(0,d.validatePackage)(c.packageMetadata),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-".concat((0,d.guid)()),this.service=new a.MaskingService,this.isPasted=!1},setup:o?function(){return{v3:!!o,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={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules};(0,l.maskingChanged)(o,this.$props)&&this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},l.defaultRules,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-".concat(d.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(d.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=r||e,n=this.$props.id||this.inputId,i=this.$props,o=i.iconName,s=i.showValidationIcon,a=i.showLoadingIcon,c=i.showClearButton,u=!this.$props.validityStyles||this.validity().valid,p=this.computedValue(),h=(this.inputValue,d.templateRendering.call(this,this.$props.inputPrefix,d.getListeners.call(this))),f=d.templateRendering.call(this,this.$props.inputSuffix,d.getListeners.call(this)),v=d.getTemplate.call(this,{h:t,template:h,additionalProps:{value:p,valid:u}}),m=d.getTemplate.call(this,{h:t,template:f,additionalProps:{value:p,valid:u}}),g=t("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&&t("span",{class:"k-input-icon k-icon k-i-".concat(o)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[v]),t("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,d.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?p:null,domProps:this.v3?void 0:{value:p},id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,d.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:(0,d.setRef)(this,"input"),onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragstart:l.returnFalse,drop:l.returnFalse},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragstart:l.returnFalse,onDrop:l.returnFalse}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[m]),s&&u&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),s&&!u&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),a&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),c&&p&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})])]);return this.$props.label?t("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[g,this.$props.label?n?t("label",{for:n,attrs:this.v3?void 0:{for:n},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):g}};t.MaskedTextBoxVue2=u;var p=u;t.MaskedTextBox=p},9478:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5166:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaskingService=void 0;var i=n(4313),r=n(2517),o=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,d=e.includeLiterals,c=void 0!==d&&d;this.mask=n,this.prompt=r,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return(0,i.sequence)(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?((0,i.sequence)(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?((0,i.sequence)(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,r){var o="",s=r,a=t.split("").slice(0,n),l=t.split("").slice(r);return(0,i.sequence)(this.maskTokens.slice(n,r)).run(e).fold((function(e){o=a.concat(e).concat(l).join("")})),{selection:s,value:o}},e.prototype.maskRemoved=function(e,t,n){var r=this,o="",s=n,a=e.split("").slice(n),l=e.split("").slice(0,n).join(""),d=this.maskTokens.length-(e.length-n);return(0,i.sequence)(this.maskTokens.slice(0,d)).run(l,t).fold((function(e){s=r.adjustPosition(e,s),o=e.concat(a).join("")})),{selection:s,value:o}},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 r=this,o="",s=n,a=e.slice(0,n);return(0,i.sequence)(this.unmaskTokens).run(a,t).chain((function(e){s=e.join("").length;var n=t.slice(s);return(0,i.sequence)(r.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:s,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return(0,r.literal)(e)},mask:function(n){return(0,r.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(0,r.unliteral)(e)},mask:function(t){return(0,r.unmask)(e.prompt)(t)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,i=e.includeLiterals;return{literal:function(e){return(0,r.rawLiteral)(i)},mask:function(e){return(0,r.rawMask)({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return(0,r.rawLiteral)(!1)},mask:function(t){return(0,r.rawMask)({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;(0,i.greedy)((0,r.token)(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),(0,i.greedy)((0,r.token)(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),(0,i.greedy)((0,r.token)(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),(0,i.greedy)((0,r.token)(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}();t.MaskingService=o},4313:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.greedy=t.sequence=void 0;var i=n(2517),r=n(1187);t.sequence=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 i.Parser((function(e){return new r.Result(t,e)}))));var t},t.greedy=function(e){return new i.Parser((function(t){for(var n=new r.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},2517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rawLiteral=t.rawMask=t.token=t.unliteral=t.unmask=t.literal=t.mask=t.Parser=void 0;var i=n(1187),r=n(5794),o=function(e){return(e||"").split("")},s=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof r.Stream?this.parse(e):this.parse(new r.Stream(o(e),o(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.ResultType.Literal},e}();t.Parser=s,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new s((function(r){for(;!r.eof();){var o=r.peek(),s=o.char,a=o.control;if(s===a&&a===t)return r.eat(),new i.Result(t,r,i.ResultType.Mask);if(e.test(s))return r.eat(),new i.Result(s,r,i.ResultType.Mask);if(s===n)return r.eat(),new i.Result(t,r,i.ResultType.Mask);r.eat_input()}return r.eat(),new i.Result(t,r,i.ResultType.Mask)}))}},t.literal=function(e){return new s((function(t){return t.peek().char===e?(t.eat(),new i.Result(e,t,i.ResultType.Literal)):new i.Result(e,t,i.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new s((function(n){for(;!n.eof();){var r=n.peek(),o=r.char,s=r.control;if(o===e&&s===e)return n.eat(),new i.Result(o,n);if(t.test(o))return n.eat(),new i.Result(o,n);n.eat_input()}return n.eat(),new i.Result("",n)}))}},t.unliteral=function(e){return new s((function(t){return t.eof()?new i.Result("",t):(t.peek().char===e&&t.eat(),new i.Result(e,t))}))},t.token=function(e,t){return new s((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new i.Result(t.literal(r),n)):o?new i.Result(t.mask(o),n):new i.Result(t.literal(r),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new s((function(e){var r=e.next().char;return r===t?new i.Result(n,e):new i.Result(r,e)}))},t.rawLiteral=function(e){return new s((function(t){var n=t.next().char;return e?new i.Result(n,t):new i.Result("",t)}))}},1187:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Result=t.ResultType=void 0,function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(n=t.ResultType||(t.ResultType={}));var i=function(){function e(e,t,i){void 0===i&&(i=n.Undefined),this.value=e,this.rest=t,this.type=i}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: '".concat(this.value,"', rest: ").concat(this.rest," })")},e}();t.Result=i},5794:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Stream=void 0;var n=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}();t.Stream=n},2831:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.returnFalse=t.maskingChanged=t.defaultRules=void 0,t.defaultRules={"#":/[\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]/},t.returnFalse=function(){return!1},t.maskingChanged=function(e,t){return e.includeLiterals!==t.includeLiterals||e.mask!==t.mask||e.prompt!==t.prompt||e.promptPlaceholder!==t.promptPlaceholder||!n(e.rules,t.rules)};var n=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}},721:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.colorPickerDropdownButtonAriaLabel=t.switchValidation=t.radioButtonValidation=t.checkboxOptionalText=t.checkboxValidation=t.flatColorPickerClearBtn=t.flatColorPickerPaletteBtn=t.flatColorPickerGradientBtn=t.flatColorPickerApplyBtn=t.flatColorPickerCancelBtn=t.colorGradientFail=t.colorGradientPass=t.colorGradientAAALevel=t.colorGradientAALevel=t.colorGradientContrastRatio=t.colorGradientALabel=t.colorGradientBLabel=t.colorGradientGLabel=t.colorGradientRLabel=t.colorGradientInputColorButton=t.colorGradientHex=t.colorGradientA=t.colorGradientB=t.colorGradientG=t.colorGradientR=t.colorGradientDragHandle=t.sliderDragTitle=t.sliderDecreaseValue=t.sliderIncreaseValue=t.numericDecreaseValue=t.numericIncreaseValue=void 0,t.numericIncreaseValue="numerictextbox.increment",t.numericDecreaseValue="numerictextbox.decrement",t.sliderIncreaseValue="slider.increment",t.sliderDecreaseValue="slider.decrement",t.sliderDragTitle="slider.dragTitle",t.colorGradientDragHandle="colorGradient.dragHandle",t.colorGradientR="colorGradient.r",t.colorGradientG="colorGradient.g",t.colorGradientB="colorGradient.b",t.colorGradientA="colorGradient.a",t.colorGradientHex="colorGradient.hex",t.colorGradientInputColorButton="colorGradient.inputColorButton",t.colorGradientRLabel="colorGradient.rLabel",t.colorGradientGLabel="colorGradient.gLabel",t.colorGradientBLabel="colorGradient.bLabel",t.colorGradientALabel="colorGradient.aLabel",t.colorGradientContrastRatio="colorGradient.contrastRatio",t.colorGradientAALevel="colorGradient.colorGradientAALevel",t.colorGradientAAALevel="colorGradient.colorGradientAAALevel",t.colorGradientPass="colorGradient.colorGradientPass",t.colorGradientFail="colorGradient.colorGradientFail",t.flatColorPickerCancelBtn="flatColorPicker.cancelBtn",t.flatColorPickerApplyBtn="flatColorPicker.applyBtn",t.flatColorPickerGradientBtn="flatColorPicker.gradientBtn",t.flatColorPickerPaletteBtn="flatColorPicker.paletterBtn",t.flatColorPickerClearBtn="flatColorPicker.clearBtn",t.checkboxValidation="checkbox.validation",t.checkboxOptionalText="checkbox.optionalText",t.radioButtonValidation="radioButton.validation",t.switchValidation="switch.validation",t.colorPickerDropdownButtonAriaLabel="colorPicker.dropdownButtonAriaLabel",t.messages=((n={})[t.numericIncreaseValue]="Increase value",n[t.numericDecreaseValue]="Decrease value",n[t.sliderIncreaseValue]="Increase",n[t.sliderDecreaseValue]="Decrease",n[t.sliderDragTitle]="Drag",n[t.colorGradientDragHandle]="Color well with two-dimensional slider for selecting\n saturation and lightness. Selected color is",n[t.colorGradientInputColorButton]="Change the color input",n[t.colorGradientR]="r",n[t.colorGradientR]="r",n[t.colorGradientG]="g",n[t.colorGradientB]="b",n[t.colorGradientA]="a",n[t.colorGradientRLabel]="red chanel",n[t.colorGradientGLabel]="green chanel",n[t.colorGradientBLabel]="blue chanel",n[t.colorGradientALabel]="alpha chanel",n[t.colorGradientHex]="hex",n[t.colorGradientContrastRatio]="Contrast ratio",n[t.colorGradientAALevel]="AA",n[t.colorGradientAAALevel]="AAA",n[t.colorGradientPass]="Pass",n[t.colorGradientFail]="Fail",n[t.flatColorPickerCancelBtn]="Cancel",n[t.flatColorPickerApplyBtn]="Apply",n[t.flatColorPickerGradientBtn]="Gradient",n[t.flatColorPickerPaletteBtn]="Palette",n[t.flatColorPickerClearBtn]="Clear",n[t.checkboxValidation]="Please check this box if you want to proceed!",n[t.checkboxOptionalText]="(Optional)",n[t.radioButtonValidation]="Please select option if you want to proceed!",n[t.switchValidation]="Please turn on if you want to proceed!",n[t.colorPickerDropdownButtonAriaLabel]="Select",n)},8977:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumericTextBoxVue2=t.NumericTextBox=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=i.inject,l=n(9680),d=n(5725),c=n(9680),u=n(2857),p=n(721),h=n(5447),f=n(6945),v={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,ariaLabel:String,iconName:String,inputPrefix:l.templateDefinition,inputSuffix:l.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(){(0,c.validatePackage)(f.packageMetadata),this._textBeforeInput="",this._inputId=(0,c.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=(0,d.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=(0,l.getRef)(this,"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(){l.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(0,h.formatValue)(this.$data.focused?this.$data.currentLooseValue:(0,h.getStateOrPropsValue)(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,r=t.rounded,o=t.required,s=t.disabled,a=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-".concat(l.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(l.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!a,e["k-required"]=o,e["k-disabled"]=s,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:(0,h.getStateOrPropsValue)(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,(0,h.sanitizeNumber)(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=(0,h.formatValue)((0,h.rangeValue)(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),r=(0,h.rangeValue)(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();(0,h.increaseValue)(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();(0,h.decreaseValue)(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){l.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:(0,h.increaseValue)(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:(0,h.decreaseValue)(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=(0,h.formatValue)((0,h.rangeValue)(n,this.$props.min,this.$props.max),this.$props.format,this._intl),r=(0,h.rangeValue)(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=r,t.currentLooseValue=(0,h.formatValue)(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=(0,h.sanitizeNumber)(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){l.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:o?function(){return{v3:!!o,inputRef:s(null),elementWrapperRef:s(null),kendoLocalizationService:a("kendoLocalizationService",{}),kendoIntlService:a("kendoIntlService",{})}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.iconName,o=n.showValidationIcon,s=n.showLoadingIcon,a=n.showClearButton,c=this.$props.id||this._inputId,h=(0,l.getDefaultSlots)(this),f=(0,d.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=l.templateRendering.call(this,this.$props.inputPrefix,l.getListeners.call(this)),g=l.templateRendering.call(this,this.$props.inputSuffix,l.getListeners.call(this)),y=l.getTemplate.call(this,{h:t,template:m,additionalProps:{value:this.computedValue,valid:v}}),b=l.getTemplate.call(this,{h:t,template:g,additionalProps:{value:this.computedValue,valid:v}}),k=t("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},[i&&t("span",{class:"k-input-icon k-icon k-i-".concat(i)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[y]),t("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-label":this.$props.ariaLabel,"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:c,"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-label":this.$props.ariaLabel,"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:c,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:(0,l.setRef)(this,"input")}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[b]),o&&v&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),o&&!v&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),s&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),a&&void 0!==this.computedValue&&null!==this.computedValue&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})]),h,this.$props.spinners&&t("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[t(u.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":f.toLanguageString(p.numericIncreaseValue,p.messages[p.numericIncreaseValue]),title:f.toLanguageString(p.numericIncreaseValue,p.messages[p.numericIncreaseValue])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":f.toLanguageString(p.numericIncreaseValue,p.messages[p.numericIncreaseValue]),title:f.toLanguageString(p.numericIncreaseValue,p.messages[p.numericIncreaseValue]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),t(u.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":f.toLanguageString(p.numericDecreaseValue,p.messages[p.numericDecreaseValue]),title:f.toLanguageString(p.numericDecreaseValue,p.messages[p.numericDecreaseValue])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":f.toLanguageString(p.numericDecreaseValue,p.messages[p.numericDecreaseValue]),title:f.toLanguageString(p.numericDecreaseValue,p.messages[p.numericDecreaseValue]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?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}},[k,this.$props.label?c?t("label",{for:c,attrs:this.v3?void 0:{for:c},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):k}};t.NumericTextBoxVue2=v;var m=v;t.NumericTextBox=m},5447:(e,t)=>{var n=function(){return n=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},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeNumber=t.changeBasedSelection=t.getDecimalCount=t.getFirstNumberIndex=t.getSuffix=t.getPrefix=t.getLastNumberIndex=t.reverseString=t.getInitialPosition=t.getFormatSymbols=t.getFormatPrefixSufix=t.isDecimalDuplicated=t.isMinusSymbolRemoved=t.isMinusSymbolAdded=t.setInvalid=t.setSelection=t.rangeSelection=t.getMinCursorPosition=t.getMaxCursorPosition=t.rangeValue=t.decreaseValue=t.increaseValue=t.toFixedPrecision=t.limitPrecision=t.fractionLength=t.formatValue=t.getStateOrPropsValue=t.getInitialState=void 0;var i=1111111.1111111,r=/\d/;t.getInitialState=function(){return{eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}},t.getStateOrPropsValue=function(e,t){return void 0!==e?e:t},t.formatValue=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var o=function(e,n){return Math.max((0,t.fractionLength)(e),(0,t.fractionLength)(n))};t.limitPrecision=function(e){return Math.min(e,15)},t.toFixedPrecision=function(e,n){var i=(0,t.limitPrecision)(n);return parseFloat(e.toFixed(i))},t.increaseValue=function(e,n,i,s,a,l,d){var c=o(e||0,i||0),u=(0,t.rangeValue)((0,t.toFixedPrecision)((e||0)+(i||0),c),s,a);n.eventValue=u,n.currentLooseValue=(0,t.formatValue)(u,l,d),n.selectionStart=n.selectionEnd=(0,t.getLastNumberIndex)(n.currentLooseValue,r)},t.decreaseValue=function(e,n,i,s,a,l,d){var c=o(e||0,i||0),u=(0,t.rangeValue)((0,t.toFixedPrecision)((e||0)-(i||0),c),s,a);n.eventValue=u,n.currentLooseValue=(0,t.formatValue)(u,l,d),n.selectionStart=n.selectionEnd=(0,t.getLastNumberIndex)(n.currentLooseValue,r)},t.rangeValue=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},t.getMaxCursorPosition=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},t.getMinCursorPosition=function(e,t){var n=t.findIndex((function(t){var n=t[0];return t[1],Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length},t.rangeSelection=function(e,n,i){var r=(0,t.getMaxCursorPosition)(e,n);if(-1!==r&&i.selectionStart>r)i.selectionStart=i.selectionEnd=r;else{i.selectionStart>e.length&&(i.selectionStart=i.selectionEnd=e.length);var o=(0,t.getMinCursorPosition)(e,n);-1!==o&&i.selectionStart<o&&(i.selectionStart=i.selectionEnd=o),-1===i.selectionStart&&(i.selectionStart=i.selectionEnd=0)}},t.setSelection=function(e,n,i,r){e.selectionStart=e.selectionEnd=n,(0,t.rangeSelection)(i,r,e)},t.setInvalid=function(e,n,i,r){e.eventValue=r.parseNumber(e.prevLooseValue,n),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,(0,t.setSelection)(e,e.selectionStart,e.currentLooseValue,i)},t.isMinusSymbolAdded=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},t.isMinusSymbolRemoved=function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==i.indexOf(t.minusSign)},t.isDecimalDuplicated=function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2},t.getFormatPrefixSufix=function(e,n){var r=n.formatNumber(i,e),o=n.formatNumber(-i,e),s=n.formatNumber(0,e),a=n.formatNumber(1,e),l=(0,t.getPrefix)(r),d=(0,t.getPrefix)(o),c=(0,t.getPrefix)(s),u=(0,t.getPrefix)(a);return{positiveInfo:[l,(0,t.getSuffix)(r)],negativeInfo:[d,(0,t.getSuffix)(o)],zeroInfo:[c,(0,t.getSuffix)(s)],oneInfo:[u,(0,t.getSuffix)(a)]}},t.getFormatSymbols=function(e,t){var n=t.formatNumber(i,e),r=t.formatNumber(-i,e),o=t.formatNumber(0,e),s=t.formatNumber(1,e),a=t.numberSymbols(),l=new RegExp("[\\d\\".concat(a.decimal).concat(a.group,"]"),"g");return[n,r,o,s].map((function(e){return e.replace(l,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")},t.getInitialPosition=function(e,n){var i=e.indexOf(n.decimal);return i>-1?i:(0,t.getLastNumberIndex)(e,r)},t.reverseString=function(e){return e.split("").reverse().join("")},t.getLastNumberIndex=function(e,n){return e.length-(0,t.reverseString)(e).search(n)},t.getPrefix=function(e){return e.split(e[e.search(r)])[0]},t.getSuffix=function(e){var n=(0,t.reverseString)(e);return(0,t.reverseString)(n.split(n[n.search(r)])[0])},t.getFirstNumberIndex=function(e,t){return e.search(t)},t.getDecimalCount=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},t.changeBasedSelection=function(e,t,n,i,o){var s="0"===e.replace(o,"")[0],a="0"===t.replace(o,"")[0];if(s&&!a)return n-1;if(a&&i)return n+1;for(var l=0,d=0;d<n;d++)r.test(e.charAt(d))&&l++;for(var c=0;l>0&&t.length>c;)r.test(t.charAt(c))&&l--,c++;return c},t.sanitizeNumber=function(e,i,o){var s=n({},e),a=s.prevLooseValue,l=o.numberSymbols(),d=(0,t.getFormatSymbols)(i,o),c=String(s.currentLooseValue),u=String(a),p=new RegExp("[^\\d\\".concat(l.decimal,"]"),"g"),h=new RegExp("[^\\d\\".concat(l.decimal,"\\").concat(l.group,"]"),"g"),f=new RegExp("[\\d\\".concat(l.decimal,"\\").concat(l.group,"]")),v=c.replace(p,""),m=(0,t.getFirstNumberIndex)(c,r),g=-1===m?-1:(0,t.getLastNumberIndex)(c,r),y=c.indexOf(l.decimal),b=(c.substring(0,m)+c.substring(m,g).replace(h,"")+c.substring(g,c.length)).split("").filter((function(e){return-1!==d.indexOf(e)||-1!==e.search(f)})).join(""),k=o.formatNumber(.31111111111111117,i).replace(p,""),w=k.indexOf(l.decimal),S=w>-1?k.length-w-1:0,C=o.formatNumber(1,i).replace(p,""),x=C.indexOf(l.decimal),O=x>-1?C.length-x-1:0,I=(0,t.getFormatPrefixSufix)(i,o),$=[I.positiveInfo,I.negativeInfo,I.zeroInfo,I.oneInfo],D=1!==$.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),M=c.length>0&&c.length<u.length,T=i&&"p"===i[0]&&c&&-1===c.indexOf(l.percentSign);if(!s.isPaste){if(""===c)return s.eventValue=null,s.currentLooseValue="",s;if(s.currentLooseValue===l.minusSign&&o.formatNumber(-0,i)!==u)return s.eventValue=-0,s.currentLooseValue=(0,t.formatValue)(s.eventValue,i,o),(0,t.setSelection)(s,(0,t.getInitialPosition)(s.currentLooseValue,l),s.currentLooseValue,$),s;if((0,t.isMinusSymbolAdded)(s,l)){var P=o.parseNumber(a,i);s.eventValue=-(null!==P?P:0),s.currentLooseValue=(0,t.formatValue)(s.eventValue,i,o);var R=(0,t.getFirstNumberIndex)(s.currentLooseValue,r),E=(0,t.getFirstNumberIndex)(u,r);return(0,t.setSelection)(s,s.selectionEnd-1+(R-E),s.currentLooseValue,$),s}if((0,t.isMinusSymbolRemoved)(s,l))return s.eventValue=o.parseNumber(s.currentLooseValue,i),(0,t.setSelection)(s,s.selectionStart,s.currentLooseValue,$),s;if(s.currentLooseValue===l.decimal){s.eventValue=0;var V=(0,t.formatValue)(s.eventValue,i,o);if(0===O&&S>0){var B=(0,t.getLastNumberIndex)(V,r);s.currentLooseValue=V.substring(0,B)+l.decimal+V.substring(B)}else s.currentLooseValue=V;return(0,t.setSelection)(s,(0,t.getInitialPosition)(s.currentLooseValue,l)+1,s.currentLooseValue,$),s}if((0,t.isDecimalDuplicated)(s,l))return(0,t.setInvalid)(s,i,$,o),s;if(T)return s.eventValue=o.parseNumber(c,i)/100,s.currentLooseValue=(0,t.formatValue)(s.eventValue,i,o),s;if(String(s.currentLooseValue).replace(/[^\d]/g,"").length>15)return(0,t.setInvalid)(s,i,$,o),s;if(v!==c&&c&&D){var A=$.findIndex((function(e){var t=e[0],n=e[1],i=c.indexOf(t),r=c.indexOf(n),o=0===i,s=r===c.length-n.length,a=i+t.length!==m&&-1!==m&&c[i+t.length]!==l.decimal,d=r!==g&&-1!==g&&c[r-1]!==l.decimal;return t&&n?!a&&!d&&o&&s:t?!a&&o:!!n&&!d&&s}));if(-1===A)return(0,t.setInvalid)(s,i,$,o),s}if(v[v.length-1]===l.decimal&&S>0)return s.eventValue=o.parseNumber(c,i),s.currentLooseValue=b,s;if(s.currentLooseValue&&a&&(d+l.decimal+l.group).split("").findIndex((function(e){return c.split("").filter((function(t){return t===e})).length<u.split("").filter((function(t){return t===e})).length&&c.length+1===u.length&&(e!==l.decimal||0!==(0,t.getDecimalCount)(u.replace(p,""),l.decimal))}))>-1)return s.eventValue=o.parseNumber(e.prevLooseValue,i),s.currentLooseValue=e.prevLooseValue,s;var N=(0,t.getDecimalCount)(v,l.decimal),L="0"===v[v.length-1];if(M&&L&&N<O)return s.eventValue=o.parseNumber(s.currentLooseValue,i),s.currentLooseValue=(0,t.formatValue)(s.eventValue,i,o),s;if(N>0){var _=c.substring(0,y);if(L&&(!_||0!==u.indexOf(_))){s.eventValue=o.parseNumber(s.currentLooseValue,i);var F=(0,t.formatValue)(s.eventValue,i,o);return(0,t.setSelection)(s,(0,t.changeBasedSelection)(c,F,s.selectionEnd,M,p),F,$),s.currentLooseValue=F,s}if(N>S){var j=c.indexOf(l.decimal),z=c.substring(0,j)+c.substring(j,j+1+S)+c.substring(g,String(s.currentLooseValue).length);return s.eventValue=o.parseNumber(z,i),s.currentLooseValue=z,(0,t.setSelection)(s,s.selectionStart,z,$),s}if(O!==S&&N<=S&&L)return s.eventValue=o.parseNumber(s.currentLooseValue,i),s.currentLooseValue=b,s;if(N<O)return s.eventValue=o.parseNumber(s.currentLooseValue,i),s.currentLooseValue=(0,t.formatValue)(s.eventValue,i,o),s}}return s.eventValue=o.parseNumber(s.currentLooseValue,i),T&&(s.eventValue=s.eventValue/100),"number"==typeof s.eventValue?(F=(0,t.formatValue)(s.eventValue,i,o),1===c.length?(0,t.setSelection)(s,(0,t.getInitialPosition)(F,l),F,$):(0,t.setSelection)(s,(0,t.changeBasedSelection)(c,F,s.selectionEnd,M,p),F,$),s.currentLooseValue=F):s.currentLooseValue=(0,t.formatValue)(o.parseNumber(v),i,o),s}},6945:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633083,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"}},1781:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RadioButtonVue2=t.RadioButton=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=(i.inject,n(9680)),l=n(9680),d=n(6945),c={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=(0,a.guid)(),(0,l.validatePackage)(d.packageMetadata)},mounted:function(){this.input=(0,a.getRef)(this,"input")},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-".concat(a.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,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:o?function(){return{v3:!!o,inputRef:s(null)}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.ariaDescribedBy,s=i.checked,l=i.disabled,d=i.id,c=i.label,u=i.labelRender,p=i.labelPlacement,h=i.name,f=i.tabIndex,v=i.value,m=i.tag,g=c;if(u){var y=u?a.templateRendering.call(this,u,a.getListeners.call(this)):null;g=a.getTemplate.call(this,{h:t,template:y})}var b=a.getTemplate.call(this,{h:t,template:this.$props.content}),k=void 0!==g?t("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},[g]):null,w=t("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:d||this.calculatedId,name:h,disabled:l,tabindex:(0,a.getTabIndex)(f,l),"aria-describedby":o},id:d||this.calculatedId,name:h,class:this.inputClassName,ref:(0,a.setRef)(this,"input"),disabled:l,tabindex:(0,a.getTabIndex)(f,l),checked:this.v3?s:null,domProps:this.v3?void 0:{checked:s,value:v},style:this.$attrs.style,"aria-describedby":o,value:this.v3?v:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),S=t(m,"before"===p?[k,w,b,n]:[w,k,b,n]);return a.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:S,defaultSlots:n,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}};t.RadioButtonVue2=c;var u=c;t.RadioButton=u},829:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroupVue2=t.RadioGroup=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=(i.inject,n(1781)),l=n(9680),d=n(6945),c={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=(0,l.guid)(),(0,l.validatePackage)(d.packageMetadata),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=(0,l.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(){return this.$props.dir||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&(0,l.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:o?function(){return{v3:!!o,inputRef:s(null)}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.ariaLabelledBy,o=n.ariaDescribedBy,s=n.dataItems,d=n.disabled,c=n.name,u=n.labelPlacement,p=n.valid,h=s&&s.map((function(e,n){var i=this.checkedRadioValue===e.value,r=null===this.checkedRadioValue||void 0===this.checkedRadioValue,o=l.templateRendering.call(this,this.$props.item||e.item,l.getListeners.call(this));return t(a.RadioButton,{class:(0,l.classNames)("k-radio-item",{"k-disabled":e.disabled||d}),style:e.style,key:n,item:o,attrs:this.v3?void 0:{item:o,role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!d),labelPlacement:e.labelPlacement?e.labelPlacement:u,tabIndex:e.tabIndex?e.tabIndex:r&&0===n||i?0:-1,index:n,name:c||e.name||this.radioGroupName},role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!d),labelPlacement:e.labelPlacement?e.labelPlacement:u,tabIndex:e.tabIndex?e.tabIndex:r&&0===n||i?0:-1,index:n,name:c||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":o},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":o},[h])}};t.RadioGroupVue2=c;var u=c;t.RadioGroup=u},1740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8619:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3881:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5712:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5789:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3997:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8846:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RangeSliderVue2=t.RangeSlider=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=r.ref,l=r.inject,d=n(9680),c=n(721),u=n(5725),p=n(2569),h=n(6945),f={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(){(0,d.validatePackage)(h.packageMetadata)},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:s?function(){return{v3:!!s,inputRef:a(null),kendoLocalizationService:l("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,r=this,s=o||e,a=(0,u.provideLocalizationService)(this),l=(0,d.getDefaultSlots)(this),p=this.$props,h=p.id;return p.dir,s("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:(0,d.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-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},[s(d.Draggable,{onDrag:this.handleTrackDrag,on:this.v3?void 0:{drag:this.handleTrackDrag,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[s("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:i({flexGrow:1,position:"relative",touchAction:"none"},r.trackStyles)},[l&&s("ul",{class:"k-reset k-slider-items",style:i({},r.sliderItemsStyle)},[l]),s("div",{ref:"sliderTrackRef",class:"k-slider-track",style:r.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===r.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==r.percentStart&&null!==r.percentEnd&&s("div",{"data-selection":!0,attrs:r.v3?void 0:{"data-selection":!0,title:"".concat(r.computedValue.start," - ").concat(r.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(r.computedValue.start," - ").concat(r.computedValue.end),class:"k-slider-selection",style:r.vertical?{height:r.percentEnd-r.percentStart+"%",bottom:r.percentStart+"%"}:(n={},n["rtl"===r.currentDir?"right":"left"]=r.percentStart+"%",n.width=r.percentEnd-r.percentStart+"%",n)}),s("a",{ref:"startHandle",role:"slider",attrs:r.v3?void 0:{role:"slider",tabindex:(0,d.getTabIndex)(r.startTabIndex,r.$props.disabled,void 0),"aria-valuemin":r.min,"aria-valuemax":Math.max(r.max,r.computedValue.end),"aria-valuenow":r.computedValue.start,"aria-disabled":r.disabled?"true":void 0,title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle])},tabindex:(0,d.getTabIndex)(r.startTabIndex,r.$props.disabled,void 0),"aria-valuemin":r.min,"aria-valuemax":Math.max(r.max,r.computedValue.end),"aria-valuenow":r.computedValue.start,"aria-disabled":r.disabled?"true":void 0,class:"k-draghandle",title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle]),style:r.vertical?{bottom:"calc("+r.percentStart+"%)",zIndex:1}:"rtl"===r.currentDir?{right:"calc("+r.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+r.percentStart+"%)",zIndex:1},onKeydown:r.handleStartKeyDown,on:r.v3?void 0:{keydown:r.handleStartKeyDown}}),s("a",{ref:"endHandle",role:"slider",attrs:r.v3?void 0:{role:"slider",tabindex:(0,d.getTabIndex)(r.endTabIndex,r.$props.disabled,void 0),"aria-valuemin":Math.min(r.min,r.computedValue.start),"aria-valuemax":r.max,"aria-valuenow":r.computedValue.end,"aria-disabled":r.disabled?"true":void 0,title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle])},tabindex:(0,d.getTabIndex)(r.endTabIndex,r.$props.disabled,void 0),"aria-valuemin":Math.min(r.min,r.computedValue.start),"aria-valuemax":r.max,"aria-valuenow":r.computedValue.end,"aria-disabled":r.disabled?"true":void 0,class:"k-draghandle",title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle]),style:r.vertical?{bottom:"calc("+r.percentEnd+"%)",zIndex:1}:"rtl"===r.currentDir?{right:"calc("+r.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+r.percentEnd+"%)",zIndex:1},onKeydown:r.handleEndKeyDown,on:r.v3?void 0:{keydown:r.handleEndKeyDown}})])])]}:[s("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:i({flexGrow:1,position:"relative",touchAction:"none"},r.trackStyles)},[l&&s("ul",{class:"k-reset k-slider-items",style:i({},r.sliderItemsStyle)},[l]),s("div",{ref:"sliderTrackRef",class:"k-slider-track",style:r.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===r.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==r.percentStart&&null!==r.percentEnd&&s("div",{"data-selection":!0,attrs:r.v3?void 0:{"data-selection":!0,title:"".concat(r.computedValue.start," - ").concat(r.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(r.computedValue.start," - ").concat(r.computedValue.end),class:"k-slider-selection",style:r.vertical?{height:r.percentEnd-r.percentStart+"%",bottom:r.percentStart+"%"}:(n={},n["rtl"===r.currentDir?"right":"left"]=r.percentStart+"%",n.width=r.percentEnd-r.percentStart+"%",n)}),s("a",{ref:"startHandle",role:"slider",attrs:r.v3?void 0:{role:"slider",tabindex:(0,d.getTabIndex)(r.startTabIndex,r.$props.disabled,void 0),"aria-valuemin":r.min,"aria-valuemax":Math.max(r.max,r.computedValue.end),"aria-valuenow":r.computedValue.start,"aria-disabled":r.disabled?"true":void 0,title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle])},tabindex:(0,d.getTabIndex)(r.startTabIndex,r.$props.disabled,void 0),"aria-valuemin":r.min,"aria-valuemax":Math.max(r.max,r.computedValue.end),"aria-valuenow":r.computedValue.start,"aria-disabled":r.disabled?"true":void 0,class:"k-draghandle",title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle]),style:r.vertical?{bottom:"calc("+r.percentStart+"%)",zIndex:1}:"rtl"===r.currentDir?{right:"calc("+r.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+r.percentStart+"%)",zIndex:1},onKeydown:r.handleStartKeyDown,on:r.v3?void 0:{keydown:r.handleStartKeyDown}}),s("a",{ref:"endHandle",role:"slider",attrs:r.v3?void 0:{role:"slider",tabindex:(0,d.getTabIndex)(r.endTabIndex,r.$props.disabled,void 0),"aria-valuemin":Math.min(r.min,r.computedValue.start),"aria-valuemax":r.max,"aria-valuenow":r.computedValue.end,"aria-disabled":r.disabled?"true":void 0,title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle])},tabindex:(0,d.getTabIndex)(r.endTabIndex,r.$props.disabled,void 0),"aria-valuemin":Math.min(r.min,r.computedValue.start),"aria-valuemax":r.max,"aria-valuenow":r.computedValue.end,"aria-disabled":r.disabled?"true":void 0,class:"k-draghandle",title:a.toLanguageString(c.sliderDragTitle,c.messages[c.sliderDragTitle]),style:r.vertical?{bottom:"calc("+r.percentEnd+"%)",zIndex:1}:"rtl"===r.currentDir?{right:"calc("+r.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+r.percentEnd+"%)",zIndex:1},onKeydown:r.handleEndKeyDown,on:r.v3?void 0:{keydown:r.handleEndKeyDown}})])])])])},methods:{dispatchStateValue:function(e){var t=(0,p.rangeReducer)({start:this.computedValue.start,end:this.computedValue.end},i(i({},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 d.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?p.RANGE_ACTION.decrease:p.RANGE_ACTION.increase,key:"start",event:e});break;case d.Keys.up:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.increase,key:"start",event:e});break;case d.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?p.RANGE_ACTION.increase:p.RANGE_ACTION.decrease,key:"start",event:e});break;case d.Keys.down:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.decrease,key:"start",event:e});break;case d.Keys.home:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.min,key:"start",event:e});break;case d.Keys.end:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case d.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?p.RANGE_ACTION.decrease:p.RANGE_ACTION.increase,key:"end",event:e});break;case d.Keys.up:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.increase,key:"end",event:e});break;case d.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?p.RANGE_ACTION.increase:p.RANGE_ACTION.decrease,key:"end",event:e});break;case d.Keys.down:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.decrease,key:"end",event:e});break;case d.Keys.home:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.min,key:"end",event:e});break;case d.Keys.end:e.preventDefault(),this.dispatchStateValue({type:p.RANGE_ACTION.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 i="end"===n?p.RANGE_ACTION.end:p.RANGE_ACTION.start;this.dispatchStateValue({type:i,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?p.RANGE_ACTION.end:p.RANGE_ACTION.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?p.RANGE_ACTION.end:p.RANGE_ACTION.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}};t.RangeSliderVue2=f;var v=f;t.RangeSlider=v},2569:(e,t)=>{var n,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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.rangeReducer=t.RANGE_ACTION=void 0,function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(n=t.RANGE_ACTION||(t.RANGE_ACTION={})),t.rangeReducer=function(e,t){var r,o;switch(t.type){case n.start:if(void 0===t.payload)return e;r={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case n.end:if(void 0===t.payload)return e;r={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case n.min:r="start"===t.key?i(i({},e),{start:t.min}):i(i({},e),{end:Math.max(t.min,e.start)});break;case n.max:r="start"===t.key?i(i({},e),{start:Math.min(t.max,e.end)}):i(i({},e),{end:t.max});break;case n.increase:if(void 0===t.step||void 0===t.key)return e;o=e[t.key]+t.step,r="start"===t.key?o<t.min?i(i({},e),{start:t.min}):i(i({},e),{start:Math.min(o,e.end)}):o>t.max?i(i({},e),{end:t.max}):i(i({},e),{end:Math.max(o,e.start)});break;case n.decrease:if(void 0===t.step||void 0===t.key)return e;o=e[t.key]-t.step,r="start"===t.key?o<t.min?i(i({},e),{start:t.min}):i(i({},e),{start:Math.min(o,e.end)}):o>t.max?i(i({},e),{end:t.max}):i(i({},e),{end:Math.max(o,e.start)});break;default:r=e}return r}},373:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SliderVue2=t.Slider=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=i.inject,l=n(2857),d=n(9680),c=n(5725),u=n(721),p=n(4955),h=n(6945),f={name:"KendoSlider",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,change:null,blur:null,focus:null},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(){(0,d.validatePackage)(h.packageMetadata),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:o?function(){return{v3:!!o,inputRef:s(null),kendoLocalizationService:a("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=r||e,o=(0,c.provideLocalizationService)(this),s=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,a=(0,d.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:(0,d.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:(0,d.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:(0,d.classNames)("k-slider k-widget",{"k-focus":this.currentFocused,"k-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:(0,d.classNames)("k-slider-wrap")},[this.$props.buttons&&i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:o.toLanguageString(u.sliderDecreaseValue,u.messages[u.sliderDecreaseValue])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:o.toLanguageString(u.sliderDecreaseValue,u.messages[u.sliderDecreaseValue]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(d.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"}},[a&&i("ul",{class:"k-reset k-slider-items"},[a]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:s+"%"}:{width:s+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle]),attrs:n.v3?void 0:{title:o.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle])},style:n.$props.vertical?{bottom:s+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=s+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[a&&i("ul",{class:"k-reset k-slider-items"},[a]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:s+"%"}:{width:s+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle]),attrs:n.v3?void 0:{title:o.toLanguageString(u.sliderDragTitle,u.messages[u.sliderDragTitle])},style:n.$props.vertical?{bottom:s+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=s+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(l.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:o.toLanguageString(u.sliderIncreaseValue,u.messages[u.sliderIncreaseValue])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:o.toLanguageString(u.sliderIncreaseValue,u.messages[u.sliderIncreaseValue]),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(p.SLIDER_LABEL_ATTRIBUTE)))return!0;t=t.parentElement}return!1},onFocus:function(e){this.currentFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.currentFocused=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=void 0;e.keyCode===d.Keys.left||e.keyCode===d.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===d.Keys.right||e.keyCode===d.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===d.Keys.home?t=this.$props.min:e.keyCode===d.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}})}}};t.SliderVue2=f;var v=f;t.Slider=v},4955:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SliderLabelVue2=t.SliderLabel=t.SLIDER_LABEL_ATTRIBUTE=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=(r.ref,n(9680));t.SLIDER_LABEL_ATTRIBUTE="data-slider-label";var l={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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=o||e,r=this.currentDir,s=(0,a.getDefaultSlots)(this),l=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),d=this.kendoVertical?{bottom:"".concat(l,"%"),height:"1px",width:"100%"}:((t={})["rtl"===r?"right":"left"]="".concat(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:i({zIndex:1,position:"absolute"},d)},[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)}}};t.SliderLabelVue2=l;var d=l;t.SliderLabel=d},2504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchVue2=t.Switch=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(5725),l=n(721),d=n(6945),c={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(){(0,s.validatePackage)(d.packageMetadata),this._id=(0,s.guid)(),this.defaultValidationMessage=(0,a.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-".concat(s.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,e["k-rounded-".concat(s.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-".concat(s.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-".concat(s.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=(0,s.getRef)(this,"element"),this.input=(0,s.getRef)(this,"input"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,s.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.disabled,o=n.id,a=n.offLabel,l=n.onLabel,d=n.tabIndex,c=n.required;return t("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},[t("span",{class:this.switchTrackClass,id:o||this._id,attrs:this.v3?void 0:{id:o||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,s.getTabIndex)(d,i,void 0),accesskey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:(0,s.setRef)(this,"element"),tabindex:(0,s.getTabIndex)(d,i,void 0),accesskey:this.$props.accessKey},[t("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:(0,s.setRef)(this,"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:s.noop,on:this.v3?void 0:{change:s.noop}}),t("span",{class:"k-switch-label-on"},[l]),t("span",{class:"k-switch-label-off"},[a]),t("span",{class:"k-switch-thumb-wrap"},[t("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(l.switchValidation,l.messages[l.switchValidation]))},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!==s.Keys.space&&t!==s.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))}}};t.SwitchVue2=c;var u=c;t.Switch=u},847:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TextAreaVue2=t.TextArea=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(6945),d={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:a.templateDefinition,inputSuffix:a.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(){(0,a.validatePackage)(l.packageMetadata),this.calculatedId=(0,a.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,o=t.required,s=t.showLoadingIcon,l=t.resizable,d=t.autoSize,c=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=c,e["k-required"]=o,e["k-loading"]=s,e["k-resize-".concat(l)]=d?"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:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=this,n=o||e,r=this.$props,s=r.ariaDescribedBy,l=r.ariaLabelledBy,d=r.autoSize,c=r.disabled,u=r.readOnly,p=r.required,h=r.rows,f=r.id,v=r.name,m=r.placeholder,g=r.tabIndex,y=r.iconName,b=r.showValidationIcon,k=r.showLoadingIcon,w=r.showClearButton,S=i({id:f||this.calculatedId,name:v,disabled:c,rows:h,placeholder:m,readOnly:u,required:p,tabIndex:(0,a.getTabIndex)(g,c),"aria-labelledby":l,"aria-describedby":s,"aria-multiline":!0,"aria-disabled":c||void 0},this.$attrs),C=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),x=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),O=a.getTemplate.call(this,{h:n,template:C,additionalProps:{value:this.computedValue,valid:this.isValid}}),I=a.getTemplate.call(this,{h:n,template:x,additionalProps:{value:this.computedValue,valid:this.isValid}}),$=n("textarea",i(i({},S),{attrs:this.v3?void 0:S,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:d?{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},[O]),n("span",{class:"k-hstack k-flex"},[y&&n("span",{class:"k-flex-wrap"},[n("span",{class:"k-input-icon k-icon k-i-".concat(y)})]),$,b&&this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-check"})]),b&&!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},[I])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight="".concat(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})}}};t.TextAreaVue2=d;var c=d;t.TextArea=c},1178:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1075:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1201:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4738:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorVue2=t.Error=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(6957),a=n(9680),l={name:"KendoError",props:{id:String,direction:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}}},created:function(){(0,a.validatePackage)(s.packageMetadata)},computed:{errorClassName:function(){return{"k-form-error":!0,"k-text-start":"start"===this.$props.direction,"k-text-end":"end"===this.$props.direction}}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:"alert"},role:"alert",class:this.errorClassName},[n])}};t.ErrorVue2=l;var d=l;t.Error=d},9675:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingLabelVue2=t.FloatingLabel=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.inject,a=n(9680),l=n(5725),d=n(8538),c=n(6957),u={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(){(0,a.validatePackage)(c.packageMetadata)},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:o?function(){return{v3:!!o,kendoLocalizationService:s("kendoLocalizationService",{})}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.label,s=i.editorId,c=i.id,u=i.optional,p=(0,l.provideLocalizationService)(this),h=u?p.toLanguageString(d.labelsOptional,d.messages[d.labelsOptional]):"",f=h&&t("span",{class:"k-label-optional"},[h]);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,o?s?t("label",{id:c,attrs:this.v3?void 0:{id:c,for:s},for:s,class:this.labelClassNames},[o,f]):t("span",{id:c,attrs:this.v3?void 0:{id:c},class:this.labelClassNames},[o,f]):null])}};t.FloatingLabelVue2=u;var p=u;t.FloatingLabel=p},1530:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HintVue2=t.Hint=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(6957),a=n(9680),l={name:"KendoHint",props:{id:String,direction:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}}},created:function(){(0,a.validatePackage)(s.packageMetadata)},computed:{hintClassName:function(){return{"k-form-hint":!0,"k-text-start":"start"===this.$props.direction,"k-text-end":"end"===this.$props.direction}}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id},class:this.hintClassName},[n])}};t.HintVue2=l;var d=l;t.Hint=d},9434:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LabelVue2=t.Label=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.inject,a=n(9680),l=n(8538),d=n(5725),c=n(6957),u={name:"KendoLabel",props:{id:String,editorId:String,editorRef:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,optional:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(c.packageMetadata)},computed:{labelClassName:function(){return{"k-label":!0,"k-label-empty":!this.defaultSlots,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":!0===this.$props.editorDisabled}}},methods:{onLabelClick:function(e){if(this.$props.editorRef&&this.$props.editorRef.current&&!this.$props.editorDisabled){this.$props.editorRef.current.focus&&(e.preventDefault(),this.$props.editorRef.current.focus());var t=this.$props.editorRef.current.actionElement;t&&(e.preventDefault(),t.click())}}},setup:o?function(){return{v3:!!o,kendoLocalizationService:s("kendoLocalizationService",{})}}:void 0,render:function(e){var t=r||e;this.defaultSlots=(0,a.getDefaultSlots)(this);var n=(0,d.provideLocalizationService)(this),i=this.$props,o=i.id,s=i.editorId,c=i.optional?n.toLanguageString(l.labelsOptional,l.messages[l.labelsOptional]):"",u=c&&t("span",{class:"k-label-optional"},[c]);return t("label",{id:o,attrs:this.v3?void 0:{id:o,for:s},for:s,onClick:this.onLabelClick,on:this.v3?void 0:{click:this.onLabelClick},class:this.labelClassName},[this.defaultSlots,u])}};t.LabelVue2=u;var p=u;t.Label=p},4305:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HintVue2=t.Hint=t.ErrorVue2=t.Error=t.LabelVue2=t.Label=t.FloatingLabelVue2=t.FloatingLabel=void 0;var i=n(9434);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return i.Label}}),Object.defineProperty(t,"LabelVue2",{enumerable:!0,get:function(){return i.LabelVue2}});var r=n(4738);Object.defineProperty(t,"Error",{enumerable:!0,get:function(){return r.Error}}),Object.defineProperty(t,"ErrorVue2",{enumerable:!0,get:function(){return r.ErrorVue2}});var o=n(1530);Object.defineProperty(t,"Hint",{enumerable:!0,get:function(){return o.Hint}}),Object.defineProperty(t,"HintVue2",{enumerable:!0,get:function(){return o.HintVue2}});var s=n(9675);Object.defineProperty(t,"FloatingLabel",{enumerable:!0,get:function(){return s.FloatingLabel}}),Object.defineProperty(t,"FloatingLabelVue2",{enumerable:!0,get:function(){return s.FloatingLabelVue2}})},8538:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.labelsOptional=void 0,t.labelsOptional="labels.optional",t.messages=((n={})[t.labelsOptional]="(Optional)",n)},6957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633052,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"}},9318:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvatarVue2=t.Avatar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4621),a=n(9347),l=n(9680),d={name:"KendoAvatar",props:{type:{type:String,default:s.avatarType.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(){(0,l.validatePackage)(a.packageMetadata)},setup:o?function(){return{v3:!!o}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),r=t.rounded,o=t.fillMode,s=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-".concat(l.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-".concat(l.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-avatar-".concat(o)]=o,e["k-avatar-".concat(o,"-").concat(s)]=Boolean(o&&s),e},innerClass:function(){var e;return(e={})["k-avatar-".concat(this.$props.type)]=this.$props.type,e}},render:function(e){var t=r||e,n=(0,l.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}};t.AvatarVue2=d;var c=d;t.Avatar=c},215:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardVue2=t.Card=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4621),a=n(4621),l=n(9347),d=n(9680),c={name:"KendoCard",props:{dir:String,type:{type:String,default:s.cardType.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:a.cardOrientation.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){(0,d.validatePackage)(l.packageMetadata)},setup:o?function(){return{v3:!!o}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==a.cardOrientation.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-".concat(this.$props.type)]=this.$props.type!==s.cardType.DEFAULT,e["k-card-".concat(t)]=!0,e}},render:function(e){var t=r||e,n=(0,d.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}};t.CardVue2=c;var u=c;t.Card=u},7842:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardActionsVue2=t.CardActions=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a=n(4621),l={name:"KendoCardActions",props:{layout:{type:String,default:a.cardActionsLayout.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:a.cardOrientation.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:o?function(){return{v3:!!o}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-".concat(this.$props.layout)]=!0,e["k-card-actions-".concat(this.$props.orientation!==a.cardOrientation.HORIZONTAL?"vertical":"horizontal")]=!0,e}},render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}};t.CardActionsVue2=l;var d=l;t.CardActions=d},5617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardBodyVue2=t.CardBody=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardBody",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-card-body"},[(0,s.getDefaultSlots)(this)])}};t.CardBodyVue2=a;var l=a;t.CardBody=l},6107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardFooterVue2=t.CardFooter=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardFooter",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-card-footer"},[(0,s.getDefaultSlots)(this)])}};t.CardFooterVue2=a;var l=a;t.CardFooter=l},3791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardHeaderVue2=t.CardHeader=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardHeader",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-card-header"},[(0,s.getDefaultSlots)(this)])}};t.CardHeaderVue2=a;var l=a;t.CardHeader=l},7041:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardImageVue2=t.CardImage=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardImage",props:{src:String},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e;return(0,s.getDefaultSlots)(this),t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}};t.CardImageVue2=a;var l=a;t.CardImage=l},7753:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSubtitleVue2=t.CardSubtitle=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardSubtitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-card-subtitle"},[(0,s.getDefaultSlots)(this)])}};t.CardSubtitleVue2=a;var l=a;t.CardSubtitle=l},2023:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardTitleVue2=t.CardTitle=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoCardTitle",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-card-title"},[(0,s.getDefaultSlots)(this)])}};t.CardTitleVue2=a;var l=a;t.CardTitle=l},4621:(e,t)=>{var n,i,r,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.cardActionsLayout=t.cardType=t.cardOrientation=t.avatarType=t.avatarShape=void 0,(s=t.avatarShape||(t.avatarShape={})).CIRCLE="circle",s.SQUARE="square",s.ROUNDED="rounded",s.RECTANGLE="rectangle",(o=t.avatarType||(t.avatarType={})).TEXT="text",o.IMAGE="image",o.ICON="icon",(r=t.cardOrientation||(t.cardOrientation={})).HORIZONTAL="horizontal",r.VERTICAL="vertical",(i=t.cardType||(t.cardType={})).DEFAULT="default",i.primary="primary",i.INFO="info",i.SUCCESS="success",i.WARNING="warning",i.ERROR="error",(n=t.cardActionsLayout||(t.cardActionsLayout={})).START="start",n.CENTER="center",n.END="end",n.STRETCHED="stretched"},4296:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerVue2=t.Drawer=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(7888),a=n(9680),l=n(9347),d={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(){(0,a.validatePackage)(l.packageMetadata)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,o=e.mini,s=e.width,l=e.miniWidth,d=e.items,c=e.item,u=c?a.templateRendering.call(this,c,a.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:r,mini:o,width:s,miniWidth:l,items:d,item:u}}},mounted:function(){this.currentDir=(0,a.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,o=e.mini,s=e.width,l=e.miniWidth,d=e.items,c=e.item,u=c?a.templateRendering.call(this,c,a.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=o,this.drawer.width=s,this.drawer.miniWidth=l,this.drawer.items=d,this.drawer.item=u},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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.items,l=i.tabIndex,d=i.mode,c=i.expanded,u=i.item,p=u?a.templateRendering.call(this,u,a.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"===d&&c&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),o&&t(s.DrawerNavigation,{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)}}};t.DrawerVue2=d;var c=d;t.Drawer=c},751:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerContentVue2=t.DrawerContent=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={name:"KendoDrawerContent",setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",{class:"k-drawer-content"},[(0,s.getDefaultSlots)(this)])}};t.DrawerContentVue2=a;var l=a;t.DrawerContent=l},6300:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerItemVue2=t.DrawerItem=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l={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-selected":e.selected,"k-disabled":t}}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=(0,a.getDefaultSlots)(this),i=this.$props,r=i.text,s=i.icon,l=i.separator,d=i.disabled,c=i.selected,u=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":c,"aria-disabled":d,tabindex:(0,a.getTabIndex)(u,d)},"aria-selected":c,"aria-disabled":d,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabindex:(0,a.getTabIndex)(u,d)},[v?n:[s&&t("span",{class:"k-icon "+s}),!h&&f?null:t("span",{class:"k-item-text"},[r])]])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},handleClick:function(){if(!this.disabled){var e={element:this.$el,focus:this.focus,props:i(i({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}};t.DrawerItemVue2=l;var d=l;t.DrawerItem=d},7888:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerNavigationVue2=t.DrawerNavigation=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(6300),l=n(9680),d={type:"slide",duration:200},c={type:"slide",duration:0},u={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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=(0,l.getDefaultSlots)(this),r=this.kendoDrawer,s=r.animation,u=r.expanded,p=r.mode,h=r.position,f=r.mini,v=r.dir,m=r.width,g=r.miniWidth,y=r.items,b="boolean"!=typeof s?s:!1===s?c:d,k=m||240,w=g||50,S={opacity:1,flexBasis:k+"px",WebkitTransition:"all "+(b&&b.duration)+"ms",transition:"all "+(b&&b.duration)+"ms"},C={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(b&&b.duration)+"ms",transition:"all "+(b&&b.duration)+"ms"},x={opacity:f?1:0,flexBasis:f?w+"px":0,WebkitTransition:"all "+(b&&b.duration)+"ms",transition:"all "+(b&&b.duration)+"ms"},O={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(b&&b.duration)+"ms",transition:"all "+(b&&b.duration)+"ms"},I={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(b&&b.duration)+"ms",transition:"all "+(b&&b.duration)+"ms"},$={transform:"translateX(0%)",WebkitTransitionDuration:(b&&b.duration)+"ms",transitionDuration:(b&&b.duration)+"ms"},D=u?"push"===p?S:C:"push"===p?x:"ltr"===v&&"start"===h||"rtl"===v&&"end"===h?f?$:O:f?$:I,M=y&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":u},title:"drawer-list","aria-expanded":u},[y.map((function(e,n){var r=this.$props.item;!r||r.type||r.render||(r=l.templateRendering.call(this,this.$props.item,l.getListeners.call(this)));var o=t(a.DrawerItem,{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 l.getTemplate.call(this,{h:t,template:r,defaultRendering:o,additionalProps:i(i({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:D,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!u&&f&&"overlay"===p?{width:w+"px"}:{width:k+"px"}},[M||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}};t.DrawerNavigationVue2=u;var p=u;t.DrawerNavigation=p},252:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9100:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8754:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3182:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5387:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},14:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9231:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(5859),t),r(n(2300),t),r(n(9879),t),r(n(7259),t),r(n(2777),t),r(n(215),t),r(n(3791),t),r(n(2023),t),r(n(5617),t),r(n(7842),t),r(n(7041),t),r(n(7753),t),r(n(6107),t),r(n(9318),t),r(n(4296),t),r(n(1215),t),r(n(7888),t),r(n(5387),t),r(n(751),t),r(n(9100),t),r(n(6300),t),r(n(8754),t),r(n(3182),t),r(n(14),t),r(n(252),t),r(n(4615),t),r(n(3372),t),r(n(9025),t),r(n(7450),t),r(n(8534),t),r(n(5835),t),r(n(9428),t),r(n(1407),t),r(n(6148),t),r(n(6489),t),r(n(5259),t),r(n(2961),t),r(n(495),t),r(n(9591),t),r(n(5035),t),r(n(6129),t),r(n(2203),t),r(n(4765),t),r(n(4599),t),r(n(2469),t),r(n(9613),t),r(n(9611),t),r(n(5178),t),r(n(8809),t)},5259:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuVue2=t.Menu=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(9680),d=n(9840),c=n(9436),u=n(7838),p=n(8971),h=n(1342),f=n(794),v=n(6634),m=n(9347),g={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(){(0,l.validatePackage)(m.packageMetadata),this.mouseOverHandler=new v.MouseOverHandler(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=(0,l.guid)(),this.directionHolder=new f.DirectionHolder,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1,this.menuWrapperEl=(0,a.getRef)(this,"menuWrapper")},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:s?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:d.EMPTY_ID,hoveredItemId:d.EMPTY_ID,tabbableItemId:d.ZERO_LEVEL_ZERO_ITEM_ID,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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var n=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?(0,d.getDirectParentId)(this.focusedItemId):d.EMPTY_ID;return t("div",{class:this.getMenuWrapperClassName(),ref:(0,a.setRef)(this,"menuWrapper")},[t(h.MenuItemInternalsList,{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:n,tabbableItemId:this.tabbableItemId,itemRender:a.templateRendering.call(this,this.$props.itemRender,a.getListeners.call(this)),linkRender:a.templateRendering.call(this,this.$props.linkRender,a.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:a.templateRendering.call(this,this.$props.itemRender,a.getListeners.call(this)),linkRender:a.templateRendering.call(this,this.$props.linkRender,a.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=d.EMPTY_ID,this.hoveredItemId=d.EMPTY_ID,this.tabbableItemId=d.ZERO_LEVEL_ZERO_ITEM_ID},onKeyDown:function(e){if(this.focusedItemId!==d.EMPTY_ID){var t=(0,d.getItemById)(this.focusedItemId,this.currentItems),n=(0,u.getNewItemIdUponKeyboardNavigation)(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==l.Keys.enter&&e.keyCode!==l.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}),(0,p.getHoverOpenDelay)(i({},this.$props)))}},onItemMouseLeave:function(e){if(this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemLeaveRequest=window.setTimeout((function(){t.setHoveredItemId(d.EMPTY_ID),t.itemLeaveRequest=null}),(0,p.getHoverCloseDelay)(i({},this.$props)))}},onItemMouseDown:function(){this.mouseOverHandler.handleItemMouseDown()},onItemFocus:function(e){this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},onItemClick:function(e,t){var n=(0,d.getItemById)(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(d.EMPTY_ID)},getInputItem:function(e){return(0,d.getItemById)(e,this.inputItems)},setFocusedItemId:function(e){var t=e===d.EMPTY_ID?this.tabbableItemId:(0,d.getRootParentId)(e),n=e===d.EMPTY_ID||(0,d.isIdEmptyOrZeroLevel)(this.hoveredItemId)&&(0,d.isIdEmptyOrZeroLevel)(e)?this.hoveredItemId:d.EMPTY_ID;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){(0,d.isIdEmptyOrZeroLevel)(e)&&(0,d.isIdEmptyOrZeroLevel)(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=d.EMPTY_ID,this.tabbableItemId=d.ZERO_LEVEL_ZERO_ITEM_ID)},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=c.prepareInputItemsForInternalWork.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.MenuVue2=g;var y=g;t.Menu=y},495:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemArrowVue2=t.MenuItemArrow=t.leftArrowClass=t.rightArrowClass=t.downArrowClass=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(3234);t.downArrowClass="k-i-arrow-60-down",t.rightArrowClass="k-i-arrow-60-right",t.leftArrowClass="k-i-arrow-60-left";var a={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||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,n=(0,s.getChildrenPosition)(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[t.downArrowClass]="downward"===n,e[t.rightArrowClass]="rightward"===n,e[t.leftArrowClass]="leftward"===n,e}}};t.MenuItemArrowVue2=a;var l=a;t.MenuItemArrow=l},5213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemInternalVue2=t.MenuItemInternal=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.ref,a=n(9680),l=n(4866),d=n(9840),c=n(3234),u=n(2961),p=n(1342),h=n(495),f={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=(0,a.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=(0,a.getRef)(this,"kendoAnchor",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&&(0,d.shouldOpenItem)(e.item.id,e.lastItemIdToBeOpened)&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return(0,a.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":(0,d.isFirstItemFromSiblings)(t.id),"k-last":t.isLastFromSiblings,"k-disabled":t.disabled})[t.cssClass?t.cssClass:""]=t.cssClass,e}},setup:o?function(){return{v3:!!o,kendoAnchorRef:s(null)}}:void 0,render:function(e){var t=this,n=r||e,i=this.$props.item,o=i.id,s=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-".concat(this.$props.item.icon),role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},d=function(){return this.$props.item.items.length>0?n(h.MenuItemArrow,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:(0,c.convertBoolDirectionToString)(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:(0,c.convertBoolDirectionToString)(this.$props.isDirectionRightToLeft),key:"2"}):null},f=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?(0,c.getDOMElementId)(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?(0,c.getDOMElementId)(this.$props.menuGuid,o):void 0,ref:(0,a.setRef)(this,"kendoAnchor",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 a.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]),r=a.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:f,itemId:i.id,key:"1"}}),o=n(u.MenuItemLink,{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),r,d.call(e)]]}:[[s.call(e),r,d.call(e)]]);return a.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:o,additionalProps:{item:f,itemId:i.id,opened:this.currentOpened,dir:(0,c.convertBoolDirectionToString)(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=(0,c.getPopupSettings)(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(l.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(p.MenuItemInternalsList,{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(p.MenuItemInternalsList,{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()}}};t.MenuItemInternalVue2=f;var v=f;t.MenuItemInternal=v},1342:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemInternalsListVue2=t.MenuItemInternalsList=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(5213),a=n(3234),l={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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||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?(0,a.getDOMElementId)(this.$props.menuGuid,n):void 0},id:void 0!==n?(0,a.getDOMElementId)(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(s.MenuItemInternal,{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())}}};t.MenuItemInternalsListVue2=l;var d=l;t.MenuItemInternalsList=d},2961:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemLinkVue2=t.MenuItemLink=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={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=r||e,n=(0,s.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])}};t.MenuItemLinkVue2=a;var l=a;t.MenuItemLink=l},7209:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.POPUP_SETTINGS=t.POPUP_SETTINGS_RTL=void 0;var n={vertical:"top",horizontal:"left"},i={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},o={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:i,collision:r},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:i,collision:o}},t.POPUP_SETTINGS={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:n,collision:r},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:n,collision:o}}},5035:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9591:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},794:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionHolder=void 0;var n=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}();t.DirectionHolder=n},6634:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MouseOverHandler=void 0;var n=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}();t.MouseOverHandler=n},7838:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNewItemIdUponKeyboardNavigation=void 0;var i=n(9680),r=n(9840),o=/\S/;t.getNewItemIdUponKeyboardNavigation=function(e,t,n,s,a,l){var d,c=g();switch(n){case i.Keys.left:return a?l?f():p():l?h():u();case i.Keys.right:return a?l?p():f():l?u():h();case i.Keys.up:return a?b():(0,r.isIdZeroLevel)(t)?m():b();case i.Keys.down:return a?k():(0,r.isIdZeroLevel)(t)?v():k();case i.Keys.enter:case i.Keys.space:return c.disabled?t:y()?(0,r.getFirstChildId)(t):(0,r.getRootParentId)(t);case i.Keys.home:return w()[0].id;case i.Keys.end:return(d=w())[d.length-1].id;case i.Keys.esc:return(0,r.isIdZeroLevel)(t)?t:(0,r.getDirectParentId)(t);default:return 1===s.length&&o.test(s)?function(){var e=s.toLowerCase(),n=w(),i=Number((0,r.getShortId)(t)),o=n.slice(i+1).concat(n.slice(0,i+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return o?o.id:t}():t}function u(){return(0,r.isIdZeroLevel)(t)?b():(0,r.isIdFirstLevel)(t)?v(b((0,r.getRootParentId)(t))):(0,r.getDirectParentId)(t)}function p(){return(0,r.isIdZeroLevel)(t)?m():(0,r.getDirectParentId)(t)}function h(){return(0,r.isIdZeroLevel)(t)?k():v(y()?t:k((0,r.getRootParentId)(t)))}function f(){return v((0,r.isIdZeroLevel)(t)||y()?t:k((0,r.getRootParentId)(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),(0,r.getItemById)(n,i)}function y(e){return g(e).items.length>0}function b(e){return C(!1,e)}function k(e){return C(!0,e)}function w(){return(0,r.isIdZeroLevel)(t)?e:g((0,r.getDirectParentId)(t),e).items}function S(e,n){void 0===n&&(n=t);var i=g(n);return y(n)&&!i.disabled?e?(0,r.getFirstChildId)(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),(0,r.isIdZeroLevel)(i))return(0,r.getDirectSiblingIdForLevelZero)(n,i,e.length);var o=(0,r.getDirectParentId)(i),s=(0,r.getShortId)(i),a=g(o).items.length;return(0,r.createId)((0,r.getDirectSiblingIdForLevelZero)(n,s,a),o)}}},8971:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHoverCloseDelay=t.getHoverOpenDelay=void 0,t.getHoverOpenDelay=function(e){return void 0!==e.hoverOpenDelay?e.hoverOpenDelay:e.openOnClick?0:100},t.getHoverCloseDelay=function(e){return void 0!==e.hoverCloseDelay?e.hoverCloseDelay:100}},9840:(e,t)=>{function n(e){return o(e)?e:e.split(t.SEPARATOR)[0]}function i(e){if(o(e))return e;var n=e.indexOf(t.SEPARATOR);return e.substring(n+1)}function r(e,n){return n?n+t.SEPARATOR+e:e}function o(e){return e===t.EMPTY_ID||e.indexOf(t.SEPARATOR)<0}function s(e){return e!==t.EMPTY_ID&&e.indexOf(t.SEPARATOR)<0}function a(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?e:e.substring(n+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.getDirectSiblingIdForLevelZero=t.getShortId=t.isFirstItemFromSiblings=t.isIdFirstLevel=t.isIdZeroLevel=t.isIdEmptyOrZeroLevel=t.getDirectParentId=t.createId=t.shouldOpenItem=t.getFirstChildId=t.getIdWithoutRootParentId=t.getRootParentId=t.getItemById=t.SEPARATOR=t.ZERO_LEVEL_ZERO_ITEM_ID=t.EMPTY_ID=void 0,t.EMPTY_ID="",t.ZERO_LEVEL_ZERO_ITEM_ID="0",t.SEPARATOR="_",t.getItemById=function e(t,r){if(s(t))return r[Number(t)];var o=r[Number(n(t))];return o.items?e(i(t),o.items):void 0},t.getRootParentId=n,t.getIdWithoutRootParentId=i,t.getFirstChildId=function(e){return r("0",e)},t.shouldOpenItem=function(e,n){return 0===n.indexOf(e)&&(n.length===e.length||n.charAt(e.length)===t.SEPARATOR)},t.createId=r,t.getDirectParentId=function(e){var n=e.lastIndexOf(t.SEPARATOR);return n<0?t.EMPTY_ID:e.substring(0,n)},t.isIdEmptyOrZeroLevel=o,t.isIdZeroLevel=s,t.isIdFirstLevel=function(e){return 1===function(e){return e.split(t.SEPARATOR).length-1}(e)},t.isFirstItemFromSiblings=function(e){return a(e)===t.ZERO_LEVEL_ZERO_ITEM_ID},t.getShortId=a,t.getDirectSiblingIdForLevelZero=function(e,t,n){return s(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}},3234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDOMElementId=t.convertBoolDirectionToString=t.getChildrenPosition=t.getPopupSettings=void 0;var i=n(7209),r=n(9840);function o(e,t,n){return(0,r.isIdZeroLevel)(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}t.getPopupSettings=function(e,t,n){var r=o(e,t,n);return n?"downward"===r?i.POPUP_SETTINGS_RTL.downward:i.POPUP_SETTINGS_RTL.leftward:"downward"===r?i.POPUP_SETTINGS.downward:i.POPUP_SETTINGS.rightward},t.getChildrenPosition=o,t.convertBoolDirectionToString=function(e){return e?"rtl":"ltr"},t.getDOMElementId=function(e,t){return"".concat(e,"_").concat(t)}},9436:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareInputItemsForInternalWork=void 0;var i=n(9680),r=n(9840);function o(e){var t={},n=e.text,r=e.url,o=e.icon,s=e.disabled,a=e.cssClass,l=e.cssStyle,d=e.render,c=e.linkRender,u=e.contentRender,p=e.data;return void 0!==n&&(t.text=n),void 0!==r&&(t.url=r),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!==d&&(t.render=i.templateRendering.call(this,d,i.getListeners.call(this))),void 0!==c&&(t.linkRender=i.templateRendering.call(this,c,i.getListeners.call(this))),void 0!==u&&(t.contentRender=i.templateRendering.call(this,u,i.getListeners.call(this))),void 0!==p&&(t.data=p),t}function s(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i],l=o.call(this,s);l.id=(0,r.createId)(i.toString(),t),l.isLastFromSiblings=i===e.length-1,l.items=a.call(this,s,l),n.push(l)}return n}function a(e,t){return e.contentRender?[{contentParentItemId:t.id,id:(0,r.createId)(r.ZERO_LEVEL_ZERO_ITEM_ID,t.id),isLastFromSiblings:!0,contentRender:i.templateRendering.call(this,e.contentRender,i.getListeners.call(this)),items:[]}]:e.items?s.call(this,e.items,t.id):[]}t.prepareInputItemsForInternalWork=function(e){return e&&e.length>0?{items:s.call(this,e),inputItems:e}:{items:[],inputItems:[]}}},9347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633161,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"}},4765:(e,t,n)=>{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},i.apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelBarVue2=t.PanelBar=void 0;var o=n(1895),s=o.h,a=o.version&&"3"===o.version[0],l=n(4599),d=n(2469),c=n(9680),u=n(9680),p=n(9347),h=n(5734),f={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,(0,u.validatePackage)(p.packageMetadata)},data:function(){var e=(0,d.getInitialState)(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=(0,d.getFirstId)(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=i(i({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return d.renderChildren.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=(0,c.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(l.PanelBarItem,i(i({props:this.v3?void 0:i(i({},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((0,d.flatChildren)(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=r(r([],t.parentUniquePrivateKey,!0),[t.uniquePrivateKey],!1),(0,d.isArrayEqual)(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?r([],t.parentUniquePrivateKey,!0):[]);break;case"multiple":var o=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===o?n.push(t.uniquePrivateKey):n.splice(o,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=(0,d.flatVisibleChildren)(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 h.NavigationAction.Previous:n=-1,this.onFocus(e,n);break;case h.NavigationAction.Next:n=1,this.onFocus(e,n);break;case h.NavigationAction.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 c.Keys.left:n=t?h.NavigationAction.Next:h.NavigationAction.Previous;break;case c.Keys.up:n=h.NavigationAction.Previous;break;case c.Keys.right:n=t?h.NavigationAction.Previous:h.NavigationAction.Next;break;case c.Keys.down:n=h.NavigationAction.Next;break;case c.Keys.space:case c.Keys.enter:n=h.NavigationAction.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}};t.PanelBarVue2=f;var v=f;t.PanelBar=v},5657:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelBarGroupVue2=t.PanelBarGroup=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(8895),l=n(9680),d=n(4599),c={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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=this.$props,r=n.item,s=n.items,c=n.uniquePrivateKey,u=n.disabled,p=n.expanded,h=n.animation,f=n.keepItemsMounted,v=l.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:i(i({},this.$props),{show:this.show})}),m=!u&&p,g=m||f?s?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"}},[s.map((function(e){return t(d.PanelBarItem,i(i({props:this.v3?void 0:i(i({},e),{item:r})},e),{item:r}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[v]):null:null;return void 0!==h&&!h||u?g:t(a.Reveal,{appear:m,attrs:this.v3?void 0:{appear:m,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!f},transitionEnterDuration:200,transitionExitDuration:200,key:c+"_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)}}};t.PanelBarGroupVue2=c;var u=c;t.PanelBarGroup=u},4599:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PanelBarItemVue2=t.PanelBarItem=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(5657),d={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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=o||e,r=this.$props,s=r.id,d=r.item,c=r.icon,u=r.items,p=r.content,h=r.title,f=r.uniquePrivateKey,v=r.disabled,m=r.selected,g=r.focused,y=r.expanded,b=r.className,k=r.level,w=r.headerClassName,S=r.animation,C=r.keepItemsMounted,x=!!u||p,O=(0,a.classNames)("k-item",{"k-panelbar-header":0===k,"k-panelbar-item":0!==k,"k-expanded":y&&x},"k-level-".concat(k),b),I=(0,a.classNames)("k-link",{"k-selected":!v&&m,"k-focus":g,"k-disabled":v},w),$=(0,a.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=y&&x,t["k-panelbar-collapse"]=y&&x,t["k-i-arrow-chevron-down"]=!y&&x,t["k-panelbar-expand"]=!y&&x,t)),D=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(c){var e=(0,a.classNames)("k-panelbar-item-icon","k-icon","k-i-"+c);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),M=v||!u&&!p?null:n("span",{class:$}),T=u||p?n(l.PanelBarGroup,{items:u,attrs:this.v3?void 0:{items:u,item:d,content:p,uniquePrivateKey:f,disabled:v,expanded:y,animation:S,keepItemsMounted:C},item:d,content:p,uniquePrivateKey:f,disabled:v,expanded:y,animation:S,keepItemsMounted:C}):null,P=a.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:i({},this.$props)});return n("li",{id:s,attrs:this.v3?void 0:{id:s,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!y,"aria-selected":!v&&m,"aria-expanded":!v&&y&&x},class:O,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!y,"aria-selected":!v&&m,"aria-expanded":!v&&y&&x},[n("span",{class:I,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[D,this.$props.header?P:n("span",{class:"k-panelbar-item-text"},[h]),M]),T])},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}}};t.PanelBarItemVue2=d;var c=d;t.PanelBarItem=c},5734:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationAction=void 0,(n=t.NavigationAction||(t.NavigationAction={}))[n.Toggle=0]="Toggle",n[n.Next=1]="Next",n[n.Previous=2]="Previous"},9611:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5178:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2469:(e,t,n)=>{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},i.apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayEqual=t.isPresent=t.flatVisibleChildren=t.flatChildren=t.flatVisibleItems=t.getInitialState=t.getFirstId=t.renderChildren=void 0;var o=n(9680);t.renderChildren=function(e,n){var a=n.animation,l=void 0===a||a,d=n.keepItemsMounted,c=void 0!==d&&d,u=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,y=n.parentPrivateKey,b=void 0===y?[]:y;return e.map((function(e,n){var a,d=s(e,b,n),f=o.templateRendering.call(this,e.content,o.getListeners.call(this)),m=o.templateRendering.call(this,e.header,o.getListeners.call(this));if(e.items){var y={animation:l,keepItemsMounted:c,state:u,expanded:p,handleSelect:h,parentExpanded:(p||[]).indexOf(d)>-1,level:g+1,parentPrivateKey:r(r([],b,!0),[d],!1)};a=t.renderChildren.call(this,e.items,y)}return i(i({},e),{animation:void 0!==e.animation?e.animation:l,keepItemsMounted:c,id:e.id||"k-panelbar-item-default-".concat(d),uniquePrivateKey:d,parentUniquePrivateKey:b,parentExpanded:v,level:g,expanded:(p||[]).indexOf(d)>-1,focused:u.currentFocused===d&&u.wrapperFocused,selected:u.currentSelected===d,items:a,content:f,header:m})}),this)},t.getFirstId=function(e){var t=e.items[0];return t?s(t,[],0):""},t.getInitialState=function(e,n,i,o,a){return void 0===i&&(i={currentExpanded:e.expanded||[],currentSelected:e.selected||"",currentFocused:e.focused||"",wrapperFocused:!1}),void 0===o&&(o=!0),void 0===a&&(a=[]),e.items.forEach((function(e,l){var d=s(e,a,l);!e.disabled&&o&&(e.selected&&(i.currentSelected=d),e.focused&&(i.currentFocused=d),e.expanded&&("multiple"===n?i.currentExpanded.push(d):"single"===n&&(i.currentExpanded=[d])),e.items&&(i=(0,t.getInitialState)(e,n,i,!!e.expanded,r(r([],a,!0),[d],!1))))})),i};var s=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+".".concat(n):".".concat(n)};t.flatVisibleItems=function e(t,n){return void 0===n&&(n=[]),(t||[]).forEach((function(t){t.disabled||(n.push(t),t.expanded&&t.children&&e(t.children,n))})),n},t.flatChildren=function e(t,n){return void 0===n&&(n=[]),t.forEach((function(t){t&&t&&!t.disabled&&(n.push(t),t.items&&e(t.items,n))})),n},t.flatVisibleChildren=function e(t,n){return void 0===n&&(n=[]),t.forEach((function(t){t&&(t.expanded||t.parentExpanded)&&(n.push(t),t.items&&e(t.items,n))})),n},t.isPresent=function(e){return null!=e},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}},6129:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitterVue2=t.Splitter=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(2203),l=n(30),d=n(9680),c=n(9680),u=n(9347),p={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},h={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(){(0,c.validatePackage)(u.packageMetadata)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=this.panesOptions(),i=(0,d.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-".concat(this.orientation));return this.validatePanes(n),t("div",{class:i},[function(e){return e.map((function(n,i){var r,o=d.templateRendering.call(this,n.content,d.getListeners.call(this)),s=2*i,c=s+1;if(i+1<e.length){var u=e[i+1];r=t(l.SplitterBar,{key:c,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:u},orientation:this.orientation,prev:n,next:u,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(a.SplitterPane,{key:s,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:o},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:o}),r]}),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=[],r=0;r<e.length;r++){var o=!1;this.isDragging&&void 0!==this.dragIndex&&(o=this.dragIndex===r||this.dragIndex+1===r),n.push(i(i(i({},p),{orientation:t,overlay:o}),e[r]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var r=t;return n===e?i(i({},r),{collapsed:!t.collapsed}):i({},r)}));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),d=l.prevElement,c=l.nextElement;if(d&&c){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=o,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(d),void(this.originalNextSize=this.elementSize(c));var u,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;!i&&o-v<150||(u="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,u,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["".concat(n,"Height")]:e["".concat(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,r,o,s,a){var l,d,c=this,u=this.panesOptions(),p=u[e],h=u[t],f=n+r,v=this.containerSize(),m=function(e){return c.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},y={index:t,initialSize:r,min:m(h.min)||f-m(p.max)||0,max:m(h.max)||f-m(p.min)||f},b=function(e,t){var n=u[e.index],i=c.clamp(e.min,e.max,e.initialSize+t);return c.isPercent(n.size||"")?100*i/v+"%":i+"px"};this.fixedSize(p.size)&&this.fixedSize(h.size)?(l=b(g,o),d=b(y,-o)):h.collapsible||this.fixedSize(h.size)?d=b(y,-o):l=b(g,o);var k=u.map((function(n,r){var o=n;return r===e?i(i({},o),{size:l}):r===t?i(i({},o),{size:d}):i({},o)}));this.panesDuringOnChange=k,this.isControlledState||(this.currentPanes=k),this.$emit("change",{newState:k,isLast:s,nativeEvent:a}),this.panesDuringOnChange=void 0}}};t.SplitterVue2=h;var f=h;t.Splitter=f},30:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SplitterBarVue2=t.SplitterBar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t,n=this,i=this,o=r||e,a=this.isDraggable,l=this.isStatic,d=this.isHorizontal,c=(0,s.classNames)("k-splitbar",((t={})["k-focus"]=this.focused,t["k-splitbar-horizontal"]=d,t["k-splitbar-vertical"]=!d,t["k-splitbar-draggable-horizontal"]=d&&a,t["k-splitbar-draggable-vertical"]=!d&&a,t["k-splitbar-static-horizontal"]=d&&l,t["k-splitbar-static-vertical"]=!d&&l,t)),u=this.previousArrowClass(d),p=this.nextArrowClass(d);return o(s.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[o("div",{tabindex:l?-1:0,attrs:n.v3?void 0:{tabindex:l?-1:0,role:"separator"},role:"separator",class:c,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},[o("div",{class:u,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[o("div",{tabindex:l?-1:0,attrs:n.v3?void 0:{tabindex:l?-1:0,role:"separator"},role:"separator",class:c,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},[o("div",{class:u,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("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,o=this.draggable&&this.draggable.element,a=function(n,i,r){e.preventDefault(),t.$emit("keyboardresize",n,i,r,e)};o&&(n===s.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===s.Keys.left?a(o,r,-10):i&&n===s.Keys.right?a(o,r,10):i||n!==s.Keys.up?i||n!==s.Keys.down||a(o,r,10):a(o,r,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,r=n.collapsed;return(0,s.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(0,s.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))}}};t.SplitterBarVue2=a;var l=a;t.SplitterBar=l},2203:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SplitterPaneVue2=t.SplitterPane=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(9680),a={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=r||e,i=this.$props,o=i.size,a=i.collapsed,l=i.overlay,d=i.containsSplitter,c=i.collapsible,u=i.resizable,p=i.scrollable,h=i.keepMounted,f=o&&o.length>0,v={flexBasis:o},m=(0,s.classNames)("k-pane",((t={})["k-hidden"]=a,t.hidden=a,t["k-pane-flex"]=d,t["k-pane-static"]=!u&&!c||f,t["k-scrollable"]=p,t)),g=s.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])}};t.SplitterPaneVue2=a;var l=a;t.SplitterPane=l},5835:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StepVue2=t.Step=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=i.inject,a=n(9680),l=n(5725),d=n(2353),c=n(1582),u={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% / ".concat(this.numOfSteps,")"),pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:o?function(){return{v3:!!o,kendoLocalizationService:s("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=r||e,i=(0,a.getDefaultSlots)(this),o=this.$props,s=o.current,u=o.disabled,p=o.focused,h=o.icon,f=o.index,v=o.isValid,m=o.label,g=o.optional,y=o.tabIndex,b=o.text,k=o.animationDuration,w=o.item,S=o.linear,C=o.mode,x=o.value,O=o.successIcon,I=o.errorIcon,$=!S||f===x-1||f===x||f===x+1,D="labels"===C||Boolean(h)&&Boolean(m),M=(0,l.provideLocalizationService)(this),T=(t=c.optionalText,M.toLanguageString(t,c.messages[t])),P="number"==typeof k?k:!1!==k?d.DEFAULT_ANIMATION_DURATION:d.NO_ANIMATION,R=v?O?"".concat(O):"k-icon k-i-check":I?"".concat(I):"k-icon k-i-warning",E=n("span",{class:"k-step-indicator-icon "+R,"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?y:-1,"aria-current":s?"step":void 0,"aria-disabled":u||!$||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?y:-1,"aria-current":s?"step":void 0,"aria-disabled":u||!$||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:P+"ms"}},[h?D||void 0===v?n("span",{class:"k-step-indicator-icon k-icon ".concat(h)}):E:void 0!==v?E:n("span",{class:"k-step-indicator-text"},[b||f+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[m&&n("span",{class:"k-step-text"},[m]),D&&void 0!==v&&E,g&&n("span",{class:"k-step-label-optional"},[T])])}.call(this)]])])},methods:{focus:function(){this.$el&&(0,a.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)}}};t.StepVue2=u;var p=u;t.Step=p},4615:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.StepperVue2=t.Stepper=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=n(9680),l=n(5835),d=n(133),c=n(2353),u=n(9680),p=n(9347),h={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(){(0,u.validatePackage)(p.packageMetadata),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,u.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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=(0,a.getDefaultSlots)(this),r=this.$props,s=r.animationDuration,p=r.disabled,h=r.items,f=r.orientation,v=this.computedValue,m="number"==typeof s?s:!1!==s?c.DEFAULT_ANIMATION_DURATION:c.NO_ANIMATION,g=h&&h.map((function(e,n){var r=this.$props.item?u.templateRendering.call(this,this.$props.item,u.getListeners.call(this)):void 0,o=t(l.Step,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:p||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===v,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:v,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:p||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===v,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:v,successIcon:this.successIcon,errorIcon:this.errorIcon});return u.getTemplate.call(this,{h:t,template:r,defaultRendering:o,additionalProps:i(i({},e),{disabled:p||e.disabled,focused:n===this.focusedIdx,current:n===v,value:v}),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},[g||n]),t(d.ProgressBar,{style:this.progressbarStyles,animation:{duration:m},attrs:this.v3?void 0:{animation:{duration:m},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:f,reverse:"vertical"===f,value:v,disabled:p,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:f,reverse:"vertical"===f,value:v,disabled:p,tabIndex:-1})])},methods:{focus:function(){this.$el&&(0,a.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 a.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case a.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case a.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case a.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case a.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case a.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case a.Keys.space:case a.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}};t.StepperVue2=h;var f=h;t.Stepper=f},2353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ANIMATION=t.DEFAULT_ANIMATION_DURATION=void 0,t.DEFAULT_ANIMATION_DURATION=400,t.NO_ANIMATION=0},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},6489:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7450:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8534:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9025:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3372:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1582:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.optionalText=void 0,t.optionalText="stepper.optionalText",t.messages=((n={})[t.optionalText]="(Optional)",n)},5859:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TabStripVue2=t.TabStrip=void 0;var r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a=(r.ref,r.inject,n(9879)),l=n(2300),d=n(9680),c=n(9347),u={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=d.templateRendering.call(this,e.content,d.getListeners.call(this)),n=d.templateRendering.call(this,e.titleRender,d.getListeners.call(this));return i(i({},e),{content:t,titleRender:n})}),this):this.currentTabs}},provide:function(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created:function(){var e,t=this;this.keyBinding=((e={})[d.Keys.left]=function(){return t.prevNavigatableTab()},e[d.Keys.right]=function(){return t.nextNavigatableTab()},e[d.Keys.down]=function(){return t.nextNavigatableTab()},e[d.Keys.up]=function(){return t.prevNavigatableTab()},e[d.Keys.home]=function(){return 0},e[d.Keys.end]=function(){return t.compTabs.length-1},e),(0,d.validatePackage)(c.packageMetadata)},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]=i(i({},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 d.Keys.left:t=this.keyBinding[this.invertKeys(d.Keys.left,d.Keys.right)];break;case d.Keys.right:t=this.keyBinding[this.invertKeys(d.Keys.right,d.Keys.left)];break;case d.Keys.up:t=this.keyBinding[d.Keys.up];break;case d.Keys.down:t=this.keyBinding[d.Keys.down];break;case d.Keys.home:t=this.keyBinding[d.Keys.home];break;case d.Keys.end:t=this.keyBinding[d.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction?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:s?function(){return{v3:!!s}}:void 0,render:function(e){var t,n=o||e,r=this.$props,s=r.tabPosition,c=r.tabIndex,u=void 0===c?0:c,p="bottom"===s,h=(0,d.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===s,t["k-tabstrip-right"]="right"===s,t["k-tabstrip-bottom"]="bottom"===s,t["k-tabstrip-top"]="top"===s,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:h},[!p&&n(a.TabStripNavigation,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:u},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:u}),function(e){var t=e.selected,r=e.tabContentStyle,o=(0,d.getDefaultSlots)(this),s={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:r,showAll:this.currentShowAll};return n(l.TabStripContent,i(i({},s),{attrs:this.v3?void 0:i({},s)}),this.v3?function(){return o}:[o])}.call(this,this.$props),p&&n(a.TabStripNavigation,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:u},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:u})])}};t.TabStripVue2=u;var p=u;t.TabStrip=p},2300:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabStripContentVue2=t.TabStripContent=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=(i.ref,i.inject,n(8895)),a=n(9680),l=n(1284),d={name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=(0,a.guid)()},setup:o?function(){return{v3:!!o}}: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=r||e,n=this.$props,i=n.tabs,o=n.selected,d=(n.showAll,n.hasTabs),c=i&&"number"==typeof o&&i[o],u=(0,a.getDefaultSlots)(this),p=d?i:l.getTabs.call(this,[],u||[]),h=o<p.length&&o>-1,f=(0,a.classNames)({"k-content":h},{"k-active":h},c&&c.contentClassName),v=function(e,n){var i=this,r=n===this.$props.selected,o={position:"initial",height:r?void 0:"0px",width:r?void 0:"0px"},l=d?a.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(s.Fade,{appear:!!this.v3||r,attrs:this.v3?void 0:{appear:!!this.v3||r,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:o},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)])}};t.TabStripContentVue2=d;var c=d;t.TabStripContent=c},9879:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabStripNavigationVue2=t.TabStripNavigation=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=(i.ref,i.inject,n(7259)),a={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:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||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,r){return t(s.TabStripNavigationItem,{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===r.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===r.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)}}};t.TabStripNavigationVue2=a;var l=a;t.TabStripNavigation=l},7259:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabStripNavigationItemVue2=t.TabStripNavigationItem=void 0;var i=n(9680),r=n(1895),o=r.h,s=r.version&&"3"===r.version[0],a={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-disabled"]=i,e["k-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:s?function(){return{v3:!!s}}: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,d=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"},[d])])}};t.TabStripNavigationItemVue2=a;var l=a;t.TabStripNavigationItem=l},2777:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabStripTabVue2=t.TabStripTab=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=(i.ref,i.inject,n(9680)),a={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=(0,s.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:o?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=this.$props.titleRender?s.templateRendering.call(this,this.$props.titleRender,s.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[(0,s.getDefaultSlots)(this)])}};t.TabStripTabVue2=a;var l=a;t.TabStripTab=l},1284:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTabs=void 0,t.getTabs=function(e,n){var i=this,r=[];return n.forEach((function(n){i.v3&&n.children&&n.children.length&&(r=t.getTabs.call(i,e,n.children)),(n&&n.tag&&-1!==n.tag.toLowerCase().indexOf("tab")||n.type&&n.type.name&&-1!==n.type.name.toLowerCase().indexOf("kendotabstriptab"))&&r.push(n)})),r}},2451:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(1895),r=i.h,o=i.createApp,s=n(9680),a=function(){function e(e,t,n,a,l){void 0===l&&(l={});var d=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=a,this.options=l,this.convertPageTemplateToHtml=function(e){if(r&&o&&s.canUseDOM){var t=d,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var a,l=document.createElement("div");n.appendChild(l),document.body.appendChild(n);var c={render:function(){return r(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick((function(){document.body.removeChild(n),a.unmount()}))}};return(a=o(c)).mount(l),l.outerHTML}var u=new(i.extend(d.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return u.$mount(),u.$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}();t.default=a},2015:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFExportVue2=t.PDFExport=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(4407),a=n(1389),l=n(2451),d=n(9680),c=n(4509),u={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 l.default(s.drawDOM,s.exportPDF,a.saveAs,this.$el,this.$props).savePDF(e)}},setup:o?function(){return{v3:!!o}}:void 0,created:function(){(0,d.validatePackage)(c.packageMetadata)},render:function(e){return(r||e)("div",[(0,d.getDefaultSlots)(this)])}};t.PDFExportVue2=u;var p=u;t.PDFExport=p},4893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridPdfExportVue2=t.GridPdfExport=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(2895),a=n(4976),l=n(9680),d={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=(0,a.provideSaveGridPDF)(this.getSavePDF())},methods:{save:function(e,t){var n=(0,l.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 s.savePDF}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){return(r||e)("div",[(0,l.getDefaultSlots)(this)])}};t.GridPdfExportVue2=d;var c=d;t.GridPdfExport=c},4789:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.findFocusableChild=t.findFocusable=t.findElement=t.isFocusable=t.isVisible=t.contains=t.closestInScope=t.closest=t.matchesNodeName=t.matchesClasses=t.hasClasses=void 0;var n=/^(?:a|input|select|option|textarea|button|object)$/i,i={},r=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find((function(e){return n.indexOf(e)>=0})))},t.matchesClasses=function(e){return function(n){return(0,t.hasClasses)(n,e)}},t.matchesNodeName=function(e){return i[e]||(i[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),i[e]},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.contains=function(e,n,i){if(void 0===i&&(i=!1),!(0,t.closest)(n,(function(t){return t===e})))return!1;var r=(0,t.closest)(n,(function(e){return e===n}));return r&&(i||r!==e)},t.isVisible=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},t.isFocusable=function(e,i){if(void 0===i&&(i=!0),e.tagName){var r=e.tagName.toLowerCase(),o=e.getAttribute("tabIndex"),s="-1"===o,a=null!==o&&!s;return n.test(r)&&(a=!e.disabled&&!s),a&&(!i||(0,t.isVisible)(e))}return!1},t.findElement=function(e,n,i){if(void 0===i&&(i=!0),e){if(i&&n(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=(0,t.findElement)(e,n);if(r)return r}e=e.nextSibling}}},t.findFocusable=function(e,n){return void 0===n&&(n=!0),(0,t.findElement)(e,(function(e){return(0,t.isFocusable)(e,n)}))},t.findFocusableChild=function(e,n){return void 0===n&&(n=!0),(0,t.findElement)(e,(function(e){return(0,t.isFocusable)(e,n)}),!1)}},9438:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.exportElement=void 0;var i=n(5721),r="k-first",o=function(e,t){for(var n=t.length,i=0;i<n;i++)e.appendChild(t[i].cloneNode(!0))},s=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},a=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 s=1;s<t;s++)o(n.rows[r],e[s].rows[r].cells);return n};t.exportElement=function(e){var t,n=new i.GridQuery(e),l=n.content();if(l){var d=[l.querySelector("colgroup")],c=[n.header().querySelector("thead")],u=[l.querySelector("tbody")],p=n.footer();t=function(e,t,n,l){for(var d=document.createElement("table"),c=e[0].cloneNode(!0),u=1;u<e.length;u++)o(c,e[u].querySelectorAll("col"));var p=a(t),h=a(n);if(p.className=i.HEADER_CLASS,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,o=e.rows[n].cells[i];-1===String(o.className).indexOf(r)&&(o.className+=" ".concat(r))}}(p,t),d.appendChild(c),d.appendChild(p),d.appendChild(h),l.length){var f=a(l);f.className=i.FOOTER_CLASS,d.appendChild(f)}return s(d)}(d,c,u,p?[p.querySelector("tfoot")]:[])}else t=s(n.table().cloneNode(!0));return t}},5721:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridQuery=t.FOOTER_CLASS=t.HEADER_CLASS=void 0;var i=n(4789);t.HEADER_CLASS="k-grid-header",t.FOOTER_CLASS="k-grid-footer";var r=(0,i.matchesNodeName)("TABLE"),o=function(e){return e?"locked":"wrap"},s=function(){function e(e){this.element=e,this.list=(0,i.findElement)(e,(0,i.matchesClasses)("k-grid-container"))}return e.prototype.content=function(e){return(0,i.findElement)(this.list,(0,i.matchesClasses)("k-grid-content".concat(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||(0,i.findElement)(this.element,(0,i.matchesClasses)(t.HEADER_CLASS)),(0,i.findElement)(this.headerWrap,(0,i.matchesClasses)("".concat(t.HEADER_CLASS,"-").concat(o(e))))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||(0,i.findElement)(this.element,(0,i.matchesClasses)(t.FOOTER_CLASS)),(0,i.findElement)(this.footerWrap,(0,i.matchesClasses)("".concat(t.FOOTER_CLASS,"-").concat(o(e))))},e.prototype.table=function(){return(0,i.findElement)(this.element,r)},e}();t.GridQuery=s},4976:(e,t,n)=>{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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.provideSaveGridPDF=void 0;var r=n(1895),o=n(9680),s=r,a=s.h,l=s.createApp,d=n(9438);t.provideSaveGridPDF=function(e){return function(t,n,r,s,c){return void 0===n&&(n={}),function(e,t,n,r,s,c){var u,p,h,f;function v(){e(g.call(this),n,m)}function m(){f.unmount?f.unmount():f.$destroy(),document.body.removeChild(u),document.body.removeChild(h),u=h=void 0,r&&r()}function g(){(h=document.createElement("div")).className="k-grid-pdf-export-element";var e=(0,d.exportElement)(this.$el);return h.appendChild(e),document.body.appendChild(h),e}void 0===n&&(n={}),function(){if(o.canUseDOM){(u=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),p=document.createElement("div"),u.appendChild(p),document.body.appendChild(u);var e=s&&{dataItems:s,total:s.length,pageSize:s.length,skip:0};if(c){var n={render:function(){return a(t.type,i(i({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),v.call(this)}};(f=l(n)).mount(p)}else{var r=Object.getPrototypeOf(t).constructor;(f=new r({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){f.$el.style&&(f.$el.style.width="1000px"),v.call(f)}})).$slots=t.$slots,f.$scopedSlots=t.$scopedSlots,f.$mount(p)}}}()}(e,t,n,r,s,c)}}},3477:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridPdfExportVue2=t.GridPdfExport=t.savePDF=t.PDFExportVue2=t.PDFExport=void 0;var i=n(2015);Object.defineProperty(t,"PDFExport",{enumerable:!0,get:function(){return i.PDFExport}}),Object.defineProperty(t,"PDFExportVue2",{enumerable:!0,get:function(){return i.PDFExportVue2}});var r=n(2895);Object.defineProperty(t,"savePDF",{enumerable:!0,get:function(){return r.savePDF}});var o=n(4893);Object.defineProperty(t,"GridPdfExport",{enumerable:!0,get:function(){return o.GridPdfExport}}),Object.defineProperty(t,"GridPdfExportVue2",{enumerable:!0,get:function(){return o.GridPdfExportVue2}}),"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",i.PDFExport),window.Vue.component("kendo-grid-pdf-export",o.GridPdfExport))},4509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633204,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"}},2895:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.savePDF=void 0;var i=n(4407),r=n(1389),o=n(2451);t.savePDF=function(e,t,n){void 0===t&&(t={}),new o.default(i.drawDOM,i.exportPDF,r.saveAs,e,t).savePDF(n)}},1389:(e,t,n)=>{function i(e,t,n){void 0===n&&(n={});var i=l;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(o()&&(i=a),navigator.msSaveBlob&&(i=s)),i(e,t,n)}n.r(t),n.d(t,{encodeBase64:()=>u,saveAs:()=>i});var r=function(){return document.createElement("a")},o=function(){return"download"in r()};function s(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 a(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=r();i.download=t,i.href=n;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(n)}))}function l(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)}}var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=String.fromCharCode;function u(e){for(var t,n,i,r,o,s,a,l=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=c(i):i<2048?(t+=c(192|i>>>6),t+=c(128|63&i)):i<65536&&(t+=c(224|i>>>12),t+=c(128|i>>>6&63),t+=c(128|63&i))}return t}(e),u="",p=0;p<l.length;)r=(t=l.charCodeAt(p++))>>2,o=(3&t)<<4|(n=l.charCodeAt(p++))>>4,s=(15&n)<<2|(i=l.charCodeAt(p++))>>6,a=63&i,isNaN(n)?s=a=64:isNaN(i)&&(a=64),u=u+d.charAt(r)+d.charAt(o)+d.charAt(s)+d.charAt(a);return u}},3201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupVue2=t.Popup=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(8895),a=n(3396),l=n(4549),d=n(5689),c=n(3461),u=n(9680),p=n(1621),h={left:-1e3,top:0},f="k-animation-container-shown",v="k-popup",m={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:a.CollisionType.fit,vertical:a.CollisionType.flip}}},anchorAlign:{type:Object,default:function(){return{horizontal:a.AlignPoint.left,vertical:a.AlignPoint.bottom}}},popupAlign:{type:Object,default:function(){return{horizontal:a.AlignPoint.left,vertical:a.AlignPoint.top}}},offset:{type:Object,default:function(){return h}},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(){(0,u.validatePackage)(p.packageMetadata),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 d.DOMService,this._alignService=new l.AlignService(this._domService),this._positionService=new c.PositionService(this._domService),this.reposition=(0,a.throttle)(this.reposition.bind(this),a.FRAME_DURATION)},setup:o?function(){return{v3:!!o}}:void 0,mounted:function(){u.canUseDOM&&(this.mountedAppendTo=this.appendTo?this.getParentRef(this.appendTo):document.body,this.mountedAnchor=this.anchor?this.getParentRef(this.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:o?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:o?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(f),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove(f),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)&&u.canUseDOM)return document.getElementById(e)||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||!(0,a.isWindowAvailable)()||!u.canUseDOM)return{flipped:!1,offset:e.offset};var n=(0,u.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:"",l=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="'.concat(s," ").concat(l,'" >\n </div>\t\n </div>\t\n </div>')}if(t.appendChild(i),i&&i.firstChild){var d=i.firstChild;d.style.position="absolute",d.style.visibility="hidden",d.style.display="block",d.style.left="-1000",d.style.top="0";var c=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(c)for(var p=0,h=Object.entries(c);p<h.length;p++){var f=h[p],v=f[0],m=f[1];d.style[v]=m}}var g=this.position(e,i.firstChild,this.$props.anchor);return i.parentNode.removeChild(i),g},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=r||e,n=this.$props,i=n.className,o=n.popupClass,l=n.show,d=n.id,c=(0,u.getDefaultSlots)(this),p=this.v3||l?c:null,h=(0,a.isWindowAvailable)()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var f=this.calculatePosition(this.$props,h);this._offsetLeft=f.offset.left,this._offsetTop=f.offset.top,this._flipped=!!f.flipped}var m=this._flipped?"up":"down",g=this.transitionDuration(),y=g.transitionEnterDuration,b=g.transitionExitDuration,k=this.getCurrentZIndex();return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!l,this.hasMounted?l||this._exitingAnimation&&h?t(s.Slide,{id:d,attrs:this.v3?void 0:{id:d,role:this.appendTo?"":"region",componentChildClassName:[o,v],className:i,direction:m,transitionEnterDuration:y,transitionExitDuration:b,appear:l},role:this.appendTo?"":"region",componentChildClassName:[o,v],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:m,style:{zIndex:k,position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"},transitionEnterDuration:y,transitionExitDuration:b,appear:l},this.v3?function(){return[p]}:[p]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[o,v]},[c])])}};t.PopupVue2=m;var g=m;t.Popup=g},4866:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupVue2=t.Popup=void 0;var i=n(3201);Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return i.Popup}}),Object.defineProperty(t,"PopupVue2",{enumerable:!0,get:function(){return i.PopupVue2}})},1621:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660632802,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"}},4549:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlignService=void 0;var i=n(3396),r=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.relativeRect(t,n,o):this.absoluteRect(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 r=this._dom,o=(0,i.eitherRect)(r.offset(e),n),s=r.stackingElementOffset(t),a=(0,i.removeStackingOffset)(o,s),l=r.stackingElementScroll(t),d=r.addScroll(a,l),c=this.elementScrollPosition(e,t),u=r.removeScroll(d,c);return u.left+=window.scrollX||window.pageXOffset,u.top+=window.scrollY||window.pageYOffset,u},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return(0,i.eitherRect)(this._dom.position(e,t),n)},e}();t.AlignService=r},5689:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DOMService=void 0;var i=n(5454),r=n(3396),o=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(0,i.align)(e)},e.prototype.boundingOffset=function(e){return(0,i.boundingOffset)(e)},e.prototype.getWindow=function(){return(0,r.isWindowAvailable)()?window:null},e.prototype.isBodyOffset=function(e){return(0,i.isBodyOffset)(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?(0,i.offset)(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,r=t.top;e.style.left="0px",e.style.top="0px";var o=(0,i.offset)(e);return e.style.left=n,e.style.top=r,o},e.prototype.position=function(e,t){if(!e||!t)return null;var n=(0,i.siblingContainer)(e,t);return(0,i.positionWithScroll)(e,n)},e.prototype.relativeOffset=function(e,t){return(0,i.applyLocationOffset)(this.offset(e),t,this.isBodyOffset(e))},e.prototype.addScroll=function(e,t){return(0,i.addScroll)(e,t)},e.prototype.removeScroll=function(e,t){return(0,i.removeScroll)(e,t)},e.prototype.restrictToView=function(e){return(0,i.restrictToView)(e)},e.prototype.scrollPosition=function(e){return(0,i.scrollPosition)(e)},e.prototype.scrollableParents=function(e){return(0,r.scrollableParents)(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?(0,i.offset)(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||!r.HAS_RELATIVE_STACKING_CONTEXT)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(0,i.getWindowViewPort)(e)},e.prototype.zIndex=function(e,t){return(0,r.zIndex)(e,t)},e.prototype.zoomLevel=function(){return(0,r.isDocumentAvailable)()&&(0,r.isWindowAvailable)()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}();t.DOMService=o},3461:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PositionService=void 0;var i=n(3396),r=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,o=e.anchorAlign,s=e.elementAlign,a=e.collisions,l=this._dom,d=e.viewPort||l.stackingElementViewPort(r)||l.windowViewPort(r),c=(0,i.eitherRect)(l.offset(t),n),u=(0,i.replaceOffset)(l.staticOffset(r),n),p=this.elementRect(r,u),h=l.restrictToView({anchorAlign:o,anchorRect:c,collisions:a,elementAlign:s,elementRect:p,viewPort:d});return{flipped:h.flipped,offset:l.addOffset(u,h.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}();t.PositionService=r},3396:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.AlignPoint=t.CollisionType=t.zIndex=t.HAS_RELATIVE_STACKING_CONTEXT=t.hasRelativeStackingContext=t.FRAME_DURATION=t.scrollableParents=t.OVERFLOW_REGEXP=t.hasBoundingRect=t.isWindowAvailable=t.isDocumentAvailable=t.isDifferentOffset=t.removeStackingOffset=t.replaceOffset=t.eitherRect=void 0;var i=n(5454);t.eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},t.replaceOffset=function(e,t){return t?{height:e.height,left:t.left,top:t.top,width:e.width}:e},t.removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},t.isDifferentOffset=function(e,t){var n=e.left,i=e.top,r=t.left,o=t.top;return Math.abs(n-r)>=1||Math.abs(i-o)>=1},t.isDocumentAvailable=function(){return"undefined"!=typeof document&&!!document.body},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.OVERFLOW_REGEXP=/auto|scroll/;var r=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)};t.scrollableParents=function(e){var n=[];if(!(0,t.isDocumentAvailable)()||!(0,t.isWindowAvailable)())return n;for(var i=e.parentElement;i;)t.OVERFLOW_REGEXP.test(r(i))&&n.push(i),i=i.parentElement;return n.push(window),n},t.FRAME_DURATION=1e3/60,t.hasRelativeStackingContext=function(){if(!(0,t.isDocumentAvailable)())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 n=e.firstChild;n.style.position="fixed",n.style.top="".concat(10,"px")}var i=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),i},t.HAS_RELATIVE_STACKING_CONTEXT=(0,t.hasRelativeStackingContext)(),t.zIndex=function(e,n){if(!e||!(0,t.isDocumentAvailable)()||!(0,t.isWindowAvailable)())return null;var r=(0,i.siblingContainer)(e,n);if(!r)return null;var o=[e].concat((0,i.parents)(e,r)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return o?o+1:null},t.CollisionType={fit:"fit",flip:"flip"},t.AlignPoint={left:"left",center:"center",right:"right",bottom:"bottom",top:"top"},t.throttle=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 d=(new Date).getTime();a||!1!==n.leading||(a=d);var c=t-(d-a);return r=this,o=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),a=d,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,c)),s}}},5454:(e,t,n)=>{n.r(t),n.d(t,{AlignPoint:()=>i,Collision:()=>x,addScroll:()=>o,align:()=>r,alignElement:()=>W,applyLocationOffset:()=>s,boundingOffset:()=>h,domUtils:()=>H,getDocumentElement:()=>d,getWindow:()=>l,getWindowViewPort:()=>p,isBodyOffset:()=>v,offset:()=>m,offsetParent:()=>f,parentScrollPosition:()=>k,parents:()=>g,position:()=>w,positionElement:()=>U,positionWithScroll:()=>S,removeScroll:()=>C,restrictToView:()=>$,scrollPosition:()=>y,siblingContainer:()=>M,siblings:()=>D,utils:()=>A,zIndex:()=>T});const i={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,o=e.elementAlign,s=e.margin;void 0===s&&(s={});var a=n.horizontal,l=n.vertical,d=o.horizontal,c=o.vertical,u=s.horizontal||0,p=s.vertical||0,h=t.top,f=t.left;return l===i.bottom&&(h+=t.height),l!==i.center&&l!==i.middle||(h+=Math.round(t.height/2)),c===i.bottom&&(h-=r.height,p*=-1),c!==i.center&&c!==i.middle||(h-=Math.round(r.height/2),p*=-1),a===i.right&&(f+=t.width),a!==i.center&&a!==i.middle||(f+=Math.round(t.width/2)),d===i.right&&(f-=r.width,u*=-1),d!==i.center&&d!==i.middle||(f-=Math.round(r.width/2),u*=-1),{top:h+p,left:f+u}};function o(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function s(e,t,n){var i=e.top,r=e.left;return n&&(r=0,i=0),{top:i+t.top,left:r+t.left,height:e.height,width:e.width}}function a(e){return e.ownerDocument||e.document||e}const l=function(e){return a(e).defaultView},d=function(e){return a(e).documentElement};var c=0;function u(){if(!c&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),c=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return c}function p(e){var t=l(e),n=d(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=u()),i}const h=function(e){if(!e.getBoundingClientRect){var t=p(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}},f=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||d(e)},v=function(e){return f(e)===e.ownerDocument.body},m=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}};function g(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n}function y(e){var t=d(e),n=l(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}function b(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}}function k(e){var t=f(e);return t?b(t):{x:0,y:0}}const w=function(e,t){var n=l(e),i=n.getComputedStyle(e),r=m(e),o=t||f(e),s=e.ownerDocument,a=o!==s.body&&o!==s.documentElement,d={top:0,left:0};if("fixed"!==i.position&&a){var c=n.getComputedStyle(o);(d=m(o)).top+=parseInt(c.borderTopWidth,10),d.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-d.top,left:r.left-d.left,height:r.height,width:r.width}};function S(e,t,n){void 0===n&&(n=1);var i=t?f(t):null,r=w(e,i),o=r.top,s=r.left,a=r.height,l=r.width,d=function(e,t){return e?b(e):k(t)}(i,e),c=d.x,u=d.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:o+u*h,left:s+c*h,height:a,width:l}}function C(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}const x={fit:"fit",flip:"flip",none:"none"};var O=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},I=function(e){var t=e.offset,n=e.size,r=e.anchorSize,o=e.viewPortSize,s=e.anchorAlignPoint,a=e.elementAlignPoint,l=e.margin,d=0,c=a===i.center||a===i.middle,u=s===i.center||s===i.middle,p=2*l;if(a!==s&&!c&&!u){var h=s===i.top||s===i.left;t<0&&h?t+(d=n+r+p)+n>o&&(d=0):t>=0&&!h&&(t+n>o&&(d+=-(r+n+p)),t+d<0&&(d=0))}return d};const $=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,d=i.left,c=i.height,u=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,y=o.vertical===x.fit,b=o.horizontal===x.fit,k=o.vertical===x.flip,w=o.horizontal===x.flip;y&&(g+=O(l,c,p)),b&&(m+=O(d,u,h)),k&&(g+=I({margin:v,offset:l,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=I({margin:f,offset:d,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=k&&0!==g,C=w&&0!==m,$=y&&0!==g,D=b&&0!==m;return{flipped:C||S,fitted:$||D,flip:{horizontal:C,vertical:S},fit:{horizontal:D,vertical:$},offset:{left:m,top:g}}};function D(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function M(e,t){for(var n,i,r=g(e),o=t;o&&(n=D(o),!(i=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)o=o.parentElement;return i}function T(e,t){if(!e||!t)return null;var n=M(e,t);if(!n)return null;var i=[e].concat(g(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}var P,R,E,V=(P=function(e){if(!B())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},E=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return E||(R=P.apply(void 0,e),E=!0),R}),B=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const A={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:V,canUseDOM:B};var N=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return A.canUseDOM()?window:null},_=/auto|scroll/,F=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},j=function(e){if(!e||!A.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},z=function(){return A.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},K={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:o,align:r,boundingOffset:h,getFontStyles:function(e){var t=L();if(!t||!e)return[];var n=t.getComputedStyle(e);return N.map((function(e){return{key:e,value:n[e]}}))},getWindow:L,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?m(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,i=n.left,r=n.top,o=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var s=m(e);return e.style.left=i,e.style.top=r,e.offsetHeight,e.style.transition=o,s},position:function(e,t,n){return e&&t?S(e,t,n||1):null},removeScroll:C,restrictToView:$,scrollPosition:y,scrollableParents:function(e){var t=[];if(!A.canUseDOM())return t;for(var n=e.parentElement;n;)(_.test(F(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:j,stackingElementOffset:function(e){var t=j(e);return t?m(t):null},stackingElementScroll:function(e){var t=j(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=j(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(j(e))},windowViewPort:p,zoomLevel:z,isZoomed:function(){return z()>1},zIndex:function(e,t){if(!e||!A.canUseDOM())return null;var n=M(e,t);if(!n)return null;var i=[e].concat(g(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}};const H=K;const W=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,r=e.elementAlign,o=e.margin,s=e.offset,a=e.positionMode,l=e.scale||1,d="fixed"!==a&&H.hasOffsetParent(n)?function(e,t,n,i){var r=A.eitherRect(H.position(e,t,i),n);return A.scaleRect(r,i)}(t,n,s,l):function(e,t,n,i){var r=function(e,t){return e?{x:0,y:0}:H.scrollPosition(t)}(e,t),o=A.eitherRect(H.offset(e),n),s=2*i,a=H.stackingElementScroll(t);1!==i&&a&&(a.x/=s,a.y/=s);var l=H.stackingElementOffset(t);return 1!==i&&l&&(l.left/=s,l.top/=s),H.removeScroll(H.addScroll(A.removeStackingOffset(A.scaleRect(o,i),l),a),r)}(t,n,s,l),c=A.scaleRect(H.offset(n),l);return H.align({anchorAlign:i,anchorRect:d,elementAlign:r,elementRect:c,margin:o})},U=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,r=e.anchorAlign,o=e.elementAlign,s=e.collisions,a=e.margin,l=e.scale||1,d=H.offsetAtPoint(i,n),c=A.scaleRect(d,l),u=A.scaleRect(H.offset(t),l),p=A.eitherRect(u,n),h=e.viewPort||H.windowViewPort(i);h.width=h.width/l,h.height=h.height/l;var f=H.restrictToView({anchorAlign:r,anchorRect:p,collisions:s,elementAlign:o,elementRect:c,margin:a,viewPort:h}),v=H.addOffset(n,f.offset);return{flip:f.flip,flipped:f.flipped,offset:v}}},2424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ANIMATION=t.DEFAULT_ANIMATION_DURATION=t.LABEL_DECIMALS=t.MIN_RATIO=void 0,t.MIN_RATIO=1e-5,t.LABEL_DECIMALS=3,t.DEFAULT_ANIMATION_DURATION=400,t.NO_ANIMATION=0},9626:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateRatio=t.updateProgress=t.calculatePercentage=t.truncateNumber=void 0;var i=n(2424);t.truncateNumber=function(e){var t=e.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,i.LABEL_DECIMALS))},t.calculatePercentage=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},t.updateProgress=function(e,t,n,i){var r=Math.max(n,.01),o=100/r*100;e&&t&&(e.style.width=i?"100%":"".concat(r,"%"),t.style.width=i?"100%":"".concat(o,"%"),e.style.height=i?"".concat(r,"%"):"100%",t.style.height=i?"".concat(o,"%"):"100%")},t.calculateRatio=function(e,t,n){return Math.max((n-e)/(t-e),i.MIN_RATIO)}},133:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(863),t),r(n(4923),t),r(n(4329),t),r(n(3909),t),r(n(61),t)},9738:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660633129,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"}},863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressBarVue2=t.ProgressBar=void 0;var i=n(1895),r=i.h,o=i.version&&"3"===i.version[0],s=n(8895),a=n(9680),l=n(9626),d=n(2424),c=n(9680),u=n(9738),p={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(){(0,c.validatePackage)(u.packageMetadata),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=(0,a.getRef)(this,"progressStatus"),this._progressStatusWrap=(0,a.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=(0,s.animate)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:o?void 0:function(){(0,s.cancelAnimation)(this.animationFrame)},unmounted:function(){(0,s.cancelAnimation)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=(0,s.animate)({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-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?d.DEFAULT_ANIMATION_DURATION:d.NO_ANIMATION}},setup:o?function(){return{v3:!!o}}:void 0,render:function(e){var t=r||e,n=this.$props,i=n.disabled,o=n.labelVisible,s=n.labelPlacement,d=n.max,c=n.min,u=n.tabIndex,p=n.emptyStyle,h=n.emptyClassName,f=n.progressStyle,v=n.progressClassName,m=this.$props.value||0,g=null===this.$props.value,y=(0,l.truncateNumber)(m),b={value:m},k=this.$props.labelRender?a.templateRendering.call(this,this.$props.labelRender,a.getListeners.call(this)):void 0,w=t("span",{class:"k-progress-status"},y),S=a.getTemplate.call(this,{h:t,template:k,defaultRendering:w,additionalProps:b}),C=o?this.$props.label?t("span",{class:"k-progress-status"},[this.$props.label]):S:void 0,x=(0,a.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===s,"k-progress-center":"center"===s,"k-progress-end":"end"===s||void 0===s});return t("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:(0,a.getTabIndex)(u,i),role:"progressbar","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":g?void 0:m,"aria-disabled":i},tabindex:(0,a.getTabIndex)(u,i),role:"progressbar","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":g?void 0:m,"aria-disabled":i},[t("span",{class:x+(h?" "+h:""),style:p},[C]),t("div",{class:"k-selected",style:f,ref:(0,a.setRef)(this,"progressStatus")},[t("span",{class:x+(v?" "+v:""),ref:(0,a.setRef)(this,"progressStatusWrap")},[C])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=(0,l.calculatePercentage)(this.min,this.max,this.prevValue);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=(0,l.calculatePercentage)(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=(0,l.calculatePercentage)(this.min,this.max,this.value);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}};t.ProgressBarVue2=p;var h=p;t.ProgressBar=h},61:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3909:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4329:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2346:(e,t,n)=>{var i;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableVue2=t.Draggable=void 0;var o=n(1895),s=(o.h,o.version&&"3"===o.version[0]),a=n(1154),l=n(5123),d=(r(i={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new a.default({press:this.press,drag:this.drag,release:this.release})},setup:s?function(){return{v3:!!s}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:s?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",s?function(){return{v3:!!s}}:void 0),r(i,"render",(function(e){return(0,l.getDefaultSlots)(this)})),i);t.DraggableVue2=d;var c=d;t.Draggable=c},8770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);t.canUseDOM=n},3820:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=void 0;var i=n(4650);t.classNames=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):(0,i.isObject)(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(" ")}},920:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cloneArray=t.cloneValue=t.cloneObject=t.clone=t.cloneDate=void 0;var i=n(4650);function r(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=o(i,t[n])}}function o(e,n){if(Array.isArray(e))return s(e);if(e instanceof Date)return(0,t.cloneDate)(e);if(e&&(0,i.isObject)(e)){var o=n||{};return r(e,o),o}return e}function s(e){return e.map((function(e){return o(e,void 0)}))}t.cloneDate=function(e){return e?new Date(e.getTime()):null},t.clone=function(e){var t={};return r(e,t),t},t.cloneObject=r,t.cloneValue=o,t.cloneArray=s},9374:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_REGEX=void 0,t.FIELD_REGEX=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g},5123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSlots=void 0,t.getDefaultSlots=function(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.focusContainer=t.focusLastFocusableChild=t.focusFirstFocusableChild=t.lastFocusableChild=t.firstFocusableChild=void 0;var i=n(7385),r='input, [tabindex]:not([tabindex="-1"])';t.firstFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);if(t.length&&t[0].focus)return t[0]}},t.lastFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},t.focusFirstFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);t.length&&t[0].focus&&t[0].focus()}},t.focusLastFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},t.focusContainer=function(e,n){var r=!0;if(e.keyCode!==i.Keys.enter&&e.target===n)return!1;if(e.keyCode===i.Keys.enter&&e.target===n)r=!0,setTimeout((function(){(0,t.focusFirstFocusableChild)(n)}),1);else if(e.keyCode===i.Keys.esc)r=!1,n.focus();else if(e.keyCode===i.Keys.tab){var o=(0,t.firstFocusableChild)(n),s=(0,t.lastFocusableChild)(n);s&&!e.shiftKey&&e.target===s&&(e.preventDefault(),o.focus()),o&&e.shiftKey&&e.target===o&&(e.preventDefault(),s.focus())}return r}},1369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTabIndex=void 0,t.getTabIndex=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}},4504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getter=void 0;var i=n(9374),r={undefined:function(){}};t.getter=function(e){if(r[e])return r[e];var t=[];return e.replace(i.FIELD_REGEX,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),r[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},r[e]}},5350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.guid=void 0,t.guid=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}},4650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=void 0,t.isObject=function(e){return"object"==typeof e}},6777:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDir=t.isRtl=void 0;var i=n(8770);t.isRtl=function(e){return Boolean(i.canUseDOM&&e&&"rtl"===getComputedStyle(e).direction)},t.getDir=function(e,t){if(!t&&i.canUseDOM&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}},7385:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Keys=void 0,t.Keys={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}},7681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getListeners=t.hasListener=void 0,t.hasListener=function(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]},t.getListeners=function(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}},9680:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=t.setter=t.getter=t.getDir=t.isRtl=t.getDefaultSlots=t.getTabIndex=t.templateDefinition=t.templateRendering=t.getTemplate=t.cloneDate=t.cloneObject=t.cloneValue=t.cloneArray=t.Draggable=t.clone=t.focusContainer=t.focusLastFocusableChild=t.lastFocusableChild=t.focusFirstFocusableChild=t.firstFocusableChild=t.canUseDOM=t.hasListener=t.getListeners=t.isObject=t.noop=t.Keys=t.guid=t.classNames=t.setRef=t.getRef=void 0;var o=n(3820);Object.defineProperty(t,"classNames",{enumerable:!0,get:function(){return o.classNames}});var s=n(5350);Object.defineProperty(t,"guid",{enumerable:!0,get:function(){return s.guid}});var a=n(7385);Object.defineProperty(t,"Keys",{enumerable:!0,get:function(){return a.Keys}});var l=n(8770);Object.defineProperty(t,"canUseDOM",{enumerable:!0,get:function(){return l.canUseDOM}});var d=n(9360);Object.defineProperty(t,"getRef",{enumerable:!0,get:function(){return d.getRef}}),Object.defineProperty(t,"setRef",{enumerable:!0,get:function(){return d.setRef}});var c=n(580);Object.defineProperty(t,"focusFirstFocusableChild",{enumerable:!0,get:function(){return c.focusFirstFocusableChild}}),Object.defineProperty(t,"focusLastFocusableChild",{enumerable:!0,get:function(){return c.focusLastFocusableChild}}),Object.defineProperty(t,"focusContainer",{enumerable:!0,get:function(){return c.focusContainer}}),Object.defineProperty(t,"firstFocusableChild",{enumerable:!0,get:function(){return c.firstFocusableChild}}),Object.defineProperty(t,"lastFocusableChild",{enumerable:!0,get:function(){return c.lastFocusableChild}});var u=n(2346);Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return u.Draggable}});var p=n(920);Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return p.clone}}),Object.defineProperty(t,"cloneArray",{enumerable:!0,get:function(){return p.cloneArray}}),Object.defineProperty(t,"cloneValue",{enumerable:!0,get:function(){return p.cloneValue}}),Object.defineProperty(t,"cloneObject",{enumerable:!0,get:function(){return p.cloneObject}}),Object.defineProperty(t,"cloneDate",{enumerable:!0,get:function(){return p.cloneDate}});var h=n(4650);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return h.isObject}});var f=n(482);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return f.noop}});var v=n(4504);Object.defineProperty(t,"getter",{enumerable:!0,get:function(){return v.getter}});var m=n(9063);Object.defineProperty(t,"setter",{enumerable:!0,get:function(){return m.setter}});var g=n(7681);Object.defineProperty(t,"hasListener",{enumerable:!0,get:function(){return g.hasListener}}),Object.defineProperty(t,"getListeners",{enumerable:!0,get:function(){return g.getListeners}});var y=n(2337);Object.defineProperty(t,"templateRendering",{enumerable:!0,get:function(){return y.templateRendering}}),Object.defineProperty(t,"getTemplate",{enumerable:!0,get:function(){return y.getTemplate}}),Object.defineProperty(t,"templateDefinition",{enumerable:!0,get:function(){return y.templateDefinition}});var b=n(1369);Object.defineProperty(t,"getTabIndex",{enumerable:!0,get:function(){return b.getTabIndex}});var k=n(5123);Object.defineProperty(t,"getDefaultSlots",{enumerable:!0,get:function(){return k.getDefaultSlots}});var w=n(6777);Object.defineProperty(t,"isRtl",{enumerable:!0,get:function(){return w.isRtl}}),Object.defineProperty(t,"getDir",{enumerable:!0,get:function(){return w.getDir}});var S=n(7940);Object.defineProperty(t,"validatePackage",{enumerable:!0,get:function(){return S.validatePackage}}),r(n(6484),t)},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},9360:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setRef=t.getRef=void 0,t.getRef=function(e,t,n){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(n||t)]},t.setRef=function(e,t,n){return e.v3?function(n){e["".concat(t,"Ref")]=n}:n||t}},9063:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setter=void 0;var i=n(9374),r={undefined:function(e){return e}};t.setter=function(e){if(r[e])return r[e];var t=[];return e.replace(i.FIELD_REGEX,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),r[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},r[e]}},2337:function(e,t,n){var i=this&&this.__assign||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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.transformListeners=t.getTemplate=t.templateRendering=t.templateDefinition=void 0;var r=n(1895),o=n(4650),s=r,a=s.version&&"3"===s.version[0];function l(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}t.templateDefinition={type:[String,Function,Object,Boolean],default:function(){}},t.templateRendering=function(e,t){if(e||!1===e){var n=a?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||(0,o.isObject)(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}},t.getTemplate=function(e){var t,n,r,o=e.h,s=e.template,d=e.defaultRendering,c=e.defaultSlots,u=e.additionalProps,p=e.additionalListeners,h=e.swapDefaultSlots;if(!s||s&&!0===s.render)return d;if(a){var f=d?d.props:{};t=i(i({},l(p)),s.listeners),n=i(i(i({},f),u),t),r=i(i({},n),t)}else{var v=d&&d.componentOptions,m=v?d.componentOptions.listeners:{},g=v?d.componentOptions.propsData:{};t=i(i(i(i({},m),p),l(p)),s.listeners),r={props:n=i(i(i({},g),u),t),on:t}}if("slot"===s.type){var y=s.render({props:n,listeners:t,methods:t,defaultSlots:c});return y?y[0]:void 0}return"renderFunction"===s.type?h?s.render?s.render(o,d,c,n,t):void 0:s.render?s.render(o,d,n,t,c):void 0:o(s.render,r,a?function(){return[c]}:[c])},t.transformListeners=l},6484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.kendoThemeMaps=void 0,t.kendoThemeMaps={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},7940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=void 0;var i=n(9302);t.validatePackage=function(e){if(void 0!==i)i.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},1154:(e,t,n)=>{n.r(t),n.d(t,{Draggable:()=>c,default:()=>p});var i=function(e,t){return function(n){return t(e(n))}},r=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},o=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},s=function(){},a=function(e){return e.preventDefault()},l=/touch/;function d(e){return e.type.match(l)?{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 c=function(e){var t=this,n=e.press;void 0===n&&(n=s);var l=e.drag;void 0===l&&(l=s);var c=e.release;void 0===c&&(c=s);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=i(d,n),this._dragHandler=i(d,l),this._releaseHandler=i(d,c),this._ignoreMouse=!1,this._mouseOnly=u,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||(r(t.document,"mousemove",t._mousemove),r(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){o(t.document,"mousemove",t._mousemove),o(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(r(t.document,"pointermove",t._pointermove),r(t.document,"pointerup",t._pointerup),r(t.document,"pointercancel",t._pointerup),r(t.document,"contextmenu",a),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(o(t.document,"pointermove",t._pointermove),o(t.document,"pointerup",t._pointerup),o(t.document,"pointercancel",t._pointerup),o(t.document,"contextmenu",a),t._releaseHandler(e))}},u={document:{configurable:!0}};c.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},u.document.get=function(){return this._element?this._element.ownerDocument:document},c.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},c.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?r(e,"pointerdown",this._pointerdown):(r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend)))},c.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return o(e,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",a),void o(this.document,"pointercancel",this._pointerup);o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend))},c.prototype._usePointers=function(){return!this._mouseOnly&&c.supportPointerEvent()},c.prototype.update=function(e){var t=e.press;void 0===t&&(t=s);var n=e.drag;void 0===n&&(n=s);var r=e.release;void 0===r&&(r=s);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=i(d,t),this._dragHandler=i(d,n),this._releaseHandler=i(d,r),this._mouseOnly=o},c.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(c.prototype,u),c.default=c;const p=c},4407:e=>{e.exports=i},9302:e=>{e.exports=t},5725:e=>{e.exports=n},1895:t=>{t.exports=e}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e].call(n.exports,n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.EditorUtils=e.EditorToolsSettings=e.Editor=e.ApplyColor=e.FindAndReplace=e.Print=e.Pdf=e.ViewHtml=e.InsertTable=e.InsertImage=e.SelectAll=e.CleanFormatting=e.Unlink=e.LinkTool=e.ProseMirrorTool=e.FormatBlock=e.FontName=e.InlineFormat=e.Outdent=e.List=e.Indent=e.Align=e.ProseMirror=void 0;var t=s(6445);Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}});var n=s(722);Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return n.EditorToolsSettings}});var i=s(6001);Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return i.EditorUtils}});var r=s(9157);e.ProseMirror={Selection:r.Selection,SelectionRange:r.SelectionRange,TextSelection:r.TextSelection,NodeSelection:r.NodeSelection,AllSelection:r.AllSelection,EditorState:r.EditorState,Plugin:r.Plugin,PluginKey:r.PluginKey,Transaction:r.Transaction,Decoration:r.Decoration,DecorationSet:r.DecorationSet,EditorView:r.EditorView,Node:r.Node,ResolvedPos:r.ResolvedPos,NodeRange:r.NodeRange,Fragment:r.Fragment,Slice:r.Slice,ReplaceError:r.ReplaceError,Mark:r.Mark,Schema:r.Schema,NodeType:r.NodeType,MarkType:r.MarkType,ContentMatch:r.ContentMatch,DOMParser:r.DOMParser,DOMSerializer:r.DOMSerializer,Transform:r.Transform,Step:r.Step,StepResult:r.StepResult,joinPoint:r.joinPoint,canJoin:r.canJoin,canSplit:r.canSplit,insertPoint:r.insertPoint,dropPoint:r.dropPoint,liftTarget:r.liftTarget,findWrapping:r.findWrapping,StepMap:r.StepMap,MapResult:r.MapResult,Mapping:r.Mapping,AddMarkStep:r.AddMarkStep,RemoveMarkStep:r.RemoveMarkStep,ReplaceStep:r.ReplaceStep,ReplaceAroundStep:r.ReplaceAroundStep,replaceStep:r.replaceStep,deleteSelection:r.deleteSelection,joinBackward:r.joinBackward,selectNodeBackward:r.selectNodeBackward,joinForward:r.joinForward,selectNodeForward:r.selectNodeForward,joinUp:r.joinUp,joinDown:r.joinDown,lift:r.lift,newlineInCode:r.newlineInCode,exitCode:r.exitCode,createParagraphNear:r.createParagraphNear,liftEmptyBlock:r.liftEmptyBlock,splitBlock:r.splitBlock,splitBlockKeepMarks:r.splitBlockKeepMarks,selectParentNode:r.selectParentNode,selectAll:r.selectAll,wrapIn:r.wrapIn,setBlockType:r.setBlockType,toggleMark:r.toggleMark,autoJoin:r.autoJoin,chainCommands:r.chainCommands,pcBaseKeymap:r.pcBaseKeymap,macBaseKeymap:r.macBaseKeymap,baseKeymap:r.baseKeymap,history:r.history,undo:r.undo,redo:r.redo,undoDepth:r.undoDepth,redoDepth:r.redoDepth,InputRule:r.InputRule,inputRules:r.inputRules,undoInputRule:r.undoInputRule,emDash:r.emDash,ellipsis:r.ellipsis,openDoubleQuote:r.openDoubleQuote,closeDoubleQuote:r.closeDoubleQuote,openSingleQuote:r.openSingleQuote,closeSingleQuote:r.closeSingleQuote,smartQuotes:r.smartQuotes,wrappingInputRule:r.wrappingInputRule,textblockTypeInputRule:r.textblockTypeInputRule,keymap:r.keymap,keydownHandler:r.keydownHandler,orderedList:r.orderedList,bulletList:r.bulletList,listItem:r.listItem,addListNodes:r.addListNodes,wrapInList:r.wrapInList,splitListItem:r.splitListItem,liftListItem:r.liftListItem,sinkListItem:r.sinkListItem,dropCursor:r.dropCursor,gapCursor:r.gapCursor,tableEditing:r.tableEditing,fixTables:r.fixTables,fixTablesKey:r.fixTablesKey,cellAround:r.cellAround,isInTable:r.isInTable,selectionCell:r.selectionCell,moveCellForward:r.moveCellForward,inSameTable:r.inSameTable,findCell:r.findCell,colCount:r.colCount,nextCell:r.nextCell,removeColSpan:r.removeColSpan,addColSpan:r.addColSpan,columnIsHeader:r.columnIsHeader,tableNodes:r.tableNodes,tableNodeTypes:r.tableNodeTypes,CellSelection:r.CellSelection,TableMap:r.TableMap,tableEditingKey:r.tableEditingKey,columnResizing:r.columnResizing,columnResizingPluginKey:r.columnResizingPluginKey,updateColumnsOnResize:r.updateColumnsOnResize,selectedRect:r.selectedRect,addColumn:r.addColumn,addColumnBefore:r.addColumnBefore,addColumnAfter:r.addColumnAfter,deleteColumn:r.deleteColumn,rowIsHeader:r.rowIsHeader,addRow:r.addRow,addRowBefore:r.addRowBefore,addRowAfter:r.addRowAfter,deleteRow:r.deleteRow,mergeCells:r.mergeCells,splitCell:r.splitCell,splitCellWithType:r.splitCellWithType,setCellAttr:r.setCellAttr,toggleHeader:r.toggleHeader,toggleHeaderRow:r.toggleHeaderRow,toggleHeaderColumn:r.toggleHeaderColumn,toggleHeaderCell:r.toggleHeaderCell,goToNextCell:r.goToNextCell,deleteTable:r.deleteTable};var o=s(3530);Object.defineProperty(e,"Align",{enumerable:!0,get:function(){return o.Align}});var l=s(8060);Object.defineProperty(e,"Indent",{enumerable:!0,get:function(){return l.Indent}});var d=s(3684);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return d.List}});var c=s(674);Object.defineProperty(e,"Outdent",{enumerable:!0,get:function(){return c.Outdent}});var u=s(7947);Object.defineProperty(e,"InlineFormat",{enumerable:!0,get:function(){return u.InlineFormat}});var p=s(1198);Object.defineProperty(e,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=s(423);Object.defineProperty(e,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=s(8356);Object.defineProperty(e,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=s(1013);Object.defineProperty(e,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=s(84);Object.defineProperty(e,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=s(4165);Object.defineProperty(e,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var y=s(9343);Object.defineProperty(e,"SelectAll",{enumerable:!0,get:function(){return y.SelectAll}});var b=s(3976);Object.defineProperty(e,"InsertImage",{enumerable:!0,get:function(){return b.InsertImage}});var k=s(8799);Object.defineProperty(e,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=s(3381);Object.defineProperty(e,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=s(8086);Object.defineProperty(e,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var C=s(4312);Object.defineProperty(e,"Print",{enumerable:!0,get:function(){return C.Print}});var x=s(1217);Object.defineProperty(e,"FindAndReplace",{enumerable:!0,get:function(){return x.FindAndReplace}});var O=s(5555);Object.defineProperty(e,"ApplyColor",{enumerable:!0,get:function(){return O.ApplyColor}})})(),a})()}));