(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PrizeManagement","chunk-43a8a956","chunk-06c002b4","chunk-d7124a90","chunk-07087372","chunk-74ac50b4","chunk-2cb3767a"],{"166a":function(t,e,n){},"16b7":function(t,e,n){"use strict";n("a9e3");var i=n("2b0e");e["a"]=i["a"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(t,e){var n=this;this.clearDelay();var i=parseInt(this["".concat(t,"Delay")],10);this["".concat(t,"Timeout")]=setTimeout(e||function(){n.isActive={open:!0,close:!1}[t]},i)}}})},"17b3":function(t,e,n){},1800:function(t,e,n){"use strict";n("4de4"),n("d3b7");var i=n("2b0e");e["a"]=i["a"].extend({name:"v-list-item-action",functional:!0,render:function(t,e){var n=e.data,i=e.children,r=void 0===i?[]:i;n.staticClass=n.staticClass?"v-list-item__action ".concat(n.staticClass):"v-list-item__action";var o=r.filter((function(t){return!1===t.isComment&&" "!==t.text}));return o.length>1&&(n.staticClass+=" v-list-item__action--stack"),t("div",n,r)}})},"1baa":function(t,e,n){"use strict";var i=n("5530"),r=(n("899c"),n("604c")),o=n("a9ad"),a=n("58df");e["a"]=Object(a["a"])(r["a"],o["a"]).extend({name:"v-list-item-group",provide:function(){return{isInGroup:!0,listItemGroup:this}},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({},r["a"].options.computed.classes.call(this)),{},{"v-list-item-group":!0})}},methods:{genData:function(){return this.setTextColor(this.color,Object(i["a"])(Object(i["a"])({},r["a"].options.methods.genData.call(this)),{},{attrs:{role:"listbox"}}))}}})},"1f4f":function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("8b37"),n("80d2")),o=n("7560"),a=n("58df");e["a"]=Object(a["a"])(o["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return Object(i["a"])({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(r["h"])(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})},"21be":function(t,e,n){"use strict";var i=n("2909"),r=(n("99af"),n("caad"),n("2532"),n("2b0e")),o=n("80d2");e["a"]=r["a"].extend().extend({name:"stackable",data:function(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex:function(){if("undefined"===typeof window)return 0;var t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:Object(o["v"])(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.$el,n=[this.stackMinZIndex,Object(o["v"])(e)],r=[].concat(Object(i["a"])(document.getElementsByClassName("v-menu__content--active")),Object(i["a"])(document.getElementsByClassName("v-dialog__content--active"))),a=0;a<r.length;a++)t.includes(r[a])||n.push(Object(o["v"])(r[a]));return Math.max.apply(Math,n)}}})},"2c3e":function(t,e,n){var i=n("da84"),r=n("83ab"),o=n("9f7f").MISSED_STICKY,a=n("c6b6"),s=n("9bf2").f,l=n("69f3").get,u=RegExp.prototype,c=i.TypeError;r&&o&&s(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!l(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},3408:function(t,e,n){},"3a2f":function(t,e,n){"use strict";var i=n("ade3"),r=(n("a9e3"),n("9734"),n("4ad4")),o=n("a9ad"),a=n("16b7"),s=n("b848"),l=n("f573"),u=n("f2e7"),c=n("80d2"),d=n("d9bd"),f=n("58df");e["a"]=Object(f["a"])(o["a"],a["a"],s["a"],l["a"],u["a"]).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var t=this.dimensions,e=t.activator,n=t.content,i=!this.bottom&&!this.left&&!this.top&&!this.right,r=!1!==this.attach?e.offsetLeft:e.left,o=0;return this.top||this.bottom||i?o=r+e.width/2-n.width/2:(this.left||this.right)&&(o=r+(this.right?e.width:-n.width)+(this.right?10:-10)),this.nudgeLeft&&(o-=parseInt(this.nudgeLeft)),this.nudgeRight&&(o+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(o,this.dimensions.content.width),"px")},calculatedTop:function(){var t=this.dimensions,e=t.activator,n=t.content,i=!1!==this.attach?e.offsetTop:e.top,r=0;return this.top||this.bottom?r=i+(this.bottom?e.height:-n.height)+(this.bottom?10:-10):(this.left||this.right)&&(r=i+e.height/2-n.height/2),this.nudgeTop&&(r-=parseInt(this.nudgeTop)),this.nudgeBottom&&(r+=parseInt(this.nudgeBottom)),!1===this.attach&&(r+=this.pageYOffset),"".concat(this.calcYOverflow(r),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(c["h"])(this.maxWidth),minWidth:Object(c["h"])(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var t=this;this.$nextTick((function(){t.value&&t.callActivate()}))},mounted:function(){"v-slot"===Object(c["u"])(this,"activator",!0)&&Object(d["b"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate:function(){this.runDelay("close")},genActivatorListeners:function(){var t=this,e=r["a"].options.methods.genActivatorListeners.call(this);return this.openOnFocus&&(e.focus=function(e){t.getActivator(e),t.runDelay("open")},e.blur=function(e){t.getActivator(e),t.runDelay("close")}),e.keydown=function(e){e.keyCode===c["z"].esc&&(t.getActivator(e),t.runDelay("close"))},e},genActivatorAttributes:function(){return{"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genTransition:function(){var t=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[t]):t},genContent:function(){var t;return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:(t={},Object(i["a"])(t,this.contentClass,!0),Object(i["a"])(t,"menuable__content__active",this.isActive),Object(i["a"])(t,"v-tooltip__content--fixed",this.activatorFixed),t),style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render:function(t){var e=this;return t(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent((function(){return[e.genTransition()]})),this.genActivator()])}})},"3a51":function(t,e,n){},"3ad0":function(t,e,n){},"3c93":function(t,e,n){},"480e":function(t,e,n){"use strict";n("7db0"),n("d3b7");var i=n("7560");e["a"]=i["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"495d":function(t,e,n){},"4ad4":function(t,e,n){"use strict";var i=n("53ca"),r=(n("caad"),n("b64b"),n("d3b7"),n("b0c0"),n("16b7")),o=n("f2e7"),a=n("58df"),s=n("80d2"),l=n("d9bd"),u=Object(a["a"])(r["a"],o["a"]);e["a"]=u.extend({name:"activatable",props:{activator:{default:null,validator:function(t){return["string","object"].includes(Object(i["a"])(t))}},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:function(){return{activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}},watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted:function(){var t=Object(s["u"])(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&Object(l["b"])('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy:function(){this.removeActivatorEvents()},methods:{addActivatorEvents:function(){if(this.activator&&!this.disabled&&this.getActivator()){this.listeners=this.genActivatorListeners();for(var t=Object.keys(this.listeners),e=0,n=t;e<n.length;e++){var i=n[e];this.getActivator().addEventListener(i,this.listeners[i])}}},genActivator:function(){var t=Object(s["t"])(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=t,t},genActivatorAttributes:function(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners:function(){var t=this;if(this.disabled)return{};var e={};return this.openOnHover?(e.mouseenter=function(e){t.getActivator(e),t.runDelay("open")},e.mouseleave=function(e){t.getActivator(e),t.runDelay("close")}):this.openOnClick&&(e.click=function(e){var n=t.getActivator(e);n&&n.focus(),e.stopPropagation(),t.isActive=!t.isActive}),this.openOnFocus&&(e.focus=function(e){t.getActivator(e),e.stopPropagation(),t.isActive=!t.isActive}),e},getActivator:function(t){var e;if(this.activatorElement)return this.activatorElement;var n=null;if(this.activator){var i=this.internalActivator?this.$el:document;n="string"===typeof this.activator?i.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!t){var r=this.activatorNode[0].componentInstance;n=r&&r.$options.mixins&&r.$options.mixins.some((function(t){return t.options&&["activatable","menuable"].includes(t.options.name)}))?r.getActivator():this.activatorNode[0].elm}else t&&(n=t.currentTarget||t.target);return this.activatorElement=(null==(e=n)?void 0:e.nodeType)===Node.ELEMENT_NODE?n:null,this.activatorElement},getContentSlot:function(){return Object(s["t"])(this,"default",this.getValueProxy(),!0)},getValueProxy:function(){var t=this;return{get value(){return t.isActive},set value(e){t.isActive=e}}},removeActivatorEvents:function(){if(this.activator&&this.activatorElement){for(var t=Object.keys(this.listeners),e=0,n=t;e<n.length;e++){var i=n[e];this.activatorElement.removeEventListener(i,this.listeners[i])}this.listeners={}}},resetActivator:function(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}})},"4d63":function(t,e,n){var i=n("83ab"),r=n("da84"),o=n("e330"),a=n("94ca"),s=n("7156"),l=n("9112"),u=n("9bf2").f,c=n("241c").f,d=n("3a9b"),f=n("44e7"),h=n("577e"),p=n("ad6d"),v=n("9f7f"),b=n("6eeb"),m=n("d039"),g=n("1a2d"),y=n("69f3").enforce,_=n("2626"),O=n("b622"),x=n("fce3"),w=n("107c"),E=O("match"),k=r.RegExp,A=k.prototype,j=r.SyntaxError,S=o(p),P=o(A.exec),T=o("".charAt),C=o("".replace),N=o("".indexOf),I=o("".slice),q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,M=/a/g,B=new k(L)!==L,D=v.MISSED_STICKY,$=v.UNSUPPORTED_Y,R=i&&(!B||D||x||w||m((function(){return M[E]=!1,k(L)!=L||k(M)==M||"/a/i"!=k(L,"i")}))),z=function(t){for(var e,n=t.length,i=0,r="",o=!1;i<=n;i++)e=T(t,i),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+T(t,++i);return r},F=function(t){for(var e,n=t.length,i=0,r="",o=[],a={},s=!1,l=!1,u=0,c="";i<=n;i++){if(e=T(t,i),"\\"===e)e+=T(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:P(q,I(t,i+1))&&(i+=2,l=!0),r+=e,u++;continue;case">"===e&&l:if(""===c||g(a,c))throw new j("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=e:r+=e}return[r,o]};if(a("RegExp",R)){for(var H=function(t,e){var n,i,r,o,a,u,c=d(A,this),p=f(t),v=void 0===e,b=[],m=t;if(!c&&p&&v&&t.constructor===H)return t;if((p||d(A,t))&&(t=t.source,v&&(e="flags"in m?m.flags:S(m))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),m=t,x&&"dotAll"in L&&(i=!!e&&N(e,"s")>-1,i&&(e=C(e,/s/g,""))),n=e,D&&"sticky"in L&&(r=!!e&&N(e,"y")>-1,r&&$&&(e=C(e,/y/g,""))),w&&(o=F(t),t=o[0],b=o[1]),a=s(k(t,e),c?this:A,H),(i||r||b.length)&&(u=y(a),i&&(u.dotAll=!0,u.raw=H(z(t),n)),r&&(u.sticky=!0),b.length&&(u.groups=b)),t!==m)try{l(a,"source",""===m?"(?:)":m)}catch(g){}return a},G=function(t){t in H||u(H,t,{configurable:!0,get:function(){return k[t]},set:function(e){k[t]=e}})},U=c(k),K=0;U.length>K;)G(U[K++]);A.constructor=H,H.prototype=A,b(r,"RegExp",H)}_("RegExp")},5311:function(t,e,n){"use strict";var i=n("5607"),r=n("2b0e");e["a"]=r["a"].extend({name:"rippleable",directives:{ripple:i["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}})},"5d23":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"c",(function(){return A})),n.d(e,"b",(function(){return j}));var i=n("80d2"),r=n("8860"),o=n("5530"),a=n("ade3"),s=(n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("466d"),n("db42"),n("9d26")),l=n("da13"),u=(n("498a"),n("2b0e")),c=u["a"].extend({name:"v-list-item-icon",functional:!0,render:function(t,e){var n=e.data,i=e.children;return n.staticClass="v-list-item__icon ".concat(n.staticClass||"").trim(),t("div",n,i)}}),d=n("7e2b"),f=n("9d65"),h=n("a9ad"),p=n("f2e7"),v=n("3206"),b=n("5607"),m=n("0789"),g=n("58df"),y=Object(g["a"])(d["a"],f["a"],h["a"],Object(v["a"])("list"),p["a"]),_=y.extend().extend({name:"v-list-group",directives:{ripple:b["a"]},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes:function(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive:function(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created:function(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy:function(){this.list&&this.list.unregister(this)},methods:{click:function(t){var e=this;this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick((function(){return e.isActive=!e.isActive})))},genIcon:function(t){return this.$createElement(s["a"],t)},genAppendIcon:function(){var t=!this.subGroup&&this.appendIcon;return t||this.$slots.appendIcon?this.$createElement(c,{staticClass:"v-list-group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(t)]):null},genHeader:function(){return this.$createElement(l["a"],{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:Object(a["a"])({},this.activeClass,this.isActive),props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:Object(o["a"])(Object(o["a"])({},this.listeners$),{},{click:this.click})},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:t.isActive}]},Object(i["t"])(t))]}))},genPrependIcon:function(){var t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon;return t||this.$slots.prependIcon?this.$createElement(c,{staticClass:"v-list-group__header__prepend-icon"},[this.$slots.prependIcon||this.genIcon(t)]):null},onRouteChange:function(t){if(this.group){var e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e}},toggle:function(t){var e=this,n=this._uid===t;n&&(this.isBooted=!0),this.$nextTick((function(){return e.isActive=n}))},matchRoute:function(t){return null!==t.match(this.group)}},render:function(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(m["a"],this.genItems())])}}),O=n("1baa"),x=n("1800"),w=n("8270"),E=Object(i["j"])("v-list-item__action-text","span"),k=Object(i["j"])("v-list-item__content","div"),A=Object(i["j"])("v-list-item__title","div"),j=Object(i["j"])("v-list-item__subtitle","div");r["a"],l["a"],x["a"],w["a"],O["a"]},"604c":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5530"),r=(n("a9e3"),n("4de4"),n("d3b7"),n("a434"),n("159b"),n("fb6a"),n("7db0"),n("c740"),n("166a"),n("8547")),o=n("a452"),a=n("7560"),s=n("58df"),l=n("d9bd"),u=Object(s["a"])(r["a"],o["a"],a["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return Object(i["a"])({"v-item-group":!0},this.themeClasses)},selectedIndex:function(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem:function(){if(!this.multiple)return this.selectedItems[0]},selectedItems:function(){var t=this;return this.items.filter((function(e,n){return t.toggleMethod(t.getValue(e,n))}))},selectedValues:function(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var t=this;if(!this.multiple)return function(e){return t.valueComparator(t.internalValue,e)};var e=this.internalValue;return Array.isArray(e)?function(n){return e.some((function(e){return t.valueComparator(e,n)}))}:function(){return!1}}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&Object(l["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData:function(){return{class:this.classes}},getValue:function(t,e){return void 0===t.value?e:t.value},onClick:function(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register:function(t){var e=this,n=this.items.push(t)-1;t.$on("change",(function(){return e.onClick(t)})),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,n)},unregister:function(t){if(!this._isDestroyed){var e=this.items.indexOf(t),n=this.getValue(t,e);this.items.splice(e,1);var i=this.selectedValues.indexOf(n);if(!(i<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(t){return t!==n})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(t,e){var n=this.getValue(t,e);t.isActive=this.toggleMethod(n)},updateItemsState:function(){var t=this;this.$nextTick((function(){if(t.mandatory&&!t.selectedItems.length)return t.updateMandatory();t.items.forEach(t.updateItem)}))},updateInternalValue:function(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory:function(t){if(this.items.length){var e=this.items.slice();t&&e.reverse();var n=e.find((function(t){return!t.disabled}));if(n){var i=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,i))}}},updateMultiple:function(t){var e=Array.isArray(this.internalValue)?this.internalValue:[],n=e.slice(),i=n.findIndex((function(e){return e===t}));this.mandatory&&i>-1&&n.length-1<1||null!=this.max&&i<0&&n.length+1>this.max||(i>-1?n.splice(i,1):n.push(t),this.internalValue=n)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t(this.tag,this.genData(),this.$slots.default)}});u.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}})},"615b":function(t,e,n){},"61d2":function(t,e,n){},"62ad":function(t,e,n){"use strict";var i=n("ade3"),r=n("5530"),o=(n("d3b7"),n("a9e3"),n("b64b"),n("ac1f"),n("5319"),n("4ec9"),n("3ca3"),n("ddb0"),n("caad"),n("159b"),n("2ca0"),n("4b85"),n("2b0e")),a=n("d9f7"),s=n("80d2"),l=["sm","md","lg","xl"],u=function(){return l.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),{})}(),c=function(){return l.reduce((function(t,e){return t["offset"+Object(s["H"])(e)]={type:[String,Number],default:null},t}),{})}(),d=function(){return l.reduce((function(t,e){return t["order"+Object(s["H"])(e)]={type:[String,Number],default:null},t}),{})}(),f={col:Object.keys(u),offset:Object.keys(c),order:Object.keys(d)};function h(t,e,n){var i=t;if(null!=n&&!1!==n){if(e){var r=e.replace(t,"");i+="-".concat(r)}return"col"!==t||""!==n&&!0!==n?(i+="-".concat(n),i.toLowerCase()):i.toLowerCase()}}var p=new Map;e["a"]=o["a"].extend({name:"v-col",functional:!0,props:Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({cols:{type:[Boolean,String,Number],default:!1}},u),{},{offset:{type:[String,Number],default:null}},c),{},{order:{type:[String,Number],default:null}},d),{},{alignSelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},tag:{type:String,default:"div"}}),render:function(t,e){var n=e.props,r=e.data,o=e.children,s=(e.parent,"");for(var l in n)s+=String(n[l]);var u=p.get(s);return u||function(){var t,e;for(e in u=[],f)f[e].forEach((function(t){var i=n[t],r=h(e,t,i);r&&u.push(r)}));var r=u.some((function(t){return t.startsWith("col-")}));u.push((t={col:!r||!n.cols},Object(i["a"])(t,"col-".concat(n.cols),n.cols),Object(i["a"])(t,"offset-".concat(n.offset),n.offset),Object(i["a"])(t,"order-".concat(n.order),n.order),Object(i["a"])(t,"align-self-".concat(n.alignSelf),n.alignSelf),t)),p.set(s,u)}(),t(n.tag,Object(a["a"])(r,{class:u}),o)}})},"6eb5":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"px-7 py-8"},[t.loading?n("div",{staticClass:"text-center",staticStyle:{"min-height":"500px"}},[n("v-progress-circular",{staticStyle:{"text-align":"center","padding-top":"20px","padding-bottom":"20px","margin-top":"200px"},attrs:{size:100,width:10,color:"#7253CF",indeterminate:""}},[n("v-overlay")],1)],1):n("div",[n("v-card",[n("v-card-text",{staticClass:"py-0 px-0"},[n("v-row",[n("v-col",{staticClass:"px-10 py-10",staticStyle:{"border-right":"1px solid #ffba00"},attrs:{cols:"7"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[n("div",{staticClass:"fieldHeading px-1"},[t._v("Email Title")])]),n("v-col",{attrs:{cols:"12"}},[n("v-text-field",{staticClass:"formFields",attrs:{placeholder:"Email Title",outlined:"",dense:"",rules:[t.rules.required],color:"#7253CF",disabled:t.formLoading},model:{value:t.emailTitle,callback:function(e){t.emailTitle=e},expression:"emailTitle"}})],1),n("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[n("div",{staticClass:"fieldHeading px-1"},[t._v("Email Description")])]),n("v-col",{attrs:{cols:"12"}},[n("v-text-field",{staticClass:"formFields",attrs:{placeholder:"Email Description",outlined:"",dense:"",color:"#7253CF",disabled:t.formLoading},model:{value:t.emailDescription,callback:function(e){t.emailDescription=e},expression:"emailDescription"}})],1),n("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[n("div",{staticClass:"fieldHeading px-1"},[t._v("Email Subject")])]),n("v-col",{attrs:{cols:"12"}},[n("v-text-field",{staticClass:"formFields",attrs:{placeholder:"Email Subject",outlined:"",dense:"",color:"#7253CF",disabled:t.formLoading},model:{value:t.emailSubject,callback:function(e){t.emailSubject=e},expression:"emailSubject"}})],1),n("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[n("div",{staticClass:"fieldHeading px-1"},[t._v("Email Body")])]),n("v-col",{attrs:{cols:"12"}},[n("div",{staticStyle:{width:"100%",height:"370px"}},[n("quillEditor",{attrs:{options:t.editorOption},model:{value:t.emailBody,callback:function(e){t.emailBody=e},expression:"emailBody"}})],1)]),n("v-col",{staticClass:"d-flex justify-end",attrs:{cols:"12"}},[n("v-btn",{staticClass:"text-capitalize",staticStyle:{"border-radius":"10px"},attrs:{dark:"",height:"45",width:"180",color:"#2c1963",loading:t.formLoading},on:{click:t.submitManualForm}},[n("span",[t._v("Save")])])],1)],1)],1),n("v-col",{staticClass:"px-10 py-10",staticStyle:{"background-color":"#fffcf5"},attrs:{cols:"5"}},[n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("div",{staticClass:"keywordHeading"},[t._v("Available Keywords")]),n("v-divider")],1),n("v-col",{attrs:{cols:"12"}},[n("div",{staticClass:"keywordDescription"},[t._v(" There are the available keywords to be used in this email templates ")])])],1),t._l(t.keywordsList,(function(e,i){return n("v-row",{key:i},[n("v-col",{attrs:{cols:"5"}},[n("div",{staticClass:"keywordTitle px-4 py-2"},[t._v(t._s(e.title))])]),n("v-col",{attrs:{cols:"1"}},[n("div",{staticClass:"py-2",staticStyle:{"font-size":"19px",color:"black"}},[t._v(" : ")])]),n("v-col",{attrs:{cols:"5"}},[n("div",{staticClass:"keyword py-2 px-4"},[t._v(t._s(e.key))])])],1)}))],2)],1)],1)],1)],1)])},r=[],o=n("5530"),a=(n("b0c0"),n("8096"),n("953d")),s=n("1022"),l=n("2f62"),u=n("3bc1"),c=n("bf4c"),d=n("c3b5"),f={name:"ManualTemplateForm",components:{quillEditor:a["quillEditor"]},data:function(){return{rules:d["a"],loading:!1,type:"",email_id:null,formLoading:!1,emailTitle:"",emailSubject:"",emailDescription:"",emailBody:"",keywordsList:[],editorOption:{placeholder:"Email body",readOnly:!0,theme:"snow",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],[{align:[]}],[{direction:"rtl"}],["clean"]]}}}},computed:{toast:function(){var t="";return t="add"===this.type?"Email Template Added":"Email Template Updated",t}},watch:{},methods:Object(o["a"])(Object(o["a"])({},Object(l["b"])({showToast:"snackBar/showToast"})),{},{getManualEmailDetail:function(){var t=this,e=function(e){t.emailTitle=e.data.email_template_detail.email_title,t.emailDescription=e.data.email_template_detail.email_description,t.emailSubject=e.data.email_template_detail.email_subject,t.emailBody=e.data.email_template_detail.email_body,t.loading=!1},n=function(e){console.log(e),t.loading=!1},i=function(){t.getKeyWords()},r={};r["email_template_id"]=this.email_id,u["a"].request_GET(c["Pb"],r,{},e,n,!1,!0,i)},getKeyWords:function(){var t=this,e=function(e){console.log(e.data),t.keywordsList=e.data.email_template_keyword_list,t.loading=!1},n=function(e){console.log(e),t.loading=!1},i={};u["a"].request_GET(c["Qb"],i,{},e,n,!1)},submitManualForm:function(){var t=this;this.formLoading=!0;var e=function(e){console.log(e,"success"),t.formLoading=!1,t.$router.push({name:s["b"].adminPanel.children.emailSettings.name}),setTimeout((function(){t.$root.$refs.adminLayout.routeBackEmailTab("manualEmailTemplate")}),500),t.showToast({message:t.toast,color:"s"})},n=function(e){console.log(e),t.showToast({message:"Something Went Wrong",color:"e"}),t.formLoading=!1},i={};i["email_title"]=this.emailTitle,i["email_description"]=this.emailDescription,i["email_subject"]=this.emailSubject,i["email_body"]=this.emailBody,"add"===this.type?u["a"].request_POST(c["Sb"],i,{},e,n,!1):(i["email_template_id"]=this.email_id,u["a"].request_PATCH(c["Ob"],i,{},e,n,!1))}}),mounted:function(){this.type=this.$route.query.type,this.email_id=this.$route.query.id,this.loading=!0,"edit"===this.type?this.getManualEmailDetail():this.getKeyWords()}},h=f,p=(n("7345"),n("2877")),v=n("6544"),b=n.n(v),m=n("8336"),g=n("b0af"),y=n("99d9"),_=n("62ad"),O=n("ce7e"),x=n("a797"),w=n("490a"),E=n("0fd9"),k=n("8654"),A=Object(p["a"])(h,i,r,!1,null,"3ba057ed",null);e["default"]=A.exports;b()(A,{VBtn:m["a"],VCard:g["a"],VCardText:y["b"],VCol:_["a"],VDivider:O["a"],VOverlay:x["a"],VProgressCircular:w["a"],VRow:E["a"],VTextField:k["a"]})},"713a":function(t,e,n){"use strict";var i=n("8212");e["a"]=i["a"]},7345:function(t,e,n){"use strict";n("74fb")},"74fb":function(t,e,n){},"75eb":function(t,e,n){"use strict";var i=n("ade3"),r=n("53ca"),o=(n("d3b7"),n("159b"),n("caad"),n("2532"),n("a630"),n("3ca3"),n("9d65")),a=n("80d2"),s=n("58df"),l=n("d9bd");function u(t){var e=Object(r["a"])(t);return"boolean"===e||"string"===e||t.nodeType===Node.ELEMENT_NODE}function c(t){t.forEach((function(t){t.elm&&t.elm.parentNode&&t.elm.parentNode.removeChild(t.elm)}))}e["a"]=Object(s["a"])(o["a"]).extend({name:"detachable",props:{attach:{default:!1,validator:u},contentClass:{type:String,default:""}},data:function(){return{activatorNode:null,hasDetached:!1}},watch:{attach:function(){this.hasDetached=!1,this.initDetach()},hasContent:function(){this.$nextTick(this.initDetach)}},beforeMount:function(){var t=this;this.$nextTick((function(){if(t.activatorNode){var e=Array.isArray(t.activatorNode)?t.activatorNode:[t.activatorNode];e.forEach((function(e){if(e.elm&&t.$el.parentNode){var n=t.$el===t.$el.parentNode.firstChild?t.$el:t.$el.nextSibling;t.$el.parentNode.insertBefore(e.elm,n)}}))}}))},mounted:function(){this.hasContent&&this.initDetach()},deactivated:function(){this.isActive=!1},beforeDestroy:function(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed:function(){var t=this;if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){var n=new MutationObserver((function(i){i.some((function(e){return Array.from(e.removedNodes).includes(t.$el)}))&&(n.disconnect(),c(e))}));n.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else c(e)}},methods:{getScopeIdAttrs:function(){var t=Object(a["q"])(this.$vnode,"context.$options._scopeId");return t&&Object(i["a"])({},t,"")},initDetach:function(){var t;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||(t=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,t?(t.appendChild(this.$refs.content),this.hasDetached=!0):Object(l["c"])("Unable to locate target ".concat(this.attach||"[data-app]"),this))}}})},8096:function(t,e,n){},8212:function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("3408"),n("a9ad")),o=n("24b2"),a=n("a236"),s=n("80d2"),l=n("58df");e["a"]=Object(l["a"])(r["a"],o["a"],a["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes:function(){return Object(i["a"])({"v-avatar--left":this.left,"v-avatar--right":this.right},this.roundedClasses)},styles:function(){return Object(i["a"])({height:Object(s["h"])(this.size),minWidth:Object(s["h"])(this.size),width:Object(s["h"])(this.size)},this.measurableStyles)}},render:function(t){var e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},8270:function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("713a"));e["a"]=r["a"].extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-list-item__avatar--horizontal":this.horizontal},r["a"].options.computed.classes.call(this)),{},{"v-avatar--tile":this.tile||this.horizontal})}},render:function(t){var e=r["a"].options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}})},"82fa":function(t,e,n){"use strict";var i={date_regex:/^\d{2}\/\d{2}\/\d{4}$/,number_regex:/^\d+$/,ACTION:"action",TOKEN:"token",USER_EMAIL:"user_email",PASSWORD:"password"};e["a"]=i},"841c":function(t,e,n){"use strict";var i=n("c65b"),r=n("d784"),o=n("825a"),a=n("1d80"),s=n("129f"),l=n("577e"),u=n("dc4a"),c=n("14c3");r("search",(function(t,e,n){return[function(e){var n=a(this),r=void 0==e?void 0:u(e,t);return r?i(r,e,n):new RegExp(e)[t](l(n))},function(t){var i=o(this),r=l(t),a=n(e,i,r);if(a.done)return a.value;var u=i.lastIndex;s(u,0)||(i.lastIndex=0);var d=c(i,r);return s(i.lastIndex,u)||(i.lastIndex=u),null===d?-1:d.index}]}))},8547:function(t,e,n){"use strict";var i=n("2b0e"),r=n("80d2");e["a"]=i["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:r["k"]}}})},8860:function(t,e,n){"use strict";var i=n("b85c"),r=n("5530"),o=(n("0481"),n("4069"),n("c740"),n("a434"),n("3ad0"),n("8dd9"));e["a"]=o["a"].extend().extend({name:"v-list",provide:function(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:function(){return{groups:[]}},computed:{classes:function(){return Object(r["a"])(Object(r["a"])({},o["a"].options.computed.classes.call(this)),{},{"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine})}},methods:{register:function(t){this.groups.push(t)},unregister:function(t){var e=this.groups.findIndex((function(e){return e._uid===t._uid}));e>-1&&this.groups.splice(e,1)},listClick:function(t){if(!this.expand){var e,n=Object(i["a"])(this.groups);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.toggle(t)}}catch(o){n.e(o)}finally{n.f()}}}},render:function(t){var e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:Object(r["a"])({role:this.isInNav||this.isInMenu?void 0:"list"},this.attrs$)};return t(this.tag,this.setBackgroundColor(this.color,e),[this.$slots.default])}})},"891e":function(t,e,n){"use strict";var i=n("2909"),r=n("5530"),o=(n("a9e3"),n("99af"),n("d3b7"),n("25f0"),n("d81d"),n("17b3"),n("9d26")),a=n("dc22"),s=n("a9ad"),l=n("de2c"),u=n("7560"),c=n("58df");e["a"]=Object(c["a"])(s["a"],Object(l["a"])({onVisible:["init"]}),u["a"]).extend({name:"v-pagination",directives:{Resize:a["a"]},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:function(t){return t%1===0}},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},totalVisible:[Number,String],value:{type:Number,default:0},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},wrapperAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.wrapper"}},data:function(){return{maxButtons:0,selected:null}},computed:{classes:function(){return Object(r["a"])({"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled},this.themeClasses)},items:function(){var t=parseInt(this.totalVisible,10);if(0===t)return[];var e=Math.min(Math.max(0,t)||this.length,Math.max(0,this.maxButtons)||this.length,this.length);if(this.length<=e)return this.range(1,this.length);var n=e%2===0?1:0,r=Math.floor(e/2),o=this.length-r+1+n;if(this.value>r&&this.value<o){var a=1,s=this.length,l=this.value-r+2,u=this.value+r-2-n,c=l-1===a+1?2:"...",d=u+1===s-1?u+1:"...";return[1,c].concat(Object(i["a"])(this.range(l,u)),[d,this.length])}if(this.value===r){var f=this.value+r-1-n;return[].concat(Object(i["a"])(this.range(1,f)),["...",this.length])}if(this.value===o){var h=this.value-r+1;return[1,"..."].concat(Object(i["a"])(this.range(h,this.length)))}return[].concat(Object(i["a"])(this.range(1,r)),["..."],Object(i["a"])(this.range(o,this.length)))}},watch:{value:function(){this.init()}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.selected=null,this.$nextTick(this.onResize),setTimeout((function(){return t.selected=t.value}),100)},onResize:function(){var t=this.$el&&this.$el.parentElement?this.$el.parentElement.clientWidth:window.innerWidth;this.maxButtons=Math.floor((t-96)/42)},next:function(t){t.preventDefault(),this.$emit("input",this.value+1),this.$emit("next")},previous:function(t){t.preventDefault(),this.$emit("input",this.value-1),this.$emit("previous")},range:function(t,e){var n=[];t=t>0?t:1;for(var i=t;i<=e;i++)n.push(i);return n},genIcon:function(t,e,n,i,r){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":n},attrs:{disabled:n,type:"button","aria-label":r},on:n?{}:{click:i}},[t(o["a"],[e])])])},genItem:function(t,e){var n=this,i=e===this.value&&(this.color||"primary"),r=e===this.value,o=r?this.currentPageAriaLabel:this.pageAriaLabel;return t("button",this.setBackgroundColor(i,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button","aria-current":r,"aria-label":this.$vuetify.lang.t(o,e)},on:{click:function(){return n.$emit("input",e)}}}),[e.toString()])},genItems:function(t){var e=this;return this.items.map((function(n,i){return t("li",{key:i},[isNaN(Number(n))?t("span",{class:"v-pagination__more"},[n.toString()]):e.genItem(t,n)])}))},genList:function(t,e){return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}},render:function(t){var e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous,this.$vuetify.lang.t(this.previousAriaLabel)),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next,this.$vuetify.lang.t(this.nextAriaLabel))];return t("nav",{attrs:{role:"navigation","aria-label":this.$vuetify.lang.t(this.wrapperAriaLabel)}},[this.genList(t,e)])}})},"899c":function(t,e,n){},"8adc":function(t,e,n){},"8b37":function(t,e,n){},"8ce9":function(t,e,n){},"8fea":function(t,e,n){"use strict";var i=n("3835"),r=n("53ca"),o=n("5530"),a=(n("4de4"),n("d3b7"),n("498a"),n("a9e3"),n("7db0"),n("c740"),n("a434"),n("4e827"),n("d81d"),n("a630"),n("3ca3"),n("b0c0"),n("99af"),n("91f4"),n("2909")),s=(n("fb6a"),n("ac1f"),n("841c"),n("80d2")),l=n("2b0e"),u=l["a"].extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},sortBy:{type:[String,Array]},sortDesc:{type:[Boolean,Array]},customSort:{type:Function,default:s["F"]},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:function(){return[]}},groupDesc:{type:[Boolean,Array],default:function(){return[]}},customGroup:{type:Function,default:s["w"]},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:s["E"]},serverItemsLength:{type:Number,default:-1}},data:function(){var t={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:Object(s["I"])(this.sortBy),sortDesc:Object(s["I"])(this.sortDesc),groupBy:Object(s["I"])(this.groupBy),groupDesc:Object(s["I"])(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(t=Object.assign(t,this.options));var e,n,i=t,r=i.sortBy,o=i.sortDesc,l=i.groupBy,u=i.groupDesc,c=r.length-o.length,d=l.length-u.length;c>0&&(e=t.sortDesc).push.apply(e,Object(a["a"])(Object(s["n"])(c,!1)));d>0&&(n=t.groupDesc).push.apply(n,Object(a["a"])(Object(s["n"])(d,!1)));return{internalOptions:t}},computed:{itemsLength:function(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount:function(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart:function(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop:function(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped:function(){return!!this.internalOptions.groupBy.length},pagination:function(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems:function(){var t=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(t=this.customFilter(t,this.search)),t},computedItems:function(){var t=this.filteredItems.slice();return(!this.disableSort||this.internalOptions.groupBy.length)&&this.serverItemsLength<=0&&(t=this.sortItems(t)),!this.disablePagination&&this.serverItemsLength<=0&&(t=this.paginateItems(t)),t},groupedItems:function(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps:function(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions:function(){return Object(o["a"])({},this.options)}},watch:{computedOptions:{handler:function(t,e){Object(s["k"])(t,e)||this.updateOptions(t)},deep:!0,immediate:!0},internalOptions:{handler:function(t,e){Object(s["k"])(t,e)||this.$emit("update:options",t)},deep:!0,immediate:!0},page:function(t){this.updateOptions({page:t})},"internalOptions.page":function(t){this.$emit("update:page",t)},itemsPerPage:function(t){this.updateOptions({itemsPerPage:t})},"internalOptions.itemsPerPage":function(t){this.$emit("update:items-per-page",t)},sortBy:function(t){this.updateOptions({sortBy:Object(s["I"])(t)})},"internalOptions.sortBy":function(t,e){!Object(s["k"])(t,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?t:t[0])},sortDesc:function(t){this.updateOptions({sortDesc:Object(s["I"])(t)})},"internalOptions.sortDesc":function(t,e){!Object(s["k"])(t,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?t:t[0])},groupBy:function(t){this.updateOptions({groupBy:Object(s["I"])(t)})},"internalOptions.groupBy":function(t,e){!Object(s["k"])(t,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?t:t[0])},groupDesc:function(t){this.updateOptions({groupDesc:Object(s["I"])(t)})},"internalOptions.groupDesc":function(t,e){!Object(s["k"])(t,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?t:t[0])},multiSort:function(t){this.updateOptions({multiSort:t})},"internalOptions.multiSort":function(t){this.$emit("update:multi-sort",t)},mustSort:function(t){this.updateOptions({mustSort:t})},"internalOptions.mustSort":function(t){this.$emit("update:must-sort",t)},pageCount:{handler:function(t){this.$emit("page-count",t)},immediate:!0},computedItems:{handler:function(t){this.$emit("current-items",t)},immediate:!0},pagination:{handler:function(t,e){Object(s["k"])(t,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle:function(t,e,n,i,r,o){var a=e.slice(),l=n.slice(),u=a.findIndex((function(e){return e===t}));return u<0?(o||(a=[],l=[]),a.push(t),l.push(!1)):u>=0&&!l[u]?l[u]=!0:r?l[u]=!1:(a.splice(u,1),l.splice(u,1)),Object(s["k"])(a,e)&&Object(s["k"])(l,n)||(i=1),{by:a,desc:l,page:i}},group:function(t){var e=this.toggle(t,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1),n=e.by,i=e.desc,r=e.page;this.updateOptions({groupBy:n,groupDesc:i,page:r})},sort:function(t){if(Array.isArray(t))return this.sortArray(t);var e=this.toggle(t,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort),n=e.by,i=e.desc,r=e.page;this.updateOptions({sortBy:n,sortDesc:i,page:r})},sortArray:function(t){var e=this,n=t.map((function(t){var n=e.internalOptions.sortBy.findIndex((function(e){return e===t}));return n>-1&&e.internalOptions.sortDesc[n]}));this.updateOptions({sortBy:t,sortDesc:n})},updateOptions:function(t){this.internalOptions=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.internalOptions),t),{},{page:this.serverItemsLength<0?Math.max(1,Math.min(t.page||this.internalOptions.page,this.pageCount)):t.page||this.internalOptions.page})},sortItems:function(t){var e=[],n=[];return this.disableSort||(e=this.internalOptions.sortBy,n=this.internalOptions.sortDesc),this.internalOptions.groupBy.length&&(e=[].concat(Object(a["a"])(this.internalOptions.groupBy),Object(a["a"])(e)),n=[].concat(Object(a["a"])(this.internalOptions.groupDesc),Object(a["a"])(n))),this.customSort(t,e,n,this.locale)},groupItems:function(t){return this.customGroup(t,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems:function(t){return-1===this.serverItemsLength&&t.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,Math.ceil(t.length/this.internalOptions.itemsPerPage))||1),t.slice(this.pageStart,this.pageStop)}},render:function(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),c=(n("b64b"),n("07ac"),n("caad"),n("2532"),n("25f0"),n("495d"),n("b974")),d=n("9d26"),f=n("afdd"),h=l["a"].extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:function(){return[5,10,15,-1]}},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon:function(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions:function(){var t=this;return this.itemsPerPageOptions.map((function(e){return"object"===Object(r["a"])(e)?e:t.genDataItemsPerPageOption(e)}))}},methods:{updateOptions:function(t){this.$emit("update:options",Object.assign({},this.options,t))},onFirstPage:function(){this.updateOptions({page:1})},onPreviousPage:function(){this.updateOptions({page:this.options.page-1})},onNextPage:function(){this.updateOptions({page:this.options.page+1})},onLastPage:function(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage:function(t){this.updateOptions({itemsPerPage:t,page:1})},genDataItemsPerPageOption:function(t){return{text:-1===t?this.$vuetify.lang.t(this.itemsPerPageAllText):String(t),value:t}},genItemsPerPageSelect:function(){var t=this.options.itemsPerPage,e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find((function(e){return e.value===t}))||(t=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(c["a"],{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:e,value:t,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo:function(){var t=["–"],e=this.pagination.itemsLength,n=this.pagination.pageStart,i=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(n=this.pagination.pageStart+1,i=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop,t=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:n,pageStop:i,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,n,i,e)]):this.$scopedSlots["page-text"]&&(t=[this.$scopedSlots["page-text"]({pageStart:n,pageStop:i,itemsLength:e})]),this.$createElement("div",{class:"v-data-footer__pagination"},t)},genIcon:function(t,e,n,i){return this.$createElement(f["a"],{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:t},attrs:{"aria-label":n}},[this.$createElement(d["a"],i)])},genIcons:function(){var t=[],e=[];return t.push(this.genIcon(this.onPreviousPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(t.unshift(this.genIcon(this.onFirstPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||-1===this.options.itemsPerPage,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},t),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render:function(){return this.$createElement("div",{staticClass:"v-data-footer"},[Object(s["t"])(this,"prepend"),this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),p=n("e4cd"),v=n("7560"),b=n("58df"),m=n("d9bd"),g=Object(b["a"])(p["a"],v["a"]).extend({name:"v-data-iterator",props:Object(o["a"])(Object(o["a"])({},u.options.props),{},{itemKey:{type:String,default:"id"},value:{type:Array,default:function(){return[]}},singleSelect:Boolean,expanded:{type:Array,default:function(){return[]}},mobileBreakpoint:Object(o["a"])(Object(o["a"])({},p["a"].options.props.mobileBreakpoint),{},{default:600}),singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}}),data:function(){return{selection:{},expansion:{},internalCurrentItems:[],shiftKeyDown:!1,lastEntry:-1}},computed:{everyItem:function(){var t=this;return!!this.selectableItems.length&&this.selectableItems.every((function(e){return t.isSelected(e)}))},someItems:function(){var t=this;return this.selectableItems.some((function(e){return t.isSelected(e)}))},sanitizedFooterProps:function(){return Object(s["d"])(this.footerProps)},selectableItems:function(){var t=this;return this.internalCurrentItems.filter((function(e){return t.isSelectable(e)}))}},watch:{value:{handler:function(t){var e=this;this.selection=t.reduce((function(t,n){return t[Object(s["q"])(n,e.itemKey)]=n,t}),{})},immediate:!0},selection:function(t,e){Object(s["k"])(Object.keys(t),Object.keys(e))||this.$emit("input",Object.values(t))},expanded:{handler:function(t){var e=this;this.expansion=t.reduce((function(t,n){return t[Object(s["q"])(n,e.itemKey)]=!0,t}),{})},immediate:!0},expansion:function(t,e){var n=this;if(!Object(s["k"])(t,e)){var i=Object.keys(t).filter((function(e){return t[e]})),r=i.length?this.items.filter((function(t){return i.includes(String(Object(s["q"])(t,n.itemKey)))})):[];this.$emit("update:expanded",r)}}},created:function(){var t=this,e=[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]];e.forEach((function(e){var n=Object(i["a"])(e,2),r=n[0],o=n[1];t.$attrs.hasOwnProperty(r)&&Object(m["a"])(r,o,t)}));var n=["expand","content-class","content-props","content-tag"];n.forEach((function(e){t.$attrs.hasOwnProperty(e)&&Object(m["e"])(e)}))},mounted:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeDestroy:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},methods:{onKeyDown:function(t){t.keyCode===s["z"].shift&&(this.shiftKeyDown=!0)},onKeyUp:function(t){t.keyCode===s["z"].shift&&(this.shiftKeyDown=!1)},toggleSelectAll:function(t){for(var e=Object.assign({},this.selection),n=0;n<this.selectableItems.length;n++){var i=this.selectableItems[n];if(this.isSelectable(i)){var r=Object(s["q"])(i,this.itemKey);t?e[r]=i:delete e[r]}}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:t})},isSelectable:function(t){return!1!==Object(s["q"])(t,this.selectableKey)},isSelected:function(t){return!!this.selection[Object(s["q"])(t,this.itemKey)]||!1},select:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isSelectable(t)){var r=this.singleSelect?{}:Object.assign({},this.selection),o=Object(s["q"])(t,this.itemKey);n?r[o]=t:delete r[o];var a=this.selectableItems.findIndex((function(t){return Object(s["q"])(t,e.itemKey)===o}));if(-1===this.lastEntry)this.lastEntry=a;else if(this.shiftKeyDown&&!this.singleSelect&&i){var l=Object(s["q"])(this.selectableItems[this.lastEntry],this.itemKey),u=Object.keys(this.selection).includes(String(l));this.multipleSelect(u,i,r,a)}if(this.lastEntry=a,this.singleSelect&&i){var c=Object.keys(this.selection),d=c.length&&Object(s["q"])(this.selection[c[0]],this.itemKey);d&&d!==o&&this.$emit("item-selected",{item:this.selection[d],value:!1})}this.selection=r,i&&this.$emit("item-selected",{item:t,value:n})}},multipleSelect:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=i<this.lastEntry?i:this.lastEntry,o=i<this.lastEntry?this.lastEntry:i,a=r;a<=o;a++){var l=this.selectableItems[a],u=Object(s["q"])(l,this.itemKey);t?n[u]=l:delete n[u],e&&this.$emit("item-selected",{currentItem:l,value:t})}},isExpanded:function(t){return this.expansion[Object(s["q"])(t,this.itemKey)]||!1},expand:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.singleExpand?{}:Object.assign({},this.expansion),i=Object(s["q"])(t,this.itemKey);e?n[i]=!0:delete n[i],this.expansion=n,this.$emit("item-expanded",{item:t,value:e})},createItemProps:function(t,e){var n=this;return{item:t,index:e,select:function(e){return n.select(t,e)},isSelected:this.isSelected(t),expand:function(e){return n.expand(t,e)},isExpanded:this.isExpanded(t),isMobile:this.isMobile}},genEmptyWrapper:function(t){return this.$createElement("div",t)},genEmpty:function(t,e){if(0===t&&this.loading){var n=this.$slots.loading||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(n)}if(0===t){var i=this.$slots["no-data"]||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(i)}if(0===e){var r=this.$slots["no-results"]||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(r)}return null},genItems:function(t){var e=this,n=this.genEmpty(t.originalItemsLength,t.pagination.itemsLength);return n?[n]:this.$scopedSlots.default?this.$scopedSlots.default(Object(o["a"])(Object(o["a"])({},t),{},{isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,isMobile:this.isMobile,expand:this.expand})):this.$scopedSlots.item?t.items.map((function(t,n){return e.$scopedSlots.item(e.createItemProps(t,n))})):[]},genFooter:function(t){if(this.hideDefaultFooter)return null;var e={props:Object(o["a"])(Object(o["a"])({},this.sanitizedFooterProps),{},{options:t.options,pagination:t.pagination}),on:{"update:options":function(e){return t.updateOptions(e)}}},n=Object(s["r"])("footer.",this.$scopedSlots);return this.$createElement(h,Object(o["a"])({scopedSlots:n},e))},genDefaultScopedSlot:function(t){var e=Object(o["a"])(Object(o["a"])({},t),{},{someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll});return this.$createElement("div",{staticClass:"v-data-iterator"},[Object(s["t"])(this,"header",e,!0),this.genItems(t),this.genFooter(t),Object(s["t"])(this,"footer",e,!0)])}},render:function(){var t=this;return this.$createElement(u,{props:this.$props,on:{"update:options":function(e,n){return!Object(s["k"])(e,n)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,n){return!Object(s["k"])(e,n)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}}),y=(n("f823"),n("34ef")),_=n("9e88"),O=n("5607"),x=Object(b["a"])().extend({directives:{ripple:O["a"]},props:{headers:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1}}},checkboxColor:String,sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll:function(){var t,e=this,n={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems,color:null!=(t=this.checkboxColor)?t:""},on:{input:function(t){return e.$emit("toggle-select-all",t)}}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](n):this.$createElement(_["a"],Object(o["a"])({staticClass:"v-data-table__checkbox"},n))},genSortIcon:function(){return this.$createElement(d["a"],{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}}),w=Object(b["a"])(x).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip:function(t){var e=this,n=[t.item.text],i=this.options.sortBy.findIndex((function(e){return e===t.item.value})),r=i>=0,o=this.options.sortDesc[i];return n.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:r,asc:r&&!o,desc:r&&o}},[this.genSortIcon()])),this.$createElement(y["a"],{staticClass:"sortable",on:{click:function(n){n.stopPropagation(),e.$emit("sort",t.item.value)}}},n)},genSortSelect:function(t){var e=this;return this.$createElement(c["a"],{props:{label:this.$vuetify.lang.t(this.sortByText),items:t,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:function(t){return e.$emit("sort",t)}},scopedSlots:{selection:function(t){return e.genSortChip(t)}}})}},render:function(t){var e=[],n=this.headers.find((function(t){return"data-table-select"===t.value}));n&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select"].concat(Object(a["a"])(Object(s["I"])(n.class))),attrs:{width:n.width}},[this.genSelectAll()]));var i=this.headers.filter((function(t){return!1!==t.sortable&&"data-table-select"!==t.value})).map((function(t){return{text:t.text,value:t.value}}));!this.disableSort&&i.length&&e.push(this.genSortSelect(i));var r=e.length?t("th",[t("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]):void 0,o=t("tr",[r]);return t("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[o])}}),E=(n("a15b"),Object(b["a"])(x).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle:function(t){var e=this;return this.$createElement("span",{on:{click:function(n){n.stopPropagation(),e.$emit("group",t.value)}}},["group"])},getAria:function(t,e){var n=this,i=function(t){return n.$vuetify.lang.t("$vuetify.dataTable.ariaLabel.".concat(t))},r="none",o=[i("sortNone"),i("activateAscending")];return t?(e?(r="descending",o=[i("sortDescending"),i(this.options.mustSort?"activateAscending":"activateNone")]):(r="ascending",o=[i("sortAscending"),i("activateDescending")]),{ariaSort:r,ariaLabel:o.join(" ")}):{ariaSort:r,ariaLabel:o.join(" ")}},genHeader:function(t){var e=this,n={attrs:{role:"columnheader",scope:"col","aria-label":t.text||""},style:{width:Object(s["h"])(t.width),minWidth:Object(s["h"])(t.width)},class:["text-".concat(t.align||"start")].concat(Object(a["a"])(Object(s["I"])(t.class)),[t.divider&&"v-data-table__divider"]),on:{}},i=[];if("data-table-select"===t.value&&!this.singleSelect)return this.$createElement("th",n,[this.genSelectAll()]);if(i.push(this.$scopedSlots.hasOwnProperty(t.value)?this.$scopedSlots[t.value]({header:t}):this.$createElement("span",[t.text])),!this.disableSort&&(t.sortable||!t.hasOwnProperty("sortable"))){n.on.click=function(){return e.$emit("sort",t.value)};var r=this.options.sortBy.findIndex((function(e){return e===t.value})),o=r>=0,l=this.options.sortDesc[r];n.class.push("sortable");var u=this.getAria(o,l),c=u.ariaLabel,d=u.ariaSort;n.attrs["aria-label"]+="".concat(t.text?": ":"").concat(c),n.attrs["aria-sort"]=d,o&&(n.class.push("active"),n.class.push(l?"desc":"asc")),"end"===t.align?i.unshift(this.genSortIcon()):i.push(this.genSortIcon()),this.options.multiSort&&o&&i.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(r+1)]))}return this.showGroupBy&&!1!==t.groupable&&i.push(this.genGroupByToggle(t)),this.$createElement("th",n,i)}},render:function(){var t=this;return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map((function(e){return t.genHeader(e)})))])}}));function k(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){var e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}var A=n("d9f7");function j(t,e){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(e("template",{slot:i},t[i]));return n}var S=l["a"].extend({name:"v-data-table-header",functional:!0,props:Object(o["a"])(Object(o["a"])({},x.options.props),{},{mobile:Boolean}),render:function(t,e){var n=e.props,i=e.data,r=e.slots;k(i);var o=j(r(),t);return i=Object(A["a"])(i,{props:n}),n.mobile?t(w,i,o):t(E,i,o)}});function P(t){var e;return 1!==t.length||!["td","th"].includes(null==(e=t[0])?void 0:e.tag)}var T=l["a"].extend({name:"row",functional:!0,props:{headers:Array,index:Number,item:Object,rtl:Boolean},render:function(t,e){var n=e.props,i=e.slots,r=e.data,o=i(),l=n.headers.map((function(e){var i=[],l=Object(s["q"])(n.item,e.value),u=e.value,c=r.scopedSlots&&r.scopedSlots.hasOwnProperty(u)&&r.scopedSlots[u],d=o.hasOwnProperty(u)&&o[u];c?i.push.apply(i,Object(a["a"])(Object(s["I"])(c({item:n.item,isMobile:!1,header:e,index:n.index,value:l})))):d?i.push.apply(i,Object(a["a"])(Object(s["I"])(d))):i.push(null==l?l:String(l));var f="text-".concat(e.align||"start");return P(i)?t("td",{class:[f,e.cellClass,{"v-data-table__divider":e.divider}]},i):i}));return t("tr",r,l)}}),C=l["a"].extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render:function(t,e){var n=e.slots,i=e.props,r=n(),o=[];return r["column.header"]?o.push(t("tr",{staticClass:i.headerClass},r["column.header"])):r["row.header"]&&o.push.apply(o,Object(a["a"])(r["row.header"])),r["row.content"]&&i.value&&o.push.apply(o,Object(a["a"])(r["row.content"])),r["column.summary"]?o.push(t("tr",{staticClass:i.summaryClass},r["column.summary"])):r["row.summary"]&&o.push.apply(o,Object(a["a"])(r["row.summary"])),o}}),N=n("1f4f"),I=l["a"].extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,index:Number,item:Object,rtl:Boolean},render:function(t,e){var n=e.props,i=e.slots,r=e.data,a=i(),l=n.headers.map((function(e){var i={"v-data-table__mobile-row":!0},o=[],l=Object(s["q"])(n.item,e.value),u=e.value,c=r.scopedSlots&&r.scopedSlots.hasOwnProperty(u)&&r.scopedSlots[u],d=a.hasOwnProperty(u)&&a[u];c?o.push(c({item:n.item,isMobile:!0,header:e,index:n.index,value:l})):d?o.push(d):o.push(null==l?l:String(l));var f=[t("div",{staticClass:"v-data-table__mobile-row__cell"},o)];return"dataTableSelect"===e.value||n.hideDefaultHeader||f.unshift(t("div",{staticClass:"v-data-table__mobile-row__header"},[e.text])),t("td",{class:i},f)}));return t("tr",Object(o["a"])(Object(o["a"])({},r),{},{staticClass:"v-data-table__mobile-table-row"}),l)}}),q=n("297c");function L(t,e,n){return function(i){var r=Object(s["q"])(t,i.value);return i.filter?i.filter(r,e,t):n(r,e,t)}}function M(t,e,n,i,r){return e="string"===typeof e?e.trim():null,t.filter((function(t){var o=n.every(L(t,e,s["l"])),a=!e||i.some(L(t,e,r));return o&&a}))}e["a"]=Object(b["a"])(g,q["a"]).extend({name:"v-data-table",directives:{ripple:O["a"]},props:{headers:{type:Array,default:function(){return[]}},showSelect:Boolean,checkboxColor:String,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:s["l"]},itemClass:{type:[String,Function],default:function(){return""}},loaderHeight:{type:[Number,String],default:4}},data:function(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders:function(){var t=this;if(!this.headers)return[];var e=this.headers.filter((function(e){return void 0===e.value||!t.internalGroupBy.find((function(t){return t===e.value}))})),n={text:"",sortable:!1,width:"1px"};if(this.showSelect){var i=e.findIndex((function(t){return"data-table-select"===t.value}));i<0?e.unshift(Object(o["a"])(Object(o["a"])({},n),{},{value:"data-table-select"})):e.splice(i,1,Object(o["a"])(Object(o["a"])({},n),e[i]))}if(this.showExpand){var r=e.findIndex((function(t){return"data-table-expand"===t.value}));r<0?e.unshift(Object(o["a"])(Object(o["a"])({},n),{},{value:"data-table-expand"})):e.splice(r,1,Object(o["a"])(Object(o["a"])({},n),e[r]))}return e},colspanAttrs:function(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters:function(){return this.computedHeaders.reduce((function(t,e){return e.sort&&(t[e.value]=e.sort),t}),{})},headersWithCustomFilters:function(){return this.headers.filter((function(t){return t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},headersWithoutCustomFilters:function(){return this.headers.filter((function(t){return!t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},sanitizedHeaderProps:function(){return Object(s["d"])(this.headerProps)},computedItemsPerPage:function(){var t=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find((function(e){return"number"===typeof e?e===t:e.value===t}))){var n=e[0];return"object"===Object(r["a"])(n)?n.value:n}return t}},created:function(){var t=this,e=[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]];e.forEach((function(e){var n=Object(i["a"])(e,2),r=n[0],o=n[1];t.$attrs.hasOwnProperty(r)&&Object(m["a"])(r,o,t)}))},mounted:function(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy:function(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths:function(){this.widths=Array.from(this.$el.querySelectorAll("th")).map((function(t){return t.clientWidth}))},customFilterWithColumns:function(t,e){return M(t,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter)},customSortWithHeaders:function(t,e,n,i){return this.customSort(t,e,n,i,this.columnSorters)},createItemProps:function(t,e){var n=g.options.methods.createItemProps.call(this,t,e);return Object.assign(n,{headers:this.computedHeaders})},genCaption:function(t){return this.caption?[this.$createElement("caption",[this.caption])]:Object(s["t"])(this,"caption",t,!0)},genColgroup:function(t){var e=this;return this.$createElement("colgroup",this.computedHeaders.map((function(t){return e.$createElement("col",{class:{divider:t.divider}})})))},genLoading:function(){var t=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[t]);return this.$createElement("thead",[e])},genHeaders:function(t){var e={props:Object(o["a"])(Object(o["a"])({},this.sanitizedHeaderProps),{},{headers:this.computedHeaders,options:t.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,checkboxColor:this.checkboxColor,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort}),on:{sort:t.sort,group:t.group,"toggle-select-all":this.toggleSelectAll}},n=[Object(s["t"])(this,"header",Object(o["a"])(Object(o["a"])({},e),{},{isMobile:this.isMobile}))];if(!this.hideDefaultHeader){var i=Object(s["r"])("header.",this.$scopedSlots);n.push(this.$createElement(S,Object(o["a"])(Object(o["a"])({},e),{},{scopedSlots:i})))}return this.loading&&n.push(this.genLoading()),n},genEmptyWrapper:function(t){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},t)])},genItems:function(t,e){var n=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return n?[n]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(t,e)},genGroupedRows:function(t,e){var n=this;return t.map((function(t){return n.openCache.hasOwnProperty(t.name)||n.$set(n.openCache,t.name,!0),n.$scopedSlots.group?n.$scopedSlots.group({group:t.name,options:e.options,isMobile:n.isMobile,items:t.items,headers:n.computedHeaders}):n.genDefaultGroupedRow(t.name,t.items,e)}))},genDefaultGroupedRow:function(t,e,n){var i=this,r=!!this.openCache[t],o=[this.$createElement("template",{slot:"row.content"},this.genRows(e,n))],a=function(){return i.$set(i.openCache,t,!i.openCache[t])},s=function(){return n.updateOptions({groupBy:[],groupDesc:[]})};if(this.$scopedSlots["group.header"])o.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:t,groupBy:n.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:r,toggle:a,remove:s})]));else{var l=this.$createElement(f["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:a}},[this.$createElement(d["a"],[r?"$minus":"$plus"])]),u=this.$createElement(f["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:s}},[this.$createElement(d["a"],["$close"])]),c=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[l,"".concat(n.options.groupBy[0],": ").concat(t),u]);o.unshift(this.$createElement("template",{slot:"column.header"},[c]))}return this.$scopedSlots["group.summary"]&&o.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:t,groupBy:n.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:r,toggle:a})])),this.$createElement(C,{key:t,props:{value:r}},o)},genRows:function(t,e){return this.$scopedSlots.item?this.genScopedRows(t,e):this.genDefaultRows(t,e)},genScopedRows:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=t[i];n.push(this.$scopedSlots.item(Object(o["a"])(Object(o["a"])({},this.createItemProps(r,i)),{},{isMobile:this.isMobile}))),this.isExpanded(r)&&n.push(this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,index:i,item:r}))}return n},genDefaultRows:function(t,e){var n=this;return this.$scopedSlots["expanded-item"]?t.map((function(t,e){return n.genDefaultExpandedRow(t,e)})):t.map((function(t,e){return n.genDefaultSimpleRow(t,e)}))},genDefaultExpandedRow:function(t,e){var n=this.isExpanded(t),i={"v-data-table__expanded v-data-table__expanded__row":n},r=this.genDefaultSimpleRow(t,e,i),o=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,item:t})]);return this.$createElement(C,{props:{value:n}},[this.$createElement("template",{slot:"row.header"},[r]),this.$createElement("template",{slot:"row.content"},[o])])},genDefaultSimpleRow:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(s["r"])("item.",this.$scopedSlots),a=this.createItemProps(t,e);if(this.showSelect){var l=r["data-table-select"];r["data-table-select"]=l?function(){return l(Object(o["a"])(Object(o["a"])({},a),{},{isMobile:n.isMobile}))}:function(){var e;return n.$createElement(_["a"],{staticClass:"v-data-table__checkbox",props:{value:a.isSelected,disabled:!n.isSelectable(t),color:null!=(e=n.checkboxColor)?e:""},on:{input:function(t){return a.select(t)}}})}}if(this.showExpand){var u=r["data-table-expand"];r["data-table-expand"]=u?function(){return u(a)}:function(){return n.$createElement(d["a"],{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":a.isExpanded},on:{click:function(t){t.stopPropagation(),a.expand(!a.isExpanded)}}},[n.expandIcon])}}return this.$createElement(this.isMobile?I:T,{key:Object(s["q"])(t,this.itemKey),class:Object(A["b"])(Object(o["a"])(Object(o["a"])({},i),{},{"v-data-table__selected":a.isSelected}),Object(s["s"])(t,this.itemClass)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,index:e,item:t,rtl:this.$vuetify.rtl},scopedSlots:r,on:{click:function(){return n.$emit("click:row",t,a)},contextmenu:function(t){return n.$emit("contextmenu:row",t,a)},dblclick:function(t){return n.$emit("dblclick:row",t,a)}}})},genBody:function(t){var e=Object(o["a"])(Object(o["a"])({},t),{},{expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select});return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[Object(s["t"])(this,"body.prepend",e,!0),this.genItems(t.items,t),Object(s["t"])(this,"body.append",e,!0)])},genFoot:function(t){var e,n;return null==(e=(n=this.$scopedSlots).foot)?void 0:e.call(n,t)},genFooters:function(t){var e={props:Object(o["a"])({options:t.options,pagination:t.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText"},this.sanitizedFooterProps),on:{"update:options":function(e){return t.updateOptions(e)}},widths:this.widths,headers:this.computedHeaders},n=[Object(s["t"])(this,"footer",e,!0)];return this.hideDefaultFooter||n.push(this.$createElement(h,Object(o["a"])(Object(o["a"])({},e),{},{scopedSlots:Object(s["r"])("footer.",this.$scopedSlots)}))),n},genDefaultScopedSlot:function(t){var e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(N["a"],{props:e,class:{"v-data-table--mobile":this.isMobile}},[this.proxySlot("top",Object(s["t"])(this,"top",Object(o["a"])(Object(o["a"])({},t),{},{isMobile:this.isMobile}),!0)),this.genCaption(t),this.genColgroup(t),this.genHeaders(t),this.genBody(t),this.genFoot(t),this.proxySlot("bottom",this.genFooters(t))])},proxySlot:function(t,e){return this.$createElement("template",{slot:t},e)}},render:function(){var t=this;return this.$createElement(u,{props:Object(o["a"])(Object(o["a"])({},this.$props),{},{customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage}),on:{"update:options":function(e,n){t.internalGroupBy=e.groupBy||[],!Object(s["k"])(e,n)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,n){return!Object(s["k"])(e,n)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}})},"91f4":function(t,e,n){},9339:function(t,e,n){(function(e){
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),r=n(18),o=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),d=n(12),f=n(32),h=n(33),p=n(31),v=n(1),b={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:i.default,Format:r.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:h.default,Store:p.default}};e.default=b},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=r;var o,a={},s={},l={},u={};function c(t,e){var n=f(t);if(null==n)throw new r("Unable to create "+t+" blot");var i=n,o=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:i.create(e);return new i(o,e)}function d(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?d(t.parentNode,n):null}function f(t,e){var n;if(void 0===e&&(e=o.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&o.LEVEL&o.BLOCK?n=u["block"]:t&o.LEVEL&o.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var i=(t.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=s[i[r]],n)break;n=n||l[t.tagName]}return null==n?null:e&o.LEVEL&n.scope&&e&o.TYPE&n.scope?n:null}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return h(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var i=Array.isArray(n.tagName)?n.tagName:[n.tagName];i.forEach((function(t){null!=l[t]&&null!=n.className||(l[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=c,e.find=d,e.query=f,e.register=h},function(t,e,n){var i=n(51),r=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(r(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(i){var r=t(i)?e:n;r.push(i)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],i=a.iterator(this.ops),r=0;while(r<e&&i.hasNext()){var o;r<t?o=i.next(t-r):(o=i.next(e-r),n.push(o)),r+=a.length(o)}return new l(n)},l.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),i=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var s=o.retain;while("insert"===e.peekType()&&e.peekLength()<=s)s-=e.peekLength(),i.push(e.next());o.retain-s>0&&n.next(o.retain-s)}var u=new l(i);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),d=e.next(c),f=n.next(c);if("number"===typeof f.retain){var h={};"number"===typeof d.retain?h.retain=c:h.insert=d.insert;var p=a.attributes.compose(d.attributes,f.attributes,"number"===typeof d.retain);if(p&&(h.attributes=p),u.push(h),!n.hasNext()&&r(u.ops[u.ops.length-1],h)){var v=new l(e.rest());return u.concat(v).chop()}}else"number"===typeof f["delete"]&&"number"===typeof d.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var i=e===t?"on":"with";throw new Error("diff() called "+i+" non-document")})).join("")})),o=new l,u=i(n[0],n[1],e),c=a.iterator(this.ops),d=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case i.INSERT:n=Math.min(d.peekLength(),e),o.push(d.next(n));break;case i.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o["delete"](n);break;case i.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),e);var s=c.next(n),l=d.next(n);r(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),i=new l,r=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(u<0)i.push(n.next());else if(u>0)i.push(n.next(u));else{if(!1===t(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&t(i,{},r)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),i=a.iterator(t.ops),r=new l;while(n.hasNext()||i.hasNext())if("insert"!==n.peekType()||!e&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var o=Math.min(n.peekLength(),i.peekLength()),s=n.next(o),u=i.next(o);if(s["delete"])continue;u["delete"]?r.push(u):r.retain(o,a.attributes.transform(s.attributes,u.attributes,e))}else r.retain(a.length(n.next()));return r.chop()},l.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),i=0;while(n.hasNext()&&i<=t){var r=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(i<t||!e)&&(t+=r),i+=r):t-=Math.min(r,t-i)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},s=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,r=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},l=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,i,r,o,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<h;++f)if(e=arguments[f],null!=e)for(n in e)i=u(d,n),r=u(e,n),d!==r&&(p&&r&&(s(r)||(o=a(r)))?(o?(o=!1,c=i&&a(i)?i:[]):c=i&&s(i)?i:{},l(d,{name:n,newValue:t(p,c,r)})):"undefined"!==typeof r&&l(d,{name:n,newValue:r}));return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(3),a=m(o),s=n(2),l=m(s),u=n(0),c=m(u),d=n(16),f=m(d),h=n(6),p=m(h),v=n(7),b=m(v);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var O=1,x=function(t){function e(){return g(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _(e,t),i(e,[{key:"attach",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=c.default.query(t,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,i){this.format(n,i)}},{key:"insertAt",value:function(t,n,i){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(w.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i)}}]),e}(c.default.Embed);x.scope=c.default.Scope.BLOCK_BLOT;var w=function(t){function e(t){g(this,e);var n=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return _(e,t),i(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),E(e))}),new l.default).insert("\n",E(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,i,o){n<=0||(c.default.query(i,c.default.Scope.BLOCK)?t+n===this.length()&&this.format(i,o):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),i,o),this.cache={})}},{key:"insertAt",value:function(t,n,i){if(null!=i)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return s=s.split(t,!0),s.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var i=this.children.head;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),i instanceof f.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+O),this.cache.length}},{key:"moveChildren",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-O)){var i=this.clone();return 0===t?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(c.default.Block);function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:E(t.parent,e))}w.blotName="block",w.tagName="P",w.defaultChild="break",w.allowedChildren=[p.default,c.default.Embed,b.default],e.bubbleFormats=E,e.BlockEmbed=x,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();n(50);var a=n(2),s=E(a),l=n(14),u=E(l),c=n(8),d=E(c),f=n(9),h=E(f),p=n(0),v=E(p),b=n(15),m=E(b),g=n(3),y=E(g),_=n(10),O=E(_),x=n(34),w=E(x);function E(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var j=(0,O.default)("quill"),S=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(A(this,t),this.options=P(e,i),this.container=this.options.container,null==this.container)return j.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(t){t===d.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(d.default.events.SCROLL_UPDATE,(function(t,e){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;T.call(n,(function(){return n.editor.update(null,e,r)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),O.default.level(t)}},{key:"find",value:function(t){return t.__quill||v.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&j.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var r=t.attrName||t.blotName;"string"===typeof r?this.register("formats/"+r,t,e):Object.keys(t).forEach((function(i){n.register(i,t[i],e)}))}else null==this.imports[t]||i||j.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?v.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var i=this,o=C(t,e,n),a=r(o,4);return t=a[0],e=a[1],n=a[3],T.call(this,(function(){return i.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;return T.call(this,(function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(v.default.query(t,v.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,k({},t,e));else{if(0===i.length)return n.selection.format(t,e),r;r=n.editor.formatText(i.index,i.length,k({},t,e))}return n.setSelection(i,d.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(t,e,n,i,o){var a=this,s=void 0,l=C(t,e,n,i,o),u=r(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],T.call(this,(function(){return a.editor.formatLine(t,e,s)}),o,t,0)}},{key:"formatText",value:function(t,e,n,i,o){var a=this,s=void 0,l=C(t,e,n,i,o),u=r(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],T.call(this,(function(){return a.editor.formatText(t,e,s)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=r(n,2);return t=i[0],e=i[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=r(n,2);return t=i[0],e=i[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return T.call(this,(function(){return r.editor.insertEmbed(e,n,i)}),o,e)}},{key:"insertText",value:function(t,e,n,i,o){var a=this,s=void 0,l=C(t,0,n,i,o),u=r(l,4);return t=u[0],s=u[2],o=u[3],T.call(this,(function(){return a.editor.insertText(t,e,s)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var i=this,o=C(t,e,n),a=r(o,4);return t=a[0],e=a[1],n=a[3],T.call(this,(function(){return i.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return T.call(this,(function(){t=new s.default(t);var n=e.getLength(),i=e.editor.deleteText(0,n),r=e.editor.applyDelta(t),o=r.ops[r.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),r.delete(1));var a=i.compose(r);return a}),n)}},{key:"setSelection",value:function(e,n,i){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=C(e,n,i),a=r(o,4);e=a[0],n=a[1],i=a[3],this.selection.setRange(new b.Range(e,n),i),i!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return T.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function P(t,e){if(e=(0,y.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==S.DEFAULTS.theme){if(e.theme=S.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=w.default;var n=(0,y.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(e.modules)),r=i.reduce((function(t,e){var n=S.import("modules/"+e);return null==n?j.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,y.default)(!0,{},S.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function T(t,e,n,i){if(this.options.strict&&!this.isEnabled()&&e===d.default.sources.USER)return new s.default;var r=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=r&&(!0===n&&(n=r.index),null==i?r=N(r,a,e):0!==i&&(r=N(r,n,i,e)),this.setSelection(r,d.default.sources.SILENT)),a.length()>0){var l,u,c=[d.default.events.TEXT_CHANGE,a,o,e];if((l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(c)),e!==d.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function C(t,e,n,r,o){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(o=r,r=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":i(n))?(a=n,o=r):"string"===typeof n&&(null!=r?a[n]=r:o=n),o=o||d.default.sources.API,[t,e,a,o]}function N(t,e,n,i){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,i!==d.default.sources.USER)})),u=r(l,2);o=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&i===d.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),f=r(c,2);o=f[0],a=f[1]}return new b.Range(o,a-o)}S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=d.default.events,S.sources=d.default.sources,S.version="1.3.7",S.imports={delta:s.default,parchment:v.default,"core/module":h.default,"core/theme":w.default},e.expandConfig=P,e.overload=C,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(7),a=u(o),s=n(0),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),i(e,[{key:"formatAt",value:function(t,n,i,o){if(e.compare(this.statics.blotName,i)<0&&l.default.query(i,l.default.Scope.BLOT)){var a=this.isolate(t,n);o&&a.wrap(i,o)}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,i,o)}},{key:"optimize",value:function(t){if(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var i=e.order.indexOf(t),r=e.order.indexOf(n);return i>=0||r>=0?i-r:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);h.allowedChildren=[h,l.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(r.default.Text);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(54),a=u(o),s=n(10),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var v=function(t){function e(){c(this,e);var t=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return f(e,t),i(e,[{key:"emit",value:function(){h.log.apply(h,arguments),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];(this.listeners[t.type]||[]).forEach((function(e){var i=e.node,r=e.handler;(t.target===i||i.contains(t.target))&&r.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(a.default);v.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},v.sources={API:"api",SILENT:"silent",USER:"user"},e.default=v},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function o(t){if(i.indexOf(t)<=i.indexOf(r)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return i.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){r=t},e.default=a},function(t,e,n){var i=Array.prototype.slice,r=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:u(t,e,n))};function s(t){return null===t||void 0===t}function l(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=i.call(t),e=i.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var d=r(t),f=r(e)}catch(h){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=i.query(t,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},a=n(2),s=b(a),l=n(0),u=b(l),c=n(4),d=b(c),f=n(6),h=b(f),p=n(7),v=b(p);function b(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),e}(h.default);_.blotName="code",_.tagName="CODE";var O=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),r(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(v.default,this.length()-1),a=i(r,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,i,r){if(0!==n&&null!=u.default.query(i,u.default.Scope.BLOCK)&&(i!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(i,r),c instanceof e&&c.formatAt(0,t-a+n-s,i,r)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(v.default,t),o=i(r,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(d.default);O.blotName="code-block",O.tagName="PRE",O.TAB="  ",e.Code=_,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(2),s=A(a),l=n(20),u=A(l),c=n(0),d=A(c),f=n(13),h=A(f),p=n(24),v=A(p),b=n(4),m=A(b),g=n(16),y=A(g),_=n(21),O=A(_),x=n(11),w=A(x),E=n(3),k=A(E);function A(t){return t&&t.__esModule?t:{default:t}}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var P=/^[ -~]*$/,T=function(){function t(e){S(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),t=N(t),t.reduce((function(t,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),t>=o&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var f=e.scroll.line(t),h=r(f,2),p=h[0],v=h[1],g=(0,k.default)({},(0,b.bubbleFormats)(p));if(p instanceof m.default){var y=p.descendant(d.default.Leaf,v),_=r(y,1),O=_[0];g=(0,k.default)(g,(0,b.bubbleFormats)(O))}l=u.default.attributes.diff(g,l)||{}}else if("object"===i(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}o+=s}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,s,n,l[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof h.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,r,i[r])}else e.format(r,i[r]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,O.default)(i)))}},{key:"formatText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(t,e,r,i[r])})),this.update((new s.default).retain(t).retain(e,(0,O.default)(i)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===e?this.scroll.path(t).forEach((function(t){var e=r(t,1),o=e[0];o instanceof m.default?n.push(o):o instanceof d.default.Leaf&&i.push(o)})):(n=this.scroll.lines(t,e),i=this.scroll.descendants(d.default.Leaf,t,e));var o=[n,i].map((function(t){if(0===t.length)return{};var e=(0,b.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=C((0,b.bubbleFormats)(n),e)}return e}));return k.default.apply(k.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(j({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(i).forEach((function(r){n.scroll.formatAt(t,e.length,r,i[r])})),this.update((new s.default).retain(t).insert(e,(0,O.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===m.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof y.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),i=this.scroll.line(t+e),o=r(i,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var d=this.getContents(t,e+u),f=d.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&d.default.find(e[0].target)){var r=d.default.find(e[0].target),o=(0,b.bubbleFormats)(r),a=r.offset(this.scroll),l=e[0].oldValue.replace(v.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(r.value()),f=(new s.default).retain(a).concat(u.diff(c,n));t=f.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new s.default),this.delta=i.compose(t)}else this.delta=this.getDelta(),t&&(0,w.default)(i.compose(t),this.delta)||(t=i.diff(this.delta,n));return t}}]),t}();function C(t,e){return Object.keys(e).reduce((function(n,i){return null==t[i]||(e[i]===t[i]?n[i]=e[i]:Array.isArray(e[i])?e[i].indexOf(t[i])<0&&(n[i]=e[i].concat([t[i]])):n[i]=[e[i],t[i]]),n}),{})}function N(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,O.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,O.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)}),new s.default)}e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(0),a=v(o),s=n(21),l=v(s),u=n(11),c=v(u),d=n(8),f=v(d),h=n(10),p=v(h);function v(t){return t&&t.__esModule?t:{default:t}}function b(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,p.default)("quill:selection"),y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var i=this;m(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t,e){t===f.default.events.TEXT_CHANGE&&e.length()>0&&i.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var t=i.getNativeRange();null!=t&&t.start.node!==i.cursor.textNode&&i.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,r=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;i.setNativeRange(r,o,a,s)}})),this.update(f.default.sources.SILENT)}return r(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=a.default.find(n.start.node,!1);if(null==i)return;if(i instanceof a.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),a=i(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=i(u,2);r=c[0],l=c[1];var d=document.createRange();if(e>0){d.setStart(r,l);var f=this.scroll.leaf(t+e),h=i(f,2);if(s=h[0],l=h[1],null==s)return null;var p=s.position(l,!0),v=i(p,2);return r=v[0],l=v[1],d.setEnd(r,l),d.getBoundingClientRect()}var b="left",m=void 0;return r instanceof Text?(l<r.data.length?(d.setStart(r,l),d.setEnd(r,l+1)):(d.setStart(r,l-1),d.setEnd(r,l),b="right"),m=d.getBoundingClientRect()):(m=s.domNode.getBoundingClientRect(),l>0&&(b="right")),{bottom:m.top+m.height,height:m.height,left:m[b],right:m[b],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return g.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map((function(t){var n=i(t,2),r=n[0],o=n[1],s=a.default.find(r,!0),l=s.offset(e.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(r,o)})),o=Math.min(Math.max.apply(Math,b(r)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(b(r)));return new y(s,o-s)}},{key:"normalizeNative",value:function(t){if(!O(this.root,t.startContainer)||!t.collapsed&&!O(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a=void 0,s=e.scroll.leaf(t),l=i(s,2),u=l[0],c=l[1],d=u.position(c,0!==n),f=i(d,2);a=f[0],c=f[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),a=i(o,1),s=a[0],l=s;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r)),c=i(u,1);l=c[0]}if(null!=s&&null!=l){var d=t.getBoundingClientRect();n.top<d.top?t.scrollTop-=d.top-n.top:n.bottom>d.bottom&&(t.scrollTop+=n.bottom-d.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,n,i),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||i!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,i),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var i=this.rangeToNative(t);this.setNativeRange.apply(this,b(i).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],a=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,d=[f.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(d)),t!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}}}]),t}();function O(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=y,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);d.blotName="break",d.tagName="BR",e.default=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(44),o=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(i){if(i instanceof a.ParchmentError)return;throw i}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var i=this.children.find(n),r=i[0],o=i[1];return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,o]:r instanceof e?r.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var r=[],o=i;return this.children.forEachAt(n,i,(function(n,i,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&r.push(n),n instanceof e&&(r=r.concat(n.descendants(t,i,o))),o-=a})),r},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,i){this.children.forEachAt(t,e,(function(t,e,r){t.formatAt(e,r,n,i)}))},e.prototype.insertAt=function(t,e,n){var i=this.children.find(t),r=i[0],o=i[1];if(r)r.insertAt(o,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var i=this.children.find(t,n),r=i[0],o=i[1],a=[[this,t]];return r instanceof e?a.concat(r.path(o,n)):(null!=r&&a.push([r,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,i,r){t=t.split(i,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,i=[],r=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),r.push.apply(r,t.removedNodes))})),r.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),i.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var i=l(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))}))},e}(o.default);function l(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(31),a=n(17),s=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof r.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var i=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(i),i},e.prototype.update=function(e,n){var i=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===i.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,i){var r=t.prototype.wrap.call(this,n,i);return r instanceof e&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},e}(a.default);e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(30),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){var i=n(11),r=n(3),o={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var i=r(!0,{},e);for(var o in n||(i=Object.keys(i).reduce((function(t,e){return null!=i[e]&&(t[e]=i[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(i[o]=t[o]);return Object.keys(i).length>0?i:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return i(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var i=Object.keys(e).reduce((function(n,i){return void 0===t[i]&&(n[i]=e[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,i=o.length(e);if(t>=i-n?(t=i-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var r={};return e.attributes&&(r.attributes=e.attributes),"number"===typeof e.retain?r.retain=t:"string"===typeof e.insert?r.insert=e.insert.substr(n,t):r.insert=e.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(i)}return[]},t.exports=o},function(t,n){var i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,i,r;try{n=Map}catch(d){n=function(){}}try{i=Set}catch(d){i=function(){}}try{r=Promise}catch(d){r=function(){}}function o(a,s,l,u,d){"object"===typeof s&&(l=s.depth,u=s.prototype,d=s.includeNonEnumerable,s=s.circular);var f=[],h=[],p="undefined"!=typeof e;function v(a,l){if(null===a)return null;if(0===l)return a;var b,m;if("object"!=typeof a)return a;if(t(a,n))b=new n;else if(t(a,i))b=new i;else if(t(a,r))b=new r((function(t,e){a.then((function(e){t(v(e,l-1))}),(function(t){e(v(t,l-1))}))}));else if(o.__isArray(a))b=[];else if(o.__isRegExp(a))b=new RegExp(a.source,c(a)),a.lastIndex&&(b.lastIndex=a.lastIndex);else if(o.__isDate(a))b=new Date(a.getTime());else{if(p&&e.isBuffer(a))return b=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(b),b;t(a,Error)?b=Object.create(a):"undefined"==typeof u?(m=Object.getPrototypeOf(a),b=Object.create(m)):(b=Object.create(u),m=u)}if(s){var g=f.indexOf(a);if(-1!=g)return h[g];f.push(a),h.push(b)}for(var y in t(a,n)&&a.forEach((function(t,e){var n=v(e,l-1),i=v(t,l-1);b.set(n,i)})),t(a,i)&&a.forEach((function(t){var e=v(t,l-1);b.add(e)})),a){var _;m&&(_=Object.getOwnPropertyDescriptor(m,y)),_&&null==_.set||(b[y]=v(a[y],l-1))}if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(a);for(y=0;y<O.length;y++){var x=O[y],w=Object.getOwnPropertyDescriptor(a,x);(!w||w.enumerable||d)&&(b[x]=v(a[x],l-1),w.enumerable||Object.defineProperty(b,x,{enumerable:!1}))}}if(d){var E=Object.getOwnPropertyNames(a);for(y=0;y<E.length;y++){var k=E[y];w=Object.getOwnPropertyDescriptor(a,k);w&&w.enumerable||(b[k]=v(a[k],l-1),Object.defineProperty(b,k,{enumerable:!1}))}}return b}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),v(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===a(t)}function l(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function c(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=c,o}();"object"===typeof t&&t.exports&&(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},a=n(0),s=g(a),l=n(8),u=g(l),c=n(4),d=g(c),f=n(16),h=g(f),p=n(13),v=g(p),b=n(25),m=g(b);function g(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function O(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function x(t){return t instanceof d.default||t instanceof c.BlockEmbed}var w=function(t){function e(t,n){y(this,e);var i=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return O(e,t),r(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),a=i(r,2),s=a[0],l=a[1],u=this.line(t+n),d=i(u,1),f=d[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&s!==f&&l>0){if(s instanceof c.BlockEmbed||f instanceof c.BlockEmbed)return void this.optimize();if(s instanceof v.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===f))return void this.optimize()}else if(f instanceof v.default){var b=f.newlineIndex(0);b>-1&&f.split(b+1)}var m=f.children.head instanceof h.default?null:f.children.head;s.moveChildren(f,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,i,r){(null==this.whitelist||this.whitelist[i])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,i,r),this.optimize())}},{key:"insertAt",value:function(t,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==i||null==s.default.query(n,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var a=s.default.create(n,i);this.appendChild(a)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(t),t=i}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(x,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,i){var r=[],o=i;return e.children.forEachAt(n,i,(function(e,n,i){x(e)?r.push(e):e instanceof s.default.Container&&(r=r.concat(t(e,n,o))),o-=i})),r};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[d.default,c.BlockEmbed,m.default],e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(21),s=E(a),l=n(11),u=E(l),c=n(3),d=E(c),f=n(2),h=E(f),p=n(20),v=E(p),b=n(0),m=E(b),g=n(5),y=E(g),_=n(10),O=E(_),x=n(9),w=E(x);function E(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var P=(0,O.default)("quill:keyboard"),T=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(t){function e(t,n){A(this,e);var i=j(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&i.options.bindings[e]&&i.addBinding(i.options.bindings[e])})),i.addBinding({key:e.keys.ENTER,shiftKey:null},M),i.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},I),i.addBinding({key:e.keys.DELETE},{collapsed:!0},q)):(i.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),i.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),i.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},L),i.addBinding({key:e.keys.DELETE},{collapsed:!1},L),i.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),i.listen(),i}return S(e,t),o(e,null,[{key:"match",value:function(t,e){return e=$(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=$(t);if(null==i||null==i.key)return P.warn("Attempted to add invalid keyboard binding",i);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),i=(0,d.default)(i,e,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var l=t.quill.getLine(s.index),c=r(l,2),d=c[0],f=c[1],h=t.quill.getLeaf(s.index),p=r(h,2),v=p[0],b=p[1],g=0===s.length?[v,b]:t.quill.getLeaf(s.index+s.length),y=r(g,2),_=y[0],O=y[1],x=v instanceof m.default.Text?v.value().slice(0,b):"",w=_ instanceof m.default.Text?_.value().slice(O):"",E={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:t.quill.getFormat(s),offset:f,prefix:x,suffix:w},k=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==E.collapsed)return!1;if(null!=e.empty&&e.empty!==E.empty)return!1;if(null!=e.offset&&e.offset!==E.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==E.format[t]})))return!1}else if("object"===i(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=E.format[t]:!1===e.format[t]?null==E.format[t]:(0,u.default)(e.format[t],E.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(E.prefix))&&(!(null!=e.suffix&&!e.suffix.test(E.suffix))&&!0!==e.handler.call(t,s,E))}));k&&n.preventDefault()}}}}))}}]),e}(w.default);function N(t,e){var n,i=t===C.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},k(n,i,/^$/),k(n,"handler",(function(n){var i=n.index;t===C.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i),a=r(o,1),s=a[0];return!(s instanceof m.default.Embed)||(t===C.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function I(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),i=r(n,1),o=i[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),l=r(s,1),u=l[0];if(null!=u&&u.length()>1){var c=o.formats(),d=this.quill.getFormat(t.index-1,1);a=v.default.attributes.diff(c,d)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,y.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-f,f,a,y.default.sources.USER),this.quill.focus()}}function q(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var i={},o=0,a=this.quill.getLine(t.index),s=r(a,1),l=s[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),c=r(u,1),d=c[0];if(d){var f=l.formats(),h=this.quill.getFormat(t.index,1);i=v.default.attributes.diff(f,h)||{},o=d.length()}}this.quill.deleteText(t.index,n,y.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index+o-1,n,i,y.default.sources.USER)}}function L(t){var e=this.quill.getLines(t),n={};if(e.length>1){var i=e[0].formats(),r=e[e.length-1].formats();n=v.default.attributes.diff(r,i)||{}}this.quill.deleteText(t,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,y.default.sources.USER),this.quill.setSelection(t.index,y.default.sources.SILENT),this.quill.focus()}function M(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var i=Object.keys(e.format).reduce((function(t,n){return m.default.query(n,m.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",i,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==i[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],y.default.sources.USER))}))}function B(t){return{key:C.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=m.default.query("code-block"),i=e.index,o=e.length,a=this.quill.scroll.descendant(n,i),s=r(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),d=l.newlineIndex(u,!0)+1,f=l.newlineIndex(c+u+o),h=l.domNode.textContent.slice(d,f).split("\n");u=0,h.forEach((function(e,r){t?(l.insertAt(d+u,n.TAB),u+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(d+u,n.TAB.length),u-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),u+=e.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(i,o,y.default.sources.SILENT)}}}}function D(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],y.default.sources.USER)}}}function $(t){if("string"===typeof t||"number"===typeof t)return $({key:t});if("object"===("undefined"===typeof t?"undefined":i(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=C.keys[t.key.toUpperCase()])t.key=C.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[T]=t.shortKey,delete t.shortKey),t}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:D("bold"),italic:D("italic"),underline:D("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":B(!0),"outdent code-block":B(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,y.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new h.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,y.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,y.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),i=n[0],o=n[1],a=(0,d.default)({},i.formats(),{list:"checked"}),s=(new h.default).retain(t.index).insert("\n",a).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),i=r(n,2),o=i[0],a=i[1],s=(new h.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,i=this.quill.getLine(t.index),o=r(i,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",y.default.sources.USER),this.quill.history.cutoff();var u=(new h.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,y.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),i=n[0],o=n[1],a=(new h.default).retain(t.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,y.default.sources.USER)}},"embed left":N(C.keys.LEFT,!1),"embed left shift":N(C.keys.LEFT,!0),"embed right":N(C.keys.RIGHT,!1),"embed right shift":N(C.keys.RIGHT,!0)}},e.default=C,e.SHORTKEY=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(t,n){d(this,e);var i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.selection=n,i.textNode=document.createTextNode(e.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return h(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var i=this,o=0;while(null!=i&&i.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=e.CONTENTS.length,i.optimize(),i.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];r=l[0],o=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,a].map((function(t){return Math.max(0,Math.min(r.data.length,t-1))})),f=i(d,2);return o=f[0],a=f[1],{startNode:r,startOffset:o,endNode:r,endOffset:a}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var i=this.restore();i&&(e.range=i)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=s(i),o=n(4),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(r.default.Container);d.allowedChildren=[a.default,o.BlockEmbed,d],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"value",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),f=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new d("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=d,e.ColorClass=f,e.ColorStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return f(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function f(t,e){var n=document.createElement("a");n.href=t;var i=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(i)>-1}d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=d,e.sanitize=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(23),a=u(o),s=n(107),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=0;function f(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var h=function(){function t(e){var n=this;c(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return r(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),f(this.label,"aria-expanded"),f(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var i=t.buildItem(n);e.appendChild(i),!0===n.selected&&t.selectItem(i)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=P(i),o=n(5),a=P(o),s=n(4),l=P(s),u=n(16),c=P(u),d=n(25),f=P(d),h=n(24),p=P(h),v=n(35),b=P(v),m=n(6),g=P(m),y=n(22),_=P(y),O=n(7),x=P(O),w=n(55),E=P(w),k=n(42),A=P(k),j=n(23),S=P(j);function P(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":f.default,"blots/cursor":p.default,"blots/embed":b.default,"blots/inline":g.default,"blots/scroll":_.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":A.default,"modules/keyboard":S.default}),r.default.register(l.default,c.default,p.default,g.default,_.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(){function t(t){this.domNode=t,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return i.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,r){var o=this.isolate(t,e);if(null!=i.query(n,i.Scope.BLOT)&&r)o.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var a=i.create(this.statics.scope);o.wrap(a),a.format(n,r)}},t.prototype.insertAt=function(t,e,n){var r=null==n?i.create("text",e):i.create(e,n),o=this.split(t);this.parent.insertBefore(r,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?i.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?i.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),r=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=i.default.keys(this.domNode),n=r.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof i.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var i=e.attributes[n].value(e.domNode);t.format(n,i)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function o(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=o(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=o(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(r.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=u(o),s=n(7),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h="\ufeff",p=function(t){function e(t){c(this,e);var n=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return f(e,t),i(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,i=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,i),e={startNode:this.prev.domNode,startOffset:r+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(a.default.create(n),this),e={startNode:n,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(a.default.create(n),this.next),e={startNode:n,startOffset:i.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var i=n.restore(t.target);i&&(e.range=i)}}))}}]),e}(a.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var i=n(0),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}var a={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new r.default.Attributor.Attribute("align","align",a),l=new r.default.Attributor.Class("align","ql-align",a),u=new r.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var i=n(0),r=a(i),o=n(26);function a(t){return t&&t.__esModule?t:{default:t}}var s=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var i=n(0),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}var a={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},s=new r.default.Attributor.Attribute("direction","dir",a),l=new r.default.Attributor.Class("direction","ql-direction",a),u=new r.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new a.default.Attributor.Class("font","ql-font",d),h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"value",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),p=new h("font","font-family",d);e.FontStyle=p,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var i=n(0),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}var a=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(0),o=c(r),a=n(5),s=c(a),l=n(9),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(t,n){d(this,e);var i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,r){t!==s.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==s.default.sources.USER?i.transform(e):i.record(e,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return h(e,t),i(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],s.default.sources.USER),this.ignoreChange=!1;var i=b(n[t]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),t=r.redo.compose(t)}else this.lastRecorded=i;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function v(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}function b(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return v(t)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=p,e.getLastChangeIndex=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(3),a=w(o),s=n(2),l=w(s),u=n(8),c=w(u),d=n(23),f=w(d),h=n(34),p=w(h),v=n(59),b=w(v),m=n(60),g=w(m),y=n(28),_=w(y),O=n(61),x=w(O);function w(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function A(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j=[!1,"center","right","justify"],S=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],T=["1","2","3",!1],C=["small",!1,"large","huge"],N=function(t){function e(t,n){E(this,e);var i=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),r=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,r),i}return A(e,t),i(e,[{key:"addModule",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var i=t.value||"";null!=i&&e[n][i]&&(t.innerHTML=e[n][i])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&L(t,j),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&L(t,S,"background"===n?"#ffffff":"#000000"),new b.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?L(t,P):t.classList.contains("ql-header")?L(t,T):t.classList.contains("ql-size")&&L(t,C)),new _.default(t)}));var i=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,i)}}]),e}(p.default);N.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var i=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(i.index).delete(i.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(i.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(t){function e(t,n){E(this,e);var i=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return A(e,t),i(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){f.default.match(e,"enter")?(t.save(),e.preventDefault()):f.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=q(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",c.default.sources.USER),this.quill.setSelection(i+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(x.default);function q(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function L(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var i=document.createElement("option");e===n?i.setAttribute("selected","selected"):i.setAttribute("value",e),t.appendChild(i)}))}e.BaseTooltip=I,e.default=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,i=this.iterator();while(n=i()){var r=n.length();if(t<r||e&&t===r&&(null==n.next||0!==n.next.length()))return[n,t];t-=r}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var i,r=this.find(t),o=r[0],a=r[1],s=t-a,l=this.iterator(o);while((i=l())&&s<t+e){var u=i.length();t>s?n(i,t-s,Math.min(e,s+u-t)):n(i,0,Math.min(u,t+e-s)),s+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,i=this.iterator();while(n=i())e=t(e,n);return e},t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,i,r){this.update(),t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.insertAt=function(e,n,i){this.update(),t.prototype.insertAt.call(this,e,n,i)},e.prototype.optimize=function(e,n){var i=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var l=function(t,e){void 0===e&&(e=!0),null!=t&&t!==i&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&l(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof r.default&&t.children.forEach(u),t.optimize(n))},c=e,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);l(e,!1),e instanceof r.default&&e.children.forEach((function(t){l(t,!1)}))}))):"attributes"===t.type&&l(e.prev)),l(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var i=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==i&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(r.default);e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),o=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,i){var o=this;n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):(this.children.forEach((function(t){t instanceof r.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,i,r){if(null!=this.formats()[i]||o.query(i,o.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(i,r)}else t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof e&&r.prev===this&&a(i,r.formats())&&(r.moveChildren(this),r.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(r.default);e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var i=o.query(e.blotName).tagName;if(n.tagName!==i)return t.formats.call(this,n)},e.prototype.format=function(n,i){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,i,r){null!=o.query(i,o.Scope.BLOCK)?this.format(i,r):t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.insertAt=function(e,n,i){if(null==i||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,i);else{var r=this.split(e),a=o.create(n,i);r.parent.insertBefore(a,r)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(r.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,i,r){0===e&&n===this.length()?this.format(i,r):t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(r.default);e.default=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,i){null==i?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,i)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:r.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(e=n[o],t.call(r,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,i=1,r=0;function o(t,e,n){if(t==e)return t?[[r,t]]:[];(n<0||t.length<n)&&(n=null);var i=u(t,e),o=t.substring(0,i);t=t.substring(i),e=e.substring(i),i=c(t,e);var s=t.substring(t.length-i);t=t.substring(0,t.length-i),e=e.substring(0,e.length-i);var l=a(t,e);return o&&l.unshift([r,o]),s&&l.push([r,s]),f(l),null!=n&&(l=v(l,n)),l=b(l),l}function a(t,e){var a;if(!t)return[[i,e]];if(!e)return[[n,t]];var l=t.length>e.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[i,l.substring(0,c)],[r,u],[i,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[i,e]];var f=d(t,e);if(f){var h=f[0],p=f[1],v=f[2],b=f[3],m=f[4],g=o(h,v),y=o(p,b);return g.concat([[r,m]],y)}return s(t,e)}function s(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),s=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[s+1]=0,d[s+1]=0;for(var h=r-o,p=h%2!=0,v=0,b=0,m=0,g=0,y=0;y<a;y++){for(var _=-y+v;_<=y-b;_+=2){var O=s+_;j=_==-y||_!=y&&c[O-1]<c[O+1]?c[O+1]:c[O-1]+1;var x=j-_;while(j<r&&x<o&&t.charAt(j)==e.charAt(x))j++,x++;if(c[O]=j,j>r)b+=2;else if(x>o)v+=2;else if(p){var w=s+h-_;if(w>=0&&w<u&&-1!=d[w]){var E=r-d[w];if(j>=E)return l(t,e,j,x)}}}for(var k=-y+m;k<=y-g;k+=2){w=s+k;E=k==-y||k!=y&&d[w-1]<d[w+1]?d[w+1]:d[w-1]+1;var A=E-k;while(E<r&&A<o&&t.charAt(r-E-1)==e.charAt(o-A-1))E++,A++;if(d[w]=E,E>r)g+=2;else if(A>o)m+=2;else if(!p){O=s+h-k;if(O>=0&&O<u&&-1!=c[O]){var j=c[O];x=s+j-O;if(E=r-E,j>=E)return l(t,e,j,x)}}}}return[[n,t],[i,e]]}function l(t,e,n,i){var r=t.substring(0,n),a=e.substring(0,i),s=t.substring(n),l=e.substring(i),u=o(r,a),c=o(s,l);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,i=Math.min(t.length,e.length),r=i,o=0;while(n<r)t.substring(o,r)==e.substring(o,r)?(n=r,o=n):i=r,r=Math.floor((i-n)/2+n);return r}function c(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,i=Math.min(t.length,e.length),r=i,o=0;while(n<r)t.substring(t.length-r,t.length-o)==e.substring(e.length-r,e.length-o)?(n=r,o=n):i=r,r=Math.floor((i-n)/2+n);return r}function d(t,e){var n=t.length>e.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length<n.length)return null;function r(t,e,n){var i,r,o,a,s=t.substring(n,n+Math.floor(t.length/4)),l=-1,d="";while(-1!=(l=e.indexOf(s,l+1))){var f=u(t.substring(n),e.substring(l)),h=c(t.substring(0,n),e.substring(0,l));d.length<h+f&&(d=e.substring(l-h,l)+e.substring(l,l+f),i=t.substring(0,n-h),r=t.substring(n+f),o=e.substring(0,l-h),a=e.substring(l+f))}return 2*d.length>=t.length?[i,r,o,a,d]:null}var o,a,s,l,d,f=r(n,i,Math.ceil(n.length/4)),h=r(n,i,Math.ceil(n.length/2));if(!f&&!h)return null;o=h?f&&f[4].length>h[4].length?f:h:f,t.length>e.length?(a=o[0],s=o[1],l=o[2],d=o[3]):(l=o[0],d=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,d,p]}function f(t){t.push([r,""]);var e,o=0,a=0,s=0,l="",d="";while(o<t.length)switch(t[o][0]){case i:s++,d+=t[o][1],o++;break;case n:a++,l+=t[o][1],o++;break;case r:a+s>1?(0!==a&&0!==s&&(e=u(d,l),0!==e&&(o-a-s>0&&t[o-a-s-1][0]==r?t[o-a-s-1][1]+=d.substring(0,e):(t.splice(0,0,[r,d.substring(0,e)]),o++),d=d.substring(e),l=l.substring(e)),e=c(d,l),0!==e&&(t[o][1]=d.substring(d.length-e)+t[o][1],d=d.substring(0,d.length-e),l=l.substring(0,l.length-e))),0===a?t.splice(o-s,a+s,[i,d]):0===s?t.splice(o-a,a+s,[n,l]):t.splice(o-a-s,a+s,[n,l],[i,d]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&t[o-1][0]==r?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=0,a=0,l="",d="";break}""===t[t.length-1][1]&&t.pop();var h=!1;o=1;while(o<t.length-1)t[o-1][0]==r&&t[o+1][0]==r&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),h=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),h=!0)),o++;h&&f(t)}var h=o;function p(t,e){if(0===e)return[r,t];for(var i=0,o=0;o<t.length;o++){var a=t[o];if(a[0]===n||a[0]===r){var s=i+a[1].length;if(e===s)return[o+1,t];if(e<s){t=t.slice();var l=e-i,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return t.splice(o,1,u,c),[o+1,t]}i=s}}throw new Error("cursor_pos is out of bounds!")}function v(t,e){var n=p(t,e),i=n[1],o=n[0],a=i[o],s=i[o+1];if(null==a)return t;if(a[0]!==r)return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),m(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&i.splice(o+2,0,[s[0],l]),m(i,o,3)}return t}function b(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===r&&a(t[s-2][1])&&t[s-1][0]===n&&o(t[s-1][1])&&t[s][0]===i&&o(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;var l=[];for(s=0;s<t.length;s+=1)t[s][1].length>0&&l.push(t[s]);return l}function m(t,e,n){for(var i=e+n-1;i>=0&&i>=e-1;i--)if(i+1<t.length){var r=t[i],o=t[i+1];r[0]===o[1]&&t.splice(i,2,[r[0],r[1]+o[1]])}return t}h.INSERT=i,h.DELETE=n,h.EQUAL=r,t.exports=h},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?i:r,e.supported=i,e.unsupported=r},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t,e){var n=i?i+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,s=new Array(a);o<a;o++)s[o]=r[o].fn;return s},a.prototype.emit=function(t,e,n,r,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){var r=new o(e,n||this),a=i?i+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(t,e,n){var r=new o(e,n||this,!0),a=i?i+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=i?i+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new r:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||o&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new r:delete this._events[e])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=i,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(3),s=A(a),l=n(2),u=A(l),c=n(0),d=A(c),f=n(5),h=A(f),p=n(10),v=A(p),b=n(9),m=A(b),g=n(36),y=n(37),_=n(13),O=A(_),x=n(26),w=n(38),E=n(39),k=n(40);function A(t){return t&&t.__esModule?t:{default:t}}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function T(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var C=(0,v.default)("quill:clipboard"),N="__ql-matcher",I=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,W],["br",U],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,Z],["li",V],["b",F.bind(F,"bold")],["i",F.bind(F,"italic")],["style",K]],q=[g.AlignAttribute,w.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),L=[g.AlignStyle,y.BackgroundStyle,x.ColorStyle,w.DirectionStyle,E.FontStyle,k.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),M=function(t){function e(t,n){S(this,e);var i=P(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],I.concat(i.options.matchers).forEach((function(t){var e=r(t,2),o=e[0],a=e[1];(n.matchVisual||a!==Y)&&i.addMatcher(o,a)})),i}return T(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[O.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,j({},O.default.blotName,e[O.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),a=o[0],s=o[1],l=z(this.container,a,s);return $(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),C.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,h.default.sources.SILENT);else{var i=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(i),n),this.quill.setSelection(t+i.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new u.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){i=i.concat(e.convert()).delete(n.length),e.quill.updateContents(i,h.default.sources.USER),e.quill.setSelection(i.length()-n.length,h.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=r,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[N]=t[N]||[],t[N].push(s)}));break}})),[e,n]}}]),e}(m.default);function B(t,e,n){return"object"===("undefined"===typeof e?"undefined":i(e))?Object.keys(e).reduce((function(t,n){return B(t,n,e[n])}),t):t.reduce((function(t,i){return i.attributes&&i.attributes[e]?t.push(i):t.insert(i.insert,(0,s.default)({},j({},e,n),i.attributes))}),new u.default)}function D(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function $(t,e){for(var n="",i=t.ops.length-1;i>=0&&n.length<e.length;--i){var r=t.ops[i];if("string"!==typeof r.insert)break;n=r.insert+n}return n.slice(-1*e.length)===e}function R(t){if(0===t.childNodes.length)return!1;var e=D(t);return["block","list-item"].indexOf(e.display)>-1}function z(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(i,r){var o=z(r,e,n);return r.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(r,t)}),o),o=(r[N]||[]).reduce((function(t,e){return e(r,t)}),o)),i.concat(o)}),new u.default):new u.default}function F(t,e,n){return B(n,t,!0)}function H(t,e){var n=d.default.Attributor.Attribute.keys(t),i=d.default.Attributor.Class.keys(t),r=d.default.Attributor.Style.keys(t),o={};return n.concat(i).concat(r).forEach((function(e){var n=d.default.query(e,d.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=q[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),n=L[e],null==n||n.attrName!==e&&n.keyName!==e||(n=L[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=B(e,o)),e}function G(t,e){var n=d.default.query(t);if(null==n)return e;if(n.prototype instanceof d.default.Embed){var i={},r=n.value(t);null!=r&&(i[n.blotName]=r,e=(new u.default).insert(i,n.formats(t)))}else"function"===typeof n.formats&&(e=B(e,n.blotName,n.formats(t)));return e}function U(t,e){return $(e,"\n")||e.insert("\n"),e}function K(){return new u.default}function V(t,e){var n=d.default.query(t);if(null==n||"list-item"!==n.blotName||!$(e,"\n"))return e;var i=-1,r=t.parentNode;while(!r.classList.contains("ql-clipboard"))"list"===(d.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:i}))}function W(t,e){return $(e,"\n")||(R(t)||e.length()>0&&t.nextSibling&&R(t.nextSibling))&&e.insert("\n"),e}function Y(t,e){if(R(t)&&null!=t.nextElementSibling&&!$(e,"\n\n")){var n=t.offsetHeight+parseFloat(D(t).marginTop)+parseFloat(D(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function Z(t,e){var n={},i=t.style||{};return i.fontStyle&&"italic"===D(t).fontStyle&&(n.italic=!0),i.fontWeight&&(D(t).fontWeight.startsWith("bold")||parseInt(D(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=B(e,n)),parseFloat(i.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function X(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!D(t.parentNode).whiteSpace.startsWith("pre")){var i=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(null==t.previousSibling&&R(t.parentNode)||null!=t.previousSibling&&R(t.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==t.nextSibling&&R(t.parentNode)||null!=t.nextSibling&&R(t.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return e.insert(n)}M.DEFAULTS={matchers:[],matchVisual:!0},e.default=M,e.matchAttributor=H,e.matchBlot=G,e.matchNewline=W,e.matchSpacing=Y,e.matchText=X},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);d.blotName="bold",d.tagName=["STRONG","B"],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(2),a=v(o),s=n(0),l=v(s),u=n(5),c=v(u),d=n(10),f=v(d),h=n(9),p=v(h);function v(t){return t&&t.__esModule?t:{default:t}}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=(0,f.default)("quill:toolbar"),O=function(t){function e(t,n){m(this,e);var r,o=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");w(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=i(t,1),n=e[0];o.update(n)})),o):(r=_.error("Container required for toolbar",o.options),g(o,r))}return y(e,t),r(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,(function(r){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),d=i(u,1),f=d[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;e.quill.updateContents((new a.default).retain(f.index).delete(f.length).insert(b({},n,o)),c.default.sources.USER)}else e.quill.format(n,o,c.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var r=i(n,2),o=r[0],a=r[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var l=e[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(p.default);function x(t,e,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+e),null!=n&&(i.value=n),t.appendChild(i)}function w(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)x(n,t);else{var e=Object.keys(t)[0],i=t[e];Array.isArray(i)?E(n,e,i):x(n,e,i)}})),t.appendChild(n)}))}function E(t,e,n){var i=document.createElement("select");i.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),i.appendChild(e)})),t.appendChild(i)}O.DEFAULTS={},O.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,c.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",c.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",t,c.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),i=parseInt(n.indent||0);if("+1"===t||"-1"===t){var r="+1"===t?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",i+r,c.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,c.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",t,c.default.sources.USER)}}},e.default=O,e.addControls=w},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(28),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){l(this,e);var i=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),i}return c(e,t),i(e,[{key:"buildItem",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var i=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=o:i.style.fill=o)}}]),e}(a.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(28),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){l(this,e);var i=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return c(e,t),i(e,[{key:"selectItem",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(e,n){var i=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>i.right&&(o=i.right-r.right,this.root.style.left=e+o+"px"),r.left<i.left&&(o=i.left-r.left,this.root.style.left=e+o+"px"),r.bottom>i.bottom){var a=r.bottom-r.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(3),s=m(a),l=n(8),u=m(l),c=n(43),d=m(c),f=n(27),h=m(f),p=n(15),v=n(41),b=m(v);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,n){g(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=O);var i=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-snow"),i}return _(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),b.default),this.tooltip=new w(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(d.default);x.DEFAULTS=(0,s.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var i=this.quill.theme.tooltip;i.edit("link",n)}else this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){g(this,e);var i=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return _(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,n,r){if(null!=e){if(0===e.length&&r===u.default.sources.USER){var o=t.quill.scroll.descendant(h.default,e.index),a=i(o,2),s=a[0],l=a[1];if(null!=s){t.linkRange=new p.Range(e.index-l,s.length());var c=h.default.formats(s.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(c.BaseTooltip);w.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),r=nt(i),o=n(36),a=n(38),s=n(64),l=n(65),u=nt(l),c=n(66),d=nt(c),f=n(67),h=nt(f),p=n(37),v=n(26),b=n(39),m=n(40),g=n(56),y=nt(g),_=n(68),O=nt(_),x=n(27),w=nt(x),E=n(69),k=nt(E),A=n(70),j=nt(A),S=n(71),P=nt(S),T=n(72),C=nt(T),N=n(73),I=nt(N),q=n(13),L=nt(q),M=n(74),B=nt(M),D=n(75),$=nt(D),R=n(57),z=nt(R),F=n(41),H=nt(F),G=n(28),U=nt(G),K=n(59),V=nt(K),W=n(60),Y=nt(W),Z=n(61),X=nt(Z),Q=n(108),J=nt(Q),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":m.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":m.SizeClass,"formats/blockquote":u.default,"formats/code-block":L.default,"formats/header":d.default,"formats/list":h.default,"formats/bold":y.default,"formats/code":q.Code,"formats/italic":O.default,"formats/link":w.default,"formats/script":k.default,"formats/strike":j.default,"formats/underline":P.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":f.ListItem,"modules/formula":B.default,"modules/syntax":$.default,"modules/toolbar":z.default,"themes/bubble":J.default,"themes/snow":et.default,"ui/icons":H.default,"ui/picker":U.default,"ui/icon-picker":Y.default,"ui/color-picker":V.default,"ui/tooltip":X.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var i=this.value(t)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(t),!0):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),f=new d("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(r.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(4),o=a(r);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=d(o),s=n(4),l=d(s),u=n(25),c=d(u);function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var b=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),i(e,[{key:"format",value:function(t,n){t!==m.blotName||n?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:r(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);b.blotName="list-item",b.tagName="LI";var m=function(t){function e(t){h(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),i=function(e){if(e.target.parentNode===t){var i=n.statics.formats(t),r=a.default.find(e.target);"checked"===i?r.format("list","unchecked"):"unchecked"===i&&r.format("list","checked")}};return t.addEventListener("touchstart",i),t.addEventListener("mousedown",i),n}return v(e,t),i(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",i=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||i.setAttribute("data-checked","checked"===t),i}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof b)r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var i=null==n?this.length():n.offset(this),o=this.split(i);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);m.blotName="list",m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[b],e.ListItem=b,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(r.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);d.blotName="script",d.tagName=["SUB","SUP"],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(r.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(r.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=l(o),s=n(27);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=["alt","height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),i(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(4),a=n(27),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=["height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),i(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(35),a=d(o),s=n(5),l=d(s),u=n(9),c=d(u);function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),i(e,null,[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var b=function(t){function e(){f(this,e);var t=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return p(e,t),i(e,null,[{key:"register",value:function(){l.default.register(v,!0)}}]),e}(c.default);e.FormulaBlot=v,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=n(0),a=h(o),s=n(5),l=h(s),u=n(9),c=h(u),d=n(13),f=h(d);function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return p(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),i(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(f.default);m.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),y=function(t){function e(t,n){p(this,e);var i=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return b(e,t),i(e,null,[{key:"register",value:function(){l.default.register(g,!0),l.default.register(m,!0)}}]),i(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);y.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=g,e.default=y},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var i=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(3),a=p(o),s=n(8),l=p(s),u=n(43),c=p(u),d=n(15),f=n(41),h=p(f);function p(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(t){function e(t,n){v(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var i=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-bubble"),i}return m(e,t),r(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default)}}]),e}(c.default);y.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){v(this,e);var i=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,r){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===l.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var o=i.quill.getLines(e.index,e.length);if(1===o.length)i.position(i.quill.getBounds(e));else{var a=o[o.length-1],s=i.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=i.quill.getBounds(new d.Range(s,u));i.position(c)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return m(e,t),r(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=y},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("1c35").Buffer)},"953d":function(t,e,n){!function(e,i){t.exports=i(n("9339"))}(0,(function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n.n(i),o=n(6),a=n(5),s=a(r.a,o.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=window.Quill||o.default,u=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},c={Quill:l,quillEditor:s.default,install:u};e.default=c,e.Quill=l,e.quillEditor=s.default,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r),a=n(3),s=i(a),l=window.Quill||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new l(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,n,i){var r=t.$refs.editor.children[0].innerHTML,o=t.quill,a=t.quill.getText();"<p><br></p>"===r&&(r=""),t._content=r,t.$emit("input",t._content),t.$emit("change",{html:r,text:a,quill:o})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(t,e){return u.call(e),f(t,e)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:a,exports:s,options:c}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},r=[],o={render:i,staticRenderFns:r};e.a=o}])}))},9734:function(t,e,n){},"99d9":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return l}));var i=n("b0af"),r=n("80d2"),o=Object(r["j"])("v-card__actions"),a=Object(r["j"])("v-card__subtitle"),s=Object(r["j"])("v-card__text"),l=Object(r["j"])("v-card__title");i["a"]},"9d01":function(t,e,n){},"9d65":function(t,e,n){"use strict";var i=n("d9bd"),r=n("2b0e");e["a"]=r["a"].extend().extend({name:"bootable",props:{eager:Boolean},data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||this.eager||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},created:function(){"lazy"in this.$attrs&&Object(i["e"])("lazy",this)},methods:{showLazyContent:function(t){return this.hasContent&&t?t():[this.$createElement()]}}})},a293:function(t,e,n){"use strict";var i=n("53ca"),r=(n("d3b7"),n("dd89"));function o(){return!0}function a(t,e,n){if(!t||!1===s(t,n))return!1;var o=Object(r["a"])(e);if("undefined"!==typeof ShadowRoot&&o instanceof ShadowRoot&&o.host===t.target)return!1;var a=("object"===Object(i["a"])(n.value)&&n.value.include||function(){return[]})();return a.push(e),!a.some((function(e){return e.contains(t.target)}))}function s(t,e){var n="object"===Object(i["a"])(e.value)&&e.value.closeConditional||o;return n(t)}function l(t,e,n,i){var r="function"===typeof n.value?n.value:n.value.handler;e._clickOutside.lastMousedownWasOutside&&a(t,e,n)&&setTimeout((function(){s(t,n)&&r&&r(t)}),0)}function u(t,e){var n=Object(r["a"])(t);e(document),"undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&e(n)}var c={inserted:function(t,e,n){var i=function(i){return l(i,t,e,n)},r=function(n){t._clickOutside.lastMousedownWasOutside=a(n,t,e)};u(t,(function(t){t.addEventListener("click",i,!0),t.addEventListener("mousedown",r,!0)})),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!0}),t._clickOutside[n.context._uid]={onClick:i,onMousedown:r}},unbind:function(t,e,n){t._clickOutside&&(u(t,(function(e){var i;if(e&&null!=(i=t._clickOutside)&&i[n.context._uid]){var r=t._clickOutside[n.context._uid],o=r.onClick,a=r.onMousedown;e.removeEventListener("click",o,!0),e.removeEventListener("mousedown",a,!0)}})),delete t._clickOutside[n.context._uid])}};e["a"]=c},a434:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("7b0b"),u=n("65f0"),c=n("8418"),d=n("1dde"),f=d("splice"),h=r.TypeError,p=Math.max,v=Math.min,b=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,i,r,d,f,g,y=l(this),_=s(y),O=o(t,_),x=arguments.length;if(0===x?n=i=0:1===x?(n=0,i=_-O):(n=x-2,i=v(p(a(e),0),_-O)),_+n-i>b)throw h(m);for(r=u(y,i),d=0;d<i;d++)f=O+d,f in y&&c(r,d,y[f]);if(r.length=i,n<i){for(d=O;d<_-i;d++)f=d+i,g=d+n,f in y?y[g]=y[f]:delete y[g];for(d=_;d>_-i+n;d--)delete y[d-1]}else if(n>i)for(d=_-i;d>O;d--)f=d+i-1,g=d+n-1,f in y?y[g]=y[f]:delete y[g];for(d=0;d<n;d++)y[d+O]=arguments[d+2];return y.length=_-i+n,r}})},a797:function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("3c93"),n("a9ad")),o=n("7560"),a=n("f2e7"),s=n("58df");e["a"]=Object(s["a"])(r["a"],o["a"],a["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes:function(){return Object(i["a"])({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(t){var e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}})},a965:function(t,e,n){"use strict";n("3a51")},afd8:function(t,e,n){"use strict";n("b544")},afdd:function(t,e,n){"use strict";var i=n("8336");e["a"]=i["a"]},b0af:function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("0481"),n("4069"),n("615b"),n("10d2")),o=n("297c"),a=n("1c87"),s=n("58df");e["a"]=Object(s["a"])(o["a"],a["a"],r["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-card":!0},a["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},r["a"].options.computed.classes.call(this))},styles:function(){var t=Object(i["a"])({},r["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=o["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),n=e.tag,i=e.data;return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(n,this.setBackgroundColor(this.color,i),[this.genProgress(),this.$slots.default])}})},b544:function(t,e,n){},b73d:function(t,e,n){"use strict";var i=n("15fd"),r=n("5530"),o=(n("0481"),n("4069"),n("ec29"),n("9d01"),n("fe09")),a=n("c37a"),s=n("c3f0"),l=n("0789"),u=n("490a"),c=n("80d2"),d=["title"];e["a"]=o["a"].extend({name:"v-switch",directives:{Touch:s["a"]},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes:function(){return Object(r["a"])(Object(r["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset})},attrs:function(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState:function(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0},switchData:function(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot:function(){return[this.genSwitch(),this.genLabel()]},genSwitch:function(){var t=this.attrs$,e=(t.title,Object(i["a"])(t,d));return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",Object(r["a"])(Object(r["a"])({},this.attrs),e)),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",Object(r["a"])({staticClass:"v-input--switch__track"},this.switchData)),this.$createElement("div",Object(r["a"])({staticClass:"v-input--switch__thumb"},this.switchData),[this.genProgress()])])},genProgress:function(){return this.$createElement(l["c"],{},[!1===this.loading?null:this.$slots.progress||this.$createElement(u["a"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft:function(){this.isActive&&this.onChange()},onSwipeRight:function(){this.isActive||this.onChange()},onKeydown:function(t){(t.keyCode===c["z"].left&&this.isActive||t.keyCode===c["z"].right&&!this.isActive)&&this.onChange()}}})},b848:function(t,e,n){"use strict";var i=n("2909"),r=n("58df");function o(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];r.isActive&&r.isDependent?e.push(r):e.push.apply(e,Object(i["a"])(o(r.$children)))}return e}e["a"]=Object(r["a"])().extend({name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(t){if(!t)for(var e=this.getOpenDependents(),n=0;n<e.length;n++)e[n].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?o(this.$children):[]},getOpenDependentElements:function(){for(var t=[],e=this.getOpenDependents(),n=0;n<e.length;n++)t.push.apply(t,Object(i["a"])(e[n].getClickableDependentElements()));return t},getClickableDependentElements:function(){var t=[this.$el];return this.$refs.content&&t.push(this.$refs.content),this.overlay&&t.push(this.overlay.$el),t.push.apply(t,Object(i["a"])(this.getOpenDependentElements())),t}}})},bf4c:function(t,e,n){"use strict";n.d(e,"zc",(function(){return i})),n.d(e,"xc",(function(){return r})),n.d(e,"yc",(function(){return o})),n.d(e,"se",(function(){return a})),n.d(e,"we",(function(){return s})),n.d(e,"ve",(function(){return l})),n.d(e,"Ld",(function(){return u})),n.d(e,"Kd",(function(){return c})),n.d(e,"Jd",(function(){return d})),n.d(e,"Ib",(function(){return f})),n.d(e,"C",(function(){return h})),n.d(e,"N",(function(){return p})),n.d(e,"v",(function(){return v})),n.d(e,"j",(function(){return b})),n.d(e,"ob",(function(){return m})),n.d(e,"G",(function(){return g})),n.d(e,"H",(function(){return y})),n.d(e,"P",(function(){return _})),n.d(e,"k",(function(){return O})),n.d(e,"pb",(function(){return x})),n.d(e,"I",(function(){return w})),n.d(e,"J",(function(){return E})),n.d(e,"O",(function(){return k})),n.d(e,"zd",(function(){return A})),n.d(e,"Ad",(function(){return j})),n.d(e,"yd",(function(){return S})),n.d(e,"xd",(function(){return P})),n.d(e,"wc",(function(){return T})),n.d(e,"nc",(function(){return C})),n.d(e,"oc",(function(){return N})),n.d(e,"Dd",(function(){return I})),n.d(e,"Cd",(function(){return q})),n.d(e,"p",(function(){return L})),n.d(e,"i",(function(){return M})),n.d(e,"u",(function(){return B})),n.d(e,"q",(function(){return D})),n.d(e,"o",(function(){return $})),n.d(e,"r",(function(){return R})),n.d(e,"L",(function(){return z})),n.d(e,"M",(function(){return F})),n.d(e,"E",(function(){return H})),n.d(e,"K",(function(){return G})),n.d(e,"F",(function(){return U})),n.d(e,"jc",(function(){return K})),n.d(e,"cb",(function(){return V})),n.d(e,"bb",(function(){return W})),n.d(e,"eb",(function(){return Y})),n.d(e,"ab",(function(){return Z})),n.d(e,"db",(function(){return X})),n.d(e,"lc",(function(){return Q})),n.d(e,"mc",(function(){return J})),n.d(e,"Gd",(function(){return tt})),n.d(e,"Oc",(function(){return et})),n.d(e,"Pd",(function(){return nt})),n.d(e,"Od",(function(){return it})),n.d(e,"Nd",(function(){return rt})),n.d(e,"Md",(function(){return ot})),n.d(e,"Xb",(function(){return at})),n.d(e,"X",(function(){return st})),n.d(e,"W",(function(){return lt})),n.d(e,"Z",(function(){return ut})),n.d(e,"V",(function(){return ct})),n.d(e,"Y",(function(){return dt})),n.d(e,"ic",(function(){return ft})),n.d(e,"kc",(function(){return ht})),n.d(e,"gc",(function(){return pt})),n.d(e,"hc",(function(){return vt})),n.d(e,"Fd",(function(){return bt})),n.d(e,"Vb",(function(){return mt})),n.d(e,"Wb",(function(){return gt})),n.d(e,"S",(function(){return yt})),n.d(e,"T",(function(){return _t})),n.d(e,"U",(function(){return Ot})),n.d(e,"Q",(function(){return xt})),n.d(e,"R",(function(){return wt})),n.d(e,"jb",(function(){return Et})),n.d(e,"kb",(function(){return kt})),n.d(e,"lb",(function(){return At})),n.d(e,"mb",(function(){return jt})),n.d(e,"gb",(function(){return St})),n.d(e,"hb",(function(){return Pt})),n.d(e,"ib",(function(){return Tt})),n.d(e,"fb",(function(){return Ct})),n.d(e,"qb",(function(){return Nt})),n.d(e,"nb",(function(){return It})),n.d(e,"Ub",(function(){return qt})),n.d(e,"Bc",(function(){return Lt})),n.d(e,"Dc",(function(){return Mt})),n.d(e,"Cc",(function(){return Bt})),n.d(e,"Ac",(function(){return Dt})),n.d(e,"s",(function(){return $t})),n.d(e,"t",(function(){return Rt})),n.d(e,"nd",(function(){return zt})),n.d(e,"z",(function(){return Ft})),n.d(e,"y",(function(){return Ht})),n.d(e,"x",(function(){return Gt})),n.d(e,"B",(function(){return Ut})),n.d(e,"A",(function(){return Kt})),n.d(e,"w",(function(){return Vt})),n.d(e,"ud",(function(){return Wt})),n.d(e,"cc",(function(){return Yt})),n.d(e,"Lb",(function(){return Zt})),n.d(e,"Jb",(function(){return Xt})),n.d(e,"Ed",(function(){return Qt})),n.d(e,"Bd",(function(){return Jt})),n.d(e,"l",(function(){return te})),n.d(e,"m",(function(){return ee})),n.d(e,"n",(function(){return ne})),n.d(e,"od",(function(){return ie})),n.d(e,"td",(function(){return re})),n.d(e,"qd",(function(){return oe})),n.d(e,"rd",(function(){return ae})),n.d(e,"pd",(function(){return se})),n.d(e,"sd",(function(){return le})),n.d(e,"vd",(function(){return ue})),n.d(e,"wd",(function(){return ce})),n.d(e,"id",(function(){return de})),n.d(e,"bd",(function(){return fe})),n.d(e,"ld",(function(){return he})),n.d(e,"ed",(function(){return pe})),n.d(e,"dd",(function(){return ve})),n.d(e,"md",(function(){return be})),n.d(e,"ad",(function(){return me})),n.d(e,"jd",(function(){return ge})),n.d(e,"cd",(function(){return ye})),n.d(e,"kd",(function(){return _e})),n.d(e,"hd",(function(){return Oe})),n.d(e,"gd",(function(){return xe})),n.d(e,"fd",(function(){return we})),n.d(e,"Mc",(function(){return Ee})),n.d(e,"Nc",(function(){return ke})),n.d(e,"Nb",(function(){return Ae})),n.d(e,"Rb",(function(){return je})),n.d(e,"Sb",(function(){return Se})),n.d(e,"Ob",(function(){return Pe})),n.d(e,"Pb",(function(){return Te})),n.d(e,"Qb",(function(){return Ce})),n.d(e,"Hb",(function(){return Ne})),n.d(e,"vb",(function(){return Ie})),n.d(e,"wb",(function(){return qe})),n.d(e,"tb",(function(){return Le})),n.d(e,"yb",(function(){return Me})),n.d(e,"xb",(function(){return Be})),n.d(e,"ub",(function(){return De})),n.d(e,"Tb",(function(){return $e})),n.d(e,"Lc",(function(){return Re})),n.d(e,"ye",(function(){return ze})),n.d(e,"ze",(function(){return Fe})),n.d(e,"Ce",(function(){return He})),n.d(e,"Ee",(function(){return Ge})),n.d(e,"xe",(function(){return Ue})),n.d(e,"Kc",(function(){return Ke})),n.d(e,"Be",(function(){return Ve})),n.d(e,"Ae",(function(){return We})),n.d(e,"De",(function(){return Ye})),n.d(e,"Qe",(function(){return Ze})),n.d(e,"a",(function(){return Xe})),n.d(e,"e",(function(){return Qe})),n.d(e,"f",(function(){return Je})),n.d(e,"d",(function(){return tn})),n.d(e,"c",(function(){return en})),n.d(e,"Se",(function(){return nn})),n.d(e,"ne",(function(){return rn})),n.d(e,"oe",(function(){return on})),n.d(e,"le",(function(){return an})),n.d(e,"me",(function(){return sn})),n.d(e,"je",(function(){return ln})),n.d(e,"ke",(function(){return un})),n.d(e,"ce",(function(){return cn})),n.d(e,"Wd",(function(){return dn})),n.d(e,"b",(function(){return fn})),n.d(e,"D",(function(){return hn})),n.d(e,"Zc",(function(){return pn})),n.d(e,"Jc",(function(){return vn})),n.d(e,"ec",(function(){return bn})),n.d(e,"fc",(function(){return mn})),n.d(e,"Gb",(function(){return gn})),n.d(e,"Id",(function(){return yn})),n.d(e,"dc",(function(){return _n})),n.d(e,"Mb",(function(){return On})),n.d(e,"g",(function(){return xn})),n.d(e,"h",(function(){return wn})),n.d(e,"Zd",(function(){return En})),n.d(e,"ae",(function(){return kn})),n.d(e,"Yd",(function(){return An})),n.d(e,"be",(function(){return jn})),n.d(e,"Xd",(function(){return Sn})),n.d(e,"Td",(function(){return Pn})),n.d(e,"Sd",(function(){return Tn})),n.d(e,"Vd",(function(){return Cn})),n.d(e,"Ud",(function(){return Nn})),n.d(e,"Rd",(function(){return In})),n.d(e,"Me",(function(){return qn})),n.d(e,"Le",(function(){return Ln})),n.d(e,"Ke",(function(){return Mn})),n.d(e,"Oe",(function(){return Bn})),n.d(e,"Ne",(function(){return Dn})),n.d(e,"Ve",(function(){return $n})),n.d(e,"Ue",(function(){return Rn})),n.d(e,"Xe",(function(){return zn})),n.d(e,"We",(function(){return Fn})),n.d(e,"Te",(function(){return Hn})),n.d(e,"Qd",(function(){return Gn})),n.d(e,"rc",(function(){return Un})),n.d(e,"tc",(function(){return Kn})),n.d(e,"sc",(function(){return Vn})),n.d(e,"qc",(function(){return Wn})),n.d(e,"pc",(function(){return Yn})),n.d(e,"zb",(function(){return Zn})),n.d(e,"ac",(function(){return Xn})),n.d(e,"Yb",(function(){return Qn})),n.d(e,"Zb",(function(){return Jn})),n.d(e,"bc",(function(){return ti})),n.d(e,"Fb",(function(){return ei})),n.d(e,"Eb",(function(){return ni})),n.d(e,"Db",(function(){return ii})),n.d(e,"vc",(function(){return ri})),n.d(e,"uc",(function(){return oi})),n.d(e,"he",(function(){return ai})),n.d(e,"ie",(function(){return si})),n.d(e,"ge",(function(){return li})),n.d(e,"sb",(function(){return ui})),n.d(e,"rb",(function(){return ci})),n.d(e,"Kb",(function(){return di})),n.d(e,"Ge",(function(){return fi})),n.d(e,"Je",(function(){return hi})),n.d(e,"Ie",(function(){return pi})),n.d(e,"Fe",(function(){return vi})),n.d(e,"He",(function(){return bi})),n.d(e,"fe",(function(){return mi})),n.d(e,"ee",(function(){return gi})),n.d(e,"de",(function(){return yi})),n.d(e,"te",(function(){return _i})),n.d(e,"ue",(function(){return Oi})),n.d(e,"Pe",(function(){return xi})),n.d(e,"pe",(function(){return wi})),n.d(e,"re",(function(){return Ei})),n.d(e,"qe",(function(){return ki})),n.d(e,"Hd",(function(){return Ai})),n.d(e,"Bb",(function(){return ji})),n.d(e,"Cb",(function(){return Si})),n.d(e,"Ab",(function(){return Pi})),n.d(e,"Ic",(function(){return Ti})),n.d(e,"Hc",(function(){return Ci})),n.d(e,"Fc",(function(){return Ni})),n.d(e,"Pc",(function(){return Ii})),n.d(e,"Ec",(function(){return qi})),n.d(e,"Gc",(function(){return Li})),n.d(e,"Wc",(function(){return Mi})),n.d(e,"Sc",(function(){return Bi})),n.d(e,"Xc",(function(){return Di})),n.d(e,"Vc",(function(){return $i})),n.d(e,"Uc",(function(){return Ri})),n.d(e,"Qc",(function(){return zi})),n.d(e,"Tc",(function(){return Fi})),n.d(e,"Rc",(function(){return Hi})),n.d(e,"Yc",(function(){return Gi}));var i="/master/get_state/",r="/master/get_grade/",o="/master/get_special_message",a="/master/get_default_goal/",s="/master/get_wizfit_song/",l="/master/get_resource_category_list/",u="/users/get_sales_rep_list/",c="/users/get_event_support_staff_list/",d="/district/get_district_list/",f="/district/special_district_overview/",h="/users/forgot_password/",p="/users/change_password/",v="/district/list/",b="/district/detail/",m="/district/detail/",g="/district/detail/",y="/district/get_district_list/",_="/school/list/",O="/school/detail/",x="/school/detail/",w="/school/detail/",E="/school/get_school_list/",k="/school/new_school_detail/",A="/school/school_resource/",j="/school/school_resource/",S="/school/download_file/",P="/school/common_resource_list/",T="/school/kickoff_mail/",C="/school/goldball_mail/",N="/school/graduation_mail/",I="/users/get_user_list/",q="/school/resend_invitation/",L="/campaign/list/",M="/campaign/store_campaign_assets/",B="/campaign/store_campaign_assets/",D="/campaign/detail/",$="/campaign/detail/",R="/campaign/detail/",z="/campaign/get_sub_domain/",F="/campaign/validate_sub_domain/",H="/campaign/onboarding_list/",G="/school/starter_kit_mail/",U="/campaign/campaign_school_list/",K="/student/meta_student_detail/",V="/teacher/list/",W="/teacher/detail/",Y="/teacher/detail/",Z="/teacher/detail/",X="/teacher/detail/",Q="/teacher/get_teacher_list/",J="/teacher/teacher_overview/",tt="/teacher/store_teacher_assets/",et="/teacher/pe_teacher_overview/",nt="/teacher/wizfit_video_showcase_detail/",it="/teacher/wizfit_video_showcase_list/",rt="/teacher/wizfit_video_showcase_detail/",ot="/master/get_wizfit_video/",at="/teacher/teacher_export/",st="/student/list/",lt="/student/detail/",ut="/student/detail/",ct="/student/detail/",dt="/student/detail/",ft="/student/get_student_list/",ht="/student/watch_history/",pt="/student/event_watch_history/",vt="/student/leaderboard/",bt="/student/store_student_assets/",mt="/student/student_export/",gt="/student/student_data_export/",yt="/sponsor/list/",_t="/sponsor/detail/",Ot="/sponsor/detail/",xt="/sponsor/detail/",wt="/sponsor/detail/",Et="/team/list/",kt="/team/detail/",At="/users/add_user/",jt="/team/detail/",St="/team/detail/",Pt="/team/detail/",Tt="/users/user_role_selection",Ct="/team/team_detail_add",Nt="/users/list/",It="/team/teams/",qt="/team/get_team_players/",Lt="/team/teamdata_list/",Mt="/team/teamdata_detail/",Bt="/team/teamdata_detail/",Dt="/team/teamdata_detail/",$t="/admins/overview/",Rt="/school/leaderboard/",zt="/master/class_leaderboard/",Ft="/donation/overview/",Ht="/donation/list/",Gt="/donation/detail/",Ut="/donation/detail/",Kt="/donation/detail/",Vt="/donation/detail/",Wt="/donation/get_recent_donation_list/",Yt="/admins/get_fiscal_year_range/",Zt="/donation/update_pledge_status/",Xt="/district/district_overview/",Qt="/payment/get_OAuth_dashboard_url/",Jt="/school/school_overview/",te="/district/bulk_import/",ee="/school/bulk_import/",ne="/teacher/bulk_import/",ie="/campaign/detail/",re="/master/search/",oe="/sponsor/public_list/",ae="/donation/detail/",se="/donation/detail/",le="/master/get_gateway_percentage/",ue="/mail/email_template_detail/",ce="/mail/share_detail/",de="/prize/list/",fe="/prize/type_detail/",he="/prize/prize_detail/",pe="/prize/distribution/",ve="/prize/type_detail/",be="/prize/type/",me="/prize/list/",ge="/prize/prize_detail/",ye="/prize/type_detail/",_e="/prize/remaining/",Oe="/prize/distribution/",xe="/prize/distribution/",we="/prize/distribution/",Ee="/prize/download_prize_list/",ke="/prize/student_medal_report/",Ae="/mail/email_template_list/",je="/mail/email_template_list/",Se="/mail/email_template_detail/",Pe="/mail/email_template_detail/",Te="/mail/email_template_detail/",Ce="/mail/email_template_keyword_list/",Ne="/mail/email_template_detail/",Ie="/mail/bulk_email/",qe="/mail/update_bulk_email/",Le="/mail/get_audition_count/",Me="/mail/update_game_email/",Be="/mail/game_email_list/",De="/mail/get_audience_list/",$e="/mail/media_credentials_detail/",Re="/student/list",ze="/mail/invite_list/",Fe="/mail/invite_detail/",He="/mail/sms_invite_detail/",Ge="/mail/social_share_detail/",Ue="/mail/email_template_detail/",Ke="/student/check_student_name/",Ve="/mail/sms_invite_list/",We="/mail/teacher_invite_detail/",Ye="/mail/teacher_sms_invite_detail/",Ze="/users/resend_login_mail/",Xe="/game/list/",Qe="/game/team_list/",Je="/game/ticket_type_list/",tn="/game/deatil/",en="/game/deatil/",nn="/school/get_school_dashboard_selection/",rn="/game/ticket_sold_detail/",on="/game/ticket_sold_detail/",an="/game/game_quotas/",sn="/game/game_quotas/",ln="/game/gamequota_items/",un="/game/gamequota_items/",cn="/calendar/get_game_data/",dn="/calendar/get_campaign_data/",fn="/game/deatil/",hn="/game/game_ticket_list/",pn="/game/gamevoucher_detail/",vn="/game/gamevoucher_detail/",bn="/game/gamevoucher_detail/",mn="/game/gamevoucher_list/",gn="/game/create_vouchers/",yn="/game/game_resource/",_n="/game/game_resource/",On="/game/game_resource_download_file/",xn="/game/add_assembly_to_calendar/",wn="/game/add_hotel_to_calendar/",En="/game/sponsor_list/",kn="/game/sponsor_detail/",An="/game/sponsor_detail/",jn="/game/sponsor_detail/",Sn="/game/sponsor_detail/",Pn="/game/assemble_list/",Tn="/game/assemble_detail/",Cn="/game/assemble_detail/",Nn="/game/assemble_detail/",In="/game/assemble_detail/",qn="/game/paid_assemble_detail/",Ln="/game/paid_assemble_detail/",Mn="/game/paid_assemble_detail/",Bn="/game/assemble_school_group_detail/",Dn="/game/assemble_school_group_detail/",$n="/game/volunteer_list/",Rn="/game/volunteer_detail/",zn="/game/volunteer_detail/",Fn="/game/volunteer_detail/",Hn="/game/volunteer_detail/",Gn="/game/checklist_category_list/",Un="/game/hometeam_list/",Kn="/game/hometeam_detail/",Vn="/game/hometeam_detail/",Wn="/game/hometeam_detail/",Yn="/game/hometeam_detail/",Zn="/game/bulk_import/",Xn="/game/game_committee_list/",Qn="/game/game_committee_detail/",Jn="/game/game_committee_detail/",ti="/game/game_committee_detail/",ei="/game/game_checklist/",ni="/game/checklist_detail/",ii="/game/checklist_action_date_detail/",ri="/game/hotel_detail/",oi="/game/hotel_detail/",ai="/game/hotel_detail/",si="/game/hotel_list/",li="/game/hotel_detail/",ui="/game/all_hotel_list/",ci="/game/all_assemble_list/",di="/donation/get_donation_report/",fi="/game/note_detail/",hi="/game/note_detail/",pi="/game/note_detail/",vi="/game/note_detail/",bi="/game/note_list/",mi="/game/get_graph_data",gi="/game/door_sale_number/",yi="/game/door_sale_number/",_i="/school/get_gallery_repository/",Oi="/school/get_gallery_repository/",xi="/student/store_student_assets/",wi="/mail/email_notification_confirmation/",Ei="/mail/sms_notification_confirmation/",ki="/game/export_fb_boosted_games/",Ai="/game/update_video_urls/",ji="/calendar/",Si="/calendar/",Pi="/calendar/event-category/list/",Ti="/calendar/paid_event_detail/",Ci="/calendar/paid_event_detail/",Ni="/calendar/paid_event_detail/",Ii="/calendar/get_available_players/",qi="/calendar/paid_event_detail/",Li="/calendar/paid_event_list/",Mi="/calendar/eventslot/",Bi="/calendar/eventslot/",Di="/calendar/eventslot_detail/",$i="/calendar/eventslot_detail/",Ri="/calendar/eventslot/",zi="/calendar/eventslot/",Fi="/calendar/eventslot_list/",Hi="/calendar/eventslot_detail_list/",Gi="/calendar/monthly_slot_list/"},c3b5:function(t,e,n){"use strict";n("498a"),n("ac1f"),n("00b4"),n("1276"),n("4d63"),n("c607"),n("2c3e"),n("25f0");var i=n("82fa");e["a"]={required:function(t){return!!t||"This is Required."},min5character:function(t){return t?t.length>4||"Please enter atleast 5 character":"This is Required."},notEmpty:function(t){return!t||""!=t.trim()||"Cannot be left empty"},isNum:function(t){return!(t.length>0&&isNaN(parseInt(t)))||"Invalid Number"},min:function(t){return t.length>=2||"Min 2 characters"},email:function(t){var e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return!!e.test(String(t).toLowerCase().trim())||"Invalid Email"},mobile:function(t){return console.log(t),!0},date:function(t){var e=t.split("/"),n=parseInt(e[1]),r=parseInt(e[0]);return!!(i["a"].date_regex.test(t)&&r<=31&&r>0&&n<=12&&n>0)||"Invalid Date Format"},isUrl:function(t){var e=/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return!!e.test(t)||"Invalid URL Format"},dateLessThanToday:function(t){var e=t.split("/"),n=parseInt(e[1]),r=parseInt(e[0]);if(i["a"].date_regex.test(t)&&r<=31&&r>0&&n<=12&&n>0){var o=new Date;o.setHours(0,0,0,0);var a=new Date(+e[2],e[1]-1,+e[0]);return a<=o||"Date cannot be grater than today"}return"Invalid Date Format"},dateGraterThanToday:function(t){var e=t.split("/"),n=parseInt(e[1]),r=parseInt(e[0]);if(i["a"].date_regex.test(t)&&r<=31&&r>0&&n<=12&&n>0){var o=new Date;o.setHours(0,0,0,0);var a=new Date(+e[2],e[1]-1,+e[0]);return a>=o||"Date cannot be less than today"}return"Invalid Date Format"},dateLessThanDate:function(t,e){var n=t.split("/"),r=parseInt(n[1]),o=parseInt(n[0]);if(i["a"].date_regex.test(t)&&o<=31&&o>0&&r<=12&&r>0){var a=new Date(e);a.setHours(0,0,0,0);var s=new Date(+n[2],n[1]-1,+n[0]);return s<=a||"Invalid Date"}return"Invalid Date Format"},dateGraterThanDate:function(t,e){var n=t.split("/"),r=parseInt(n[1]),o=parseInt(n[0]);if(i["a"].date_regex.test(t)&&o<=31&&o>0&&r<=12&&r>0){var a=new Date(e);a.setHours(0,0,0,0);var s=new Date(+n[2],n[1]-1,+n[0]);return s>=a||"Invalid Date"}return"Invalid Date Format"},max250:function(t){return t?t.length<=1500||"Max 250 words":"This is Required."},matchData:function(t,e,n){return null!=t&&null!=e&&t==e||n},matchRegex:function(t,e){return console.log(new RegExp(t).test(e)),console.log(t),console.log(e),!!new RegExp(t).test(e)||"Invalid"}}},c3f0:function(t,e,n){"use strict";n("d3b7"),n("159b");var i=n("80d2"),r=function(t){var e=t.touchstartX,n=t.touchendX,i=t.touchstartY,r=t.touchendY,o=.5,a=16;t.offsetX=n-e,t.offsetY=r-i,Math.abs(t.offsetY)<o*Math.abs(t.offsetX)&&(t.left&&n<e-a&&t.left(t),t.right&&n>e+a&&t.right(t)),Math.abs(t.offsetX)<o*Math.abs(t.offsetY)&&(t.up&&r<i-a&&t.up(t),t.down&&r>i+a&&t.down(t))};function o(t,e){var n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,e.start&&e.start(Object.assign(t,e))}function a(t,e){var n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,e.end&&e.end(Object.assign(t,e)),r(e)}function s(t,e){var n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,e.move&&e.move(Object.assign(t,e))}function l(t){var e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:function(t){return o(t,e)},touchend:function(t){return a(t,e)},touchmove:function(t){return s(t,e)}}}function u(t,e,n){var r=e.value,o=r.parent?t.parentElement:t,a=r.options||{passive:!0};if(o){var s=l(e.value);o._touchHandlers=Object(o._touchHandlers),o._touchHandlers[n.context._uid]=s,Object(i["A"])(s).forEach((function(t){o.addEventListener(t,s[t],a)}))}}function c(t,e,n){var r=e.value.parent?t.parentElement:t;if(r&&r._touchHandlers){var o=r._touchHandlers[n.context._uid];Object(i["A"])(o).forEach((function(t){r.removeEventListener(t,o[t])})),delete r._touchHandlers[n.context._uid]}}var d={inserted:u,unbind:c};e["a"]=d},c607:function(t,e,n){var i=n("da84"),r=n("83ab"),o=n("fce3"),a=n("c6b6"),s=n("9bf2").f,l=n("69f3").get,u=RegExp.prototype,c=i.TypeError;r&&o&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!l(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},c740:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},cc20:function(t,e,n){"use strict";var i=n("3835"),r=n("5530"),o=(n("d3b7"),n("4de4"),n("8adc"),n("58df")),a=n("0789"),s=n("9d26"),l=n("a9ad"),u=n("4e82"),c=n("7560"),d=n("f2e7"),f=n("1c87"),h=n("af2b"),p=n("d9bd");e["a"]=Object(o["a"])(l["a"],h["a"],f["a"],c["a"],Object(u["a"])("chipGroup"),Object(d["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default:function(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:function(){return{proxyClass:"v-chip--active"}},computed:{classes:function(){return Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({"v-chip":!0},f["a"].options.computed.classes.call(this)),{},{"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose},this.themeClasses),this.sizeableClasses),this.groupClasses)},hasClose:function(){return Boolean(this.close)},isClickable:function(){return Boolean(f["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created:function(){var t=this,e=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];e.forEach((function(e){var n=Object(i["a"])(e,2),r=n[0],o=n[1];t.$attrs.hasOwnProperty(r)&&Object(p["a"])(r,o,t)}))},methods:{click:function(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter:function(){var t=[];return this.isActive&&t.push(this.$createElement(s["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(a["b"],t)},genClose:function(){var t=this;return this.$createElement(s["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.$emit("click:close"),t.$emit("update:active",!1)}}},this.closeIcon)},genContent:function(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render:function(t){var e=[this.genContent()],n=this.generateRouteLink(),i=n.tag,o=n.data;o.attrs=Object(r["a"])(Object(r["a"])({},o.attrs),{},{draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:o.attrs.tabindex}),o.directives.push({name:"show",value:this.active}),o=this.setBackgroundColor(this.color,o);var a=this.textColor||this.outlined&&this.color;return t(i,this.setTextColor(a,o),e)}})},ce7e:function(t,e,n){"use strict";var i=n("5530"),r=(n("8ce9"),n("7560"));e["a"]=r["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(t){var e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:Object(i["a"])({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:Object(i["a"])({role:"separator","aria-orientation":e},this.$attrs),on:this.$listeners})}})},d46c:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"px-7 py-8"},[n("v-row",{attrs:{"no-gutters":""}},["pendingPrizeDistribution"===t.tab?n("v-col",{attrs:{cols:"11",md:"4"}},[n("v-text-field",{staticClass:"search-input",attrs:{outlined:"",dense:"",label:"Search by School","append-icon":"mdi-magnify",type:"text",color:"#38227A",height:"43px"},scopedSlots:t._u([{key:"label",fn:function(){return[n("div",{staticStyle:{"font-size":"15px"}},[t._v("Search by School")])]},proxy:!0}],null,!1,980945122),model:{value:t.prizesTableInfo[t.$API_KEYS.SEARCH],callback:function(e){t.$set(t.prizesTableInfo,t.$API_KEYS.SEARCH,e)},expression:"prizesTableInfo[$API_KEYS.SEARCH]"}})],1):t._e()],1),n("v-row",[n("v-spacer"),"distributedPrizes"===this.tab?n("v-col",{staticClass:"pb-6 pr-8 text-right",attrs:{"col-lg":"3"}},[n("v-btn",{staticClass:"text-capitalize py-5 px-7",staticStyle:{"border-radius":"10px"},attrs:{height:"45",dark:"",color:"#38227A"},on:{click:function(e){return t.toggleAddEditViewPrizeModal({show:!0,type:"add",tab:t.tab})}}},[n("span",[t._v("Add new recoed")])])],1):"pendingPrizeDistribution"!==t.tab&&"Super Admin"===this.adminAccess?n("v-col",{staticClass:"pb-6 pr-8 text-right",attrs:{"col-lg":"3"}},[t.$vuetify.breakpoint.smAndUp?n("v-btn",{staticClass:"text-capitalize py-5 px-7",staticStyle:{"border-radius":"10px"},attrs:{height:"45",dark:"",color:"#38227A"},on:{click:function(e){return t.toggleAddEditViewPrizeModal({show:!0,type:"add",tab:t.tab})}}},[n("span",[t._v(t._s(t.buttonTitle))])]):t._e(),t.$vuetify.breakpoint.xsOnly?n("v-menu",{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,r=e.attrs;return[n("v-icon",t._g(t._b({staticClass:"mobile-menu"},"v-icon",r,!1),i),[t._v("mdi-menu")])]}}],null,!1,266860307)},[n("v-list",[n("v-list-item-group",{attrs:{"active-class":"active-class"}},[n("v-list-item",{on:{click:function(e){return t.toggleAddEditViewPrizeModal({show:!0,type:"add",tab:t.tab})}}},[n("v-list-item-title",[t._v(t._s(t.buttonTitle))])],1)],1)],1)],1):t._e()],1):t._e()],1),n("v-data-table",{staticClass:"elevation-8",attrs:{"fixed-header":"","hide-default-footer":"",headers:t.getTableHeaders,items:t.items,loading:t.loading,options:t.dataOptions,"loading-text":"Loading... Please wait","items-per-page":t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.ITEMS_PER_PAGE],"server-items-length":t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.ITEMS_PER_PAGE],"mobile-breakpoint":"0"},on:{"update:options":function(e){t.dataOptions=e}},scopedSlots:t._u(["pendingPrizeDistribution"!==t.tab?{key:"top",fn:function(){},proxy:!0}:null,{key:"item",fn:function(e){return["prizeMaster"===t.tab?n("tr",[n("td",{staticClass:"text-center"},[n("div",{staticClass:"itemTitle"},[t._v(t._s(e.item.name))])]),n("td",{staticClass:"text-center"},[n("div",{staticClass:"itemTitle"},[t._v(t._s(e.item.stats))]),n("div",{staticStyle:{"font-size":"12px",color:"#737373"}},[t._v("Distributed")])]),n("td",["admin"==e.item.user_type?n("div",{staticClass:"d-flex justify-center",staticStyle:{width:"100%"}},[n("v-switch",{attrs:{color:"#067605"},on:{change:function(n){return t.changeStatus(e.item.status,e.item.id)}},scopedSlots:t._u([{key:"label",fn:function(){return[n("div",{style:e.item.status?"color:#067605":"color:#8C8C8C"},[e.item.status?n("div",[t._v("Active")]):n("div",[t._v("In-active")])])]},proxy:!0}],null,!0),model:{value:e.item.status,callback:function(n){t.$set(e.item,"status",n)},expression:"props.item.status"}})],1):t._e()])]):t._e(),"commonPrizes"===t.tab||"customPrizes"===t.tab?n("tr",[n("td",{staticClass:"text-center"},[n("div",{staticClass:"d-flex justify-center",staticStyle:{display:"flex"}},[n("div",{staticClass:"py-2 px-2",staticStyle:{float:"left"}},[n("img",{attrs:{src:e.item.prize_logo,width:"80px",alt:""}})]),n("div",{staticClass:"py-7 mx-2",staticStyle:{float:"left"}},[n("div",{staticClass:"schoolInfo"},[t._v(t._s(e.item.prize))])])])]),n("td",{staticClass:"text-center"},[n("div",[t._v(t._s(e.item.title))])]),"customPrizes"===t.tab?n("td",{staticClass:"text-center"},[n("div",{staticClass:"schoolInfo"},[t._v(t._s(e.item.school_name))]),n("div",{staticClass:"districtInfo"},[t._v(t._s(e.item.district_name))])]):t._e(),n("td",{staticClass:"text-center"},["admin"==e.item.user_type?n("v-chip",{staticClass:"actionColumn-btn",attrs:{color:"#F2F2F2"},on:{click:function(n){return t.toggleDeleteModal({Delete:!0,id:e.item.prize_id,typeID:e.item.id})}}},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,r=e.attrs;return[n("v-icon",t._g(t._b({staticClass:"icons",attrs:{dark:"",color:"#6B6B6B",size:"25"}},"v-icon",r,!1),i),[t._v(" mdi-delete ")])]}}],null,!0)},[n("span",[t._v("Delete")])])],1):t._e()],1)]):t._e(),"pendingPrizeDistribution"===t.tab?n("tr",[n("td",{staticClass:"text-center"},[n("div",{staticClass:"justify-center"},[n("div",{staticClass:"py-2 px-2"},[n("img",{attrs:{src:e.item.logo_url,width:"60px",alt:""}})]),n("div",{staticClass:"py-4 mx-2"},[n("div",{staticClass:"schoolInfo"},[t._v(t._s(e.item.school_name))]),n("div",{staticClass:"districtInfo"},[t._v(t._s(e.item.district_name))])])])]),n("td",{staticClass:"text-center"},t._l(e.item.prize_list,(function(e,i){return n("div",{key:i,staticClass:"itemTitle"},[t._v(" "+t._s(e.prize_name)+" - "+t._s(e.prize_count)+" ")])})),0),n("td",{staticClass:"text-center"},[e.item.status?n("v-chip",{class:e.item.status.replace(" ","","g").toLowerCase()},[t._v(" "+t._s(e.item.status)+" ")]):t._e()],1),n("td",{staticClass:"text-center"},[n("v-menu",{attrs:{"offset-y":"",left:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,r=e.attrs;return[n("v-chip",t._g(t._b({staticClass:"actionColumn-btn",attrs:{color:"#F2F2F2"}},"v-chip",r,!1),i),[n("v-icon",{attrs:{size:"25",color:"#6B6B6B"}},[t._v("mdi-download")])],1)]}}],null,!0)},[n("v-list",{staticClass:"menu-list moreOptionsStyle py-0"},[n("v-list-item-group",{staticClass:"py-0"},[n("v-list-item",{staticStyle:{"min-height":"40px","border-top":"1px solid #d2d2d2"},on:{click:function(n){return t.downloadReport("class",e.item)}}},[n("v-list-item-title",{staticStyle:{"font-size":"14px"}},[t._v(" Class Breakdown ")])],1),n("v-list-item",{staticStyle:{"min-height":"40px","border-top":"1px solid #d2d2d2"},on:{click:function(n){return t.downloadReport("student",e.item)}}},[n("v-list-item-title",{staticStyle:{"font-size":"14px"}},[t._v(" Prize Summary ")])],1),n("v-list-item",{staticStyle:{"min-height":"40px","border-top":"1px solid #d2d2d2"},on:{click:function(n){return t.downloadStudentMedalReport(e.item)}}},[n("v-list-item-title",{staticStyle:{"font-size":"14px"}},[t._v(" Medal Report ")])],1)],1)],1)],1)],1)]):t._e(),"distributedPrizes"===t.tab?n("tr",[n("td",{staticClass:"text-center"},[n("div",[n("div",{staticClass:"py-2 px-2"},[n("img",{attrs:{src:e.item.logo_url,width:"60px",alt:""}})]),n("div",{staticClass:"py-5 mx-2"},[n("div",{staticClass:"schoolInfo"},[t._v(t._s(e.item.school_name))]),n("div",{staticClass:"districtInfo"},[t._v(t._s(e.item.district_name))])])])]),n("td",{staticClass:"text-center"},t._l(e.item.prize_list,(function(e,i){return n("div",{key:i,staticClass:"itemTitle"},[t._v(" "+t._s(e.prize_name)+" - "+t._s(e.prize_count)+" ")])})),0),n("td",{staticClass:"text-center"},[e.item.date_time.date?n("div",[t._v(" "+t._s(e.item.date_time.date)+" ")]):t._e(),e.item.date_time.time?n("div",[t._v(" "+t._s(e.item.date_time.time)+" ")]):t._e()]),n("td",{staticClass:"text-center"},[n("v-row",{staticClass:"justify-center"},[n("v-col",{staticClass:"pa-0 text-center",attrs:{cols:"12",xl:"8"}},[n("v-chip",{staticClass:"actionColumn-btn",attrs:{color:"#F2F2F2"},on:{click:function(n){return t.toggleAddEditViewPrizeModal({show:!0,type:"edit",tab:t.tab,id:e.item.id})}}},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,r=e.attrs;return[n("v-icon",t._g(t._b({staticClass:"icons",attrs:{dark:"",color:"#6B6B6B",size:"22"}},"v-icon",r,!1),i),[t._v(" mdi-pencil ")])]}}],null,!0)},[n("span",[t._v("Edit")])])],1),n("v-chip",{staticClass:"actionColumn-btn",attrs:{color:"#F2F2F2"},on:{click:function(n){return t.toggleDeleteModal({Delete:!0,id:e.item.id})}}},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,r=e.attrs;return[n("v-icon",t._g(t._b({staticClass:"icons",attrs:{dark:"",color:"#6B6B6B",size:"25"}},"v-icon",r,!1),i),[t._v(" mdi-delete ")])]}}],null,!0)},[n("span",[t._v("Delete")])])],1)],1)],1)],1)]):t._e()]}},{key:"footer",fn:function(){return[n("v-divider"),n("v-row",{staticClass:"pt-6",attrs:{"no-gutters":""}},[n("v-col",{staticClass:"mb-4",attrs:{"align-self":"center",cols:"12",xs:"12",sm:"6",md:"4"}},[n("div",{staticClass:"justify-center justify-md-start d-flex px-5 tableHeader-text"},[n("div",{staticClass:"alignSelf-center mr-3"},[t._v("Show")]),n("div",{staticClass:"alignSelf-center mr-5 pb-2",staticStyle:{width:"60px"}},[n("v-select",{attrs:{items:t.itemsPerPageList,"hide-details":"",dense:""},model:{value:t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.ITEMS_PER_PAGE],callback:function(e){t.$set(t.prizesTableInfo[t.$API_KEYS.PAGE_INFO],t.$API_KEYS.ITEMS_PER_PAGE,e)},expression:"\n                  prizesTableInfo[$API_KEYS.PAGE_INFO][\n                    $API_KEYS.ITEMS_PER_PAGE\n                  ]\n                "}})],1),n("div",{staticClass:"alignSelf-center"},[t._v(" "+t._s(t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.PAGE_NUMBER])+" of "+t._s(t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.TOTAL_PAGE])+" ")])])]),n("v-spacer"),n("v-col",{attrs:{cols:"12",xs:"12",sm:"4",md:"4"}},[n("div",[n("v-pagination",{staticClass:"pagination",attrs:{length:t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.TOTAL_PAGE],"total-visible":5,color:"#D30024"},model:{value:t.prizesTableInfo[t.$API_KEYS.PAGE_INFO][t.$API_KEYS.PAGE_NUMBER],callback:function(e){t.$set(t.prizesTableInfo[t.$API_KEYS.PAGE_INFO],t.$API_KEYS.PAGE_NUMBER,e)},expression:"\n                prizesTableInfo[$API_KEYS.PAGE_INFO][$API_KEYS.PAGE_NUMBER]\n              "}})],1)])],1)]},proxy:!0}],null,!0)}),n("add-edit-prize-modal",{on:{reload:function(e){return t.changeTab(t.tab)}}}),n("delete-modal",{on:{Delete:function(e){return t.prizeDeleteMethod()}}})],1)},r=[],o=n("5530"),a=n("ade3"),s=(n("d3b7"),n("3ca3"),n("ddb0"),n("ac1f"),n("1276"),n("2b3d"),n("9861"),n("2f62")),l=n("3bc1"),u=n("b880"),c=n("bf4c"),d={name:"PrizeManagement",components:{AddEditPrizeModal:function(){return Promise.all([n.e("chunk-a443c314"),n.e("chunk-2a5e5d60")]).then(n.bind(null,"2c37"))},DeleteModal:function(){return n.e("chunk-2317a494").then(n.bind(null,"17e6"))}},data:function(){var t,e;return e={adminAccess:localStorage.getItem("adminAccess"),dataOptions:{sortBy:[],sortDesc:[]},dataOptions1:{sortBy:[],sortDesc:[]},tab:"prizeMaster",loading:!1,sortstatus:!1,sortdate:!1,search:"",items:[],prizesTableInfo:Object(a["a"])({},u["PAGE_INFO"],(t={},Object(a["a"])(t,u["PAGE_NUMBER"],1),Object(a["a"])(t,u["TOTAL_PAGE"],5),Object(a["a"])(t,u["ITEMS_PER_PAGE"],10),t)),itemsPerPageList:[10,15,20,30,50,100],prizeMasterHeader:[{width:"25%",sortable:!1,text:"Prize Name",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Stats",align:"center",class:["tableHeader-text","tableHeader-bg"]},{width:"30%",sortable:!1,text:"Prize Status",align:"center",class:["tableHeader-text","tableHeader-bg"]}],commonPrizesHeader:[{width:"25%",sortable:!1,text:"Prize",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Prize Type",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Action",align:"center",class:["tableHeader-text","tableHeader-bg"]}],customPrizesHeader:[{width:"25%",sortable:!1,text:"Prize",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Prize Type",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"School",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Action",align:"center",class:["tableHeader-text","tableHeader-bg"]}],pendingPrizeDistributionHeader:[{width:"30%",sortable:!1,text:"School",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Prizes",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!0,text:"Status",value:"status",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Action",align:"center",class:["tableHeader-text","tableHeader-bg"]}]},Object(a["a"])(e,u["SORTING_KEY"],""),Object(a["a"])(e,u["SEARCH"],""),Object(a["a"])(e,"distributedPrizesHeader",[{width:"30%",sortable:!1,text:"School",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Prizes",align:"center",class:["tableHeader-text","tableHeader-bg"]},{sortable:!0,text:"Date & Time",align:"center",value:"date",class:["tableHeader-text","tableHeader-bg"]},{sortable:!1,text:"Action",align:"center",class:["tableHeader-text","tableHeader-bg"]}]),e},computed:{getTableHeaders:function(){var t="";return"prizeMaster"===this.tab?t=this.prizeMasterHeader:"commonPrizes"===this.tab?t=this.commonPrizesHeader:"customPrizes"===this.tab?t=this.customPrizesHeader:"pendingPrizeDistribution"===this.tab?t=this.pendingPrizeDistributionHeader:"distributedPrizes"===this.tab&&(t=this.distributedPrizesHeader),t},buttonTitle:function(){var t="";return"prizeMaster"===this.tab?t="Add New Prize":"commonPrizes"===this.tab?t="Add New Common Prize":"customPrizes"===this.tab&&(t="Add New Current Prize"),t}},watch:{"prizesTableInfo.page_info.page_number":function(){"pendingPrizeDistribution"===this.tab&&this.distributedprizeGet("remaining"),"distributedPrizes"===this.tab&&this.distributedprizeGet("distributed")},"prizesTableInfo.search":function(){"pendingPrizeDistribution"===this.tab&&this.distributedprizeGet("remaining")},"prizesTableInfo.page_info.detail_count":function(){"pendingPrizeDistribution"===this.tab?this.distributedprizeGet("remaining"):"distributedPrizes"===this.tab&&this.distributedprizeGet("distributed")},"dataOptions.sortBy":function(){"distributedPrizes"===this.tab&&(this.sortdate=!0,0!==this.dataOptions.sortBy.length&&(this.prizesTableInfo[u["SORTING_KEY"]]=this.dataOptions.sortDesc[0]?"-".concat(this.dataOptions.sortBy[0]):this.dataOptions.sortBy[0],this.distributedprizeGet("distributed"))),"pendingPrizeDistribution"===this.tab&&(this.sortstatus=!0,0!==this.dataOptions.sortBy.length&&(this.prizesTableInfo[u["SORTING_KEY"]]=this.dataOptions.sortDesc[0]?"-".concat(this.dataOptions.sortBy[0]):this.dataOptions.sortBy[0],this.distributedprizeGet("remaining")))}},created:function(){this.$root.$refs.Prize=this,this.$root.$refs.donationManagement=this},methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])({toggleAddEditViewPrizeModal:"prizeManagement/toggleModal",toggleDeleteModal:"prizeManagement/toggleDeleteModal",showToast:"snackBar/showToast"})),{},{changeTab:function(t){switch(this.tab=t,console.log(this.tab),this.pageDetailReset(),this.tab){case"prizeMaster":this.getPrizeMaster();break;case"commonPrizes":this.getCommonCustomPrize("True");break;case"customPrizes":this.getCommonCustomPrize("False");break;case"pendingPrizeDistribution":this.distributedprizeGet("remaining");break;case"distributedPrizes":this.distributedprizeGet("distributed");break;default:console.log("do nothing");break}},pageDetailReset:function(){this.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]]=1,this.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]]=10,this.prizesTableInfo[u["PAGE_INFO"]][u["TOTAL_PAGE"]]=1,this.items=[]},getPrizeMaster:function(){var t=this;this.loading=!0;var e=function(e){console.log(e.data,"masterprize"),t.items=e[u["DATA"]].prize_list,t.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]]=e[u["DATA"]][u["PAGE_INFO"]][u["PAGE_NUMBER"]],t.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]]=e[u["DATA"]][u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],t.prizesTableInfo[u["PAGE_INFO"]][u["TOTAL_PAGE"]]=e[u["DATA"]][u["PAGE_INFO"]][u["TOTAL_PAGE"]],t.loading=!1},n=function(e){console.log(e),t.loading=!1},i={};i[u["ITEMS_PER_PAGE"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],i[u["PAGE_NUMBER"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]],l["a"].request_GET(c["id"],i,{},e,n,!1)},changeStatus:function(t,e){console.log(t,e);var n=function(t){console.log(t.data,"status changed")},i=function(t){console.log(t)},r={};r["id"]=e,r["status"]=t,l["a"].request_PATCH(c["ld"],r,{},n,i,!1)},getCommonCustomPrize:function(t){var e=this;this.loading=!0;var n=function(t){console.log(t,"commonPrizeand"),e.items=t[u["DATA"]].prize_type_list,e.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]]=t[u["DATA"]][u["PAGE_INFO"]][u["PAGE_NUMBER"]],e.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]]=t[u["DATA"]][u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],e.prizesTableInfo[u["PAGE_INFO"]][u["TOTAL_PAGE"]]=t[u["DATA"]][u["PAGE_INFO"]][u["TOTAL_PAGE"]],e.loading=!1},i=function(t){console.log(t),e.loading=!1},r={};r[u["ITEMS_PER_PAGE"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],r[u["PAGE_NUMBER"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]],r["is_common"]=t,l["a"].request_GET(c["bd"],r,{},n,i,!1)},distributedprizeGet:function(t){var e=this;this.loading=!0;var n=function(t){console.log(t.data),e.items=t.data.school_list,e.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]]=t[u["DATA"]][u["PAGE_INFO"]][u["PAGE_NUMBER"]],e.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]]=t[u["DATA"]][u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],e.prizesTableInfo[u["PAGE_INFO"]][u["TOTAL_PAGE"]]=t[u["DATA"]][u["PAGE_INFO"]][u["TOTAL_PAGE"]],e.loading=!1},i=function(t){console.log(t),e.loading=!1},r={};r["response_type"]=t,r[u["PAGE_NUMBER"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["PAGE_NUMBER"]],r[u["ITEMS_PER_PAGE"]]=this.prizesTableInfo[u["PAGE_INFO"]][u["ITEMS_PER_PAGE"]],this.sortstatus&&(r[u["SORTING_KEY"]]=this.prizesTableInfo[u["SORTING_KEY"]]),this.sortdate&&(r[u["SORTING_KEY"]]=this.prizesTableInfo[u["SORTING_KEY"]]),r[u["SEARCH"]]=this.prizesTableInfo[u["SEARCH"]],l["a"].request_GET(c["ed"],r,{},n,i,!1)},prizeDeleteMethod:function(){"distributedPrizes"===this.tab?this.distributionPrizeDelete():this.prizeDelete()},prizeDelete:function(){var t=this,e=function(e){console.log(e.data),t.changeTab(t.tab),t.showToast({message:"Prize Deleted",color:"s"})},n=function(e){console.log(e),t.showToast({message:e,color:"e"})},i={};i["prize_id"]=this.$store.state.prizeManagement.deleteModal.prizeID,i["prize_type"]=this.$store.state.prizeManagement.deleteModal.prizeTypeID,l["a"].request_DELETE(c["dd"],i,{},e,n,!1)},distributionPrizeDelete:function(){var t=this,e=function(e){console.log(e.data),t.changeTab(t.tab),t.showToast({message:"Prize Deleted",color:"s"})},n=function(e){console.log(e),t.showToast({message:e,color:"e"})},i={};i["id"]=this.$store.state.prizeManagement.deleteModal.prizeID,l["a"].request_DELETE(c["gd"],i,{},e,n,!1)},downloadReport:function(t,e){console.log(t,e);var n=function(t){var e=t.headers["content-disposition"].split(";")[1].split("=")[1].split('"')[1],n=window.URL.createObjectURL(new Blob([t.data])),i=document.createElement("a");i.href=n,i.setAttribute("download",e),document.body.appendChild(i),i.click()},i=function(t){console.log(t)},r={};r["school_id"]=e.id,r["report_type"]=t,l["a"].request_GET_BLOB(c["Mc"],r,{},n,i,!1,!0,!0)},downloadStudentMedalReport:function(t){var e=function(t){var e=t.headers["content-disposition"].split(";")[1].split("=")[1].split('"')[1],n=window.URL.createObjectURL(new Blob([t.data])),i=document.createElement("a");i.href=n,i.setAttribute("download",e),document.body.appendChild(i),i.click()},n=function(t){console.log(t)},i={};i["school_id"]=t.id,l["a"].request_GET_BLOB(c["Nc"],i,{},e,n,!1,!0,!0)}}),mounted:function(){this.getPrizeMaster()},beforeDestroy:function(){this.$root.$refs.adminLayout.resetPrizeTab()}},f=d,h=(n("afd8"),n("a965"),n("2877")),p=n("6544"),v=n.n(p),b=n("8336"),m=n("cc20"),g=n("62ad"),y=n("8fea"),_=n("ce7e"),O=n("132d"),x=n("8860"),w=n("da13"),E=n("1baa"),k=n("5d23"),A=n("e449"),j=n("891e"),S=n("0fd9"),P=n("b974"),T=n("2fa4"),C=n("b73d"),N=n("8654"),I=n("3a2f"),q=Object(h["a"])(f,i,r,!1,null,"e3df070a",null);e["default"]=q.exports;v()(q,{VBtn:b["a"],VChip:m["a"],VCol:g["a"],VDataTable:y["a"],VDivider:_["a"],VIcon:O["a"],VList:x["a"],VListItem:w["a"],VListItemGroup:E["a"],VListItemTitle:k["c"],VMenu:A["a"],VPagination:j["a"],VRow:S["a"],VSelect:P["a"],VSpacer:T["a"],VSwitch:C["a"],VTextField:N["a"],VTooltip:I["a"]})},da13:function(t,e,n){"use strict";var i=n("5530"),r=(n("61d2"),n("a9ad")),o=n("1c87"),a=n("4e82"),s=n("7560"),l=n("f2e7"),u=n("5607"),c=n("80d2"),d=n("d9bd"),f=n("58df"),h=Object(f["a"])(r["a"],o["a"],s["a"],Object(a["a"])("listItemGroup"),Object(l["b"])("inputValue"));e["a"]=h.extend().extend({name:"v-list-item",directives:{Ripple:u["a"]},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default:function(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:function(){return{proxyClass:"v-list-item--active"}},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-list-item":!0},o["a"].options.computed.classes.call(this)),{},{"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine},this.themeClasses)},isClickable:function(){return Boolean(o["a"].options.computed.isClickable.call(this)||this.listItemGroup)}},created:function(){this.$attrs.hasOwnProperty("avatar")&&Object(d["e"])("avatar",this)},methods:{click:function(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs:function(){var t=Object(i["a"])({"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1},this.$attrs);return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="option",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-".concat(this._uid)):this.isInList&&(t.role="listitem")),t},toggle:function(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render:function(t){var e=this,n=this.generateRouteLink(),r=n.tag,o=n.data;o.attrs=Object(i["a"])(Object(i["a"])({},o.attrs),this.genAttrs()),o[this.to?"nativeOn":"on"]=Object(i["a"])(Object(i["a"])({},o[this.to?"nativeOn":"on"]),{},{keydown:function(t){t.keyCode===c["z"].enter&&e.click(t),e.$emit("keydown",t)}}),this.inactive&&(r="div"),this.inactive&&this.to&&(o.on=o.nativeOn,delete o.nativeOn);var a=this.$scopedSlots.default?this.$scopedSlots.default({active:this.isActive,toggle:this.toggle}):this.$slots.default;return t(r,this.isActive?this.setTextColor(this.color,o):o,a)}})},db42:function(t,e,n){},dc22:function(t,e,n){"use strict";function i(t,e,n){var i=e.value,r=e.options||{passive:!0};window.addEventListener("resize",i,r),t._onResize=Object(t._onResize),t._onResize[n.context._uid]={callback:i,options:r},e.modifiers&&e.modifiers.quiet||i()}function r(t,e,n){var i;if(null!=(i=t._onResize)&&i[n.context._uid]){var r=t._onResize[n.context._uid],o=r.callback,a=r.options;window.removeEventListener("resize",o,a),delete t._onResize[n.context._uid]}}var o={inserted:i,unbind:r};e["a"]=o},e449:function(t,e,n){"use strict";var i=n("ade3"),r=n("2909"),o=n("5530"),a=(n("a9e3"),n("7db0"),n("d3b7"),n("a630"),n("3ca3"),n("99af"),n("498a"),n("caad"),n("2532"),n("ee6f"),n("480e")),s=n("4ad4"),l=n("16b7"),u=n("b848"),c=n("f573"),d=n("e4d3"),f=n("a236"),h=n("f2e7"),p=n("7560"),v=n("a293"),b=n("dc22"),m=n("58df"),g=n("d9bd"),y=n("80d2"),_=n("7d8f"),O=Object(m["a"])(u["a"],l["a"],c["a"],d["a"],f["a"],h["a"],p["a"]);e["a"]=O.extend({name:"v-menu",directives:{ClickOutside:v["a"],Resize:b["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(y["h"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(y["h"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(y["h"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(y["h"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(y["h"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(y["h"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var n=this.tiles[t];n.classList.add("v-list-item--highlighted");var i=this.$refs.content.scrollTop,r=this.$refs.content.clientHeight;i>n.offsetTop-8?Object(_["b"])(n.offsetTop-n.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):i+r<n.offsetTop+n.clientHeight+8&&Object(_["b"])(n.offsetTop-r+2*n.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content})}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(g["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),n=t.scrollHeight-t.offsetHeight;return e?Math.min(n,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var n=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list-item").offsetTop;return this.computedTop-n-i-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==y["z"].tab){if(t.keyCode===y["z"].down)this.nextTile();else if(t.keyCode===y["z"].up)this.prevTile();else if(t.keyCode===y["z"].end)this.lastTile();else if(t.keyCode===y["z"].home)this.firstTile();else{if(t.keyCode!==y["z"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=s["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(o["a"])(Object(o["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=c["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(r["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(o["a"])(Object(o["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(i["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var n=e.target;n.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){var n;null!=(n=e.$refs.content)&&n.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===y["z"].esc){setTimeout((function(){e.isActive=!1}));var n=this.getActivator();this.$nextTick((function(){return n&&n.focus()}))}else!this.isActive&&[y["z"].up,y["z"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,n={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",n,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(a["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4cd:function(t,e,n){"use strict";n("a9e3"),n("caad"),n("b0c0");var i=n("d9bd"),r=n("2b0e");e["a"]=r["a"].extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default:function(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:function(t){return!isNaN(Number(t))||["xs","sm","md","lg","xl"].includes(String(t))}}},computed:{isMobile:function(){var t=this.$vuetify.breakpoint,e=t.mobile,n=t.width,i=t.name,r=t.mobileBreakpoint;if(r===this.mobileBreakpoint)return e;var o=parseInt(this.mobileBreakpoint,10),a=!isNaN(o);return a?n<o:i===this.mobileBreakpoint}},created:function(){this.$attrs.hasOwnProperty("mobile-break-point")&&Object(i["d"])("mobile-break-point","mobile-breakpoint",this)}})},e4d3:function(t,e,n){"use strict";var i=n("2b0e");e["a"]=i["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},ec29:function(t,e,n){},ee6f:function(t,e,n){},f573:function(t,e,n){"use strict";var i=n("5530"),r=(n("a9e3"),n("d3b7"),n("21be")),o=n("fe6c"),a=n("4ad4"),s=n("75eb"),l=n("58df"),u=n("80d2"),c=Object(l["a"])(r["a"],Object(o["b"])(["top","right","bottom","left","absolute"]),a["a"],s["a"]);e["a"]=c.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:function(){return{activatorNode:[],absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},relativeYOffset:0,hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}},computed:{computedLeft:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=(!1!==this.attach?t.offsetLeft:t.left)||0,i=Math.max(t.width,e.width),r=0;if(r+=n,(this.left||this.$vuetify.rtl&&!this.right)&&(r-=i-t.width),this.offsetX){var o=isNaN(Number(this.maxWidth))?t.width:Math.min(t.width,Number(this.maxWidth));r+=this.left?-o:t.width}return this.nudgeLeft&&(r-=parseInt(this.nudgeLeft)),this.nudgeRight&&(r+=parseInt(this.nudgeRight)),r},computedTop:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=0;return this.top&&(n+=t.height-e.height),!1!==this.attach?n+=t.offsetTop:n+=t.top+this.pageYOffset,this.offsetY&&(n+=this.top?-t.height:t.height),this.nudgeTop&&(n-=parseInt(this.nudgeTop)),this.nudgeBottom&&(n+=parseInt(this.nudgeBottom)),n},hasActivator:function(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator},absoluteYOffset:function(){return this.pageYOffset-this.relativeYOffset}},watch:{disabled:function(t){t&&this.callDeactivate()},isActive:function(t){this.disabled||(t?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount:function(){this.hasWindow="undefined"!==typeof window,this.hasWindow&&window.addEventListener("resize",this.updateDimensions,!1)},beforeDestroy:function(){this.hasWindow&&window.removeEventListener("resize",this.updateDimensions,!1)},methods:{absolutePosition:function(){return{offsetTop:this.positionY||this.absoluteY,offsetLeft:this.positionX||this.absoluteX,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate:function(){},calcLeft:function(t){return Object(u["h"])(!1!==this.attach?this.computedLeft:this.calcXOverflow(this.computedLeft,t))},calcTop:function(){return Object(u["h"])(!1!==this.attach?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(t,e){var n=t+e-this.pageWidth+12;return t=(!this.left||this.right)&&n>0?Math.max(t-n,0):Math.max(t,12),t+this.getOffsetLeft()},calcYOverflow:function(t){var e=this.getInnerHeight(),n=this.absoluteYOffset+e,i=this.dimensions.activator,r=this.dimensions.content.height,o=t+r,a=n<o;return a&&this.offsetOverflow&&i.top>r?t=this.pageYOffset+(i.top-r):a&&!this.allowOverflow?t=n-r-12:t<this.absoluteYOffset&&!this.allowOverflow&&(t=this.absoluteYOffset+12),t<12?12:t},callActivate:function(){this.hasWindow&&this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset:function(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed:function(){if(!1===this.attach){var t=this.getActivator();while(t){if("fixed"===window.getComputedStyle(t).position)return void(this.activatorFixed=!0);t=t.offsetParent}this.activatorFixed=!1}},deactivate:function(){},genActivatorListeners:function(){var t=this,e=a["a"].options.methods.genActivatorListeners.call(this),n=e.click;return n&&(e.click=function(e){t.openOnClick&&n&&n(e),t.absoluteX=e.clientX,t.absoluteY=e.clientY}),e},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(t){var e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure:function(t){if(!t||!this.hasWindow)return null;var e=this.getRoundedBoundedClientRect(t);if(!1!==this.attach){var n=window.getComputedStyle(t);e.left=parseInt(n.marginLeft),e.top=parseInt(n.marginTop)}return e},sneakPeek:function(t){var e=this;requestAnimationFrame((function(){var n=e.$refs.content;n&&"none"===n.style.display?(n.style.display="inline-block",t(),n.style.display="none"):t()}))},startTransition:function(){var t=this;return new Promise((function(e){return requestAnimationFrame((function(){t.isContentActive=t.hasJustFocused=t.isActive,e()}))}))},updateDimensions:function(){var t=this;this.hasWindow="undefined"!==typeof window,this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var e={activator:Object(i["a"])({},this.dimensions.activator),content:Object(i["a"])({},this.dimensions.content)};if(!this.hasActivator||this.absolute)e.activator=this.absolutePosition();else{var n=this.getActivator();if(!n)return;e.activator=this.measure(n),e.activator.offsetLeft=n.offsetLeft,!1!==this.attach?e.activator.offsetTop=n.offsetTop:e.activator.offsetTop=0}this.sneakPeek((function(){if(t.$refs.content){if(t.$refs.content.offsetParent){var n=t.getRoundedBoundedClientRect(t.$refs.content.offsetParent);t.relativeYOffset=window.pageYOffset+n.top,e.activator.top-=t.relativeYOffset,e.activator.left-=window.pageXOffset+n.left}e.content=t.measure(t.$refs.content)}t.dimensions=e}))}}})},f823:function(t,e,n){},fe09:function(t,e,n){"use strict";n.d(e,"b",(function(){return s}));n("d3b7"),n("25f0"),n("4de4");var i=n("c37a"),r=n("5311"),o=n("8547"),a=n("58df");function s(t){t.preventDefault()}e["a"]=Object(a["a"])(i["a"],r["a"],o["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some((function(n){return t.valueComparator(n,e)})):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive},rippleState:function(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue:function(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel:function(){var t=i["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:s},t):t},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:s},ref:"input"})},onBlur:function(){this.isFocused=!1},onClick:function(t){this.onChange(),this.$emit("click",t)},onChange:function(){var t=this;if(this.isInteractive){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var i=n.length;n=n.filter((function(n){return!t.valueComparator(n,e)})),n.length===i&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n,this.hasColor=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}})}}]);
//# sourceMappingURL=PrizeManagement.45c31278.js.map