text: (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"+iam":function(t,e,n){"use strict";var i=n("L2JU"),r=n("ICWC"),o=n("qBGu"),s=n("yp2b"),a=n("tc2M"),l=n("KDdg"),c=n("fMnc"),u=n("1+sw"),d=n("7fPc"),f=n("RmIH"),h=n("NCnY"),p=n("kOQH"),g=n("rHdu"),v=n("d6+0"),m=n("gwsZ"),y=n("DuTs"),b=n("esdX");function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){_(t,e,n[e])})}return t}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x={components:{taskBoard:r.a,discussionBoard:o.a,messagesBoard:s.a,eventBoard:a.a,fileBoard:l.a,activityBoard:c.a,addMemberForm:u.a,membersListModal:d.a,permissionSettingsModal:f.a,settingsModal:h.a,cyclesModal:p.a,roadmapModal:g.a,profileCard:v.a,tabMenu:m.a},data:function(){return{active:"",activeId:0,dropdownMenuShown:!1,currentCycleId:null,authenticated:authenticated,faPlus:y.faPlus,faCog:b.faCog}},created:function(){var t=new URL(location.href).searchParams.get("tool"),e=new URL(location.href).searchParams.get("id");this.getActiveTool(t,["tasks","discussions","messages","events","files","activities"]),null!==e&&(this.activeId=parseInt(e)),this.currentCycleId=this.selectedCycle?this.selectedCycle.id:null,this.getAllCycles()},computed:w({},Object(i.c)({currentView:function(t){return t.currentView},project:function(t){return t.project.project},settings:function(t){return t.project.project.settings},selectedCycle:function(t){return t.cycle.selectedCycle},currentComponent:function(t){return t.dropdown.currentComponent}})),methods:w({},Object(i.b)(["getCycles","setCurrentComponent","closeComponent","showNotification"]),{showModal:function(t){this.setCurrentComponent(t)},closeModal:function(){this.closeComponent()},getActiveTool:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;null!==t&&-1!==e.indexOf(t)?this.active=t:this.settings.task_enabled?this.active="tasks":this.settings.discussion_enabled?this.active="discussions":this.settings.message_enabled?this.active="messages":this.settings.event_enabled?this.active="events":this.settings.file_enabled&&(this.active="files")},getAllCycles:function(){this.getCycles({group_type:"project",group_id:this.project.id})},addMember:function(t){var e;t.user?(e="success",this.project.members.push(t.user)):e="error",this.showNotification({type:e,message:t.message}),this.closeComponent()},activateTab:function(t){t!==this.active&&(this.active=t)},toggleDropdownMenu:function(){this.dropdownMenuShown=!this.dropdownMenuShown},closeDropdownMenu:function(){this.dropdownMenuShown=!1},updateSettings:function(t){this.settings=t,this.getActiveTool(null)},toggleVisibility:function(){var t=this;this.project.public?axios.delete("/public-projects/"+this.project.id).then(function(e){t.project.public=!1,t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message})}):axios.post("/public-projects/"+this.project.id).then(function(e){t.project.public=!0,t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message})})}})},k=n("KHd+"),C=Object(k.a)(x,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container mx-auto my-4 px-4 md:px-0 w-full md:max-w-2xl lg:max-w-4xl xl:max-w-6xl"},[n("div",{staticClass:"text-gray-600 font-semibold text-2xl mb-4 flex items-center justify-center"},[n("div",{staticClass:"flex justify-center items-center"},[t._v("\n      "+t._s(t.project.name)+"\n      "),t.authenticated?n("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeDropdownMenu,expression:"closeDropdownMenu"}],staticClass:"bg-white p-1 text-sm rounded-full shadow ml-4 cursor-pointer flex items-center",on:{click:t.toggleDropdownMenu}},[n("font-awesome-icon",{attrs:{icon:t.faCog}})],1):t._e()]),t._v(" "),t.authenticated&&t.dropdownMenuShown?n("div",{staticClass:"absolute w-64"},[n("ul",{staticClass:"list-reset bg-white rounded shadow-lg py-2 absolute inset-x-0 mt-6 text-base text-left font-normal whitespace-no-wrap z-30"},[n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer",on:{click:t.toggleVisibility}},[t._v("\n          "+t._s(t.project.public?"Make Private":"Make Public")+"\n        ")]),t._v(" "),t.settings.roadmap_enabled?n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer",on:{click:function(e){return t.showModal("roadmapModal")}}},[t._v("\n          Roadmap\n        ")]):t._e(),t._v(" "),n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer",on:{click:function(e){return t.showModal("memberListModal")}}},[t._v("\n          Show All Members\n        ")]),t._v(" "),n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer",on:{click:function(e){return t.showModal("permissionSettingsModal")}}},[t._v("\n          Permissions Settings\n        ")]),t._v(" "),n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer",on:{click:function(e){return t.showModal("settingsModal")}}},[t._v("\n          Settings\n        ")]),t._v(" "),n("li",{staticClass:"px-4 py-2 hover:bg-gray-400 cursor-pointer"},[t._v("\n          Delete\n        ")])])]):t._e()]),t._v(" "),n("div",{staticClass:"text-gray-600 flex flex-row justify-center items-center"},[n("span",{staticClass:"text-lg"},[t._v("\n      Cycle: \n    ")]),t._v(" "),this.selectedCycle?n("div",{staticClass:"p-2 ml-2 bg-gray-100 shadow rounded cursor-pointer text-sm text-teal-800 inline",on:{click:function(e){return t.showModal("cycleModal")}}},[this.selectedCycle.name?n("span",[t._v("\n        "+t._s(this.selectedCycle.name)+"\n      ")]):n("span",[t._v("\n        "+t._s(this.selectedCycle.start_date)+" - "+t._s(this.selectedCycle.end_date)+"\n      ")])]):n("span",{staticClass:"p-2 ml-2 bg-gray-100 shadow rounded cursor-pointer text-sm text-teal-800",on:{click:function(e){return t.showModal("cycleModal")}}},[t._v("\n      Click to set a Cycle\n    ")])]),t._v(" "),"cycleModal"===t.currentComponent?n("cycles-modal",{attrs:{resourceType:"project",resourceId:t.project.id,currentCycleId:t.currentCycleId}}):t._e(),t._v(" "),"roadmapModal"===t.currentComponent?n("roadmap-modal",{attrs:{resourceType:"project",resourceId:t.project.id,currentCycleId:t.currentCycleId}}):t._e(),t._v(" "),"memberListModal"===t.currentComponent?n("members-list-modal",{attrs:{resourceType:"project",resourceId:t.project.id,members:t.project.members}}):t._e(),t._v(" "),"addMemberForm"===t.currentComponent?n("add-member-form",{attrs:{resourceType:"project",resource:t.project},on:{addMember:t.addMember}}):t._e(),t._v(" "),"permissionSettingsModal"===t.currentComponent?n("permission-settings-modal",{attrs:{resourceType:"project",resourceId:t.project.id}}):t._e(),t._v(" "),"settingsModal"===t.currentComponent?n("settings-modal",{attrs:{resourceType:"project",resourceId:t.project.id,settings:t.settings},on:{"update-settings":t.updateSettings}}):t._e(),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap justify-center items-center px-2 pt-4"},[n("span",{staticClass:"bg-white shadow w-8 h-8 flex justify-center items-center rounded-full text-teal-500 cursor-pointer text-center p-2 mr-1",on:{click:function(e){return t.showModal("addMemberForm")}}},[n("font-awesome-icon",{attrs:{icon:t.faPlus}})],1),t._v(" "),t._l(t.project.members,function(t,e){return n("a",{staticClass:"mx-1",attrs:{href:"/users/"+t.username}},[n("profile-card",{attrs:{user:t}})],1)})],2),t._v(" "),n("tab-menu",{attrs:{settings:t.settings,active:t.active},on:{activate:t.activateTab}}),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap"},[t.settings.task_enabled?n("task-board",{attrs:{resourceType:"project",resource:t.project,activeTab:t.active,activeId:t.activeId}}):t._e(),t._v(" "),t.settings.discussion_enabled?n("discussion-board",{attrs:{resourceType:"project",resource:t.project,activeTab:t.active,activeId:t.activeId}}):t._e(),t._v(" "),t.settings.message_enabled?n("messages-board",{attrs:{resourceType:"project",resource:t.project,activeTab:t.active}}):t._e(),t._v(" "),t.settings.event_enabled?n("event-board",{attrs:{resourceType:"project",resource:t.project,activeTab:t.active}}):t._e(),t._v(" "),t.settings.file_enabled?n("file-board",{attrs:{resourceType:"project",resource:t.project,activeTab:t.active}}):t._e(),t._v(" "),n("activity-board",{attrs:{resourceType:"project",resourceId:t.project.id,activeTab:t.active}})],1)],1)},[],!1,null,null,null);e.a=C.exports},"+jP+":function(t,e,n){"use strict";function i(t){return(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})(t)}function r(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)}}function o(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){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}var a=new(function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.language=e,this.months=n,this.monthsAbbr=i,this.days=r,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var e,n;return e=t,(n=[{key:"language",get:function(){return this._language},set:function(t){if("string"!=typeof t)throw new TypeError("Language must be a string");this._language=t}},{key:"months",get:function(){return this._months},set:function(t){if(12!==t.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=t}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(t){if(12!==t.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=t}},{key:"days",get:function(){return this._days},set:function(t){if(7!==t.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=t}}])&&r(e.prototype,n),t}())("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),l={useUtc:!1,getFullYear:function(t){return this.useUtc?t.getUTCFullYear():t.getFullYear()},getMonth:function(t){return this.useUtc?t.getUTCMonth():t.getMonth()},getDate:function(t){return this.useUtc?t.getUTCDate():t.getDate()},getDay:function(t){return this.useUtc?t.getUTCDay():t.getDay()},getHours:function(t){return this.useUtc?t.getUTCHours():t.getHours()},getMinutes:function(t){return this.useUtc?t.getUTCMinutes():t.getMinutes()},setFullYear:function(t,e,n){return this.useUtc?t.setUTCFullYear(e):t.setFullYear(e)},setMonth:function(t,e,n){return this.useUtc?t.setUTCMonth(e):t.setMonth(e)},setDate:function(t,e,n){return this.useUtc?t.setUTCDate(e):t.setDate(e)},compareDates:function(t,e){var n=new Date(t.getTime()),i=new Date(e.getTime());return this.useUtc?(n.setUTCHours(0,0,0,0),i.setUTCHours(0,0,0,0)):(n.setHours(0,0,0,0),i.setHours(0,0,0,0)),n.getTime()===i.getTime()},isValidDate:function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},getDayNameAbbr:function(t,e){if("object"!==i(t))throw TypeError("Invalid Type");return e[this.getDay(t)]},getMonthName:function(t,e){if(!e)throw Error("missing 2nd parameter Months array");if("object"===i(t))return e[this.getMonth(t)];if("number"==typeof t)return e[t];throw TypeError("Invalid type")},getMonthNameAbbr:function(t,e){if(!e)throw Error("missing 2nd paramter Months array");if("object"===i(t))return e[this.getMonth(t)];if("number"==typeof t)return e[t];throw TypeError("Invalid type")},daysInMonth:function(t,e){return/8|3|5|10/.test(e)?30:1===e?(t%4||!(t%100))&&t%400?28:29:31},getNthSuffix:function(t){switch(t){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(t,e,n){n=n||a;var i=this.getFullYear(t),r=this.getMonth(t)+1,o=this.getDate(t);return e.replace(/dd/,("0"+o).slice(-2)).replace(/d/,o).replace(/yyyy/,i).replace(/yy/,String(i).slice(2)).replace(/MMMM/,this.getMonthName(this.getMonth(t),n.months)).replace(/MMM/,this.getMonthNameAbbr(this.getMonth(t),n.monthsAbbr)).replace(/MM/,("0"+r).slice(-2)).replace(/M(?!a|ä|e)/,r).replace(/su/,this.getNthSuffix(this.getDate(t))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(t,n.days))},createDateArray:function(t,e){for(var n=[];t<=e;)n.push(new Date(t)),t=this.setDate(new Date(t),this.getDate(new Date(t))+1);return n},validateDateInput:function(t){return null===t||t instanceof Date||"string"==typeof t||"number"==typeof t}},c=function(t){return s({},l,{useUtc:t})},u=s({},l),d=function(t,e,n,i,r,o,s,a,l,c){"boolean"!=typeof s&&(l=a,a=s,s=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=s?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(d.functional){var f=d.render;d.render=function(t,e){return u.call(e),f(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return n};const f={props:{selectedDate:Date,resetTypedDate:[Date],format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object,Array],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,typeable:Boolean,bootstrapStyling:Boolean,useUtc:Boolean},data:function(){return{input:null,typedDate:!1,utils:c(this.useUtc)}},computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:"function"==typeof this.format?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},computedInputClass:function(){return this.bootstrapStyling?"string"==typeof this.inputClass?[this.inputClass,"form-control"].join(" "):s({"form-control":!0},this.inputClass):this.inputClass}},watch:{resetTypedDate:function(){this.typedDate=!1}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(t){if([27,13].includes(t.keyCode)&&this.input.blur(),this.typeable){var e=Date.parse(this.input.value);isNaN(e)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))}},inputBlurred:function(){this.typeable&&isNaN(Date.parse(this.input.value))&&(this.clearDate(),this.input.value=null,this.typedDate=null),this.$emit("closeCalendar")},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}};var h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"input-group":t.bootstrapStyling}},[t.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-prepend":t.bootstrapStyling},style:{"cursor:not-allowed;":t.disabled},on:{click:t.showCalendar}},[n("span",{class:{"input-group-text":t.bootstrapStyling}},[n("i",{class:t.calendarButtonIcon},[t._v("\n        "+t._s(t.calendarButtonIconContent)+"\n        "),t.calendarButtonIcon?t._e():n("span",[t._v("…")])])])]):t._e(),t._v(" "),n("input",{ref:t.refName,class:t.computedInputClass,attrs:{type:t.inline?"hidden":"text",name:t.name,id:t.id,"open-date":t.openDate,placeholder:t.placeholder,"clear-button":t.clearButton,disabled:t.disabled,required:t.required,readonly:!t.typeable,autocomplete:"off"},domProps:{value:t.formattedValue},on:{click:t.showCalendar,keyup:t.parseTypedDate,blur:t.inputBlurred}}),t._v(" "),t.clearButton&&t.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-append":t.bootstrapStyling},on:{click:function(e){return t.clearDate()}}},[n("span",{class:{"input-group-text":t.bootstrapStyling}},[n("i",{class:t.clearButtonIcon},[t.clearButtonIcon?t._e():n("span",[t._v("×")])])])]):t._e(),t._v(" "),t._t("afterDateInput")],2)};h._withStripped=!0;var p=d({render:h,staticRenderFns:[]},void 0,f,void 0,!1,void 0,void 0,void 0);const g={props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,dayCellContent:{type:Function,default:function(t){return t.date}},disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean,useUtc:Boolean},data:function(){return{utils:c(this.useUtc)}},computed:{daysOfWeek:function(){if(this.mondayFirst){var t=this.translation.days.slice();return t.push(t.shift()),t}return this.translation.days},blankDays:function(){var t=this.pageDate,e=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)):new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes());return this.mondayFirst?this.utils.getDay(e)>0?this.utils.getDay(e)-1:6:this.utils.getDay(e)},days:function(){for(var t=this.pageDate,e=[],n=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)):new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes()),i=this.utils.daysInMonth(this.utils.getFullYear(n),this.utils.getMonth(n)),r=0;r<i;r++)e.push({date:this.utils.getDate(n),timestamp:n.getTime(),isSelected:this.isSelectedDate(n),isDisabled:this.isDisabledDate(n),isHighlighted:this.isHighlightedDate(n),isHighlightStart:this.isHighlightStart(n),isHighlightEnd:this.isHighlightEnd(n),isToday:this.utils.compareDates(n,new Date),isWeekend:0===this.utils.getDay(n)||6===this.utils.getDay(n),isSaturday:6===this.utils.getDay(n),isSunday:0===this.utils.getDay(n)}),this.utils.setDate(n,this.utils.getDate(n)+1);return e},currMonthName:function(){var t=this.fullMonthName?this.translation.months:this.translation.monthsAbbr;return this.utils.getMonthNameAbbr(this.utils.getMonth(this.pageDate),t)},currYearName:function(){var t=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(t)},isYmd:function(){return this.translation.ymd&&!0===this.translation.ymd},isLeftNavDisabled:function(){return this.isRtl?this.isNextMonthDisabled(this.pageTimestamp):this.isPreviousMonthDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousMonthDisabled(this.pageTimestamp):this.isNextMonthDisabled(this.pageTimestamp)}},methods:{selectDate:function(t){if(t.isDisabled)return this.$emit("selectedDisabled",t),!1;this.$emit("selectDate",t)},getPageMonth:function(){return this.utils.getMonth(this.pageDate)},showMonthCalendar:function(){this.$emit("showMonthCalendar")},changeMonth:function(t){var e=this.pageDate;this.utils.setMonth(e,this.utils.getMonth(e)+t),this.$emit("changedMonth",e)},previousMonth:function(){this.isPreviousMonthDisabled()||this.changeMonth(-1)},isPreviousMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var t=this.pageDate;return this.utils.getMonth(this.disabledDates.to)>=this.utils.getMonth(t)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(t)},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var t=this.pageDate;return this.utils.getMonth(this.disabledDates.from)<=this.utils.getMonth(t)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(t)},isSelectedDate:function(t){return this.selectedDate&&this.utils.compareDates(this.selectedDate,t)},isDisabledDate:function(t){var e=this,n=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.dates&&this.disabledDates.dates.forEach(function(i){if(e.utils.compareDates(t,i))return n=!0,!0}),void 0!==this.disabledDates.to&&this.disabledDates.to&&t<this.disabledDates.to&&(n=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&t>this.disabledDates.from&&(n=!0),void 0!==this.disabledDates.ranges&&this.disabledDates.ranges.forEach(function(e){if(void 0!==e.from&&e.from&&void 0!==e.to&&e.to&&t<e.to&&t>e.from)return n=!0,!0}),void 0!==this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(this.utils.getDay(t))&&(n=!0),void 0!==this.disabledDates.daysOfMonth&&-1!==this.disabledDates.daysOfMonth.indexOf(this.utils.getDate(t))&&(n=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(t)&&(n=!0),n)},isHighlightedDate:function(t){var e=this;if((!this.highlighted||!this.highlighted.includeDisabled)&&this.isDisabledDate(t))return!1;var n=!1;return void 0!==this.highlighted&&(void 0!==this.highlighted.dates&&this.highlighted.dates.forEach(function(i){if(e.utils.compareDates(t,i))return n=!0,!0}),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(n=t>=this.highlighted.from&&t<=this.highlighted.to),void 0!==this.highlighted.days&&-1!==this.highlighted.days.indexOf(this.utils.getDay(t))&&(n=!0),void 0!==this.highlighted.daysOfMonth&&-1!==this.highlighted.daysOfMonth.indexOf(this.utils.getDate(t))&&(n=!0),"function"==typeof this.highlighted.customPredictor&&this.highlighted.customPredictor(t)&&(n=!0),n)},dayClasses:function(t){return{selected:t.isSelected,disabled:t.isDisabled,highlighted:t.isHighlighted,today:t.isToday,weekend:t.isWeekend,sat:t.isSaturday,sun:t.isSunday,"highlight-start":t.isHighlightStart,"highlight-end":t.isHighlightEnd}},isHighlightStart:function(t){return this.isHighlightedDate(t)&&this.highlighted.from instanceof Date&&this.utils.getFullYear(this.highlighted.from)===this.utils.getFullYear(t)&&this.utils.getMonth(this.highlighted.from)===this.utils.getMonth(t)&&this.utils.getDate(this.highlighted.from)===this.utils.getDate(t)},isHighlightEnd:function(t){return this.isHighlightedDate(t)&&this.highlighted.to instanceof Date&&this.utils.getFullYear(this.highlighted.to)===this.utils.getFullYear(t)&&this.utils.getMonth(this.highlighted.to)===this.utils.getMonth(t)&&this.utils.getDate(this.highlighted.to)===this.utils.getDate(t)},isDefined:function(t){return void 0!==t&&t}}};var v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showDayView,expression:"showDayView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle,on:{mousedown:function(t){t.preventDefault()}}},[t._t("beforeCalendarHeader"),t._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:t.isLeftNavDisabled},on:{click:function(e){t.isRtl?t.nextMonth():t.previousMonth()}}},[t._v("<")]),t._v(" "),n("span",{staticClass:"day__month_btn",class:t.allowedToShowView("month")?"up":"",on:{click:t.showMonthCalendar}},[t._v(t._s(t.isYmd?t.currYearName:t.currMonthName)+" "+t._s(t.isYmd?t.currMonthName:t.currYearName))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isRightNavDisabled},on:{click:function(e){t.isRtl?t.previousMonth():t.nextMonth()}}},[t._v(">")])]),t._v(" "),n("div",{class:t.isRtl?"flex-rtl":""},[t._l(t.daysOfWeek,function(e){return n("span",{key:e.timestamp,staticClass:"cell day-header"},[t._v(t._s(e))])}),t._v(" "),t.blankDays>0?t._l(t.blankDays,function(t){return n("span",{key:t.timestamp,staticClass:"cell day blank"})}):t._e(),t._l(t.days,function(e){return n("span",{key:e.timestamp,staticClass:"cell day",class:t.dayClasses(e),domProps:{innerHTML:t._s(t.dayCellContent(e))},on:{click:function(n){return t.selectDate(e)}}})})],2)],2)};v._withStripped=!0;var m=d({render:v,staticRenderFns:[]},void 0,g,void 0,!1,void 0,void 0,void 0);const y={props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},data:function(){return{utils:c(this.useUtc)}},computed:{months:function(){for(var t=this.pageDate,e=[],n=this.useUtc?new Date(Date.UTC(t.getUTCFullYear(),0,t.getUTCDate())):new Date(t.getFullYear(),0,t.getDate(),t.getHours(),t.getMinutes()),i=0;i<12;i++)e.push({month:this.utils.getMonthName(i,this.translation.months),timestamp:n.getTime(),isSelected:this.isSelectedMonth(n),isDisabled:this.isDisabledMonth(n)}),this.utils.setMonth(n,this.utils.getMonth(n)+1);return e},pageYearName:function(){var t=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(t)},isLeftNavDisabled:function(){return this.isRtl?this.isNextYearDisabled(this.pageTimestamp):this.isPreviousYearDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousYearDisabled(this.pageTimestamp):this.isNextYearDisabled(this.pageTimestamp)}},methods:{selectMonth:function(t){if(t.isDisabled)return!1;this.$emit("selectMonth",t)},changeYear:function(t){var e=this.pageDate;this.utils.setFullYear(e,this.utils.getFullYear(e)+t),this.$emit("changedYear",e)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(this.pageDate)},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(this.pageDate)},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(t){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(t)&&this.utils.getMonth(this.selectedDate)===this.utils.getMonth(t)},isDisabledMonth:function(t){var e=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&(this.utils.getMonth(t)<this.utils.getMonth(this.disabledDates.to)&&this.utils.getFullYear(t)<=this.utils.getFullYear(this.disabledDates.to)||this.utils.getFullYear(t)<this.utils.getFullYear(this.disabledDates.to))&&(e=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&(this.utils.getMonth(t)>this.utils.getMonth(this.disabledDates.from)&&this.utils.getFullYear(t)>=this.utils.getFullYear(this.disabledDates.from)||this.utils.getFullYear(t)>this.utils.getFullYear(this.disabledDates.from))&&(e=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(t)&&(e=!0),e)}}};var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showMonthView,expression:"showMonthView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle,on:{mousedown:function(t){t.preventDefault()}}},[t._t("beforeCalendarHeader"),t._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:t.isLeftNavDisabled},on:{click:function(e){t.isRtl?t.nextYear():t.previousYear()}}},[t._v("<")]),t._v(" "),n("span",{staticClass:"month__year_btn",class:t.allowedToShowView("year")?"up":"",on:{click:t.showYearCalendar}},[t._v(t._s(t.pageYearName))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isRightNavDisabled},on:{click:function(e){t.isRtl?t.previousYear():t.nextYear()}}},[t._v(">")])]),t._v(" "),t._l(t.months,function(e){return n("span",{key:e.timestamp,staticClass:"cell month",class:{selected:e.isSelected,disabled:e.isDisabled},on:{click:function(n){return n.stopPropagation(),t.selectMonth(e)}}},[t._v(t._s(e.month))])})],2)};b._withStripped=!0;var w=d({render:b,staticRenderFns:[]},void 0,y,void 0,!1,void 0,void 0,void 0);const _={props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},computed:{years:function(){for(var t=this.pageDate,e=[],n=this.useUtc?new Date(Date.UTC(10*Math.floor(t.getUTCFullYear()/10),t.getUTCMonth(),t.getUTCDate())):new Date(10*Math.floor(t.getFullYear()/10),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()),i=0;i<10;i++)e.push({year:this.utils.getFullYear(n),timestamp:n.getTime(),isSelected:this.isSelectedYear(n),isDisabled:this.isDisabledYear(n)}),this.utils.setFullYear(n,this.utils.getFullYear(n)+1);return e},getPageDecade:function(){var t=10*Math.floor(this.utils.getFullYear(this.pageDate)/10),e=t+9,n=this.translation.yearSuffix;return"".concat(t," - ").concat(e).concat(n)},isLeftNavDisabled:function(){return this.isRtl?this.isNextDecadeDisabled(this.pageTimestamp):this.isPreviousDecadeDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousDecadeDisabled(this.pageTimestamp):this.isNextDecadeDisabled(this.pageTimestamp)}},data:function(){return{utils:c(this.useUtc)}},methods:{selectYear:function(t){if(t.isDisabled)return!1;this.$emit("selectYear",t)},changeYear:function(t){var e=this.pageDate;this.utils.setFullYear(e,this.utils.getFullYear(e)+t),this.$emit("changedDecade",e)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>10*Math.floor(this.utils.getFullYear(this.pageDate)/10)-1},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<10*Math.ceil(this.utils.getFullYear(this.pageDate)/10)},isSelectedYear:function(t){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(t)},isDisabledYear:function(t){var e=!1;return!(void 0===this.disabledDates||!this.disabledDates)&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&this.utils.getFullYear(t)<this.utils.getFullYear(this.disabledDates.to)&&(e=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&this.utils.getFullYear(t)>this.utils.getFullYear(this.disabledDates.from)&&(e=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(t)&&(e=!0),e)}}};var x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showYearView,expression:"showYearView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle,on:{mousedown:function(t){t.preventDefault()}}},[t._t("beforeCalendarHeader"),t._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:t.isLeftNavDisabled},on:{click:function(e){t.isRtl?t.nextDecade():t.previousDecade()}}},[t._v("<")]),t._v(" "),n("span",[t._v(t._s(t.getPageDecade))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isRightNavDisabled},on:{click:function(e){t.isRtl?t.previousDecade():t.nextDecade()}}},[t._v(">")])]),t._v(" "),t._l(t.years,function(e){return n("span",{key:e.timestamp,staticClass:"cell year",class:{selected:e.isSelected,disabled:e.isDisabled},on:{click:function(n){return n.stopPropagation(),t.selectYear(e)}}},[t._v(t._s(e.year))])})],2)};x._withStripped=!0;var k={components:{DateInput:p,PickerDay:m,PickerMonth:w,PickerYear:d({render:x,staticRenderFns:[]},void 0,_,void 0,!1,void 0,void 0,void 0)},props:{value:{validator:function(t){return u.validateDateInput(t)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return a}},openDate:{validator:function(t){return u.validateDateInput(t)}},dayCellContent:Function,fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object,Array],inputClass:[String,Object,Array],wrapperClass:[String,Object,Array],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,typeable:Boolean,useUtc:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){var t=this.openDate?new Date(this.openDate):new Date,e=c(this.useUtc);return{pageTimestamp:e.setDate(t,1),selectedDate:null,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0,resetTypedDate:new Date,utils:e}},watch:{value:function(t){this.setValue(t)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showDayView||this.showMonthView||this.showYearView},isInline:function(){return!!this.inline},isRtl:function(){return!0===this.translation.rtl}},methods:{resetDefaultPageDate:function(){null!==this.selectedDate?this.setPageDate(this.selectedDate):this.setPageDate()},showCalendar:function(){return!this.disabled&&!this.isInline&&(this.isOpen?this.close(!0):void this.setInitialView())},setInitialView:function(){var t=this.computedInitialView;if(!this.allowedToShowView(t))throw new Error("initialView '".concat(this.initialView,"' cannot be rendered based on minimum '").concat(this.minimumView,"' and maximum '").concat(this.maximumView,"'"));switch(t){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar()}},allowedToShowView:function(t){var e=["day","month","year"],n=e.indexOf(this.minimumView),i=e.indexOf(this.maximumView),r=e.indexOf(t);return r>=n&&r<=i},showDayCalendar:function(){return!!this.allowedToShowView("day")&&(this.close(),this.showDayView=!0,!0)},showMonthCalendar:function(){return!!this.allowedToShowView("month")&&(this.close(),this.showMonthView=!0,!0)},showYearCalendar:function(){return!!this.allowedToShowView("year")&&(this.close(),this.showYearView=!0,!0)},setDate:function(t){var e=new Date(t);this.selectedDate=e,this.setPageDate(e),this.$emit("selected",e),this.$emit("input",e)},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(t){this.setDate(t.timestamp),this.isInline||this.close(!0),this.resetTypedDate=new Date},selectDisabledDate:function(t){this.$emit("selectedDisabled",t)},selectMonth:function(t){var e=new Date(t.timestamp);this.allowedToShowView("day")?(this.setPageDate(e),this.$emit("changedMonth",t),this.showDayCalendar()):this.selectDate(t)},selectYear:function(t){var e=new Date(t.timestamp);this.allowedToShowView("month")?(this.setPageDate(e),this.$emit("changedYear",t),this.showMonthCalendar()):this.selectDate(t)},setValue:function(t){if("string"==typeof t||"number"==typeof t){var e=new Date(t);t=isNaN(e.valueOf())?null:e}if(!t)return this.setPageDate(),void(this.selectedDate=null);this.selectedDate=t,this.setPageDate(t)},setPageDate:function(t){t||(t=this.openDate?new Date(this.openDate):new Date),this.pageTimestamp=this.utils.setDate(new Date(t),1)},handleChangedMonthFromDayPicker:function(t){this.setPageDate(t),this.$emit("changedMonth",t)},setTypedDate:function(t){this.setDate(t.getTime())},close:function(t){this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(t&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}},C="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),O=document.head||document.getElementsByTagName("head")[0],q={};const A=k;var E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vdp-datepicker",class:[t.wrapperClass,t.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:t.selectedDate,resetTypedDate:t.resetTypedDate,format:t.format,translation:t.translation,inline:t.inline,id:t.id,name:t.name,refName:t.refName,openDate:t.openDate,placeholder:t.placeholder,inputClass:t.inputClass,typeable:t.typeable,clearButton:t.clearButton,clearButtonIcon:t.clearButtonIcon,calendarButton:t.calendarButton,calendarButtonIcon:t.calendarButtonIcon,calendarButtonIconContent:t.calendarButtonIconContent,disabled:t.disabled,required:t.required,bootstrapStyling:t.bootstrapStyling,"use-utc":t.useUtc},on:{showCalendar:t.showCalendar,closeCalendar:t.close,typedDate:t.setTypedDate,clearDate:t.clearDate}},[t._t("afterDateInput",null,{slot:"afterDateInput"})],2),t._v(" "),t.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showDayView:t.showDayView,fullMonthName:t.fullMonthName,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,highlighted:t.highlighted,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation,pageTimestamp:t.pageTimestamp,isRtl:t.isRtl,mondayFirst:t.mondayFirst,dayCellContent:t.dayCellContent,"use-utc":t.useUtc},on:{changedMonth:t.handleChangedMonthFromDayPicker,selectDate:t.selectDate,showMonthCalendar:t.showMonthCalendar,selectedDisabled:t.selectDisabledDate}},[t._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):t._e(),t._v(" "),t.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showMonthView:t.showMonthView,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation,isRtl:t.isRtl,"use-utc":t.useUtc},on:{selectMonth:t.selectMonth,showYearCalendar:t.showYearCalendar,changedYear:t.setPageDate}},[t._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):t._e(),t._v(" "),t.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showYearView:t.showYearView,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation,isRtl:t.isRtl,"use-utc":t.useUtc},on:{selectYear:t.selectYear,changedDecade:t.setPageDate}},[t._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):t._e()],1)};E._withStripped=!0;var S=d({render:E,staticRenderFns:[]},function(t){t&&t("data-v-64ca2bb5_0",{source:".rtl {\n  direction: rtl;\n}\n.vdp-datepicker {\n  position: relative;\n  text-align: left;\n}\n.vdp-datepicker * {\n  box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n  position: absolute;\n  z-index: 100;\n  background: #fff;\n  width: 300px;\n  border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n  display: block;\n  line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n  display: inline-block;\n  text-align: center;\n  width: 71.42857142857143%;\n  float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n  width: 14.285714285714286%;\n  float: left;\n  text-indent: -10000px;\n  position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n  content: '';\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translateX(-50%) translateY(-50%);\n  border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n  border-right: 10px solid #000;\n  margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n  border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n  border-left: 10px solid #000;\n  margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n  border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n  cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n  background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n  color: #ddd;\n  cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n  display: flex;\n  width: inherit;\n  flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n  display: inline-block;\n  padding: 0 5px;\n  width: 14.285714285714286%;\n  height: 40px;\n  line-height: 40px;\n  text-align: center;\n  vertical-align: middle;\n  border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n  cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n  border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n  background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n  color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n  color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n  background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n  font-size: 75%;\n  white-space: nowrap;\n  cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n  background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n  width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n  cursor: pointer;\n  font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n  color: #999;\n  cursor: default;\n}\n",map:{version:3,sources:["Datepicker.vue"],names:[],mappings:"AAAA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,0BAA0B;EAC1B,WAAW;EACX,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,gBAAgB;AAClB;AACA;EACE,4BAA4B;AAC9B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,eAAe;AACjB",file:"Datepicker.vue",sourcesContent:[".rtl {\n  direction: rtl;\n}\n.vdp-datepicker {\n  position: relative;\n  text-align: left;\n}\n.vdp-datepicker * {\n  box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n  position: absolute;\n  z-index: 100;\n  background: #fff;\n  width: 300px;\n  border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar header {\n  display: block;\n  line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n  display: inline-block;\n  text-align: center;\n  width: 71.42857142857143%;\n  float: left;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n  width: 14.285714285714286%;\n  float: left;\n  text-indent: -10000px;\n  position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n  content: '';\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translateX(-50%) translateY(-50%);\n  border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n  border-right: 10px solid #000;\n  margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n  border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n  border-left: 10px solid #000;\n  margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n  border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n  cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n  background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n  color: #ddd;\n  cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n  display: flex;\n  width: inherit;\n  flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n  display: inline-block;\n  padding: 0 5px;\n  width: 14.285714285714286%;\n  height: 40px;\n  line-height: 40px;\n  text-align: center;\n  vertical-align: middle;\n  border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n  cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n  border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n  background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n  background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n  color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n  color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n  background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n  font-size: 75%;\n  white-space: nowrap;\n  cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n  background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n  width: 33.333%;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n  cursor: pointer;\n  font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n  color: #999;\n  cursor: default;\n}\n"]},media:void 0})},A,void 0,!1,void 0,function(t){return function(t,e){return function(t,e){var n=C?e.media||"default":t,i=q[n]||(q[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),O.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var o=i.ids.size-1,s=document.createTextNode(r),a=i.element.childNodes;a[o]&&i.element.removeChild(a[o]),a.length?i.element.insertBefore(s,a[o]):i.element.appendChild(s)}}}(t,e)}},void 0);e.a=S},"/AYf":function(t,e,n){t.exports=n("ET1C").default},"/c0f":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".jelly {\n  -webkit-animation: jelly 2s infinite;\n          animation: jelly 2s infinite;\n}\n@-webkit-keyframes jelly {\n0%,\n  20% {\n    -webkit-transform: scale(0.9, 1.1);\n            transform: scale(0.9, 1.1);\n}\n40% {\n    -webkit-transform: scale(1.1, 0.9);\n            transform: scale(1.1, 0.9);\n}\n60% {\n    -webkit-transform: scale(0.95, 1.05);\n            transform: scale(0.95, 1.05);\n}\n80% {\n    -webkit-transform: scale(1, 1);\n            transform: scale(1, 1);\n}\n100% {\n    -webkit-transform: scale(1, 1);\n            transform: scale(1, 1);\n}\n}\n@keyframes jelly {\n0%,\n  20% {\n    -webkit-transform: scale(0.9, 1.1);\n            transform: scale(0.9, 1.1);\n}\n40% {\n    -webkit-transform: scale(1.1, 0.9);\n            transform: scale(1.1, 0.9);\n}\n60% {\n    -webkit-transform: scale(0.95, 1.05);\n            transform: scale(0.95, 1.05);\n}\n80% {\n    -webkit-transform: scale(1, 1);\n            transform: scale(1, 1);\n}\n100% {\n    -webkit-transform: scale(1, 1);\n            transform: scale(1, 1);\n}\n}\n",""])},"0UY3":function(t,e,n){"use strict";var i=n("cGon");n.n(i).a},"1+sw":function(t,e,n){"use strict";var i=n("L2JU"),r=n("wHSu");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={props:{resourceType:{type:String,required:!0},resource:{type:Object,required:!0}},data:function(){return{users:[],newMember:null,loading:!1,faChevronDown:r.h,faSpinner:r.v}},created:function(){var t=this;axios.get("/users").then(function(e){t.users=e.data.users}).catch(function(t){console.log(t)})},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}({},Object(i.b)(["closeComponent","showNotification"]),{addMember:function(){var t=this;this.loading=!0,axios.post("/members",{user_id:this.newMember,group_type:this.resourceType,group_id:this.resource.id}).then(function(e){"success"===e.data.status&&(t.loading=!1,t.$emit("addMember",e.data))}).catch(function(e){t.loading=!1,t.$emit("addMember",e.response.data)})},closeAddMemberForm:function(){this.closeComponent()}})},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-2 md:mx-auto md:w-1/3 bg-white rounded shadow-lg z-10",staticStyle:{top:"10vh",left:"0",right:"0"}},[n("div",{staticClass:"p-4"},[n("div",{staticClass:"p-4"},[n("label",{staticClass:"block uppercase tracking-wide text-xs font-bold text-center text-lg mb-4",attrs:{for:"user"}},[t._v("\n          Add Member\n        ")]),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.newMember,expression:"newMember"}],staticClass:"w-5/6 block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-800 py-3 px-4 pr-8 rounded",attrs:{id:"user"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.newMember=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:""}},[t._v("Select User to Add")]),t._v(" "),t._l(t.users,function(e){return[n("option",{staticClass:"my-2 text-lg",domProps:{value:e.id}},[t._v(t._s(e.name))])]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-800 -ml-8",attrs:{icon:t.faChevronDown}})],1)])]),t._v(" "),n("div",{staticClass:"flex flex-row justify-between py-4 px-8 bg-gray-200 rounded"},[n("button",{staticClass:"text-red-lighter hover:font-bold hover:text-red-400",on:{click:t.closeAddMemberForm}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"bg-teal-400 text-white font-medium hover:bg-teal-600 py-4 px-8 rounded",on:{click:t.addMember}},[t.loading?[n("font-awesome-icon",{attrs:{icon:t.faSpinner,spin:""}})]:t._e(),t._v("\n        Add\n      ")],2)])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25"})])},[],!1,null,null,null);e.a=l.exports},"17fY":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";e.definition={prefix:"fas",iconName:"spinner",icon:[512,512,i,"f110",r]},e.faSpinner=e.definition,e.prefix="fas",e.iconName="spinner",e.width=512,e.height=512,e.ligatures=i,e.unicode="f110",e.svgPathData=r},3:function(t,e,n){t.exports=n("yUBO")},"3+fl":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";e.definition={prefix:"fas",iconName:"question-circle",icon:[512,512,i,"f059",r]},e.faQuestionCircle=e.definition,e.prefix="fas",e.iconName="question-circle",e.width=512,e.height=512,e.ligatures=i,e.unicode="f059",e.svgPathData=r},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"5n2/":function(t,e){function n(t){return"function"==typeof t.value||(console.warn("[Vue-click-outside:] provided expression",t.expression,"is not a function."),!1)}function i(t){return void 0!==t.componentInstance&&t.componentInstance.$isServer}t.exports={bind:function(t,e,r){function o(e){if(r.context){var n=e.path||e.composedPath&&e.composedPath();n&&n.length>0&&n.unshift(e.target),t.contains(e.target)||function(t,e){if(!t||!e)return!1;for(var n=0,i=e.length;n<i;n++)try{if(t.contains(e[n]))return!0;if(e[n].contains(t))return!1}catch(t){return!1}return!1}(r.context.popupItem,n)||t.__vueClickOutside__.callback(e)}}n(e)&&(t.__vueClickOutside__={handler:o,callback:e.value},!i(r)&&document.addEventListener("click",o))},update:function(t,e){n(e)&&(t.__vueClickOutside__.callback=e.value)},unbind:function(t,e,n){!i(n)&&document.removeEventListener("click",t.__vueClickOutside__.handler),delete t.__vueClickOutside__}}},"7O5W":function(t,e,n){"use strict";(function(t,i){function r(t){return(r="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})(t)}function o(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)}}function s(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){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){s(t,e,n[e])})}return t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"b",function(){return Tt}),n.d(e,"a",function(){return T}),n.d(e,"d",function(){return jt}),n.d(e,"c",function(){return St});var u=function(){},d={},f={},h={mark:u,measure:u};try{"undefined"!=typeof window&&(d=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(h=performance)}catch(t){}var p=(d.navigator||{}).userAgent,g=void 0===p?"":p,v=d,m=f,y=h,b=(v.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),w=~g.indexOf("MSIE")||~g.indexOf("Trident/"),_=16,x="fa",k="svg-inline--fa",C="data-fa-i2svg",O=[1,2,3,4,5,6,7,8,9,10],q=O.concat([11,12,13,14,15,16,17,18,19,20]),A={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},E=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",A.GROUP,A.SWAP_OPACITY,A.PRIMARY,A.SECONDARY].concat(O.map(function(t){return"".concat(t,"x")})).concat(q.map(function(t){return"w-".concat(t)})),v.FontAwesomeConfig||{});m&&"function"==typeof m.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=l(t,2),n=e[0],i=e[1],r=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=m.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n));null!=r&&(E[i]=r)});var S=a({},{familyPrefix:x,replacementClass:k,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},E);S.autoReplaceSvg||(S.observeMutations=!1);var T=a({},S);v.FontAwesomeConfig=T;var j=v||{};j.___FONT_AWESOME___||(j.___FONT_AWESOME___={}),j.___FONT_AWESOME___.styles||(j.___FONT_AWESOME___.styles={}),j.___FONT_AWESOME___.hooks||(j.___FONT_AWESOME___.hooks={}),j.___FONT_AWESOME___.shims||(j.___FONT_AWESOME___.shims=[]);var N=j.___FONT_AWESOME___,D=[];b&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",function t(){m.removeEventListener("DOMContentLoaded",t),D.map(function(t){return t()})}));var P,M="pending",L="settled",I="fulfilled",B="rejected",R=function(){},z=void 0!==t&&void 0!==t.process&&"function"==typeof t.process.emit,U=void 0===i?setTimeout:i,F=[];function H(){for(var t=0;t<F.length;t++)F[t][0](F[t][1]);F=[],P=!1}function Y(t,e){F.push([t,e]),P||(P=!0,U(H,0))}function V(t){var e=t.owner,n=e._state,i=e._data,r=t[n],o=t.then;if("function"==typeof r){n=I;try{i=r(i)}catch(t){W(o,t)}}$(o,i)||(n===I&&K(o,i),n===B&&W(o,i))}function $(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===r(e))){var i=e.then;if("function"==typeof i)return i.call(e,function(i){n||(n=!0,e===i?G(t,i):K(t,i))},function(e){n||(n=!0,W(t,e))}),!0}}catch(e){return n||W(t,e),!0}return!1}function K(t,e){t!==e&&$(t,e)||G(t,e)}function G(t,e){t._state===M&&(t._state=L,t._data=e,Y(Z,t))}function W(t,e){t._state===M&&(t._state=L,t._data=e,Y(J,t))}function X(t){t._then=t._then.forEach(V)}function Z(t){t._state=I,X(t)}function J(e){e._state=B,X(e),!e._handled&&z&&t.process.emit("unhandledRejection",e._data,e)}function Q(e){t.process.emit("rejectionHandled",e)}function tt(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof tt==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){W(e,t)}try{t(function(t){K(e,t)},n)}catch(t){n(t)}}(t,this)}tt.prototype={constructor:tt,_state:M,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(R),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===B&&z&&Y(Q,this)),this._state===I||this._state===B?Y(V,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},tt.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new tt(function(e,n){var i=[],r=0;function o(t){return r++,function(n){i[t]=n,--r||e(i)}}for(var s,a=0;a<t.length;a++)(s=t[a])&&"function"==typeof s.then?s.then(o(a),n):i[a]=s;r||e(i)})},tt.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new tt(function(e,n){for(var i,r=0;r<t.length;r++)(i=t[r])&&"function"==typeof i.then?i.then(e,n):e(i)})},tt.resolve=function(t){return t&&"object"===r(t)&&t.constructor===tt?t:new tt(function(e){e(t)})},tt.reject=function(t){return new tt(function(e,n){n(t)})},"function"==typeof Promise&&Promise;var et=_,nt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};var it="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rt(){for(var t=12,e="";t-- >0;)e+=it[62*Math.random()|0];return e}function ot(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function st(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function at(t){return t.size!==nt.size||t.x!==nt.x||t.y!==nt.y||t.rotate!==nt.rotate||t.flipX||t.flipY}function lt(t){var e=t.transform,n=t.containerWidth,i=t.iconWidth,r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}var ct={x:0,y:0,width:"100%",height:"100%"};function ut(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}var dt=(T.measurePerformance&&y&&y.mark&&y.measure,function(t,e,n,i){var r,o,s,a=Object.keys(t),l=a.length,c=void 0!==i?function(t,e){return function(n,i,r,o){return t.call(e,n,i,r,o)}}(e,i):e;for(void 0===n?(r=1,s=t[a[0]]):(r=0,s=n);r<l;r++)s=c(s,t[o=a[r]],o,t);return s});var ft=N.styles,ht=N.shims,pt=function(){var t=function(t){return dt(ft,function(e,n,i){return e[i]=dt(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in ft;dt(ht,function(t,n){var i=n[0],r=n[1],o=n[2];return"far"!==r||e||(r="fas"),t[i]={prefix:r,iconName:o},t},{})};function gt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function vt(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,o=void 0===r?[]:r;return"string"==typeof t?ot(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(ot(t[n]),'" ')},"").trim()}(i),">").concat(o.map(vt).join(""),"</").concat(e,">")}pt(),N.styles;function mt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}mt.prototype=Object.create(Error.prototype),mt.prototype.constructor=mt;var yt={fill:"currentColor"},bt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},wt=(a({},yt,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),a({},bt,{attributeName:"opacity"}));function _t(t){var e=t[0],n=t[1],i=l(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(T.familyPrefix,"-").concat(A.GROUP)},children:[{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(A.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(A.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}a({},yt,{cx:"256",cy:"364",r:"28"}),a({},bt,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},wt,{values:"1;0;1;1;0;1;"}),a({},yt,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),a({},wt,{values:"1;0;0;0;0;1;"}),a({},yt,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),a({},wt,{values:"0;0;1;1;0;0;"}),N.styles,N.styles;var xt='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';function kt(){T.autoAddCss&&!Et&&(function(t){if(t&&b){var e=m.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=m.head.childNodes,i=null,r=n.length-1;r>-1;r--){var o=n[r],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=o)}m.head.insertBefore(e,i)}}(function(){var t=x,e=k,n=T.familyPrefix,i=T.replacementClass,r=xt;if(n!==t||i!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(i))}return r}()),Et=!0)}function Ct(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return vt(t)})}}),Object.defineProperty(t,"node",{get:function(){if(b){var e=m.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Ot(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return gt(At.definitions,n,i)||gt(N.styles,n,i)}var qt,At=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n;return e=t,(n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(e){t.definitions[e]=a({},t.definitions[e]||{},r[e]),function t(e,n){var i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==i&&i,o=Object.keys(n).reduce(function(t,e){var i=n[e];return i.icon?t[i.iconName]=i.icon:t[e]=i,t},{});"function"!=typeof N.hooks.addPack||r?N.styles[e]=a({},N.styles[e]||{},o):N.hooks.addPack(e,o),"fas"===e&&t("fa",n)}(e,r[e]),pt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var i=n[e],r=i.prefix,o=i.iconName,s=i.icon;t[r]||(t[r]={}),t[r][o]=s}),t}}])&&o(e.prototype,n),t}()),Et=!1,St={transform:function(t){return function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(t)}},Tt=(qt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?nt:n,r=e.symbol,o=void 0!==r&&r,s=e.mask,l=void 0===s?null:s,c=e.title,u=void 0===c?null:c,d=e.classes,f=void 0===d?[]:d,h=e.attributes,p=void 0===h?{}:h,g=e.styles,v=void 0===g?{}:g;if(t){var m=t.prefix,y=t.iconName,b=t.icon;return Ct(a({type:"icon"},t),function(){return kt(),T.autoA11y&&(u?p["aria-labelledby"]="".concat(T.replacementClass,"-title-").concat(rt()):(p["aria-hidden"]="true",p.focusable="false")),function(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,o=t.iconName,s=t.transform,l=t.symbol,c=t.title,u=t.extra,d=t.watchable,f=void 0!==d&&d,h=i.found?i:n,p=h.width,g=h.height,v="fa-w-".concat(Math.ceil(p/g*16)),m=[T.replacementClass,o?"".concat(T.familyPrefix,"-").concat(o):"",v].filter(function(t){return-1===u.classes.indexOf(t)}).concat(u.classes).join(" "),y={children:[],attributes:a({},u.attributes,{"data-prefix":r,"data-icon":o,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(g)})};f&&(y.attributes[C]=""),c&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(rt())},children:[c]});var b=a({},y,{prefix:r,iconName:o,main:n,mask:i,transform:s,symbol:l,styles:u.styles}),w=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,o=t.mask,s=t.transform,l=r.width,c=r.icon,u=o.width,d=o.icon,f=lt({transform:s,containerWidth:u,iconWidth:l}),h={tag:"rect",attributes:a({},ct,{fill:"white"})},p=c.children?{children:c.children.map(ut)}:{},g={tag:"g",attributes:a({},f.inner),children:[ut(a({tag:c.tag,attributes:a({},c.attributes,f.path)},p))]},v={tag:"g",attributes:a({},f.outer),children:[g]},m="mask-".concat(rt()),y="clip-".concat(rt()),b={tag:"mask",attributes:a({},ct,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(e=d,"g"===e.tag?e.children:[e])},b]};return n.push(w,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")")},ct)}),{children:n,attributes:i}}(b):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,o=st(t.styles);if(o.length>0&&(n.style=o),at(r)){var s=lt({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:a({},s.outer),children:[{tag:"g",attributes:a({},s.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:a({},i.icon.attributes,s.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(b),_=w.children,x=w.attributes;return b.children=_,b.attributes=x,l?function(t){var e=t.prefix,n=t.iconName,i=t.children,r=t.attributes,o=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a({},r,{id:!0===o?"".concat(e,"-").concat(T.familyPrefix,"-").concat(n):o}),children:i}]}]}(b):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,o=t.styles,s=t.transform;if(at(s)&&n.found&&!i.found){var l={x:n.width/n.height/2,y:.5};r.style=st(a({},o,{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(b)}({icons:{main:_t(b),mask:l?_t(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:y,transform:a({},nt,i),symbol:o,title:u,extra:{attributes:p,styles:v,classes:f}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:Ot(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:Ot(i||{})),qt(n,a({},e,{mask:i}))}),jt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?nt:n,r=e.title,o=void 0===r?null:r,s=e.classes,l=void 0===s?[]:s,u=e.attributes,d=void 0===u?{}:u,f=e.styles,h=void 0===f?{}:f;return Ct({type:"text",content:t},function(){return kt(),function(t){var e=t.content,n=t.width,i=t.height,r=t.transform,o=t.title,s=t.extra,l=t.watchable,c=void 0!==l&&l,u=a({},s.attributes,o?{title:o}:{},{class:s.classes.join(" ")});c&&(u[C]="");var d=a({},s.styles);at(r)&&(d.transform=function(t){var e=t.transform,n=t.width,i=void 0===n?_:n,r=t.height,o=void 0===r?_:r,s=t.startCentered,a=void 0!==s&&s,l="";return l+=a&&w?"translate(".concat(e.x/et-i/2,"em, ").concat(e.y/et-o/2,"em) "):a?"translate(calc(-50% + ".concat(e.x/et,"em), calc(-50% + ").concat(e.y/et,"em)) "):"translate(".concat(e.x/et,"em, ").concat(e.y/et,"em) "),(l+="scale(".concat(e.size/et*(e.flipX?-1:1),", ").concat(e.size/et*(e.flipY?-1:1),") "))+"rotate(".concat(e.rotate,"deg) ")}({transform:r,startCentered:!0,width:n,height:i}),d["-webkit-transform"]=d.transform);var f=st(d);f.length>0&&(u.style=f);var h=[];return h.push({tag:"span",attributes:u,children:[e]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}({content:t,transform:a({},nt,i),title:o,extra:{attributes:d,styles:h,classes:["".concat(T.familyPrefix,"-layers-text")].concat(c(l))}})})}}).call(this,n("yLpj"),n("URgk").setImmediate)},"7fPc":function(t,e,n){"use strict";var i=n("L2JU"),r=n("gVtJ");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={props:{resourceType:{type:String,required:!0},resourceId:{type:Number,required:!0},members:{type:Array,required:!0}},data:function(){return{faTrashAlt:r.faTrashAlt}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}({},Object(i.b)(["closeComponent","showNotification"]),{closeModal:function(){this.closeComponent()},removeMember:function(t,e){var n=this;axios.delete("/members/",{params:{user_id:e,group_type:this.resourceType,group_id:this.resourceId}}).then(function(e){n.members.splice(t,1),n.closeModal(),n.showNotification({type:e.data.status,message:e.data.message})}).catch(function(t){n.showNotification({type:t.response.data.status,message:t.response.data.message})})}})},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-2 md:mx-auto md:w-1/3 bg-gray-100 rounded shadow-lg z-10",staticStyle:{top:"10vh",left:"0",right:"0"}},[n("div",{staticClass:"m-auto flex-col flex"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-600 text-xs font-bold text-center text-lg p-4 rounded",attrs:{for:"user"}},[t._v("\n          Members List\n        ")]),t._v(" "),t._l(t.members,function(e,i){return n("ul",{key:e.id,staticClass:"list-reset"},[n("li",{staticClass:"p-4 py-6 hover:bg-blue-100 bg-white flex flex-row items-center justify-between"},[n("div",{staticClass:"flex flex-row items-center"},[n("a",{staticClass:"no-underline text-gray-800 text-lg",attrs:{href:"/users/"+e.username}},[n("img",{staticClass:"rounded-full w-8 h-8 mr-4 align-middle",attrs:{src:t.generateUrl(e.avatar),alt:"profile pic of "+e.name}})]),t._v(" "),n("span",{staticClass:"text-xl"},[t._v(t._s(e.name))])]),t._v(" "),n("button",{staticClass:"w-8 h-8 bg-red-200 text-red-700 rounded-full flex justify-center items-center",attrs:{title:"delete"},on:{click:function(n){return t.removeMember(i,e.user_id)}}},[n("font-awesome-icon",{staticClass:"cursor-pointer text-sm",attrs:{icon:t.faTrashAlt}})],1)])])}),t._v(" "),n("div",{staticClass:"flex flex-row-reverse p-4 rounded-b"},[n("button",{staticClass:"text-red-400 hover:font-bold",on:{click:t.closeModal}},[t._v("Close")])])],2)]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25",on:{click:t.closeModal}})])},[],!1,null,null,null);e.a=l.exports},"8oxB":function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var t=a(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||u||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},AJdH:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z";e.definition={prefix:"fas",iconName:"times-circle",icon:[512,512,i,"f057",r]},e.faTimesCircle=e.definition,e.prefix="fas",e.iconName="times-circle",e.width=512,e.height=512,e.ligatures=i,e.unicode="f057",e.svgPathData=r},AMG7:function(t,e,n){"use strict";var i=n("tViS");n.n(i).a},CupY:function(t,e,n){"use strict";var i=n("dRbG");n.n(i).a},DuTs:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z";e.definition={prefix:"fas",iconName:"plus",icon:[448,512,i,"f067",r]},e.faPlus=e.definition,e.prefix="fas",e.iconName="plus",e.width=448,e.height=512,e.ligatures=i,e.unicode="f067",e.svgPathData=r},ET1C:function(t,e,n){"use strict";(function(t){e.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("LXjW")),r=i.tokenize,o=i.options,s=o.Options,a=i.parser.TOKENS.TEXT,l=1,c=3;function u(t,e,n){var i=n[n.length-1];t.replaceChild(i,e);for(var r=n.length-2;r>=0;r--)t.insertBefore(n[r],i),i=n[r]}function d(t,e,n){var i=[],r=t,o=Array.isArray(r),s=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}var l=a;if("nl"===l.type&&e.nl2br)i.push(n.createElement("br"));else if(l.isLink&&e.check(l)){var c=e.resolve(l),u=c.formatted,d=c.formattedHref,f=c.tagName,h=c.className,p=c.target,g=c.events,v=c.attributes,m=n.createElement(f);if(m.setAttribute("href",d),h&&m.setAttribute("class",h),p&&m.setAttribute("target",p),v)for(var y in v)m.setAttribute(y,v[y]);if(g)for(var b in g)m.addEventListener?m.addEventListener(b,g[b]):m.attachEvent&&m.attachEvent("on"+b,g[b]);m.appendChild(n.createTextNode(u)),i.push(m)}else i.push(n.createTextNode(l.toString()))}return i}function f(t,e,n){if(!t||t.nodeType!==l)throw new Error("Cannot linkify "+t+" - Invalid DOM Node type");var i=e.ignoreTags;if("A"===t.tagName||o.contains(i,t.tagName))return t;for(var s=t.firstChild;s;){var h=void 0,p=void 0,g=void 0;switch(s.nodeType){case l:f(s,e,n);break;case c:if(h=s.nodeValue,0===(p=r(h)).length||1===p.length&&p[0]instanceof a)break;u(t,s,g=d(p,e,n)),s=g[g.length-1]}s=s.nextSibling}return t}function h(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{i=i||document||window&&window.document||t&&t.document}catch(t){}if(!i)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");return f(e,n=new s(n),i)}h.helper=f,h.normalize=function(t){return new s(t)},e.default=h}).call(this,n("yLpj"))},FlKs:function(t,e,n){"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var i=n("JUw6"),r=function(t){this.j=[],this.T=t||null};r.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],i=n[0],r=n[1];if(this.test(t,i))return r}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var o=(0,i.inherits)(r,function(t){this.j=[],this.T=t||null},{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),s=(0,i.inherits)(r,function(t){this.j=[],this.T=t||null},{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=o,e.TokenState=s,e.stateify=function(t,e,n,i){for(var r=0,s=t.length,a=e,l=[],c=void 0;r<s&&(c=a.next(t[r]));)a=c,r++;if(r>=s)return[];for(;r<s-1;)c=new o(i),l.push(c),a.on(t[r],c),a=c,r++;return c=new o(n),l.push(c),a.on(t[s-1],c),l}},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){for(var e,n=c(t),i=n[0],s=n[1],a=new o(3*(i+s)/4-s),l=0,u=s>0?i-4:i,d=0;d<u;d+=4)e=r[t.charCodeAt(d)]<<18|r[t.charCodeAt(d+1)]<<12|r[t.charCodeAt(d+2)]<<6|r[t.charCodeAt(d+3)],a[l++]=e>>16&255,a[l++]=e>>8&255,a[l++]=255&e;return 2===s&&(e=r[t.charCodeAt(d)]<<2|r[t.charCodeAt(d+1)]>>4,a[l++]=255&e),1===s&&(e=r[t.charCodeAt(d)]<<10|r[t.charCodeAt(d+1)]<<4|r[t.charCodeAt(d+2)]>>2,a[l++]=e>>8&255,a[l++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var r,o,s=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},HijD:function(t,e,n){"use strict";var i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},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=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s=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)},a=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},l=function(){function t(e){i(this,t),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}return r(t,[{key:"setOptions",value:function(t){return this.options=o(this._defaultOptions,t),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),t}},{key:"csrfToken",value:function(){var t=void 0;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&document.hasOwnProperty("querySelector")&&(t=document.querySelector('meta[name="csrf-token"]'))?t.getAttribute("content"):null}}]),t}(),c=function(){function t(){i(this,t)}return r(t,[{key:"listenForWhisper",value:function(t,e){return this.listen(".client-"+t,e)}},{key:"notification",value:function(t){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",t)}},{key:"stopListeningForWhisper",value:function(t){return this.stopListening(".client-"+t)}}]),t}(),u=function(){function t(e){i(this,t),this.setNamespace(e)}return r(t,[{key:"format",value:function(t){return"."===t.charAt(0)||"\\"===t.charAt(0)?t.substr(1):(this.namespace&&(t=this.namespace+"."+t),t.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(t){this.namespace=t}}]),t}(),d=function(t){function e(t,n,r){i(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.name=n,o.pusher=t,o.options=r,o.eventFormatter=new u(o.options.namespace),o.subscribe(),o}return s(e,c),r(e,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"stopListening",value:function(t){return this.subscription.unbind(this.eventFormatter.format(t)),this}},{key:"on",value:function(t,e){return this.subscription.bind(t,e),this}}]),e}(),f=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,d),r(e,[{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-"+t,e),this}}]),e}(),h=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,d),r(e,[{key:"here",value:function(t){return this.on("pusher:subscription_succeeded",function(e){t(Object.keys(e.members).map(function(t){return e.members[t]}))}),this}},{key:"joining",value:function(t){return this.on("pusher:member_added",function(e){t(e.info)}),this}},{key:"leaving",value:function(t){return this.on("pusher:member_removed",function(e){t(e.info)}),this}},{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-"+t,e),this}}]),e}(),p=function(t){function e(t,n,r){i(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.events={},o.name=n,o.socket=t,o.options=r,o.eventFormatter=new u(o.options.namespace),o.subscribe(),o.configureReconnector(),o}return s(e,c),r(e,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"stopListening",value:function(t){var e=this.eventFormatter.format(t);return this.socket.removeListener(e),delete this.events[e],this}},{key:"on",value:function(t,e){var n=this,i=function(t,i){n.name==t&&e(i)};this.socket.on(t,i),this.bind(t,i)}},{key:"configureReconnector",value:function(){var t=this,e=function(){t.subscribe()};this.socket.on("reconnect",e),this.bind("reconnect",e)}},{key:"bind",value:function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)}},{key:"unbind",value:function(){var t=this;Object.keys(this.events).forEach(function(e){t.events[e].forEach(function(n){t.socket.removeListener(e,n)}),delete t.events[e]})}}]),e}(),g=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,p),r(e,[{key:"whisper",value:function(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-"+t,data:e}),this}}]),e}(),v=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,g),r(e,[{key:"here",value:function(t){return this.on("presence:subscribed",function(e){t(e.map(function(t){return t.user_info}))}),this}},{key:"joining",value:function(t){return this.on("presence:joining",function(e){return t(e.user_info)}),this}},{key:"leaving",value:function(t){return this.on("presence:leaving",function(e){return t(e.user_info)}),this}}]),e}(),m=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,c),r(e,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(t,e){return this}},{key:"stopListening",value:function(t){return this}},{key:"on",value:function(t,e){return this}}]),e}(),y=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,m),r(e,[{key:"whisper",value:function(t,e){return this}}]),e}(),b=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,m),r(e,[{key:"here",value:function(t){return this}},{key:"joining",value:function(t){return this}},{key:"leaving",value:function(t){return this}},{key:"whisper",value:function(t,e){return this}}]),e}(),w=function(t){function e(){i(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.channels={},t}return s(e,l),r(e,[{key:"connect",value:function(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new d(this.pusher,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new f(this.pusher,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new h(this.pusher,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"presence-"+t].forEach(function(t,n){e.leaveChannel(t)})}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),e}(),_=function(t){function e(){i(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.channels={},t}return s(e,l),r(e,[{key:"connect",value:function(){var t=this.getSocketIO();return this.socket=t(this.options.host,this.options),this.socket}},{key:"getSocketIO",value:function(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new p(this.socket,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new g(this.socket,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new v(this.socket,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"presence-"+t].forEach(function(t){e.leaveChannel(t)})}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),e}(),x=function(t){function e(){i(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.channels={},t}return s(e,l),r(e,[{key:"connect",value:function(){}},{key:"listen",value:function(t,e,n){return new m}},{key:"channel",value:function(t){return new m}},{key:"privateChannel",value:function(t){return new y}},{key:"presenceChannel",value:function(t){return new b}},{key:"leave",value:function(t){}},{key:"leaveChannel",value:function(t){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),e}(),k=function(){function t(e){i(this,t),this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return r(t,[{key:"channel",value:function(t){return this.connector.channel(t)}},{key:"connect",value:function(){"pusher"==this.options.broadcaster?this.connector=new w(this.options):"socket.io"==this.options.broadcaster?this.connector=new _(this.options):"null"==this.options.broadcaster?this.connector=new x(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(t){return this.connector.presenceChannel(t)}},{key:"leave",value:function(t){this.connector.leave(t)}},{key:"leaveChannel",value:function(t){this.connector.leaveChannel(t)}},{key:"listen",value:function(t,e,n){return this.connector.listen(t,e,n)}},{key:"private",value:function(t){return this.connector.privateChannel(t)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}},{key:"registerVueRequestInterceptor",value:function(){var t=this;Vue.http.interceptors.push(function(e,n){t.socketId()&&e.headers.set("X-Socket-ID",t.socketId()),n()})}},{key:"registerAxiosRequestInterceptor",value:function(){var t=this;axios.interceptors.request.use(function(e){return t.socketId()&&(e.headers["X-Socket-Id"]=t.socketId()),e})}},{key:"registerjQueryAjaxSetup",value:function(){var t=this;void 0!==jQuery.ajax&&jQuery.ajaxPrefilter(function(e,n,i){t.socketId()&&i.setRequestHeader("X-Socket-Id",t.socketId())})}}]),t}(),C=n("rT2p"),O=n("5n2/"),q=n.n(O),A=n("dP7y"),E=n("/AYf"),S=n.n(E),T=n("bGVd");n.n(T)()(A),window.Vue=n("XuX8"),window.axios=n("vDqi"),window.luxon=n("ExVU"),window.axios.defaults.headers.common={"X-CSRF-TOKEN":window.Laravel.csrfToken,"X-Requested-With":"XMLHttpRequest"},"undefined"!=typeof io&&(window.Echo=new k({broadcaster:"socket.io",host:window.location.hostname+":6001",namespace:"App.Base.Events"})),window.Vue.mixin({methods:{generateUrl:function(t){return t?(t=t.toString(),window.location.protocol+"//"+window.location.host+"/"+t):"http://"+window.location.host+"/image/avatar.jpg"}}}),window.Vue.filter("localize",function(t){return t?(t=t.toString(),window.lang[t]?window.lang[t]:t):""}),window.Vue.filter("capitalize",function(t){return t?(t=t.toString()).charAt(0).toUpperCase()+t.slice(1):""}),window.Vue.filter("clip",function(t){return t?(t=t.toString()).substr(0,20)+"...":""}),window.Vue.directive("linkify",{inserted:function(t){S()(t,{className:"text-blue-500",formatHref:function(t,e){return"mention"===e?window.location.origin+"/users"+t:t}})}}),window.Vue.directive("click-outside",q.a),window.Vue.component("font-awesome-icon",C.a),window.EventBus=new Vue},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n,i=t[1]||"",r=t[3];if(!r)return i;if(e&&"function"==typeof btoa){var o=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[i].concat(s).concat([o]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},ICWC:function(t,e,n){"use strict";var i=n("o0o1"),r=n.n(i),o=n("+jP+"),s=n("L2JU"),a=n("hmj/"),l=n("AJdH");function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={components:{Datepicker:o.a},props:{formShown:{required:!0,type:Boolean},resource:{required:!0,type:Object},resourceType:{required:!0,type:String},tasks:{required:!1,type:Array},task:{required:!1,type:Object}},data:function(){return{name:"",notes:"",assignedTo:null,relatedTo:"",dueOnDate:null,cycleId:null,disabledDates:{to:new Date},tags:[],availableTags:[],labels:[],tagSuggestionShown:!1,faChevronDown:a.faChevronDown,faTimesCircle:l.faTimesCircle}},watch:{formShown:function(t,e){this.availableTags=this.resource.tags,t&&(this.cycleId=this.selectedCycleId,this.task&&this.hydrateForm())}},computed:c({taskCompleted:function(){return this.tasks.filter(function(t){return t.completed}).length}},Object(s.c)({cycles:function(t){return t.cycle.cycles},selectedCycleId:function(t){return t.cycle.selectedCycleId}})),methods:c({},Object(s.b)(["showNotification"]),{createTask:function(){var t=this;axios.post("/tasks",{name:this.name,notes:this.notes,assigned_to:this.assignedTo,related_to:this.relatedTo,cycle_id:0!==this.cycleId?this.cycleId:null,due_on:window.luxon.DateTime.fromISO(this.dueOnDate.toISOString()).toISODate(),labels:this.labels,group_id:this.resource.id,group_type:this.resourceType}).then(function(e){"success"===e.data.status&&(t.name="",t.notes="",t.assignedTo=null,t.dueOnDate=null,t.relatedTo="",t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close",e.data.task))}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close")})},closeCreateTaskForm:function(){this.dehydrateForm(),this.tagSuggestionShown=!1,this.$emit("close")},closeNotification:function(){this.showNotification=!1},updateTask:function(){var t=this;axios.put("/tasks/"+this.task.id,{name:this.name,notes:this.notes,assigned_to:this.assignedTo,related_to:this.relatedTo,cycle_id:0!==this.cycleId?this.cycleId:null,due_on:window.luxon.DateTime.fromISO(this.dueOnDate.toISOString()).toISODate(),labels:this.labels,group_id:this.resource.id,group_type:this.resourceType}).then(function(e){t.dehydrateForm(),t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close",null,e.data.task)}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close")})},showTags:function(){this.tagSuggestionShown=!0},dontShowTags:function(){this.tagSuggestionShown=!1},addTag:function(t){this.tags.push(t),this.labels.push(t.tag_id),this.availableTags=this.availableTags.filter(function(e){return e.tag_id!==t.tag_id})},deleteTag:function(t){var e=this.tags.indexOf(t);-1!==e&&(this.tags.splice(e,1),e=this.labels.indexOf(t.id),this.labels.splice(e,1),this.availableTags.push(t))},hydrateForm:function(){this.name=this.task.name,this.notes=this.task.notes,this.assignedTo=this.task.assigned_to,this.relatedTo=this.task.related_to,this.cycleId=this.selectedCycleId,this.dueOnDate=new Date(this.task.due_on)},dehydrateForm:function(){this.name="",this.notes="",this.assignedTo="",this.dueOnDate=null,this.relatedTo=""}})},f=n("KHd+"),h=Object(f.a)(d,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.formShown?n("div",[n("div",{staticClass:"absolute container mx-auto w-5/6 md:w-3/5 lg:max-w-5xl z-30",staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"bg-white rounded shadow-lg"},[n("div",{staticClass:"p-4"},[n("div",{staticClass:"p-4"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"focusInput",staticClass:"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4",attrs:{type:"text",placeholder:"New Task",required:""},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"p-4"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[t._v("\n            Notes\n          ")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.notes,expression:"notes"}],staticClass:"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4 resize-none",attrs:{placeholder:"Description",name:"notes",rows:"2"},domProps:{value:t.notes},on:{input:function(e){e.target.composing||(t.notes=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"p-4"},[t._m(1),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.assignedTo,expression:"assignedTo"}],staticClass:"w-5/6 block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-800 py-3 px-4 pr-8 rounded",attrs:{id:"user"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.assignedTo=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:""}},[t._v("Select User to Add")]),t._v(" "),t._l(t.resource.members,function(e){return[n("option",{staticClass:"my-2 text-lg",domProps:{value:e.user_id}},[t._v(t._s(e.name))])]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-800 -ml-8",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{staticClass:"p-4"},[t._m(2),t._v(" "),n("datepicker",{ref:"dueOnDate",attrs:{"disabled-dates":t.disabledDates,placeholder:"Select Date",format:"yyyy-MM-dd","input-class":"appearance-none bg-gray-200 text-gray-800 w-full","wrapper-class":"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4"},model:{value:t.dueOnDate,callback:function(e){t.dueOnDate=e},expression:"dueOnDate"}})],1),t._v(" "),n("div",{staticClass:"p-4"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[t._v("\n            Cycle\n          ")]),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.cycleId,expression:"cycleId"}],staticClass:"w-5/6 block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-800 py-3 px-4 pr-8 rounded",attrs:{id:"user"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.cycleId=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:"",value:""}},[t._v("Select a Cycle")]),t._v(" "),t._l(t.cycles,function(e){return[n("option",{staticClass:"my-2 text-lg",domProps:{value:e.id}},[t._v(t._s(e.name?e.name:e.start_date+" - "+e.end_date))])]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-800 -ml-8",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{staticClass:"p-4"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[t._v("\n            Related To\n          ")]),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.relatedTo,expression:"relatedTo"}],staticClass:"w-5/6 block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-800 py-3 px-4 pr-8 rounded",attrs:{id:"user"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.relatedTo=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:"",value:""}},[t._v("Select a Task")]),t._v(" "),t._l(t.tasks,function(e){return[!t.task||t.task&&e.id!==t.task.id?n("option",{staticClass:"my-2 text-lg",domProps:{value:e.id}},[t._v(t._s(e.name))]):t._e()]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-800 -ml-8",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.dontShowTags,expression:"dontShowTags"}],staticClass:"p-4"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"tags"}},[t._v("Tags")]),t._v(" "),n("div",{staticClass:"p-2 border rounded bg-gray-100"},[n("div",{staticClass:"flex flex-row flex-wrap"},[t._l(t.tags,function(e){return n("div",{staticClass:"flex items-center mx-1 my-1 py-1 px-3 bg-indigo-200 font-semibold text-indigo-700 rounded-full"},[n("span",{staticClass:"text-sm"},[t._v("\n                  "+t._s(e.label)+"\n                ")]),t._v(" "),n("font-awesome-icon",{staticClass:"text-sm text-indigo-700 ml-1 cursor-pointer",attrs:{icon:t.faTimesCircle},on:{click:function(n){return t.deleteTag(e)}}})],1)}),t._v(" "),n("input",{staticClass:"text-gray-700 bg-gray-100 w-24 p-1 my-1 flex-grow",attrs:{type:"text",name:"tags"},on:{focus:t.showTags}})],2)]),t._v(" "),t.tagSuggestionShown&&0!==t.availableTags.length?n("div",{staticClass:"shadow-md border py-1 rounded-b"},t._l(t.availableTags,function(e){return n("div",{staticClass:"px-4 py-2 cursor-pointer -mt-1 hover:bg-teal-400 hover:text-white",on:{click:function(n){return t.addTag(e)}}},[t._v("\n              "+t._s(e.label)+"\n            ")])}),0):t._e()])]),t._v(" "),n("div",{staticClass:"flex flex-row justify-between py-4 px-8 bg-gray-200 rounded"},[n("button",{staticClass:"text-red-300 hover:font-bold hover:text-red-400",on:{click:t.closeCreateTaskForm}},[t._v("Cancel")]),t._v(" "),t.task?n("button",{staticClass:"bg-teal-400 text-white font-medium hover:bg-teal-600 py-4 px-8 rounded",on:{click:t.updateTask}},[t._v("Save")]):n("button",{staticClass:"bg-teal-400 text-white font-medium hover:bg-teal-600 py-4 px-8 rounded",on:{click:t.createTask}},[t._v("Create")])])]),t._v(" "),n("div",{staticClass:"h-16"})]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",class:{hidden:!t.formShown},on:{click:t.closeCreateTaskForm}})]):t._e()},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Title "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Assigned To "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Due On "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])}],!1,null,null,null).exports,p=n("WmwA");function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){v(t,e,n[e])})}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={props:{resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number},show:{required:!0,type:Boolean}},data:function(){return{formShown:!1,description:"",steps:[],unknown:!1,faTimesCircle:l.faTimesCircle}},watch:{show:function(t){t&&this.getSteps()}},computed:g({},Object(s.c)({groupType:function(t){return t.groupType},groupId:function(t){return t.groupId}})),created:function(){this.getSteps()},methods:g({},Object(s.b)(["showNotification"]),{toggleForm:function(){this.formShown=!this.formShown},saveStep:function(){var t=this;axios.post("/tasks/"+this.resourceId+"/steps",{description:this.description,unknown:this.unknown,group_type:this.groupType,group_id:this.groupId}).then(function(e){t.description="",t.formShown=!1,t.steps.push(e.data.step),t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message})})},getSteps:function(){var t=this;0===this.steps.length&&axios.get("/tasks/"+this.resourceId+"/steps",{params:{group_type:this.groupType,group_id:this.groupId}}).then(function(e){t.steps=e.data.steps}).catch(function(t){console.log(t.response.data.message)})}})},y=Object(f.a)(m,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",[n("div",[n("button",{staticClass:"no-underline px-3 py-2 my-4 bg-white text-center text-base text-teal-500 rounded shadow",on:{click:t.toggleForm}},[t._v(t._s(t._f("localize")("Add New Step")))]),t._v(" "),t.formShown?n("div",{staticClass:"border-2 border-indigo-300 bg-white p-4 rounded"},[n("div",{staticClass:"flex justify-end",on:{click:t.toggleForm}},[n("font-awesome-icon",{staticClass:"text-base text-red-500 cursor-pointer",attrs:{icon:t.faTimesCircle}})],1),t._v(" "),n("div",{},[n("label",{staticClass:"block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2",attrs:{for:"description"}},[t._v("\n          Description\n        ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],ref:"focusInput",staticClass:"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4",attrs:{id:"description",type:"text",placeholder:"Describe the step",required:""},domProps:{value:t.description},on:{input:function(e){e.target.composing||(t.description=e.target.value)}}})]),t._v(" "),n("div",[n("div",{staticClass:"py-4 text-gray-700"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.unknown,expression:"unknown"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"unknown"},domProps:{checked:Array.isArray(t.unknown)?t._i(t.unknown,null)>-1:t.unknown},on:{change:function(e){var n=t.unknown,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.unknown=n.concat([null])):o>-1&&(t.unknown=n.slice(0,o).concat(n.slice(o+1)))}else t.unknown=r}}}),t._v(" "),n("label",{attrs:{for:"unknown"}},[t._v("Step is not clear yet and have unknown")])])]),t._v(" "),n("button",{staticClass:"px-4 py-2 text-white text-center text-base font-semibold bg-teal-600 rounded",on:{click:t.saveStep}},[t._v(t._s(t._f("localize")("Save")))])]):t._e()]),t._v(" "),n("div",t._l(t.steps,function(e){return n("div",{staticClass:"bg-white rounded shadow px-4 py-2 my-4"},[n("div",{staticClass:"text-xs text-indigo-700"},[n("span",{staticClass:"text-gray-700"},[t._v("Last updated:")]),t._v(" "+t._s(e.updated_at)+"\n      ")]),t._v(" "),n("div",{staticClass:"text-2xl"},[t._v("\n        "+t._s(e.description)+"\n      ")]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"py-2 pr-4 text-gray-700"},[n("input",{staticClass:"checkbox",attrs:{type:"checkbox",id:"step-done-"+e.id},domProps:{checked:e.done}}),t._v(" "),n("label",{attrs:{for:"step-done-"+e.id}},[t._v("Done")])]),t._v(" "),n("div",{staticClass:"py-2 text-gray-700"},[n("input",{staticClass:"checkbox",attrs:{type:"checkbox",id:"step-unknown-"+e.id},domProps:{checked:e.unknown}}),t._v(" "),n("label",{attrs:{for:"step-unknown-"+e.id}},[t._v("Unknown")])])])])}),0)]):t._e()},[],!1,null,null,null).exports,b=n("wHSu");function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _={components:{commentBox:p.a,progressBox:y},props:{resourceId:{required:!0,type:Number},resourceType:{required:!0,type:String},taskDetailsShown:{required:!0,type:Boolean},task:{required:!0,type:Object},index:{required:!0},statuses:{required:!0,type:Array}},data:function(){return{dropdownMenuShown:!1,statusMenuShown:!1,activeColumn:"comments",faArrowLeft:b.b,faEllipsisH:b.m}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){w(t,e,n[e])})}return t}({},Object(s.b)(["showNotification"]),{dueOn:function(t){return luxon.DateTime.fromSQL(t).toFormat("d LLL")},closeTaskDetails:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dropdownMenuShown=!1,this.$emit("close",t)},toggleMenu:function(){this.dropdownMenuShown=!this.dropdownMenuShown},hideMenu:function(){this.dropdownMenuShown=!1},deleteTask:function(){var t=this;axios.delete("/tasks/"+this.task.id,{params:{group_type:this.resourceType,group_id:this.resourceId}}).then(function(e){t.$emit("delete",t.index),t.dropdownMenuShown=!1,t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close")}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close")}),this.dropdownMenuShown=!1},toggleStatusMenu:function(){this.statusMenuShown=!this.statusMenuShown},closeStatusMenu:function(){this.statusMenuShown=!1},changeStatus:function(t){var e=this;axios.put("/tasks/"+this.task.id+"/statuses/"+t,{group_type:this.resourceType,group_id:this.resourceId}).then(function(t){e.statusMenuShown=!1,e.$emit("status-change",{index:e.index,task:t.data.task}),e.showNotification({type:t.data.status,message:t.data.message})}).catch(function(t){e.statusMenuShown=!1,e.showNotification({type:t.response.data.status,message:t.response.data.message})})},editTask:function(){this.closeTaskDetails(!0)},showColumn:function(t){this.activeColumn=t}})},x=Object(f.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.taskDetailsShown?n("div",[n("div",{staticClass:"fixed container mx-auto md:max-w-2xl lg:max-w-3xl xl:max-w-4xl z-40 mb-16",staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"bg-gray-100 rounded shadow-lg py-4"},[n("div",{staticClass:"flex flex-row justify-between px-8 pb-2 relative"},[n("div",{staticClass:"cursor-pointer",on:{click:t.closeTaskDetails}},[n("font-awesome-icon",{staticClass:"text-base text-gray-600",attrs:{icon:t.faArrowLeft}})],1),t._v(" "),n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],staticClass:"cursor-pointer",on:{click:t.toggleMenu}},[n("font-awesome-icon",{staticClass:"text-base text-gray-600",attrs:{icon:t.faEllipsisH}})],1),t._v(" "),t.dropdownMenuShown?n("div",{staticClass:"absolute rounded shadow-md right-0 top-0 mt-6 mr-4 py-1 text-indigo-800 bg-white"},[n("div",{staticClass:"cursor-pointer hover:bg-indigo-200 px-4 py-2",on:{click:t.editTask}},[t._v("\n            Edit\n          ")]),t._v(" "),n("div",{staticClass:"cursor-pointer hover:bg-indigo-200 px-4 py-2",on:{click:t.deleteTask}},[t._v("\n            Delete\n          ")])]):t._e()]),t._v(" "),n("div",{staticClass:"text-2xl text-gray-700 text-center font-semibold px-8 py-4"},[t._v("\n        "+t._s(t.task.name)+"\n      ")]),t._v(" "),n("div",{staticClass:"bg-white flex flex-row flex-wrap lg:flex-no-wrap justify-between pt-4"},[n("div",[n("div",{staticClass:"text-sm text-gray-600 px-8"},[t._v("\n            Assignee\n          ")]),t._v(" "),n("div",{staticClass:"px-8"},[t.task.assigned_to?n("a",{staticClass:"py-2",attrs:{href:"/users/"+t.task.user.username}},[t.task.assigned_to?n("img",{staticClass:"rounded-full w-8 h-8 mx-2 self-start",attrs:{src:t.generateUrl(t.task.user.avatar)}}):t._e()]):n("div",{staticClass:"border-2 rounded-full text-xs w-8 h-8 flex items-center justify-center"},[t._v("N/A")])])]),t._v(" "),n("div",{staticClass:"text-center"},[n("div",{staticClass:"text-sm text-gray-600 px-8"},[t._v("\n            Due Date\n          ")]),t._v(" "),n("div",{staticClass:"px-8 py-2 text-gray-900"},[t._v("\n            "+t._s(t.dueOn(t.task.due_on))+"\n          ")])]),t._v(" "),n("div",{staticClass:"text-center relative"},[n("div",{staticClass:"text-sm text-gray-600 px-8"},[t._v("\n            Status\n          ")]),t._v(" "),n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeStatusMenu,expression:"closeStatusMenu"}],staticClass:"px-4 py-1 mt-1 text-gray-900 font-semibold rounded-full cursor-pointer",style:"background-color: "+t.task.status.color,on:{click:t.toggleStatusMenu}},[t._v("\n            "+t._s(t.task.status.name)+"\n          ")]),t._v(" "),t.statusMenuShown?n("div",{staticClass:"absolute rounded shadow-md mt-2 py-1 text-left text-indigo-800 bg-gray-900"},t._l(t.statuses,function(e){return n("div",{staticClass:"cursor-pointer hover:bg-white font-semibold px-4 py-2",style:"color: "+e.color,on:{click:function(n){return t.changeStatus(e.id)}}},[t._v("\n              "+t._s(e.name)+"\n            ")])}),0):t._e()]),t._v(" "),n("div",{staticClass:"text-center"},[n("div",{staticClass:"text-sm text-gray-600 px-8"},[t._v("\n            Related To\n          ")]),t._v(" "),t.task.related_to&&t.task.related?n("a",{staticClass:"px-8 py-2 flex items-center justify-center",class:[t.task.related_to?"text-blue-500 underline":"text-gray-600"],attrs:{href:"/"+t.resourceType+"s/"+t.resourceId+"?tool=tasks&id="+t.task.related_to,title:t.task.related.name}},[t._v("\n            "+t._s(t._f("clip")(t.task.related.name))+"\n          ")]):n("span",[t._v("None")])])]),t._v(" "),n("div",{staticClass:"bg-white text-sm text-gray-600 px-8 pt-4"},[t._v("\n        Details\n      ")]),t._v(" "),n("div",{staticClass:"bg-white text-gray-900 text-lg px-8 py-2"},[t._v("\n        "+t._s(t.task.notes)+"\n      ")]),t._v(" "),n("div",{staticClass:"bg-white text-sm text-gray-600 px-8 pt-4"},[t._v("\n        Tags\n      ")]),t._v(" "),n("div",{staticClass:"bg-white flex flex-row flex-wrap justify-start px-8 py-2 pb-8"},[0===t.task.tags.length?n("div",{staticClass:"text-gray-700"},[t._v("No Tags")]):t._l(t.task.tags,function(e){return n("div",{staticClass:"bg-teal-200 px-3 py-1 rounded-full text-teal-800 font-medium text-sm mr-4"},[t._v(t._s(e.label))])})],2),t._v(" "),n("div",{staticClass:"flex flex-row justify-around bg-gray-200 py-4 text-gray-600 text-center"},[n("div",{staticClass:"w-1/2",class:["comments"===t.activeColumn?"border-teal-500 text-teal-500 border-b-2 pb-4 -mb-4":"cursor-pointer"],on:{click:function(e){return t.showColumn("comments")}}},[t._v("\n          Comments\n        ")]),t._v(" "),n("div",{staticClass:"w-1/2",class:["progress"===t.activeColumn?"border-teal-500 text-teal-500 border-b-2 pb-4 -mb-4":"cursor-pointer"],on:{click:function(e){return t.showColumn("progress")}}},[t._v("\n          Progress\n        ")])]),t._v(" "),n("div",{staticClass:"px-2 md:px-8"},[n("comment-box",{attrs:{show:"comments"===t.activeColumn,resourceType:"task",resourceId:t.task.id}}),t._v(" "),n("progress-box",{attrs:{show:"progress"===t.activeColumn,resourceType:"task",resourceId:t.task.id}})],1)]),t._v(" "),n("div",{staticClass:"h-16"})]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",class:{hidden:!t.taskDetailsShown},on:{click:function(e){return t.closeTaskDetails(!1)}}})]):t._e()},[],!1,null,null,null).exports,k=n("3+fl"),C=n("17fY");function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}function A(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){q(o,i,r,s,a,"next",t)}function a(t){q(o,i,r,s,a,"throw",t)}s(void 0)})}}var E,S,T,j={components:{createTaskForm:h,taskDetails:x,Datepicker:o.a},props:{resource:{required:!0,type:Object},resourceType:{required:!0,type:String},activeTab:{required:!0,type:String},activeId:{required:!1,type:Number}},data:function(){return{createTaskFormShown:!1,taskDetailsShown:!1,tasks:[],task:{},statuses:[],index:null,filterShown:!1,statusFilter:null,userFilter:"",tagFilter:"",dateFilter:null,authenticated:authenticated,faQuestionCircle:k.faQuestionCircle,faChevronDown:a.faChevronDown,faSpinner:C.faSpinner}},created:(T=A(r.a.mark(function t(){var e,n=this;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAllStatuses();case 2:return this.statuses=t.sent,this.statusFilter=this.statuses.find(function(t){return"To Do"===t.name}).id,t.next=6,this.getAllTasks(!0);case 6:this.tasks=t.sent,e=new URL(location.href).searchParams.get("id"),this.tasks&&(this.task=this.tasks.find(function(t){return t.id===parseInt(e)}),this.tasks.some(function(t,i){return n.index=i,t.id==e})),e&&(this.taskDetailsShown=!0);case 10:case"end":return t.stop()}},t,this)})),function(){return T.apply(this,arguments)}),watch:{activeTab:function(){this.getAllTasks(!1)},selectedCycleId:function(){this.getAllTasks(!0)},statusFilter:function(){this.getAllTasks(!0)},userFilter:function(){this.getAllTasks(!0)},tagFilter:function(){this.getAllTasks(!0)},dateFilter:function(){this.getAllTasks(!0)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){O(t,e,n[e])})}return t}({},Object(s.c)({selectedCycleId:function(t){return t.cycle.selectedCycle?t.cycle.selectedCycle.id:0},members:function(t){return t.members},tags:function(t){return t.tags}})),methods:{dueOn:function(t){return luxon.DateTime.fromSQL(t).toFormat("d LLL")},showCreateTaskForm:function(){var t=this;this.createTaskFormShown=!0,this.$nextTick(function(){t.$refs.taskform.$refs.focusInput.focus()})},closeCreateTaskForm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!t||0!==this.selectedCycleId&&this.selectedCycleId!==t.cycle_id?!e||0!==this.selectedCycleId&&this.selectedCycleId!==e.cycle_id||this.tasks.splice(this.index,1,e):this.tasks.push(t),this.createTaskFormShown=!1,this.task=null},getAllTasks:(S=A(r.a.mark(function t(){var e,n,i,o=arguments;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]&&o[0],t.prev=1,"tasks"!==this.activeTab||!(this.tasks.length<1||e)){t.next=9;break}return t.next=5,axios({url:"/tasks",params:{resource_type:this.resourceType,resource_id:this.resource.id,cycle_id:0!==this.selectedCycleId?this.selectedCycleId:null,status_id:this.statusFilter,assigned_to:this.userFilter,tag_id:this.tagFilter,due_on:this.dateFilter?window.luxon.DateTime.fromISO(this.dateFilter.toISOString()).toISODate():null}});case 5:return n=t.sent,i=n.data,this.tasks=i.tasks,t.abrupt("return",i.tasks);case 9:return t.abrupt("return",[]);case 12:t.prev=12,t.t0=t.catch(1),console.error(t.t0);case 15:case"end":return t.stop()}},t,this,[[1,12]])})),function(){return S.apply(this,arguments)}),getAllStatuses:(E=A(r.a.mark(function t(){var e,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(this.statuses.length<1)){t.next=7;break}return t.next=4,axios({url:"/statuses"});case 4:return e=t.sent,n=e.data,t.abrupt("return",n.statuses);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error(t.t0);case 12:case"end":return t.stop()}},t,this,[[0,9]])})),function(){return E.apply(this,arguments)}),showTaskDetails:function(t){this.index=t,this.task=this.tasks[t],this.taskDetailsShown=!0},closeTaskDetails:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.taskDetailsShown=!1,t?this.createTaskFormShown=!0:this.task=null},deleteTask:function(t){this.tasks.splice(t,1)},updateStatus:function(t){this.$set(this.tasks,t.index,t.task),this.task=t.task},selectStatusFilter:function(t){this.statusFilter=this.statusFilter===t?null:t},clearUserFilter:function(){this.userFilter=""},clearTagFilter:function(){this.tagFilter=""},clearDateFilter:function(){this.dateFilter=null},toggleFilter:function(){this.filterShown=!this.filterShown}}},N=Object(f.a)(j,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"tasks"===t.activeTab?n("div",{staticClass:"w-full"},[n("create-task-form",{ref:"taskform",attrs:{resource:t.resource,resourceType:t.resourceType,"form-shown":t.createTaskFormShown,tasks:t.tasks,task:t.task},on:{close:t.closeCreateTaskForm}}),t._v(" "),t.task?n("task-details",{attrs:{index:t.index,resourceType:t.resourceType,resourceId:t.resource.id,task:t.task,taskDetailsShown:t.taskDetailsShown,statuses:t.statuses},on:{"status-change":t.updateStatus,delete:t.deleteTask,close:t.closeTaskDetails}}):t._e(),t._v(" "),t.authenticated?n("div",{staticClass:"text-center mb-4"},[n("button",{staticClass:"no-underline p-3 my-4 bg-white text-center text-base text-teal-500 rounded shadow",on:{click:t.showCreateTaskForm}},[t._v(t._s(t._f("localize")("Create Task")))])]):t._e(),t._v(" "),n("div",{staticClass:"border-indigo-300 border-2 shadow rounded px-8 py-4 my-4"},[n("div",{staticClass:"flex justify-between items-center"},[n("div"),t._v(" "),n("div",{staticClass:"text-gray-700 text-lg "},[t._v(t._s(t._f("localize")("Filters")))]),t._v(" "),n("div",{staticClass:"w-8 text-xs text-blue-700 font-medium cursor-pointer",on:{click:t.toggleFilter}},[t._v(t._s(t.filterShown?"Hide":"Show"))])]),t._v(" "),t.filterShown?n("div",{staticClass:"border-t-2"},[n("div",{staticClass:"pb-1 pt-2"},[t._v("Status")]),t._v(" "),n("div",{staticClass:"inline-flex rounded shadow"},t._l(t.statuses,function(e,i){return n("div",{staticClass:"p-2 cursor-pointer",class:[t.statusFilter===e.id?"bg-indigo-200 text-indigo-800 font-medium":"bg-gray-100",0===i?"rounded-l":"border-l-2",i+1===t.statuses.length?"rounded-r":""],on:{click:function(n){return t.selectStatusFilter(e.id)}}},[t._v("\n          "+t._s(e.name)+"\n        ")])}),0),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap text-gray-700"},[n("div",{staticClass:"p-4 pl-0"},[n("div",{staticClass:"pb-1 flex justify-between items-center"},[n("div",{},[t._v("Assigned To")]),t._v(" "),n("div",{staticClass:"text-xs font-medium border-b border-teal-500 cursor-pointer",on:{click:t.clearUserFilter}},[t._v("Clear")])]),t._v(" "),n("div",{staticClass:"flex flex-row items-center relative w-64"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.userFilter,expression:"userFilter"}],staticClass:"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-1 px-4 pr-8",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.userFilter=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:"",value:""}},[t._v(t._s(t._f("localize")("Select a User")))]),t._v(" "),t._l(t.members,function(e){return[n("option",{staticClass:"my-2 text-lg",domProps:{value:e.user_id}},[t._v(t._s(e.name))])]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"pointer-events-none items-center text-gray-600 absolute right-0 mr-3",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{staticClass:"p-4"},[n("div",{staticClass:"pb-1 flex justify-between items-center"},[n("div",{},[t._v("Tags")]),t._v(" "),n("div",{staticClass:"text-xs font-medium border-b border-teal-500 cursor-pointer",on:{click:t.clearTagFilter}},[t._v("Clear")])]),t._v(" "),n("div",{staticClass:"flex flex-row items-center relative w-64"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.tagFilter,expression:"tagFilter"}],staticClass:"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-1 px-4 pr-8",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.tagFilter=e.target.multiple?n:n[0]}}},[n("option",{attrs:{selected:"",disabled:"",hidden:"",value:""}},[t._v(t._s(t._f("localize")("Select a Tag")))]),t._v(" "),t._l(t.tags,function(e){return[n("option",{staticClass:"my-2 text-lg",domProps:{value:e.tag_id}},[t._v(t._s(e.label))])]})],2),t._v(" "),n("font-awesome-icon",{staticClass:"pointer-events-none items-center text-gray-600 absolute right-0 mr-3",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{staticClass:"p-4"},[n("div",{staticClass:"pb-1 flex justify-between items-center"},[n("div",{},[t._v("Due On")]),t._v(" "),n("div",{staticClass:"text-xs font-medium border-b border-teal-500 cursor-pointer",on:{click:t.clearDateFilter}},[t._v("Clear")])]),t._v(" "),n("datepicker",{ref:"dueOnDate",attrs:{placeholder:"Select Date",format:"yyyy-MM-dd","input-class":"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-1 px-4 pr-8","wrapper-class":""},model:{value:t.dateFilter,callback:function(e){t.dateFilter=e},expression:"dateFilter"}})],1)])]):t._e()]),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap items-start lg:-mx-2 xl:mx-0"},t._l(t.tasks,function(e,i){return n("div",{key:e.id,staticClass:"bg-white rounded shadow my-4 md:mx-6 lg:mx-2 xl:mx-4 p-4 w-full md:w-72 xl:w-64  cursor-pointer",on:{click:function(e){return t.showTaskDetails(i)}}},[n("div",{staticClass:"flex justify-between items-center"},[n("p",{staticClass:"text-xs text-gray-700 flex flex-col"},[n("span",{staticClass:"w-10 border-t-4",style:"border-color:"+e.status.color}),t._v(" "),n("span",{staticClass:"text-xs"},[t._v("Due on")]),t._v(" "),n("span",{staticClass:"text-sm text-indigo-700 font-medium"},[t._v(t._s(t.dueOn(e.due_on)))])]),t._v(" "),e.assigned_to?n("img",{staticClass:"rounded-full w-8 h-8",attrs:{src:t.generateUrl(e.user.avatar),title:e.user.name}}):n("font-awesome-icon",{staticClass:"text-gray-500 fa-2x",attrs:{icon:t.faQuestionCircle,title:"Not Assigned"}})],1),t._v(" "),n("div",{staticClass:"text-gray-700 text-left pt-2"},[n("p",{staticClass:"font-medium text-lg overflow-hidden"},[t._v(t._s(e.name))])])])}),0),t._v(" "),0===t.tasks.length?n("div",{staticClass:"flex flex-col items-center pt-8"},[n("div",{staticClass:"pb-4"},[t._v("Don't you have Task to do? Go ahead, create one")]),t._v(" "),n("img",{staticClass:"w-96",attrs:{src:"/image/tasks.svg",alt:"task list"}})]):t._e()],1):t._e()},[],!1,null,null,null);e.a=N.exports},IXxz:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=t.scanner.TOKENS,n=t.parser,i=n.TOKENS,r=n.State,o=i.Base,s=t.parser.start,a=e.DOMAIN,l=e.LOCALHOST,c=e.NUM,u=e.SLASH,d=e.TLD,f=e.UNDERSCORE,h=e.DOT,p=e.AT;function g(t){this.v=t}t.inherits(o,g,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var v=s.jump(e.AT),m=new r,y=new r(g),b=new r,w=new r;v.on(f,m),m.on(f,m).on(h,m),v.on(a,y).on(l,y).on(d,y).on(c,y),m.on(a,y).on(l,y).on(d,y).on(c,y),y.on(a,y).on(l,y).on(d,y).on(c,y).on(f,y),y.on(u,b).on(h,b).on(p,b),b.on(f,w),w.on(f,w),b.on(a,y).on(l,y).on(d,y).on(c,y),w.on(a,y).on(l,y).on(d,y).on(c,y)}},JUw6:function(t,e,n){"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(t.prototype);for(var r in n)i[r]=n[r];return i.constructor=e,e.prototype=i,e}},KDdg:function(t,e,n){"use strict";var i=n("L2JU");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o={props:{resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number}},data:function(){return{files:[]}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},Object(i.b)(["showNotification"]),{selectFiles:function(){this.$refs.files.click()},filesSelected:function(){this.files=this.$refs.files.files;for(var t=new FormData,e=0;e<this.files.length;e++){var n=this.files[e];t.append("files["+e+"]",n)}t.append("group_type",this.resourceType),t.append("group_id",this.resourceId),this.submitFiles(t)},submitFiles:function(t){var e=this;axios.post("/files",t,{headers:{"Content-Type":"multipart/form-data"}}).then(function(t){e.$emit("on-success",!0),e.showNotification({type:t.data.status,message:t.data.message})}).catch(function(t){e.showNotification({type:t.response.data.status,message:t.response.data.message})})}})},s=n("KHd+"),a=Object(s.a)(o,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"py-4"},[e("div",[e("label",{attrs:{for:"file-upload"}}),this._v(" "),e("input",{ref:"files",staticClass:"hidden",attrs:{type:"file",name:"file-upload",multiple:""},on:{change:this.filesSelected}}),this._v(" "),e("button",{staticClass:"bg-teal-400 text-white p-3 rounded shadow-md",on:{click:this.selectFiles}},[this._v("Upload Files")])])])},[],!1,null,null,null).exports,l=n("wHSu"),c={props:{file:{required:!0,type:Object},fileModalShown:{required:!0,type:Boolean}},data:function(){return{faTimes:l.z}},methods:{closeFileModal:function(){this.$emit("close")}}},u=Object(s.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.fileModalShown?n("div",[n("div",{staticClass:"absolute container mx-auto md:max-w-2xl lg:max-w-4xl xl:max-w-6xl z-40 mt-20 pb-20 top-0"},[n("div",{staticClass:"bg-gray-100 rounded-lg shadow-xl overflow-hidden"},[n("div",{staticClass:"px-8 py-6 flex items-center"},[n("div",[n("img",{staticClass:"rounded-full w-12 h-12 mr-2 self-start",attrs:{src:t.generateUrl(t.file.owner.avatar)}})]),t._v(" "),n("div",{staticClass:"flex flex-col flex-grow"},[n("div",{staticClass:"text-lg"},[t._v("\n            "+t._s(t.file.name)+"\n          ")]),t._v(" "),n("div",{staticClass:"text-sm"},[t._v("\n            by\n            "),n("a",{staticClass:"text-blue-700 font-medium text-base",attrs:{href:t.file.owner.username}},[t._v(" "+t._s(t.file.owner.name))]),t._v(" on \n            "),n("span",{staticClass:"text-base"},[t._v(" "+t._s(t.file.date))])])]),t._v(" "),n("div",{staticClass:"cursor-pointer",on:{click:function(e){return t.closeFileModal()}}},[n("font-awesome-icon",{staticClass:"text-base text-gray-700",attrs:{icon:t.faTimes}})],1)]),t._v(" "),"application/pdf"===t.file.mime_type?n("object",{staticClass:"w-full h-80-vh",attrs:{data:"/storage/"+t.file.path,type:"application/pdf"}}):n("img",{staticClass:"w-full object-cover",attrs:{src:"/storage/"+t.file.path,alt:"file.name"}})])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",class:{hidden:!t.fileModalShown},on:{click:function(e){return t.closeFileModal()}}})]):t._e()},[],!1,null,null,null).exports;function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={props:{file:{required:!0,type:Object},index:{required:!0,type:Number}},data:function(){return{dropdownMenuShown:!1,user:user,faEllipsisH:l.m,faFilePdf:l.q}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){d(t,e,n[e])})}return t}({},Object(i.b)(["showNotification"]),{showFile:function(){this.$emit("show",this.index)},deleteFile:function(){var t=this;axios.delete("/files/".concat(this.file.id)).then(function(e){t.$emit("deleted",t.index),t.dropdownMenuShown=!1,t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.dropdownMenuShown=!1,t.showNotification({type:e.response.data.status,message:e.response.data.message})})},toggleFileMenu:function(){this.dropdownMenuShown=!this.dropdownMenuShown},hideFileMenu:function(){this.dropdownMenuShown=!1}})},h={components:{fileUpload:a,fileModal:u,file:Object(s.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rounded-lg w-80 flex flex-col justify-center items-center m-6 shadow-md"},[n("div",{staticClass:"bg-gray-800 w-full overflow-hidden h-48 flex justify-center items-center rounded-t-lg cursor-pointer",on:{click:t.showFile}},["application/pdf"===t.file.mime_type?n("font-awesome-icon",{staticClass:"w-full text-6xl text-white",attrs:{icon:t.faFilePdf}}):n("img",{staticClass:"w-full",attrs:{src:"/storage/"+t.file.path,alt:""}})],1),t._v(" "),n("div",{staticClass:"bg-gray-100 w-full flex-grow flex items-center justify-center text-center rounded-b-lg p-4 text-sm text-gray-800"},[n("div",{staticClass:"w-full truncate",attrs:{title:t.file.name}},[t._v("\n      "+t._s(t.file.name)+"\n    ")]),t._v(" "),n("div",{staticClass:"relative pl-2"},[t.file.owner_id===t.user.id?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideFileMenu,expression:"hideFileMenu"}],staticClass:"cursor-pointer",on:{click:t.toggleFileMenu}},[n("font-awesome-icon",{staticClass:"text-white text-xl bg-gray-600 rounded-full p-1",attrs:{icon:t.faEllipsisH}})],1):t._e(),t._v(" "),t.file.owner_id===t.user.id&&t.dropdownMenuShown?n("div",{staticClass:"absolute rounded shadow-lg top-0 mt-8 -ml-8 p-3 text-gray-800 bg-white hover:bg-indigo-200 left-0 z-10"},[n("div",{staticClass:"cursor-pointer",on:{click:t.deleteFile}},[t._v("\n          Delete\n        ")])]):t._e()])])])},[],!1,null,null,null).exports},props:{resource:{required:!0,type:Object},resourceType:{required:!0,type:String},activeTab:{required:!0,type:String}},data:function(){return{files:[],file:{},fileModalShown:!1,index:null,dropdownMenuShown:!1,user:user,authenticated:authenticated}},mounted:function(){this.getAllFiles()},watch:{activeTab:function(){this.getAllFiles(!1)}},methods:{getAllFiles:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"files"!==this.activeTab||0!==this.files.length&&!e||axios.get("/files",{params:{group_type:this.resourceType,group_id:this.resource.id}}).then(function(e){t.files=e.data.files}).catch(function(t){console.log(t)})},deleteFile:function(t){this.files.splice(t,1)},showFile:function(t){this.file=this.files[t],this.index=t,this.fileModalShown=!0},closeFileModal:function(){this.fileModalShown=!1}}},p=Object(s.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"files"===t.activeTab?n("div",{staticClass:"w-full"},[t.file?n("file-modal",{attrs:{fileModalShown:t.fileModalShown,file:t.file},on:{close:t.closeFileModal}}):t._e(),t._v(" "),n("div",[t.authenticated?n("div",{staticClass:"flex justify-center pb-4"},[n("file-upload",{attrs:{resourceType:t.resourceType,resourceId:t.resource.id},on:{"on-success":t.getAllFiles}})],1):t._e(),t._v(" "),n("div",{},[n("ul",{staticClass:"flex flex-row flex-wrap justify-center list-reset"},t._l(t.files,function(e,i){return n("li",{key:e.id},[n("file",{attrs:{file:e,index:i},on:{show:t.showFile,deleted:t.deleteFile}})],1)}),0)]),t._v(" "),0===t.files.length?n("div",{staticClass:"flex flex-col items-center"},[n("div",{staticClass:"pb-4"},[t._v("Wanna share some resource with your teammates? Upload it then.")]),t._v(" "),n("img",{staticClass:"w-80",attrs:{src:"/image/files.svg",alt:"files"}})]):t._e()])],1):t._e()},[],!1,null,null,null);e.a=p.exports},"KHd+":function(t,e,n){"use strict";function i(t,e,n,i,r,o,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,"a",function(){return i})},L2JU:function(t,e,n){"use strict";(function(t){n.d(e,"c",function(){return y}),n.d(e,"b",function(){return _});var i=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){r(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,s);var a,l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(t){!function t(e,n,i){if(n.update(i),i.modules)for(var r in i.modules){if(!n.getChild(r))return;t(e.concat(r),n.getChild(r),i.modules[r])}}([],this.root,t)},l.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var s=new o(e,n);0===t.length?this.root=s:this.get(t.slice(0,-1)).addChild(t[t.length-1],s),e.modules&&r(e.modules,function(e,r){i.register(t.concat(r),e,n)})},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var c=function(t){var e=this;void 0===t&&(t={}),!a&&"undefined"!=typeof window&&window.Vue&&m(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new a;var o=this,s=this.dispatch,c=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return c.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;p(this,u,[],this._modules.root),h(this,u),n.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:a.config.devtools)&&function(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){i.emit("vuex:mutation",t,e)}))}(this)},u={state:{configurable:!0}};function d(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),h(t,n,e)}function h(t,e,n){var i=t._vm;t.getters={};var o=t._wrappedGetters,s={};r(o,function(e,n){s[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var l=a.config.silent;a.config.silent=!0,t._vm=new a({data:{$$state:e},computed:s}),a.config.silent=l,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit(function(){i._data.$$state=null}),a.nextTick(function(){return i.$destroy()}))}function p(t,e,n,i,r){var o=!n.length,s=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[s]=i),!o&&!r){var l=g(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){a.set(l,c,i.state)})}var u=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=v(n,i,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=e+l),t.dispatch(l,s)},commit:i?t.commit:function(n,i,r){var o=v(n,i,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=e+l),t.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){var n={},i=e.length;return Object.keys(t.getters).forEach(function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return g(t.state,n)}}}),r}(t,s,n);i.forEachMutation(function(e,n){!function(t,e,n,i){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,i.state,e)})}(t,s+n,e,u)}),i.forEachAction(function(e,n){var i=e.root?n:s+n,r=e.handler||e;!function(t,e,n,i){(t._actions[e]||(t._actions[e]=[])).push(function(e,r){var o,s=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e,r);return(o=s)&&"function"==typeof o.then||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):s})}(t,i,r,u)}),i.forEachGetter(function(e,n){!function(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}(t,s+n,e,u)}),i.forEachChild(function(i,o){p(t,e,n.concat(o),i,r)})}function g(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function v(t,e,n){var i;return null!==(i=t)&&"object"==typeof i&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function m(t){a&&t===a||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(a=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){},c.prototype.commit=function(t,e,n){var i=this,r=v(t,e,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,i.state)}))},c.prototype.dispatch=function(t,e){var n=this,i=v(t,e),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.filter(function(t){return t.before}).forEach(function(t){return t.before(s,n.state)})}catch(t){}return(a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o)).then(function(t){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(s,n.state)})}catch(t){}return t})}},c.prototype.subscribe=function(t){return d(t,this._subscribers)},c.prototype.subscribeAction=function(t){return d("function"==typeof t?{before:t}:t,this._actionSubscribers)},c.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=g(e.state,t.slice(0,-1));a.delete(n,t[t.length-1])}),f(this)},c.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,u);var y=k(function(t,e){var n={};return x(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=C(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0}),n}),b=k(function(t,e){var n={};return x(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n}),w=k(function(t,e){var n={};return x(e).forEach(function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0}),n}),_=k(function(t,e){var n={};return x(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n});function x(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var O={Store:c,install:m,version:"3.1.1",mapState:y,mapMutations:b,mapGetters:w,mapActions:_,createNamespacedHelpers:function(t){return{mapState:y.bind(null,t),mapGetters:w.bind(null,t),mapMutations:b.bind(null,t),mapActions:_.bind(null,t)}}};e.a=O}).call(this,n("yLpj"))},LXjW:function(t,e,n){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var i=n("JUw6"),r=a(n("MW5i")),o=a(n("t/6/")),s=a(n("QSjB"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var l=function(t){return s.run(o.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=l(t),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||e&&o.type!==e||i.push(o.toObject())}return i},e.inherits=i.inherits,e.options=r,e.parser=s,e.scanner=o,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=l(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=l},MW5i:function(t,e,n){"use strict";e.__esModule=!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={defaultProtocol:"http",events:null,format:s,formatHref:s,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:r.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:r.events,this.format=t.hasOwnProperty("format")?t.format:r.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:r.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:r.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:r.tagName,this.target=t.hasOwnProperty("target")?t.target:r.target,this.validate=t.hasOwnProperty("validate")?t.validate:r.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||r.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||r.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:r.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function s(t){return t}e.defaults=r,e.Options=o,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},o.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var o=void 0,s=this[t];if(!s)return s;switch(void 0===s?"undefined":i(s)){case"function":return s(e,n.type);case"object":return"function"==typeof(o=s.hasOwnProperty(n.type)?s[n.type]:r[t])?o(e,n.type):o}return s},getObject:function(t,e,n){var i=this[t];return"function"==typeof i?i(e,n.type):i}}},MgSq:function(t,e,n){"use strict";var i=n("L2JU"),r=n("wHSu");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=null,a={props:{message:{required:!0,type:Object},user:{required:!0,type:Object},index:{required:!0,type:Number},last:{required:!0,type:Boolean},direct:{required:!1,type:Boolean,default:!1}},data:function(){return{dropdownMenuShown:!1,faEllipsisH:r.m}},computed:{displayDate:function(){return!this.message.system&&this.showDate(this.message.created_at)}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}({},Object(i.b)(["showNotification"]),{deleteMessage:function(){var t=this,e=this.direct?"direct-messages":"messages";axios.delete("/".concat(e,"/").concat(this.message.id)).then(function(e){t.$emit("deleted",t.index),t.dropdownMenuShown=!1,t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.dropdownMenuShown=!1,t.showNotification({type:e.response.data.status,message:e.response.data.message})})},toggleMessageMenu:function(){this.dropdownMenuShown=!this.dropdownMenuShown},hideMessageMenu:function(){this.dropdownMenuShown=!1},showDate:function(t){var e=luxon.DateTime.fromSQL(t).toLocaleString(luxon.DateTime.DATE_MED);return(null===s||s!==e)&&(s=e,!0)},getDate:function(t){return luxon.DateTime.fromSQL(t).toLocaleString(luxon.DateTime.DATE_MED)},getTime:function(t){return this.user.timezone?luxon.DateTime.fromSQL(t,{zone:"UTC"}).setZone(this.user.timezone).toLocaleString(luxon.DateTime.TIME_SIMPLE):luxon.DateTime.fromSQL(t,{zone:"UTC"}).setZone("local").toLocaleString(luxon.DateTime.TIME_SIMPLE)}})},l=n("KHd+"),c=Object(l.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col"},[t.displayDate?n("div",{staticClass:"w-full flex flex-row justify-center py-2 bg-blue-100"},[n("div",{staticClass:"text-gray-600 text-sm font-semibold text-center px-4"},[t._v("\n      "+t._s(t.getDate(t.message.created_at))+"\n    ")])]):t._e(),t._v(" "),t.message.system?n("div",{staticClass:"flex flex-row justify-center"},[n("div",{staticClass:"bg-blue-lighter text-gray-800 text-xs text-center px-4 rounded p-2"},[t._v("\n      "+t._s(t.message.body)+"\n    ")])]):n("div",{staticClass:"flex flex-row text-gray-800 p-4 border-t",class:{"pb-12":t.last,"":t.message.user.id===t.user.id}},[n("div",{staticClass:"flex flex-col items-center relative",class:[t.message.user.id===t.user.id?"flex-col-reverse justify-end":""]},[n("img",{staticClass:"w-10 h-10 rounded-full",class:[t.message.user.id===t.user.id?"order-1":""],attrs:{src:t.generateUrl(t.message.user.avatar),alt:t.message.user.name}}),t._v(" "),t.message.user.id===t.user.id?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMessageMenu,expression:"hideMessageMenu"}],staticClass:"cursor-pointer",on:{click:t.toggleMessageMenu}},[n("font-awesome-icon",{staticClass:"text-gray-500",attrs:{icon:t.faEllipsisH}})],1):t._e(),t._v(" "),t.message.user.id===t.user.id&&t.dropdownMenuShown?n("div",{staticClass:"absolute rounded shadow-lg top-0 mt-16 mr-2 p-3 text-gray-800 bg-white hover:bg-indigo-200 left-0 z-10"},[n("div",{staticClass:"cursor-pointer",on:{click:function(e){return t.deleteMessage()}}},[t._v("\n          Delete\n        ")])]):t._e()]),t._v(" "),n("div",{staticClass:"mx-4 w-3/5 md:w-5/6"},[n("div",{staticClass:"text-xs flex flex-row px-3"},[n("div",{staticClass:"pr-1 font-medium",class:[t.message.user.id===t.user.id?"text-pink-500":"text-blue-500"]},[t._v("\n          "+t._s(t.message.user.name)+"\n        ")]),t._v(" "),n("div",[t._v("•")]),t._v(" "),n("div",{staticClass:"pl-1"},[t._v("\n          "+t._s(t.getTime(t.message.created_at))+"\n        ")])]),t._v(" "),n("div",{directives:[{name:"linkify",rawName:"v-linkify"}],staticClass:"rounded-lg p-3 pt-0 -mt-2 leading-none text-gray-800 break-words whitespace-pre-line",class:[t.message.user_id===t.user.id?"rounded-tr-none":"rounded-tl-none"]},[t._v("\n        "+t._s(t.message.body)+"\n      ")])])])])},[],!1,null,null,null);e.a=c.exports},NCnY:function(t,e,n){"use strict";var i=n("L2JU"),r=n("o0o1"),o=n.n(r),s=n("wHSu");function a(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c,u,d={props:{shown:{required:!0,type:Boolean},resourceId:{required:!0,type:Number},resourceType:{required:!0,type:String}},data:function(){return{tagSuggestionShown:!1,createFormShown:!1,availableTags:[],tags:[],label:"",faTimesCircle:s.A,faTags:s.x,faPlus:s.r,faCaretDown:s.e}},watch:{shown:function(t){t&&this.getTags()}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){l(t,e,n[e])})}return t}({},Object(i.b)(["showNotification"]),{getTags:(c=o.a.mark(function t(){var e,n,i=this;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this.availableTags.length){t.next=7;break}return t.next=3,axios({url:"/groups/tags",params:{group_type:this.resourceType,group_id:this.resourceId}});case 3:e=t.sent,n=e.data,this.tags=n.tags,axios.get("/tags").then(function(t){i.availableTags=t.data.tags.filter(function(t){return-1===i.tags.findIndex(function(e){return e.id===t.id})})}).catch(function(t){console.error(t)});case 7:case"end":return t.stop()}},t,this)}),u=function(){var t=this,e=arguments;return new Promise(function(n,i){var r=c.apply(t,e);function o(t){a(r,n,i,o,s,"next",t)}function s(t){a(r,n,i,o,s,"throw",t)}o(void 0)})},function(){return u.apply(this,arguments)}),addTag:function(t){var e=this;axios.post("/groups/tags/"+t.id,{group_type:this.resourceType,group_id:this.resourceId}).then(function(n){e.tags.push(n.data.tag),e.availableTags=e.availableTags.filter(function(e){return e.id!==t.id})}).catch(function(t){console.error(t)})},toggleTagsSuggestion:function(){this.tagSuggestionShown=!this.tagSuggestionShown},hideTagsSuggestion:function(){this.tagSuggestionShown=!1},deleteTag:function(t){var e=this;axios.delete("/groups/tags/"+t.id,{params:{group_type:this.resourceType,group_id:this.resourceId}}).then(function(n){var i=e.tags.indexOf(t);-1!==i&&(e.tags.splice(i,1),e.availableTags.push(t)),e.showNotification({type:n.data.status,message:n.data.message})}).catch(function(t){e.showNotification({type:t.response.data.status,message:t.response.data.message})})},toggleCreateForm:function(){this.createFormShown=!this.createFormShown},hideCreateForm:function(){this.createFormShown=!1},createNewTag:function(){var t=this;axios.post("/tags",{label:this.label}).then(function(e){t.availableTags.push(e.data.tag),t.createFormShown=!1,t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message})})}})},f=n("KHd+");function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p={components:{tagsSettings:Object(f.a)(d,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.shown?n("div",{staticClass:"bg-gray-100 rounded-b p-8"},[n("div",[n("div",{staticClass:"pb-6 px-2 flex items-center"},[n("div",{staticClass:"w-6 h-6 rounded-full bg-indigo-400 flex items-center justify-center"},[n("font-awesome-icon",{staticClass:"text-white fa-xs",attrs:{icon:t.faTags}})],1),t._v(" "),n("div",{staticClass:"pl-2 text-lg text-gray-600"},[t._v("\n        Select tags you want to be available in this "+t._s(t.resourceType)+"\n      ")])]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideTagsSuggestion,expression:"hideTagsSuggestion"}]},[n("div",{staticClass:"px-2 flex items-center"},[n("input",{staticClass:"px-3 py-2 rounded-l w-64",class:[0===t.availableTags.length?"border-gray-300 border-2":"border-indigo-400 border-2"],attrs:{type:"text",readonly:""},domProps:{value:[0===t.availableTags.length?"No tag left to add":"Add from list of all tags"]},on:{click:t.toggleTagsSuggestion}}),t._v(" "),n("div",{staticClass:"px-3 py-2 rounded-r text-white -ml-1 cursor-pointer",class:[0===t.availableTags.length?"border-gray-300 border-2 bg-gray-300":"border-indigo-400 border-2 bg-indigo-400"],on:{click:t.toggleTagsSuggestion}},[n("font-awesome-icon",{attrs:{icon:t.faCaretDown}})],1)]),t._v(" "),n("div",{staticClass:"mx-2 w-64 bg-white"},[t.tagSuggestionShown&&0!==t.availableTags.length?n("div",{staticClass:"shadow-md border py-1 rounded-b"},t._l(t.availableTags,function(e){return n("div",{staticClass:"px-4 py-2 cursor-pointer -mt-1 hover:bg-teal-400 hover:text-white",on:{click:function(n){return t.addTag(e)}}},[t._v("\n              "+t._s(e.label)+"\n            ")])}),0):t._e()])]),t._v(" "),n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideCreateForm,expression:"hideCreateForm"}],staticClass:"pl-8"},[n("div",{staticClass:"py-2"},[t._v("\n          or,\n          "),n("button",{staticClass:"text-lg text-teal-500 underline pl-2",on:{click:t.toggleCreateForm}},[t._v("Create a New Tag")])]),t._v(" "),t.createFormShown?n("div",{staticClass:"flex shadow-lg"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.label,expression:"label"}],staticClass:"px-3 py-2 rounded-l w-64 border-teal-400 border-2",attrs:{type:"text"},domProps:{value:t.label},on:{input:function(e){e.target.composing||(t.label=e.target.value)}}}),t._v(" "),n("div",{staticClass:"px-3 py-2 rounded-r text-white -ml-1 cursor-pointer border-teal-400 border-2 bg-teal-400",on:{click:t.createNewTag}},[n("font-awesome-icon",{attrs:{icon:t.faPlus}})],1)]):t._e()])]),t._v(" "),n("div",{staticClass:"px-2 pt-8"},[t._v("Tags available in this "+t._s(this.resourceType))]),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap border border-gray-300 rounded mx-2 m-4 p-2"},[0===t.tags.length?n("div",[t._v("No tags selected.")]):t._l(t.tags,function(e){return n("div",{staticClass:"flex items-center mx-1 my-1 py-1 px-3 bg-indigo-200 font-semibold text-indigo-700 rounded-full"},[n("span",{staticClass:"text-sm"},[t._v("\n          "+t._s(e.label)+"\n        ")]),t._v(" "),n("font-awesome-icon",{staticClass:"text-sm text-indigo-700 ml-1 cursor-pointer",attrs:{icon:t.faTimesCircle},on:{click:function(n){return t.deleteTag(e)}}})],1)})],2)])]):t._e()},[],!1,null,null,null).exports},props:{resourceId:{required:!0,type:Number},resourceType:{required:!0,type:String},settings:{required:!0,type:Object}},data:function(){return{activeColumn:"tools",faTimesCircle:s.A,faTools:s.B,faSearch:s.s}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){h(t,e,n[e])})}return t}({},Object(i.b)(["closeComponent"]),{closeModal:function(){this.closeComponent()},toggleToolStatus:function(t,e){var n=this;axios.put("/groups/settings",h({group_type:this.resourceType,group_id:this.resourceId},t,e?0:1)).then(function(t){n.$emit("update-settings",t.data.settings)}).catch(function(t){console.error(t)})},activateThisColumn:function(t){this.activeColumn=t}})},g=Object(f.a)(p,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-2 md:mx-auto md:max-w-4xl bg-white rounded shadow-lg z-30",staticStyle:{top:"10vh",left:"0",right:"0"}},[n("div",{staticClass:"m-auto flex-col flex"},[n("header",{staticClass:"text-gray-600 p-6 rounded flex flex-row justify-between items-center",attrs:{for:"user"}},[n("div"),t._v(" "),n("div",{staticClass:"uppercase tracking-wide font-semibold text-lg"},[t._v("\n          Settings\n        ")]),t._v(" "),n("div",{staticClass:"cursor-pointer",on:{click:t.closeModal}},[n("font-awesome-icon",{staticClass:"text-lg text-red-500 opacity-75",attrs:{icon:t.faTimesCircle}})],1)]),t._v(" "),n("div",[n("div",{staticClass:"flex flex-row text-center text-gray-500"},[n("div",{staticClass:"w-1/2 bg-white font-semibold p-4 rounded-tl",class:["tools"===t.activeColumn?"text-indigo-500 border-indigo-500 border-b-2":"cursor-pointer"],on:{click:function(e){return t.activateThisColumn("tools")}}},[t._v("\n            "+t._s(t._f("localize")("Tools"))+"\n          ")]),t._v(" "),n("div",{staticClass:"w-1/2 bg-white font-semibold p-4 rounded-tl",class:["tags"===t.activeColumn?"text-indigo-500 border-indigo-500 border-b-2":"cursor-pointer"],on:{click:function(e){return t.activateThisColumn("tags")}}},[t._v("\n            "+t._s(t._f("localize")("Tags"))+"\n          ")]),t._v(" "),n("div",{staticClass:"w-1/2 bg-white font-semibold p-4 rounded-tl",class:["status"===t.activeColumn?"text-indigo-500 border-indigo-500 border-b-2":"cursor-pointer"],on:{click:function(e){return t.activateThisColumn("status")}}},[t._v("\n            "+t._s(t._f("localize")("Status"))+"\n          ")])])]),t._v(" "),"tools"===t.activeColumn?n("div",{staticClass:"bg-gray-100 rounded-b p-8"},[n("div",{staticClass:"pb-8"},[n("div",{staticClass:"pb-4 px-2 flex items-center"},[n("div",{staticClass:"w-6 h-6 rounded-full bg-indigo-400 flex items-center justify-center"},[n("font-awesome-icon",{staticClass:"text-white fa-xs",attrs:{icon:t.faTools}})],1),t._v(" "),n("div",{staticClass:"pl-2 text-lg text-gray-600"},[t._v("\n              Enable/Disable Tools on this "+t._s(t.resourceType)+"\n            ")])]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.task_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("task_enabled",t.settings.task_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("Task")])]),t._v(" "),n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.discussion_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("discussion_enabled",t.settings.discussion_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("Discussion")])]),t._v(" "),n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.message_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("message_enabled",t.settings.message_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("Message")])]),t._v(" "),n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.event_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("event_enabled",t.settings.event_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("Event")])]),t._v(" "),n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.file_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("file_enabled",t.settings.file_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("File")])])])]),t._v(" "),n("div",[n("div",{staticClass:"pb-4 px-2 flex items-center"},[n("div",{staticClass:"w-6 h-6 rounded-full bg-indigo-400 flex items-center justify-center"},[n("font-awesome-icon",{staticClass:"text-white fa-xs",attrs:{icon:t.faTools}})],1),t._v(" "),n("div",{staticClass:"pl-2 text-lg text-gray-600"},[t._v("\n              Enable/Disable Roadmap option on this "+t._s(t.resourceType)+"\n            ")])]),t._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"rounded border px-4 py-2 mx-2 relative cursor-pointer",class:[t.settings.roadmap_enabled?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(e){return t.toggleToolStatus("roadmap_enabled",t.settings.roadmap_enabled)}}},[n("span",{staticClass:"cursor-pointer"},[t._v("Roadmap")])])])])]):t._e(),t._v(" "),n("tags-settings",{attrs:{shown:"tags"===t.activeColumn,resourceId:t.resourceId,resourceType:t.resourceType}})],1)]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",on:{click:t.closeModal}})])},[],!1,null,null,null);e.a=g.exports},QSjB:function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var i=n("FlKs"),r=n("vqGb"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),s=n("dlaP"),a=function(t){return new i.TokenState(t)},l=a(),c=a(),u=a(),d=a(),f=a(),h=a(),p=a(),g=a(r.URL),v=a(),m=a(r.URL),y=a(r.URL),b=a(),w=a(),_=a(),x=a(),k=a(),C=a(r.URL),O=a(r.URL),q=a(r.URL),A=a(r.URL),E=a(),S=a(),T=a(),j=a(),N=a(),D=a(),P=a(r.EMAIL),M=a(),L=a(r.EMAIL),I=a(r.MAILTOEMAIL),B=a(),R=a(),z=a(),U=a(),F=a(r.NL);l.on(s.NL,F).on(s.PROTOCOL,c).on(s.MAILTO,u).on(s.SLASH,d),c.on(s.SLASH,d),d.on(s.SLASH,f),l.on(s.TLD,h).on(s.DOMAIN,h).on(s.LOCALHOST,g).on(s.NUM,h),f.on(s.TLD,y).on(s.DOMAIN,y).on(s.NUM,y).on(s.LOCALHOST,y),h.on(s.DOT,p),N.on(s.DOT,D),p.on(s.TLD,g).on(s.DOMAIN,h).on(s.NUM,h).on(s.LOCALHOST,h),D.on(s.TLD,P).on(s.DOMAIN,N).on(s.NUM,N).on(s.LOCALHOST,N),g.on(s.DOT,p),P.on(s.DOT,D),g.on(s.COLON,v).on(s.SLASH,y),v.on(s.NUM,m),m.on(s.SLASH,y),P.on(s.COLON,M),M.on(s.NUM,L);var H=[s.DOMAIN,s.AT,s.LOCALHOST,s.NUM,s.PLUS,s.POUND,s.PROTOCOL,s.SLASH,s.TLD,s.UNDERSCORE,s.SYM,s.AMPERSAND],Y=[s.COLON,s.DOT,s.QUERY,s.PUNCTUATION,s.CLOSEBRACE,s.CLOSEBRACKET,s.CLOSEANGLEBRACKET,s.CLOSEPAREN,s.OPENBRACE,s.OPENBRACKET,s.OPENANGLEBRACKET,s.OPENPAREN];y.on(s.OPENBRACE,w).on(s.OPENBRACKET,_).on(s.OPENANGLEBRACKET,x).on(s.OPENPAREN,k),b.on(s.OPENBRACE,w).on(s.OPENBRACKET,_).on(s.OPENANGLEBRACKET,x).on(s.OPENPAREN,k),w.on(s.CLOSEBRACE,y),_.on(s.CLOSEBRACKET,y),x.on(s.CLOSEANGLEBRACKET,y),k.on(s.CLOSEPAREN,y),C.on(s.CLOSEBRACE,y),O.on(s.CLOSEBRACKET,y),q.on(s.CLOSEANGLEBRACKET,y),A.on(s.CLOSEPAREN,y),E.on(s.CLOSEBRACE,y),S.on(s.CLOSEBRACKET,y),T.on(s.CLOSEANGLEBRACKET,y),j.on(s.CLOSEPAREN,y),w.on(H,C),_.on(H,O),x.on(H,q),k.on(H,A),w.on(Y,E),_.on(Y,S),x.on(Y,T),k.on(Y,j),C.on(H,C),O.on(H,O),q.on(H,q),A.on(H,A),C.on(Y,C),O.on(Y,O),q.on(Y,q),A.on(Y,A),E.on(H,C),S.on(H,O),T.on(H,q),j.on(H,A),E.on(Y,E),S.on(Y,S),T.on(Y,T),j.on(Y,j),y.on(H,y),b.on(H,y),y.on(Y,b),b.on(Y,b),u.on(s.TLD,I).on(s.DOMAIN,I).on(s.NUM,I).on(s.LOCALHOST,I),I.on(H,I).on(Y,B),B.on(H,I).on(Y,B);var V=[s.DOMAIN,s.NUM,s.PLUS,s.POUND,s.QUERY,s.UNDERSCORE,s.SYM,s.AMPERSAND,s.TLD];h.on(V,R).on(s.AT,z),g.on(V,R).on(s.AT,z),p.on(V,R),R.on(V,R).on(s.AT,z).on(s.DOT,U),U.on(V,R),z.on(s.TLD,N).on(s.DOMAIN,N).on(s.LOCALHOST,P),e.State=i.TokenState,e.TOKENS=o,e.run=function(t){for(var e=t.length,n=0,i=[],o=[];n<e;){for(var s=l,a=null,c=null,u=0,d=null,f=-1;n<e&&!(a=s.next(t[n]));)o.push(t[n++]);for(;n<e&&(c=a||s.next(t[n]));)a=null,(s=c).accepts()?(f=0,d=s):f>=0&&f++,n++,u++;if(f<0)for(var h=n-u;h<n;h++)o.push(t[h]);else{o.length>0&&(i.push(new r.TEXT(o)),o=[]),n-=f,u-=f;var p=d.emit();i.push(new p(t.slice(n-u,n)))}}return o.length>0&&i.push(new r.TEXT(o)),i},e.start=l},RBsE:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z";e.definition={prefix:"fas",iconName:"check-circle",icon:[512,512,i,"f058",r]},e.faCheckCircle=e.definition,e.prefix="fas",e.iconName="check-circle",e.width=512,e.height=512,e.ligatures=i,e.unicode="f058",e.svgPathData=r},RkKA:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"/*!\n * Quill Editor v1.3.6\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n  box-sizing: border-box;\n  font-family: Helvetica, Arial, sans-serif;\n  font-size: 13px;\n  height: 50vh;\n  margin: 0px;\n  position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n  visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n  pointer-events: none;\n}\n.ql-clipboard {\n  left: -100000px;\n  height: 1px;\n  overflow-y: hidden;\n  position: absolute;\n  top: 50%;\n}\n.ql-clipboard p {\n  margin: 0;\n  padding: 0;\n}\n.ql-editor {\n  box-sizing: border-box;\n  line-height: 1.42;\n  height: 100%;\n  outline: none;\n  overflow-y: auto;\n  padding: 12px 15px;\n  -o-tab-size: 4;\n     tab-size: 4;\n  -moz-tab-size: 4;\n  text-align: left;\n  white-space: pre-wrap;\n  word-wrap: break-word;\n}\n.ql-editor > * {\n  cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n  margin: 0;\n  padding: 0;\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n  padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n  list-style-type: none;\n}\n.ql-editor ul > li::before {\n  content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n  pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n  pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n  color: #777;\n  cursor: pointer;\n  pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n  content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n  content: '\\2610';\n}\n.ql-editor li::before {\n  display: inline-block;\n  white-space: nowrap;\n  width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n  margin-left: -1.5em;\n  margin-right: 0.3em;\n  text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n  margin-left: 0.3em;\n  margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n  padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n  padding-right: 1.5em;\n}\n.ql-editor ol li {\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n  counter-increment: list-0;\n}\n.ql-editor ol li:before {\n  content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n  counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n  content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n  counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n  content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n  counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n  content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n  counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n  content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n  counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n  counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n  content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n  counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n  counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n  content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n  counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n  counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n  content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n  counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n  counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n  content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n  counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n  counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n  content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n  padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n  padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n  padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n  padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n  padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n  padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n  padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n  padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n  padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n  padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n  padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n  padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n  padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n  padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n  padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n  padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n  padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n  padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n  padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n  padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n  padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n  padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n  padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n  padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n  padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n  padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n  padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n  padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n  padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n  padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n  padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n  padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n  padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n  padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n  padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n  padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n  display: block;\n  max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n  margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n  margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n  background-color: #000;\n}\n.ql-editor .ql-bg-red {\n  background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n  background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n  background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n  background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n  background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n  background-color: #93f;\n}\n.ql-editor .ql-color-white {\n  color: #fff;\n}\n.ql-editor .ql-color-red {\n  color: #e60000;\n}\n.ql-editor .ql-color-orange {\n  color: #f90;\n}\n.ql-editor .ql-color-yellow {\n  color: #ff0;\n}\n.ql-editor .ql-color-green {\n  color: #008a00;\n}\n.ql-editor .ql-color-blue {\n  color: #06c;\n}\n.ql-editor .ql-color-purple {\n  color: #93f;\n}\n.ql-editor .ql-font-serif {\n  font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n  font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n  font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n  font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n  font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n  direction: rtl;\n  text-align: inherit;\n}\n.ql-editor .ql-align-center {\n  text-align: center;\n}\n.ql-editor .ql-align-justify {\n  text-align: justify;\n}\n.ql-editor .ql-align-right {\n  text-align: right;\n}\n.ql-editor.ql-blank::before {\n  color: rgba(0,0,0,0.6);\n  content: attr(data-placeholder);\n  font-style: italic;\n  left: 15px;\n  pointer-events: none;\n  position: absolute;\n  right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n  clear: both;\n  content: '';\n  display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n  background: none;\n  border: none;\n  cursor: pointer;\n  display: inline-block;\n  float: left;\n  height: 24px;\n  padding: 3px 5px;\n  width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n  float: left;\n  height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n  outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n  display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n  color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n  fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n  stroke: #06c;\n}\n@media (pointer: coarse) {\n.ql-snow.ql-toolbar button:hover:not(.ql-active),\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n    color: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n    fill: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n    stroke: #444;\n}\n}\n.ql-snow {\n  box-sizing: border-box;\n}\n.ql-snow * {\n  box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n  display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n  visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n  position: absolute;\n  -webkit-transform: translateY(10px);\n          transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n  cursor: pointer;\n  text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n  -webkit-transform: translateY(-10px);\n          transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n  display: inline-block;\n  vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n  clear: both;\n  content: '';\n  display: table;\n}\n.ql-snow .ql-stroke {\n  fill: none;\n  stroke: #444;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n  fill: none;\n  stroke: #444;\n  stroke-miterlimit: 10;\n  stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n  fill: #444;\n}\n.ql-snow .ql-empty {\n  fill: none;\n}\n.ql-snow .ql-even {\n  fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n  stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n  opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n  display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n  display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n  display: none;\n}\n.ql-snow .ql-editor h1 {\n  font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n  font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n  font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n  font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n  font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n  font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n  text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n  border-left: 4px solid #ccc;\n  margin-bottom: 5px;\n  margin-top: 5px;\n  padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n  background-color: #f0f0f0;\n  border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n  white-space: pre-wrap;\n  margin-bottom: 5px;\n  margin-top: 5px;\n  padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n  font-size: 85%;\n  padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n  background-color: #23241f;\n  color: #f8f8f2;\n  overflow: visible;\n}\n.ql-snow .ql-editor img {\n  max-width: 100%;\n}\n.ql-snow .ql-picker {\n  color: #444;\n  display: inline-block;\n  float: left;\n  font-size: 14px;\n  font-weight: 500;\n  height: 24px;\n  position: relative;\n  vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n  cursor: pointer;\n  display: inline-block;\n  height: 100%;\n  padding-left: 8px;\n  padding-right: 2px;\n  position: relative;\n  width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n  display: inline-block;\n  line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n  background-color: #fff;\n  display: none;\n  min-width: 100%;\n  padding: 4px 8px;\n  position: absolute;\n  white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n  cursor: pointer;\n  display: block;\n  padding-bottom: 5px;\n  padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n  color: #ccc;\n  z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n  fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n  stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n  display: block;\n  margin-top: -1px;\n  top: 100%;\n  z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n  width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n  padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n  right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n  padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n  height: 24px;\n  width: 24px;\n  padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n  padding: 3px 5px;\n  width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n  border: 1px solid transparent;\n  float: left;\n  height: 16px;\n  margin: 2px;\n  padding: 0px;\n  width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n  position: absolute;\n  margin-top: -9px;\n  right: 0;\n  top: 50%;\n  width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n  content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n  width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n  content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n  content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n  content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n  content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n  content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n  content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n  content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n  font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n  font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n  font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n  font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n  font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n  font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n  width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n  content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n  content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n  content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n  font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n  font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n  width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n  content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n  content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n  content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n  content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n  font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n  font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n  font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n  background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n  background-color: #000;\n}\n.ql-toolbar.ql-snow {\n  border: 0 solid #ccc;\n  box-sizing: border-box;\n  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n  padding: 8px;\n  background-color: #bcdefa;\n}\n.ql-toolbar.ql-snow .ql-formats {\n  margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n  border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n  border: 1px solid transparent;\n  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n  border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n  border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n  border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n  border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n  background-color: #fff;\n  border: 1px solid #ccc;\n  box-shadow: 0px 0px 5px #ddd;\n  color: #444;\n  padding: 5px 12px;\n  white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n  content: \"Visit URL:\";\n  line-height: 26px;\n  margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n  display: none;\n  border: 1px solid #ccc;\n  font-size: 13px;\n  height: 26px;\n  margin: 0px;\n  padding: 3px 5px;\n  width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n  display: inline-block;\n  max-width: 200px;\n  overflow-x: hidden;\n  text-overflow: ellipsis;\n  vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n  border-right: 1px solid #ccc;\n  content: 'Edit';\n  margin-left: 16px;\n  padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n  content: 'Remove';\n  margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n  line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n  display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n  display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n  border-right: 0px;\n  content: 'Save';\n  padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n  content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n  content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n  content: \"Enter video:\";\n}\n.ql-snow a {\n  color: #06c;\n}\n",""])},RmIH:function(t,e,n){"use strict";var i=n("L2JU"),r=n("wHSu");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={props:{resourceType:{type:String,required:!0},resourceId:{type:Number,required:!0}},data:function(){return{roles:[],permissions:[],selectedRole:"",roleId:0,faCheck:r.f,faCheckCircle:r.g,faTimesCircle:r.A}},created:function(){var t=this;this.roles.length<1&&axios.get("/roles").then(function(e){t.roles=e.data.roles}).catch(function(t){console.log(t)})},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}({},Object(i.b)(["closeComponent","showNotification"]),{closeModal:function(){this.closeComponent()},selectRole:function(t){var e=this;this.selectedRole=t.slug,this.roleId=t.id,axios.get("/groups/permissions",{params:{group_type:this.resourceType,group_id:this.resourceId,role_id:t.id}}).then(function(t){e.permissions=t.data.permissions}).catch(function(t){console.log(t)})},togglePermission:function(t,e,n,i){var r=this;i?axios.delete("/groups/permissions/"+t.id+"/roles/"+this.roleId,{params:{group_type:this.resourceType,group_id:this.resourceId}}).then(function(t){r.permissions[e][n].enabled=!i}).catch(function(t){r.showNotification({type:t.response.data.status,message:t.response.data.message})}):axios.post("/groups/permissions/"+t.id+"/roles/"+this.roleId,{group_type:this.resourceType,group_id:this.resourceId}).then(function(t){r.permissions[e][n].enabled=!i}).catch(function(t){r.showNotification({type:t.response.data.status,message:t.response.data.message})})}})},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-2 md:mx-auto md:max-w-4xl bg-gray-100 rounded shadow-lg z-30",staticStyle:{top:"10vh",left:"0",right:"0"}},[n("div",{staticClass:"m-auto flex-col flex"},[n("header",{staticClass:"bg-gray-200 text-gray-600 p-6 rounded flex flex-row justify-between items-center",attrs:{for:"user"}},[n("div"),t._v(" "),n("div",{staticClass:"uppercase tracking-wide font-semibold text-lg"},[t._v("\n          Permission Settings\n        ")]),t._v(" "),n("div",{staticClass:"cursor-pointer",on:{click:t.closeModal}},[n("font-awesome-icon",{staticClass:"text-lg text-red-500 opacity-75",attrs:{icon:t.faTimesCircle}})],1)]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"px-6 pb-8 pt-12 rounded-b"},[n("div",{staticClass:"inline font-medium text-gray-700"},[t._v(t._s(t._f("localize")("Select a Role"))+":")]),t._v(" "),t._l(t.roles,function(e){return[n("div",{staticClass:"rounded inline border p-3 mx-2 relative cursor-pointer",class:[t.selectedRole===e.slug?"bg-indigo-100 border-indigo-400 shadow-md":"bg-gray-100 border-gray-400"],on:{click:function(n){return t.selectRole(e)}}},[t.selectedRole===e.slug?n("font-awesome-icon",{staticClass:"absolute right-0 top-0 -mr-1 -mt-1 text-lg text-indigo-500 bg-white rounded-full",attrs:{icon:t.faCheckCircle}}):t._e(),t._v(" "),n("span",{staticClass:"cursor-pointer"},[t._v(t._s(e.name))])],1)]})],2),t._v(" "),n("div",{staticClass:"bg-white rounded-b"},[t._l(t.permissions,function(e,i,r){return n("div",{staticClass:"flex flex-row items-center px-12 py-4",class:[0!==r?"border-gray-200 border-t":""]},[n("div",{staticClass:"text-gray-700 text-xl w-48"},[t._v("\n            "+t._s(t._f("localize")(t._f("capitalize")(i)))+"\n          ")]),t._v(" "),t._l(e,function(e,r){return n("div",{staticClass:"w-32 flex flex-col justify-center items-center"},[n("div",{staticClass:"pb-1"},[t._v("\n              "+t._s(t._f("localize")(t._f("capitalize")(e.action)))+"\n            ")]),t._v(" "),n("span",{staticClass:"w-5 h-5 rounded cursor-pointer inline flex items-center justify-center",class:[e.enabled?"bg-teal-500":"border-gray-400 border"],on:{click:function(n){return t.togglePermission(e,i,r,e.enabled)}}},[e.enabled?n("font-awesome-icon",{staticClass:"text-xs text-white",attrs:{icon:t.faCheck}}):t._e()],1)])})],2)}),t._v(" "),t.roleId?n("div",{staticClass:"h-6"}):t._e()],2)])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",on:{click:t.closeModal}})])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-row text-gray-800 bg-white"},[e("div",{staticClass:"w-1/2 px-4 py-2 flex flex-row items-center border-teal-500 border-b"},[e("div",{staticClass:"flex flex-col"},[e("div",{staticClass:"font-semibold pb-1"},[this._v("\n              Roles\n            ")]),this._v(" "),e("div",{staticClass:"text-xs"},[this._v("\n              Set permission for a specific role\n            ")])])]),this._v(" "),e("div",{staticClass:"w-1/2 px-4 py-2 flex flex-row items-center cursor-pointer"},[e("div",{staticClass:"flex flex-col"},[e("div",{staticClass:"font-semibold pb-1"},[this._v("\n              Users\n            ")]),this._v(" "),e("div",{staticClass:"text-xs"},[this._v("\n              Set permission for an individual user\n            ")])])])])}],!1,null,null,null);e.a=l.exports},RvMX:function(t,e,n){"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},T15t:function(t,e){t.exports={ID_SPLIT_FLAG:"__ID_SPLIT__",IMAGE_UPLOAD_PLACEHOLDER_CLASS_NAME:"quill-plugin-image-upload-placeholder"}},T8Ve:function(t,e,n){"use strict";var i=n("u9Ym"),r=n.n(i);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s={props:{name:{required:!0,type:String},users:{required:!0,type:Array},suggestionShown:{required:!0,type:Boolean},suggestionSelected:{required:!0,type:Boolean},suggestionHighlightIndex:{required:!0,type:Number},suggestionHighlightDirection:{required:!0,type:Number},suggestionHighlightDirectionInverted:{type:Boolean}},data:function(){return{sortedUsers:[],highlightIndex:0}},watch:{name:"search",suggestionSelected:"selectUserEnter",suggestionHighlightIndex:"suggestionHighlightMove"},methods:{search:function(){var t=r.a.go(this.name,this.users,{key:"name",limit:5}).map(function(t){return t.obj}),e=r.a.go(this.name,this.users,{key:"username",limit:5}).map(function(t){return t.obj});this.sortedUsers=o(new Set([].concat(o(t),o(e)))),this.highlightIndex=0,this.suggestionHighlightDirectionInverted&&(this.sortedUsers.reverse(),this.highlightIndex=this.sortedUsers.length-1)},selectUser:function(t){this.$emit("selected",t)},selectUserEnter:function(){this.suggestionSelected&&this.selectUser(this.sortedUsers[this.highlightIndex][1].target)},getUserAvatar:function(t){return this.users.find(function(e){if(e.username===t)return e.avatar}).avatar},suggestionHighlightMove:function(){-1===this.suggestionHighlightDirection&&this.highlightIndex>0?this.highlightIndex-=1:1===this.suggestionHighlightDirection&&this.highlightIndex<this.sortedUsers.length-1&&(this.highlightIndex+=1)}}},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.suggestionShown&&t.sortedUsers.length>0?n("div",{staticClass:"autocomplete container w-full shadow-md",class:t.suggestionHighlightDirectionInverted?"rounded-t-lg":"rounded-b-lg"},[n("div",{staticClass:"autocomplete-results"},t._l(t.sortedUsers,function(e,i){return n("div",{key:i,staticClass:"autocomplete-result flex items-center bg-white p-1 cursor-pointer hover:bg-gray-400",class:{"text-white bg-teal-500 hover:bg-teal-600":i===t.highlightIndex,"rounded-t-lg":0===i&&t.suggestionHighlightDirectionInverted,"rounded-b-lg":i===t.sortedUsers.length-1&&!t.suggestionHighlightDirectionInverted},on:{click:function(n){return t.selectUser(e.username)}}},[n("div",{staticClass:"mx-2"},[n("img",{staticClass:"rounded-full align-middle w-8 h-8",attrs:{src:"/"+t.getUserAvatar(e.username)}})]),t._v(" "),n("div",{staticClass:"mr-2"},[n("span",{staticClass:"font-semibold"},[t._v("@"+t._s(e.username))]),t._v(" "),n("span",[t._v(" ("+t._s(e.name)+")")])])])}),0)]):t._e()},[],!1,null,null,null);e.a=l.exports},TDHc:function(t,e,n){n("luP2"),n("gGu1");const i=n("bDLQ"),r=n("T15t");t.exports=class{constructor(t,e){this.quill=t,this.options=e,this.range=null,"function"!=typeof this.options.upload&&console.warn("[Missing config] upload function that returns a promise is required"),this.quill.getModule("toolbar").addHandler("image",this.selectLocalImage.bind(this))}selectLocalImage(){this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.onchange=this.fileChanged.bind(this),this.fileHolder.click()}fileChanged(){const t=this.fileHolder.files[0],e=i.generate(),n=new FileReader;n.addEventListener("load",()=>{let t=n.result;this.insertBase64Image(t,e)},!1),t&&n.readAsDataURL(t),this.options.upload(t).then(t=>{this.insertToEditor(t,e)},t=>{console.warn(t.message)})}insertBase64Image(t,e){const n=this.range;this.quill.insertEmbed(n.index,"imageUpload",`${e}${r.ID_SPLIT_FLAG}${t}`)}insertToEditor(t,e){const n=document.getElementById(e);n&&(n.setAttribute("src",t),n.removeAttribute("id"),n.classList.remove(r.IMAGE_UPLOAD_PLACEHOLDER_CLASS_NAME))}}},URgk:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},WmwA:function(t,e,n){"use strict";var i=n("L2JU"),r=n("T8Ve"),o=n("wHSu");function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={components:{userSuggestionBox:r.a},props:{resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number},show:{required:!0,type:Boolean}},data:function(){return{body:"",comments:[],user:user,name:"",mentionStarted:!1,startIndex:0,suggestionHighlightDirection:1,suggestionHighlightIndex:0,suggestionSelected:!1,suggestionShown:!1,mentions:[],faTrashAlt:o.C}},watch:{show:function(t){t&&this.getComments()}},computed:s({},Object(i.c)({users:function(t){return t.members},groupType:function(t){return t.groupType},groupId:function(t){return t.groupId}})),created:function(){this.getComments()},methods:s({},Object(i.b)(["showNotification"]),{saveComment:function(t){var e=this;t.shiftKey?this.body=this.body+"\n":this.mentionStarted?this.suggestionSelected=!0:axios.post("/comments",{body:this.body,commentable_type:this.resourceType,commentable_id:this.resourceId,group_type:this.groupType,group_id:this.groupId,mentions:this.mentions}).then(function(t){e.body="",e.comments.push(t.data.comment),e.showNotification({type:t.data.status,message:t.data.message})}).catch(function(t){e.showNotification({type:t.response.data.status,message:t.response.data.message})})},deleteComment:function(t,e){var n=this;axios.delete("/comments/"+t.id).then(function(t){n.comments.splice(e,1),n.showNotification({type:t.data.status,message:t.data.message})}).catch(function(t){n.showNotification({type:t.response.data.status,message:t.response.data.message})})},checkForMention:function(t){"@"===t.key?(this.suggestionShown=!0,this.mentionStarted=!0,this.startIndex=document.getElementById("save-comment").selectionStart):32===t.keyCode||27===t.keyCode||8===t.keyCode&&document.getElementById("save-comment").selectionStart<this.startIndex?(this.mentionStarted=!1,this.suggestionShown=!1,this.suggestionHighlightIndex=0,this.name=""):this.mentionStarted&&(this.name=t.target.value.substring(this.startIndex))},mentionHighlightMove:function(t){!this.mentionStarted||38!==t.keyCode&&40!==t.keyCode||(38===t.keyCode?(this.suggestionHighlightIndex-=1,this.suggestionHighlightDirection=-1):40===t.keyCode&&(this.suggestionHighlightIndex+=1,this.suggestionHighlightDirection=1),t.preventDefault())},userSelected:function(t){this.body=this.body.substring(0,this.startIndex)+t,this.mentions.push(t),this.mentionStarted=!1,this.suggestionShown=!1,this.suggestionSelected=!1,this.suggestionHighlightIndex=0,this.name="",document.getElementById("save-comment").focus()},getComments:function(){var t=this;0===this.comments.length&&axios.get("/comments",{params:{commentable_type:this.resourceType,commentable_id:this.resourceId,group_type:this.groupType,group_id:this.groupId}}).then(function(e){t.comments=e.data.comments}).catch(function(t){console.log(t.response.data.message)})}})},c=n("KHd+"),u=Object(c.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",[n("div",{staticClass:"flex flex-row items-center border-b pt-8 pb-2"},[n("div",{staticClass:"text-gray-600 text-xl pr-2"},[t._v("\n      Comments \n    ")]),t._v(" "),n("div",{staticClass:"rounded-full bg-teal-500 flex items-center justify-center w-8 h-8"},[n("span",{staticClass:"text-white text-sm font-semibold"},[t._v(t._s(t.comments.length))])])]),t._v(" "),n("div",{staticClass:"py-6"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.body,expression:"body"}],staticClass:"static bg-white textarea resize-none rounded w-full p-4 text-gray-800",attrs:{id:"save-comment",placeholder:"write your comment here",rows:"1"},domProps:{value:t.body},on:{keyup:function(e){return t.checkForMention(e)},keydown:[function(e){return t.mentionHighlightMove(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.saveComment(e))}],input:function(e){e.target.composing||(t.body=e.target.value)}}}),t._v(" "),n("user-suggestion-box",{attrs:{users:t.users,name:t.name,suggestionShown:t.suggestionShown,suggestionSelected:t.suggestionSelected,suggestionHighlightIndex:t.suggestionHighlightIndex,suggestionHighlightDirection:t.suggestionHighlightDirection},on:{selected:t.userSelected}}),t._v(" "),t.name.length<1?n("div",{staticClass:"absolute text-xs text-gray-600 pt-2"},[t._v("Press enter "),n("span",{staticClass:"bg-gray-500 px-2 py-1 rounded text-white font-bold"},[t._v("↵")]),t._v(" to save")]):t._e()],1),t._v(" "),n("div",t._l(t.comments,function(e,i){return n("div",{key:e.id,staticClass:"my-6"},[n("div",{staticClass:"text-xs text-gray-600 pb-2 ml-10"},[t._v("\n        "+t._s(e.user.name)+" on "+t._s(e.date)+"\n      ")]),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("div",{staticClass:"z-10"},[n("img",{staticClass:"rounded-full w-8 h-8",attrs:{src:t.generateUrl(e.user.avatar)}})]),t._v(" "),n("div",{staticClass:"flex-1 bg-blue-100 text-gray-700 rounded ml-2 p-4 flex flex-row justify-between items-center"},[n("div",{directives:[{name:"linkify",rawName:"v-linkify"}],staticClass:"w-11/12"},[t._v("\n            "+t._s(e.body)+"\n          ")]),t._v(" "),t.user.id===e.user_id?n("div",{staticClass:"text-xs text-red-700 bg-red-200 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer",on:{click:function(n){return t.deleteComment(e,i)}}},[n("font-awesome-icon",{attrs:{icon:t.faTrashAlt}})],1):t._e()])])])}),0)]):t._e()},[],!1,null,null,null);e.a=u.exports},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,s,a,l=1,c={},u=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(s+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[l]=r,i(l),l++},f.clearImmediate=h}function h(t){delete c[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=c[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{h(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n("yLpj"),n("8oxB"))},"aET+":function(t,e,n){var i,r,o={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),a=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),l=null,c=0,u=[],d=n("9tPo");function f(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=o[i.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](i.parts[s]);for(;s<i.parts.length;s++)r.parts.push(y(i.parts[s],e))}else{var a=[];for(s=0;s<i.parts.length;s++)a.push(y(i.parts[s],e));o[i.id]={id:i.id,refs:1,parts:a}}}}function h(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}function p(t,e){var n=a(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=a(t.insertAt.before,n);n.insertBefore(e,r)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=n.nc;i&&(t.attrs.nonce=i)}return m(e,t.attrs),p(t,e),e}function m(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function y(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var s=c++;n=l||(l=v(e)),i=_.bind(null,n,s,!1),r=_.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),p(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([i],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n,e),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),i=function(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){g(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return f(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var s=n[r];(a=o[s.id]).refs--,i.push(a)}for(t&&f(h(t,e),e),r=0;r<i.length;r++){var a;if(0===(a=i[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete o[a.id]}}}};var b,w=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function _(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=w(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},bDLQ:function(t,e){const n={id:0,name:"QUILL_IMAGE_PLUS",generate(){const t=this.id;return this.id=t+1,`${this.name}_${t}`}};t.exports=n},bGVd:function(t,e,n){t.exports=n("IXxz").default},cGon:function(t,e,n){var i=n("/c0f");"string"==typeof i&&(i=[[t.i,i,""]]);n("aET+")(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(t.exports=i.locals)},"d6+0":function(t,e,n){"use strict";var i={props:{user:{required:!0,type:Object},homePage:{required:!1,type:Boolean}},data:function(){return{profileCardShown:!1}},computed:{time:function(){return window.luxon.DateTime.local().setZone(this.user.timezone).toLocaleString(window.luxon.DateTime.TIME_SIMPLE)}},methods:{showProfileCard:function(){this.profileCardShown=!0},hideProfileCard:function(){this.profileCardShown=!1}}},r=n("KHd+"),o=Object(r.a)(i,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"relative inline"},[n("div",{class:[t.homePage?"w-10 h-10":"w-8 h-8"]},[n("img",{staticClass:"rounded-full mr-1",class:[t.homePage?"border-white border-2 rounded-full w-10 h-10":"w-8 h-8"],attrs:{src:t.generateUrl(t.user.avatar)},on:{mouseover:function(e){return t.showProfileCard()},mouseleave:function(e){return t.hideProfileCard()}}})]),t._v(" "),t.profileCardShown?n("div",{staticClass:"absolute w-48 -ml-20 pt-4 -mt-2 z-30",on:{mouseover:function(e){return t.showProfileCard()},mouseleave:function(e){return t.hideProfileCard()}}},[n("div",{staticClass:"flex flex-col items-center justify-center bg-blue-900 text-white rounded-lg shadow py-6 px-4"},[n("img",{staticClass:"rounded-full w-24 h-24",attrs:{src:t.generateUrl(t.user.avatar)}}),t._v(" "),n("div",{staticClass:"pb-2 pt-4 text-2xl font-semibold text-center"},[t._v("\n        "+t._s(t.user.name)+"\n      ")]),t._v(" "),n("div",{staticClass:"py-1"},[n("span",{staticClass:"text-blue-400"},[t._v("@")]),t._v(t._s(t.user.username)+"\n      ")]),t._v(" "),n("div",{staticClass:"py-1"},[t._v("\n        "+t._s(t.user.designation)+"\n      ")]),t._v(" "),n("div",{staticClass:"text-sm py-1"},[t._v("\n        "+t._s(t.time)+"\n      ")])])]):t._e()])},[],!1,null,null,null);e.a=o.exports},dP7y:function(t,e,n){t.exports=n("LXjW")},dRbG:function(t,e,n){var i=n("RkKA");"string"==typeof i&&(i=[[t.i,i,""]]);n("aET+")(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(t.exports=i.locals)},dlaP:function(t,e,n){"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=(0,i.createTokenClass)();function s(t){var e=t?{v:t}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),e)}o.prototype={toString:function(){return this.v+""}};var a=s(),l=s("@"),c=s(":"),u=s("."),d=s(),f=s(),h=s("\n"),p=s(),g=s("+"),v=s("#"),m=s(),y=s("mailto:"),b=s("?"),w=s("/"),_=s("_"),x=s(),k=s(),C=s(),O=s("{"),q=s("["),A=s("<"),E=s("("),S=s("}"),T=s("]"),j=s(">"),N=s(")"),D=s("&");e.Base=o,e.DOMAIN=a,e.AT=l,e.COLON=c,e.DOT=u,e.PUNCTUATION=d,e.LOCALHOST=f,e.NL=h,e.NUM=p,e.PLUS=g,e.POUND=v,e.QUERY=b,e.PROTOCOL=m,e.MAILTO=y,e.SLASH=w,e.UNDERSCORE=_,e.SYM=x,e.TLD=k,e.WS=C,e.OPENBRACE=O,e.OPENBRACKET=q,e.OPENANGLEBRACKET=A,e.OPENPAREN=E,e.CLOSEBRACE=S,e.CLOSEBRACKET=T,e.CLOSEANGLEBRACKET=j,e.CLOSEPAREN=N,e.AMPERSAND=D},esdX:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z";e.definition={prefix:"fas",iconName:"cog",icon:[512,512,i,"f013",r]},e.faCog=e.definition,e.prefix="fas",e.iconName="cog",e.width=512,e.height=512,e.ligatures=i,e.unicode="f013",e.svgPathData=r},fMnc:function(t,e,n){"use strict";var i=n("hmj/"),r=n("17fY"),o={props:{activeTab:{required:!0,type:String},resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number}},data:function(){return{activity:"activity",user:"user",date:"date",loading:!1,activities:[],authenticated:authenticated,faChevronDown:i.faChevronDown,faSpinner:r.faSpinner}},created:function(){this.getAllActivities()},watch:{activeTab:function(){this.getAllActivities()}},methods:{getAllActivities:function(){var t=this;"activities"===this.activeTab&&this.activities.length<1&&axios.get("/activities",{params:{group_type:this.resourceType,group_id:this.resourceId}}).then(function(e){t.activities=e.data.activities}).catch(function(t){console.log(t)})}}},s=n("KHd+"),a=Object(s.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.authenticated&&"activities"===t.activeTab?n("div",{staticClass:"w-full mx-2 md:mx-auto"},[0===t.activities.length?n("div",{staticClass:"flex flex-col items-center pt-8"},[n("div",{staticClass:"pb-8"},[t._v("A timeline of acitivities will show up when people starts working")]),t._v(" "),n("img",{staticClass:"w-96",attrs:{src:"/image/activity.svg",alt:"activities"}})]):t._e(),t._v(" "),0!==t.activities.length?n("div",{staticClass:"flex flex-row flex-wrap text-gray-900 -ml-4 mb-8"},[n("div",{staticClass:"mx-4 py-4 flex flex-row items-center relative"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.activity,expression:"activity"}],staticClass:"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-3 px-4 pr-8",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.activity=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"activity",disabled:"",hidden:""}},[t._v(t._s(t._f("localize")("Filter by Activity")))]),t._v(" "),n("option",{staticClass:"my-2 text-lg",domProps:{value:1}},[t._v("name")])]),t._v(" "),n("font-awesome-icon",{staticClass:"pointer-events-none items-center text-gray-600 absolute right-0 mr-3",attrs:{icon:t.faChevronDown}})],1),t._v(" "),n("div",{staticClass:"mx-4 py-4 flex flex-row items-center relative"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.user,expression:"user"}],staticClass:"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-3 px-4 pr-8",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.user=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"user",disabled:"",hidden:""}},[t._v(t._s(t._f("localize")("Filter by User")))]),t._v(" "),n("option",{staticClass:"my-2 text-lg",domProps:{value:2}},[t._v("name")])]),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none items-center text-gray-600 absolute right-0 mr-3",attrs:{icon:t.faChevronDown}})],1),t._v(" "),n("div",{staticClass:"mx-4 py-4 flex flex-row items-center relative"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.date,expression:"date"}],staticClass:"w-full block appearance-none bg-white border border-gray-500 rounded text-gray-800 py-3 px-4 pr-8",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.date=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"date",disabled:"",hidden:""}},[t._v(t._s(t._f("localize")("Filter by Date")))]),t._v(" "),n("option",{staticClass:"my-2 text-lg",domProps:{value:3}},[t._v("name")])]),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none items-center text-gray-600 absolute right-0 mr-3",attrs:{icon:t.faChevronDown}})],1),t._v(" "),n("div",{staticClass:"mx-4 py-4"},[n("button",{staticClass:"bg-teal-400 text-white font-medium hover:bg-teal-600 py-3 px-8 rounded"},[t.loading?[n("font-awesome-icon",{attrs:{icon:t.faSpinner,spin:""}})]:t._e(),t._v("\n      "+t._s(t._f("localize")("Apply"))+"\n    ")],2)])]):t._e(),t._v(" "),n("div",{staticClass:"text-gray-800"},[t._l(t.activities,function(e,i){return[n("div",{staticClass:"bg-white border p-3 text-gray-600 inline-flex rounded"},[t._v(t._s(i))]),t._v(" "),t._l(e,function(e){return[n("div",{staticClass:"h-16 border-l border-gray-400 ml-2 md:ml-6 -my-4"}),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[t._m(0,!0),t._v(" "),n("div",{staticClass:"text-sm px-4 md:mr-4"},[t._v(t._s(e.time))]),t._v(" "),n("div",{staticClass:"flex-grow bg-white border px-4 md:px-8 py-4 rounded"},[n("a",{staticClass:"text-blue-500 font-medium cursor-pointer no-underline",attrs:{href:"/users/"+e.data.subject.username}},[t._v(t._s(e.data.subject.name))]),t._v("\n            "+t._s(e.data.action)+"\n            "),e.data.object_id?n("a",{staticClass:"text-blue-500 font-medium cursor-pointer no-underline",attrs:{href:e.data.url}},[t._v(t._s(e.data.object_name))]):t._e()])])]}),t._v(" "),n("div",{staticClass:"h-8 border-l ml-2 md:ml-6"})]}),t._v(" "),n("div",{staticClass:"h-16 border-l border-gray-200 -mt-8 ml-2 md:ml-6"})],2)]):t._e()},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"border-l border-gray-400 flex flex-row items-center ml-2 md:ml-6 self-stretch"},[e("div",{staticClass:"rounded-full bg-gray-200 border border-pink-500 p-1 -ml-2 md:mr-4"},[e("div",{staticClass:"rounded-full bg-pink-500 p-1"})])])}],!1,null,null,null);e.a=a.exports},gGu1:function(t,e,n){const i=n("T15t"),r=document.createElement("style");r.type="text/css",document.getElementsByTagName("head")[0].appendChild(r),r.appendChild(document.createTextNode(`\n  .${i.IMAGE_UPLOAD_PLACEHOLDER_CLASS_NAME} {\n    display: inline-block;\n    width: 30px;\n    height: 30px;\n    border-radius: 50%;\n    border: 3px solid #ccc;\n    border-top-color: #1e986c;\n    animation: quill-plugin-image-upload-spinner 0.6s linear infinite;\n  }\n  @keyframes quill-plugin-image-upload-spinner {\n    to {\n      transform: rotate(360deg);\n    }\n  }\n`))},gVtJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";e.definition={prefix:"fas",iconName:"trash-alt",icon:[448,512,i,"f2ed",r]},e.faTrashAlt=e.definition,e.prefix="fas",e.iconName="trash-alt",e.width=448,e.height=512,e.ligatures=i,e.unicode="f2ed",e.svgPathData=r},gwsZ:function(t,e,n){"use strict";var i=n("wHSu"),r={props:{active:{required:!0,type:String},settings:{required:!0,type:Object}},data:function(){return{authenticated:authenticated,faBolt:i.c,faCalendarAlt:i.d,faCircle:i.i,faClipboardList:i.j,faComments:i.l,faFileAlt:i.p,faTasks:i.y,hasUnreadMessage:!1}},computed:{displayUnreadMessageBadge:function(){return this.hasUnreadMessage&&!this.isTabActive("messages")}},methods:{activateThisTab:function(t){this.$emit("activate",t)},isTabActive:function(t){return this.active===t},onMessagePushed:function(){this.setHasUnreadMessage(!this.isTabActive("messages"))},onMessagesTabClicked:function(){this.setHasUnreadMessage(!1),this.activateThisTab("messages"),EventBus.$emit("clear-title-notification")},setHasUnreadMessage:function(t){this.hasUnreadMessage=t}},mounted:function(){EventBus.$on("messagePushed",this.onMessagePushed)}},o=n("KHd+"),s=Object(o.a)(r,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-row justify-around my-4 pt-4 pb-2 bg-white shadow rounded text-gray-600 sticky tab-sticky-top z-20"},[t.settings.task_enabled?n("div",{class:["tasks"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:function(e){return t.activateThisTab("tasks")}}},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faTasks}}),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Tasks")))])],1):t._e(),t._v(" "),t.settings.discussion_enabled?n("div",{class:["discussions"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:function(e){return t.activateThisTab("discussions")}}},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faClipboardList}}),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Discussions")))])],1):t._e(),t._v(" "),t.settings.message_enabled?n("div",{class:["messages"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:t.onMessagesTabClicked}},[n("span",{staticClass:"relative inline-block"},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faComments}}),t._v(" "),t.displayUnreadMessageBadge?n("font-awesome-icon",{staticClass:"absolute text-xs text-teal-500",staticStyle:{right:"-3px",top:"-6px"},attrs:{icon:t.faCircle}}):t._e()],1),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Messages")))])]):t._e(),t._v(" "),t.settings.event_enabled?n("div",{class:["events"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:function(e){return t.activateThisTab("events")}}},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faCalendarAlt}}),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Events")))])],1):t._e(),t._v(" "),t.settings.file_enabled?n("div",{class:["files"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:function(e){return t.activateThisTab("files")}}},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faFileAlt}}),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Files")))])],1):t._e(),t._v(" "),t.authenticated?n("div",{class:["activities"===t.active?"text-teal-600 font-semibold border-teal-500 border-b-2 pb-2 -mb-2":"cursor-pointer","text-center w-1/6 flex-grow"],on:{click:function(e){return t.activateThisTab("activities")}}},[n("font-awesome-icon",{staticClass:"text-2xl",attrs:{icon:t.faBolt}}),t._v(" "),n("span",{staticClass:"hidden md:block text-xs font-regular"},[t._v(t._s(t._f("localize")("Activities")))])],1):t._e()])},[],!1,null,null,null);e.a=s.exports},"hmj/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=[],r="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z";e.definition={prefix:"fas",iconName:"chevron-down",icon:[448,512,i,"f078",r]},e.faChevronDown=e.definition,e.prefix="fas",e.iconName="chevron-down",e.width=448,e.height=512,e.ligatures=i,e.unicode="f078",e.svgPathData=r},kOQH:function(t,e,n){"use strict";var i=n("L2JU");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o={components:{Datepicker:n("+jP+").a},props:{formShown:{required:!0,type:Boolean},resourceId:{required:!0,type:Number},resourceType:{required:!0,type:String}},data:function(){return{name:"",startDate:null,endDate:null}},computed:{disabledDates:function(){return{to:this.startDate}}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},Object(i.b)(["showNotification"]),{createCycle:function(){var t=this;axios.post("/cycles",{name:this.name,start_date:window.luxon.DateTime.fromISO(this.startDate.toISOString()).toISODate(),end_date:window.luxon.DateTime.fromISO(this.endDate.toISOString()).toISODate(),group_id:this.resourceId,group_type:this.resourceType}).then(function(e){"success"===e.data.status&&(t.name="",t.startDate=null,t.endDate=null,t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close-form",e.data.cycle))}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close-form")})},closeCreateForm:function(){this.$emit("close-form")}})},s=n("KHd+");function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){l(t,e,n[e])})}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={components:{createCycleForm:Object(s.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("div",{staticClass:"absolute container mx-auto w-5/6 md:w-3/5 lg:w-2/5 bg-white rounded shadow-lg z-40",class:{hidden:!t.formShown},staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"p-4"},[n("div",{staticClass:"p-4"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"focusInput",staticClass:"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4",attrs:{id:"name",type:"text",placeholder:"June Release",required:""},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"p-4"},[t._m(1),t._v(" "),n("datepicker",{ref:"startDate",attrs:{id:"start_date",placeholder:"Select Date",format:"yyyy-MM-dd","input-class":"appearance-none bg-gray-200 text-gray-800 w-full","wrapper-class":"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4"},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1),t._v(" "),n("div",{staticClass:"p-4"},[t._m(2),t._v(" "),n("datepicker",{ref:"endDate",attrs:{"disabled-dates":t.disabledDates,id:"end_date",placeholder:"Select Date",format:"yyyy-MM-dd","input-class":"appearance-none bg-gray-200 text-gray-800 w-full","wrapper-class":"appearance-none block w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4"},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1)]),t._v(" "),n("div",{staticClass:"flex flex-row justify-between py-4 px-8 bg-gray-200 rounded"},[n("button",{staticClass:"text-red-300 hover:font-bold hover:text-red-400",on:{click:t.closeCreateForm}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"bg-teal-400 text-white font-medium hover:bg-teal-600 py-4 px-8 rounded",on:{click:t.createCycle}},[t._v("Create")])])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-30",class:{hidden:!t.formShown},on:{click:t.closeCreateForm}})])},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"name"}},[this._v("\n          Name "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"start_date"}},[this._v("\n          Start Date "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"end_date"}},[this._v("\n          End Date "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])}],!1,null,null,null).exports},props:{resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number},currentCycleId:{required:!1,type:Number}},data:function(){return{createFormShown:!1}},computed:a({},Object(i.c)({cycles:function(t){return t.cycle.cycles},selectedCycleId:function(t){return t.cycle.selectedCycleId}})),methods:a({},Object(i.b)(["getCycles","selectCycle","closeComponent"]),{getAllCycles:function(){0===this.cycles.length&&this.getCycles({group_type:this.resourceType,group_id:this.resourceId})},closeModal:function(){this.closeComponent()},showCreateForm:function(){this.createFormShown=!0},closeCreateForm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&this.cycles.push(t),this.createFormShown=!1},chooseCycle:function(t){this.selectCycle(t)}})},u=Object(s.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.createFormShown?t._e():n("div",{staticClass:"absolute container mx-auto w-5/6 md:w-3/5 lg:w-2/5 bg-white rounded shadow-lg z-40",staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"py-4"},[0===t.cycles.length?n("div",{staticClass:"flex flex-col items-center pt-4"},[t._v("\n        No cycle found! Create a New Cycle\n        "),n("img",{staticClass:"w-96",attrs:{src:"/image/cycle.svg",alt:"calender"}})]):t._e(),t._v(" "),t._l(t.cycles,function(e,i){return n("div",{key:e.id},[0!==i?n("div",{staticClass:"border-b border-gray-200 mx-8"}):t._e(),t._v(" "),n("a",{staticClass:"flex flex-col items-center px-8 py-4 cursor-pointer",class:{"bg-blue-100":t.selectedCycleId===e.id},on:{click:function(n){return t.chooseCycle(e)}}},[n("div",{staticClass:"text-xl text-blue-600 font-medium"},[t._v("\n            "+t._s(e.name)+"\n            "),t.currentCycleId===e.id?n("span",{staticClass:"absolute px-2 ml-1 bg-teal-500 text-white text-xs font-semibold rounded-full"},[t._v("current")]):t._e()]),t._v(" "),n("div",{staticClass:"flex flex-row justify-center"},[n("div",[t._v("\n              "+t._s(e.start_date)+"\n            ")]),t._v(" "),n("div",{staticClass:"px-1"},[t._v("-")]),t._v(" "),n("div",[t._v("\n              "+t._s(e.end_date)+"\n            ")])])])])})],2),t._v(" "),n("div",{staticClass:"flex justify-between p-8 bg-gray-100 rounded-b"},[n("button",{staticClass:"text-blue-500 underline",on:{click:t.showCreateForm}},[t._v("Create New Cycle")]),t._v(" "),n("button",{staticClass:"text-red-400",on:{click:t.closeModal}},[t._v("Close")])])]),t._v(" "),n("create-cycle-form",{attrs:{formShown:t.createFormShown,resourceType:t.resourceType,resourceId:t.resourceId},on:{"close-form":t.closeCreateForm}}),t._v(" "),t.createFormShown?t._e():n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-30",on:{click:t.closeModal}})],1)},[],!1,null,null,null);e.a=u.exports},"kVK+":function(t,e){e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?r-1:0,f=n?-1:1,h=t[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+t[e+d],d+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),o-=c}return(h?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:o-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*l-1)*Math.pow(2,r),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;t[n+h]=255&a,h+=p,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;t[n+h]=255&s,h+=p,s/=256,c-=8);t[n+h-p]|=128*g}},kzlf:function(t,e,n){(function(e){var n;"undefined"!=typeof self&&self,n=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),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),f=n(32),h=n(33),p=n(31),g=n(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:i.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:h.default,Store:p.default}};e.default=v},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=o;var s,a={},l={},c={},u={};function d(t,e){var n;if(void 0===e&&(e=s.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&s.LEVEL&s.BLOCK?n=u.block:t&s.LEVEL&s.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var i=(t.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=l[i[r]])break;n=n||c[t.tagName]}return null==n?null:e&s.LEVEL&n.scope&&e&s.TYPE&n.scope?n:null}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"}(s=e.Scope||(e.Scope={})),e.create=function(t,e){var n=d(t);if(null==n)throw new o("Unable to create "+t+" blot");var i=n,r=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(e);return new i(r,e)},e.find=function t(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:i?t(n.parentNode,i):null},e.query=d,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map(function(e){return t(e)});var i=e[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new o("Invalid definition");if("abstract"===i.blotName)throw new o("Cannot register abstract class");return u[i.blotName||i.attrName]=i,"string"==typeof i.keyName?a[i.keyName]=i:(null!=i.className&&(l[i.className]=i),null!=i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(t){return t.toUpperCase()}):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(function(t){null!=c[t]&&null!=i.className||(c[t]=i)}))),i}},function(t,e,n){var i=n(51),r=n(11),o=n(3),s=n(20),a=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,"object"!=typeof(n=this.ops[e-1])))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){(t(i)?e:n).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+s.length(e):e.delete?t-e.delete:t},0)},l.prototype.length=function(){return this.reduce(function(t,e){return t+s.length(e)},0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],i=s.iterator(this.ops),r=0;r<e&&i.hasNext();){var o;r<t?o=i.next(t-r):(o=i.next(e-r),n.push(o)),r+=s.length(o)}return new l(n)},l.prototype.compose=function(t){var e=s.iterator(this.ops),n=s.iterator(t.ops),i=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var a=o.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),i.push(e.next());o.retain-a>0&&n.next(o.retain-a)}for(var c=new l(i);e.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===e.peekType())c.push(e.next());else{var u=Math.min(e.peekLength(),n.peekLength()),d=e.next(u),f=n.next(u);if("number"==typeof f.retain){var h={};"number"==typeof d.retain?h.retain=u:h.insert=d.insert;var p=s.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(p&&(h.attributes=p),c.push(h),!n.hasNext()&&r(c.ops[c.ops.length-1],h)){var g=new l(e.rest());return c.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&c.push(f)}return c.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:a;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")}).join("")}),o=new l,c=i(n[0],n[1],e),u=s.iterator(this.ops),d=s.iterator(t.ops);return c.forEach(function(t){for(var e=t[1].length;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,u.peekLength()),u.next(n),o.delete(n);break;case i.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),e);var a=u.next(n),l=d.next(n);r(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l).delete(n)}e-=n}}),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var n=s.iterator(this.ops),i=new l,r=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(e,a)-a:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));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);for(var n=s.iterator(this.ops),i=s.iterator(t.ops),r=new l;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()),a=n.next(o),c=i.next(o);if(a.delete)continue;c.delete?r.push(c):r.retain(o,s.attributes.transform(a.attributes,c.attributes,e))}else r.retain(s.length(n.next()));return r.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var n=s.iterator(this.ops),i=0;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,s=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},a=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 void 0===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},c=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,u,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(null!=(e=arguments[f]))for(n in e)i=c(d,n),d!==(r=c(e,n))&&(p&&r&&(a(r)||(o=s(r)))?(o?(o=!1,u=i&&s(i)?i:[]):u=i&&a(i)?i:{},l(d,{name:n,newValue:t(p,u,r)})):void 0!==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 s=r.get;return void 0!==s?s.call(i):void 0},o=d(n(3)),s=d(n(2)),a=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));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 g=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,a.default.Embed),i(e,[{key:"attach",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=a.default.query(t,a.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=a.default.create(v.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}();g.scope=a.default.Scope.BLOCK_BLOT;var v=function(t){function e(t){f(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return p(e,a.default.Block),i(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),m(e))},new s.default).insert("\n",m(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||(a.default.query(i,a.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"),s=o.shift();s.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),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce(function(t,e){return(a=a.split(t,!0)).insertAt(0,e),e.length},t+s.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 l.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)+1),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()-1)){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}();function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:m(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[c.default,a.default.Embed,u.default],e.bubbleFormats=m,e.BlockEmbed=g,e.default=v},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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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 s=v(n(2)),a=v(n(14)),l=v(n(8)),c=v(n(9)),u=v(n(0)),d=n(15),f=v(d),h=v(n(3)),p=v(n(10)),g=v(n(34));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=(0,p.default)("quill"),b=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=w(e,i),this.container=this.options.container,null==this.container)return y.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 l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.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(l.default.events.EDITOR_CHANGE,function(t){t===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(t,e){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;_.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"),p.default.level(t)}},{key:"find",value:function(t){return t.__quill||u.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&y.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||y.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?u.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")).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=x(t,e,n),s=r(o,4);return t=s[0],e=s[1],n=s[3],_.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]:l.default.sources.API;return _.call(this,function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(u.default.query(t,u.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,m({},t,e));else{if(0===i.length)return n.selection.format(t,e),r;r=n.editor.formatText(i.index,i.length,m({},t,e))}return n.setSelection(i,l.default.sources.SILENT),r},i)}},{key:"formatLine",value:function(t,e,n,i,o){var s,a=this,l=x(t,e,n,i,o),c=r(l,4);return t=c[0],e=c[1],s=c[2],o=c[3],_.call(this,function(){return a.editor.formatLine(t,e,s)},o,t,0)}},{key:"formatText",value:function(t,e,n,i,o){var s,a=this,l=x(t,e,n,i,o),c=r(l,4);return t=c[0],e=c[1],s=c[2],o=c[3],_.call(this,function(){return a.editor.formatText(t,e,s)},o,t,0)}},{key:"getBounds",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e="number"==typeof t?this.selection.getBounds(t,n):this.selection.getBounds(t.index,t.length);var i=this.container.getBoundingClientRect();return{bottom:e.bottom-i.top,height:e.height,left:e.left-i.left,right:e.right-i.left,top:e.top-i.top,width:e.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=x(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(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&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=x(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 _.call(this,function(){return r.editor.insertEmbed(e,n,i)},o,e)}},{key:"insertText",value:function(t,e,n,i,o){var s,a=this,l=x(t,0,n,i,o),c=r(l,4);return t=c[0],s=c[2],o=c[3],_.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=x(t,e,n),s=r(o,4);return t=s[0],e=s[1],n=s[3],_.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]:l.default.sources.API;return _.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];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),r.delete(1)),i.compose(r)},n)}},{key:"setSelection",value:function(e,n,i){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=x(e,n,i),s=r(o,4);e=s[0],n=s[1],i=s[3],this.selection.setRange(new d.Range(e,n),i),i!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.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]:l.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]:l.default.sources.API;return _.call(this,function(){return t=new s.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();function w(t,e){if((e=(0,h.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=g.default;var n=(0,h.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)).reduce(function(t,e){var n=b.import("modules/"+e);return null==n?y.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,h.default)(!0,{},b.DEFAULTS,{modules:i},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,e,n,i){if(this.options.strict&&!this.isEnabled()&&e===l.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=k(r,a,e):0!==i&&(r=k(r,n,i,e)),this.setSelection(r,l.default.sources.SILENT)),a.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,a,o,e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return a}function x(t,e,n,r,o){var s={};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"===(void 0===n?"undefined":i(n))?(s=n,o=r):"string"==typeof n&&(null!=r?s[n]=r:o=n),[t,e,s,o=o||l.default.sources.API]}function k(t,e,n,i){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var c=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,i!==l.default.sources.USER)}),u=r(c,2);o=u[0],a=u[1]}else{var f=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&i===l.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),h=r(f,2);o=h[0],a=h[1]}return new d.Range(o,a-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":g.default},e.expandConfig=w,e.overload=x,e.default=b},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 s=r.get;return void 0!==s?s.call(i):void 0},o=a(n(7)),s=a(n(0));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.default.Inline),i(e,[{key:"formatAt",value:function(t,n,i,o){if(e.compare(this.statics.blotName,i)<0&&s.default.query(i,s.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.allowedChildren=[l,s.default.Embed,o.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n(0))&&i.__esModule?i:{default:i},o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,r.default.Text),e}();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=o(n(54));function o(t){return t&&t.__esModule?t:{default:t}}var s=(0,o(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].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 a=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return 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)}(e,r.default),i(e,[{key:"emit",value:function(){s.log.apply(s,arguments),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 s=r.get;return void 0!==s?s.call(i):void 0}(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.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"},a.sources={API:"api",SILENT:"silent",USER:"user"},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},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),s=1;s<n;s++)o[s-1]=arguments[s];(e=console)[t].apply(e,o)}}function s(t){return i.reduce(function(e,n){return e[n]=o.bind(console,n,t),e},{})}o.level=s.level=function(t){r=t},e.default=s},function(t,e,n){var i=Array.prototype.slice,r=n(52),o=n(53),s=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:function(t,e,n){var c,u;if(a(t)||a(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=i.call(t),e=i.call(e),s(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(c=0;c<t.length;c++)if(t[c]!==e[c])return!1;return!0}try{var d=r(t),f=r(e)}catch(t){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(t[u],e[u],n))return!1;return typeof t==typeof e}(t,e,n))};function a(t){return null==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(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){return null!=i.query(t,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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 s=r.get;return void 0!==s?s.call(i):void 0},s=d(n(2)),a=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));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 g=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,c.default),e}();g.blotName="code",g.tagName="CODE";var v=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,l.default),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(u.default,this.length()-1),s=i(r,1)[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!=a.default.query(i,a.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 s=this.newlineIndex(t,!0)+1,l=o-s+1,c=this.isolate(s,l),u=c.next;c.format(i,r),u instanceof e&&u.formatAt(0,t-s+n-l,i,r)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(u.default,t),o=i(r,2),s=o[0],a=o[1];s.insertAt(a,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){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(a.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=a.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof a.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}();v.blotName="code-block",v.tagName="PRE",v.TAB="  ",e.Code=g,e.default=v},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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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}}(),s=m(n(2)),a=m(n(20)),l=m(n(0)),c=m(n(13)),u=m(n(24)),d=n(4),f=m(d),h=m(n(16)),p=m(n(21)),g=m(n(11)),v=m(n(3));function m(t){return t&&t.__esModule?t:{default:t}}var y=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(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=function(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,p.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,p.default)(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)}(t)).reduce(function(t,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var h=s.insert;h.endsWith("\n")&&n&&(n=!1,h=h.slice(0,-1)),t>=o&&!h.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,h);var p=e.scroll.line(t),g=r(p,2),m=g[0],y=g[1],b=(0,v.default)({},(0,d.bubbleFormats)(m));if(m instanceof f.default){var w=m.descendant(l.default.Leaf,y),_=r(w,1)[0];b=(0,v.default)(b,(0,d.bubbleFormats)(_))}u=a.default.attributes.diff(b,u)||{}}else if("object"===i(s.insert)){var x=Object.keys(s.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,s.insert[x])}o+=c}return Object.keys(u).forEach(function(n){e.scroll.formatAt(t,c,n,u[n])}),t+c},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)),s=e;o.forEach(function(e){var o=e.length();if(e instanceof c.default){var a=t-e.offset(n.scroll),l=e.newlineIndex(a+s)-a+1;e.formatAt(a,l,r,i[r])}else e.format(r,i[r]);s-=o})}}),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,p.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,p.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)[0];e instanceof f.default?n.push(e):e instanceof l.default.Leaf&&i.push(e)}):(n=this.scroll.lines(t,e),i=this.scroll.descendants(l.default.Leaf,t,e));var o=[n,i].map(function(t){if(0===t.length)return{};for(var e=(0,d.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=w((0,d.bubbleFormats)(n),e)}return e});return v.default.apply(v.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(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},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,p.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===f.default.blotName&&!(t.children.length>1)&&t.children.head instanceof h.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,d=new s.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(t,e+u).diff((new s.default).insert(n).concat(d)),h=(new s.default).retain(t).concat(f);return this.applyDelta(h)}},{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(y)&&l.default.find(e[0].target)){var r=l.default.find(e[0].target),o=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),c=e[0].oldValue.replace(u.default.CONTENTS,""),f=(new s.default).insert(c),h=(new s.default).insert(r.value());t=(new s.default).retain(a).concat(f.diff(h,n)).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,g.default)(i.compose(t),this.delta)||(t=i.diff(this.delta,n));return t}}]),t}();function w(t,e){return Object.keys(e).reduce(function(n,i){return null==t[i]?n:(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)},{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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=c(n(0)),s=c(n(21)),a=c(n(11)),l=c(n(8));function c(t){return t&&t.__esModule?t:{default:t}}function u(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 d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=(0,c(n(10)).default)("quill:selection"),h=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,t),this.index=e,this.length=n},p=function(){function t(e,n){var i=this;d(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){i.mouseDown||setTimeout(i.update.bind(i,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&i.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(i.hasFocus()){var t=i.getNativeRange();null!=t&&t.start.node!==i.cursor.textNode&&i.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{i.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,r=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;i.setNativeRange(r,o,s,a)}}),this.update(l.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(l.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&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=o.default.find(n.start.node,!1);if(null==i)return;if(i instanceof o.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),s=i(o,2),a=s[0],l=s[1];if(null==a)return null;var c=a.position(l,!0),u=i(c,2);r=u[0],l=u[1];var d=document.createRange();if(e>0){d.setStart(r,l);var f=this.scroll.leaf(t+e),h=i(f,2);if(a=h[0],l=h[1],null==a)return null;var p=a.position(l,!0),g=i(p,2);return r=g[0],l=g[1],d.setEnd(r,l),d.getBoundingClientRect()}var v="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),v="right"),m=d.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],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 f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),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],s=n[1],a=o.default.find(r,!0),l=a.offset(e.scroll);return 0===s?l:a instanceof o.default.Container?l+a.length():l+a.index(r,s)}),s=Math.min(Math.max.apply(Math,u(r)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(r)));return new h(a,s-a)}},{key:"normalizeNative",value:function(t){if(!g(this.root,t.startContainer)||!t.collapsed&&!g(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){for(var e=t.node,n=t.offset;!(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;n=(e=e.lastChild)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 s,a=e.scroll.leaf(t),l=i(a,2),c=l[0],u=l[1],d=c.position(u,0!==n),f=i(d,2);s=f[0],u=f[1],r.push(s,u)}),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)),s=i(o,1)[0],a=s;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,r));a=i(l,1)[0]}if(null!=s&&null!=a){var c=t.getBoundingClientRect();n.top<c.top?t.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(t.scrollTop+=n.bottom-c.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(f.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 s=(this.getNativeRange()||{}).native;if(null==s||r||t!==s.startContainer||e!==s.startOffset||n!==s.endContainer||i!==s.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 a=document.createRange();a.setStart(t,e),a.setEnd(n,i),o.removeAllRanges(),o.addRange(a)}}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]:l.default.sources.API;if("string"==typeof e&&(n=e,e=!1),f.info("setRange",t),null!=t){var i=this.rangeToNative(t);this.setNativeRange.apply(this,u(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]:l.default.sources.USER,e=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],c=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(e,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),t!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),t}();function g(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=h,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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=(i=n(0))&&i.__esModule?i:{default:i},s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,o.default.Embed),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?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 s=r.get;return void 0!==s?s.call(i):void 0}(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}();s.blotName="break",s.tagName="BR",e.default=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),s=n(30),a=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(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 o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=c(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},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,s){(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-=s}),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],s=[[this,t]];return r instanceof e?s.concat(r.path(o,n)):(null!=r&&s.push([r,o]),s)},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=c(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))})},e}(s.default);function c(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=l},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),s=n(31),a=n(17),l=n(1),c=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new s.default(n.domNode),n}return r(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=l.query(t);n instanceof o.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=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=s.Scope.INLINE_BLOT,e}(o.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 s(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 s(t){this.ops=t,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.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}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.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"},s.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(t){n=function(){}}try{i=Set}catch(t){i=function(){}}try{r=Promise}catch(t){r=function(){}}function o(s,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var f=[],h=[],p=void 0!==e;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function s(c,g){if(null===c)return null;if(0===g)return c;var v,m;if("object"!=typeof c)return c;if(t(c,n))v=new n;else if(t(c,i))v=new i;else if(t(c,r))v=new r(function(t,e){c.then(function(e){t(s(e,g-1))},function(t){e(s(t,g-1))})});else if(o.__isArray(c))v=[];else if(o.__isRegExp(c))v=new RegExp(c.source,a(c)),c.lastIndex&&(v.lastIndex=c.lastIndex);else if(o.__isDate(c))v=new Date(c.getTime());else{if(p&&e.isBuffer(c))return v=e.allocUnsafe?e.allocUnsafe(c.length):new e(c.length),c.copy(v),v;t(c,Error)?v=Object.create(c):void 0===u?(m=Object.getPrototypeOf(c),v=Object.create(m)):(v=Object.create(u),m=u)}if(l){var y=f.indexOf(c);if(-1!=y)return h[y];f.push(c),h.push(v)}for(var b in t(c,n)&&c.forEach(function(t,e){var n=s(e,g-1),i=s(t,g-1);v.set(n,i)}),t(c,i)&&c.forEach(function(t){var e=s(t,g-1);v.add(e)}),c){var w;m&&(w=Object.getOwnPropertyDescriptor(m,b)),w&&null==w.set||(v[b]=s(c[b],g-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(c);for(b=0;b<_.length;b++){var x=_[b];(!(C=Object.getOwnPropertyDescriptor(c,x))||C.enumerable||d)&&(v[x]=s(c[x],g-1),C.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(d){var k=Object.getOwnPropertyNames(c);for(b=0;b<k.length;b++){var C,O=k[b];(C=Object.getOwnPropertyDescriptor(c,O))&&C.enumerable||(v[O]=s(c[O],g-1),Object.defineProperty(v,O,{enumerable:!1}))}}return v}(s,c)}function s(t){return Object.prototype.toString.call(t)}function a(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=s,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===s(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===s(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===s(t)},o.__getRegExpFlags=a,o}();"object"==typeof t&&t.exports&&(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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 s=r.get;return void 0!==s?s.call(i):void 0},s=h(n(0)),a=h(n(8)),l=n(4),c=h(l),u=h(n(16)),d=h(n(13)),f=h(n(25));function h(t){return t&&t.__esModule?t:{default:t}}function p(t){return t instanceof c.default||t instanceof l.BlockEmbed}var g=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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 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)}(e,s.default.Scroll),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),s=i(r,2),a=s[0],c=s[1],f=this.line(t+n),h=i(f,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=h&&a!==h&&c>0){if(a instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var p=a.newlineIndex(a.length(),!0);if(p>-1&&(a=a.split(p+1))===h)return void this.optimize()}else if(h instanceof d.default){var g=h.newlineIndex(0);g>-1&&h.split(g+1)}var v=h.children.head instanceof u.default?null:h.children.head;a.moveChildren(h,v),a.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(p,t)}},{key:"lines",value:function(){return function t(e,n,i){var r=[],o=i;return e.children.forEachAt(n,i,function(e,n,i){p(e)?r.push(e):e instanceof s.default.Container&&(r=r.concat(t(e,n,o))),o-=i}),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{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(a.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=a.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(a.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(a.default.events.SCROLL_UPDATE,n,t)}}}]),e}();g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[c.default,l.BlockEmbed,f.default],e.default=g},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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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}}(),s=g(n(21)),a=g(n(11)),l=g(n(3)),c=g(n(2)),u=g(n(20)),d=g(n(0)),f=g(n(5)),h=g(n(10)),p=g(n(9));function g(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,h.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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},C),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.addBinding({key:e.keys.DELETE},{collapsed:!0},x)):(i.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),i.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),i.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},k),i.addBinding({key:e.keys.DELETE},{collapsed:!1},k),i.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),i.listen(),i}return 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)}(e,p.default),o(e,null,[{key:"match",value:function(t,e){return e=A(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=A(t);if(null==i||null==i.key)return m.warn("Attempted to add invalid keyboard binding",i);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),i=(0,l.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,s=(t.bindings[o]||[]).filter(function(t){return e.match(n,t)});if(0!==s.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var c=t.quill.getLine(l.index),u=r(c,2),f=u[0],h=u[1],p=t.quill.getLeaf(l.index),g=r(p,2),v=g[0],m=g[1],y=0===l.length?[v,m]:t.quill.getLeaf(l.index+l.length),b=r(y,2),w=b[0],_=b[1],x=v instanceof d.default.Text?v.value().slice(0,m):"",k=w instanceof d.default.Text?w.value().slice(_):"",C={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:t.quill.getFormat(l),offset:h,prefix:x,suffix:k};s.some(function(e){if(null!=e.collapsed&&e.collapsed!==C.collapsed)return!1;if(null!=e.empty&&e.empty!==C.empty)return!1;if(null!=e.offset&&e.offset!==C.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==C.format[t]}))return!1}else if("object"===i(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=C.format[t]:!1===e.format[t]?null==C.format[t]:(0,a.default)(e.format[t],C.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(C.prefix)||null!=e.suffix&&!e.suffix.test(C.suffix)||!0===e.handler.call(t,l,C))})&&n.preventDefault()}}}})}}]),e}();function w(t,e){var n,i=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},i,/^$/),v(n,"handler",function(n){var i=n.index;t===b.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i);return!(r(o,1)[0]instanceof d.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))}),n}function _(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),i=r(n,1)[0],o={};if(0===e.offset){var s=this.quill.getLine(t.index-1),a=r(s,1)[0];if(null!=a&&a.length()>1){var l=i.formats(),c=this.quill.getFormat(t.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-d,d,o,f.default.sources.USER),this.quill.focus()}}function x(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var i={},o=0,s=this.quill.getLine(t.index),a=r(s,1)[0];if(e.offset>=a.length()-1){var l=this.quill.getLine(t.index+1),c=r(l,1)[0];if(c){var d=a.formats(),h=this.quill.getFormat(t.index,1);i=u.default.attributes.diff(d,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index+o-1,n,i,f.default.sources.USER)}}function k(t){var e=this.quill.getLines(t),n={};if(e.length>1){var i=e[0].formats(),r=e[e.length-1].formats();n=u.default.attributes.diff(r,i)||{}}this.quill.deleteText(t,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,f.default.sources.USER),this.quill.setSelection(t.index,f.default.sources.SILENT),this.quill.focus()}function C(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 d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",i,f.default.sources.USER),this.quill.setSelection(t.index+1,f.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],f.default.sources.USER))})}function O(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=d.default.query("code-block"),i=e.index,o=e.length,s=this.quill.scroll.descendant(n,i),a=r(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,p=l.newlineIndex(u+c+o),g=l.domNode.textContent.slice(h,p).split("\n");c=0,g.forEach(function(e,r){t?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),c+=e.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(i,o,f.default.sources.SILENT)}}}}function q(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],f.default.sources.USER)}}}function A(t){if("string"==typeof t||"number"==typeof t)return A({key:t});if("object"===(void 0===t?"undefined":i(t))&&(t=(0,s.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[y]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:q("bold"),italic:q("italic"),underline:q("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:b.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",f.default.sources.USER)}},"outdent backspace":{key:b.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",f.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,f.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new c.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,f.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,f.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:b.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],s=(0,l.default)({},i.formats(),{list:"checked"}),a=(new c.default).retain(t.index).insert("\n",s).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(t.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.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],s=i[1],a=(new c.default).retain(t.index).insert("\n",e.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(t.index+1,f.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),s=o[0],a=o[1];if(a>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," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(t.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,f.default.sources.SILENT)}},"code exit":{key:b.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],s=(new c.default).retain(t.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,f.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!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 s=r.get;return void 0!==s?s.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=a(n(0)),s=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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 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)}(e,o.default.Embed),r(e,null,[{key:"value",value:function(){}}]),r(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,s=0;null!=r&&r.statics.scope!==o.default.Scope.BLOCK_BLOT;)s+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(s,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(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(){i(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(),i=void 0,r=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];i=l[0],r=l[1],a=l[2]}for(;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 s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(o.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([r,a].map(function(t){return Math.max(0,Math.min(i.data.length,t-1))}),2);return r=u[0],a=u[1],{startNode:i,startOffset:r,endNode:i,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}();l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s(n(0)),r=n(4),o=s(r);function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,i.default.Container),e}();a.allowedChildren=[o.default,r.BlockEmbed,a],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var i,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=(i=n(0))&&i.__esModule?i:{default:i},s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,o.default.Attributor.Style),r(e,[{key:"value",value:function(t){var n=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 s=r.get;return void 0!==s?s.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join(""):n}}]),e}(),a=new o.default.Attributor.Class("color","ql-color",{scope:o.default.Scope.INLINE}),l=new s("color","color",{scope:o.default.Scope.INLINE});e.ColorAttributor=s,e.ColorClass=a,e.ColorStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var i,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 s=r.get;return void 0!==s?s.call(i):void 0},s=(i=n(6))&&i.__esModule?i:{default:i},a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.default),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(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=o(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 l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}();function l(t,e){var n=document.createElement("a");n.href=t;var i=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(i)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=a,e.sanitize=l},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=a(n(23)),s=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}var l=0;function c(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var u=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(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 o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return r(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(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 o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.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-"+l,l+=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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=m(n(0)),r=m(n(5)),o=n(4),s=m(o),a=m(n(16)),l=m(n(25)),c=m(n(24)),u=m(n(35)),d=m(n(6)),f=m(n(22)),h=m(n(7)),p=m(n(55)),g=m(n(42)),v=m(n(23));function m(t){return t&&t.__esModule?t:{default:t}}r.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":h.default,"modules/clipboard":p.default,"modules/history":g.default,"modules/keyboard":v.default}),i.default.register(s.default,a.default,c.default,d.default,f.default,h.default),e.default=r.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){this.isolate(t,e).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 s=i.create(this.statics.scope);o.wrap(s),s.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),s=n(1),a=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),a=o.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=s.query(e,s.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=a},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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){o(t,this.keyName).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]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});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}Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[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}(n(12).default);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(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(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}();r.DEFAULTS={modules:{}},r.themes={default:r},e.default=r},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=s(n(0)),o=s(n(7));function s(t){return t&&t.__esModule?t:{default:t}}var a="\ufeff",l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=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}(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(a),n.rightGuard=document.createTextNode(a),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return 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)}(e,r.default.Embed),i(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1: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 s=r.get;return void 0!==s?s.call(i):void 0}(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(a).join("");if(t===this.leftGuard)if(this.prev instanceof o.default){var s=this.prev.length();this.prev.insertAt(s,i),e={startNode:this.prev.domNode,startOffset:s+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(r.default.create(n),this),e={startNode:n,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(r.default.create(n),this.next),e={startNode:n,startOffset:i.length}));return t.data=a,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}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var i,r=(i=n(0))&&i.__esModule?i:{default:i},o={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new r.default.Attributor.Attribute("align","align",o),a=new r.default.Attributor.Class("align","ql-align",o),l=new r.default.Attributor.Style("align","text-align",o);e.AlignAttribute=s,e.AlignClass=a,e.AlignStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var i,r=(i=n(0))&&i.__esModule?i:{default:i},o=n(26),s=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),a=new o.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var i,r=(i=n(0))&&i.__esModule?i:{default:i},o={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},s=new r.default.Attributor.Attribute("direction","dir",o),a=new r.default.Attributor.Class("direction","ql-direction",o),l=new r.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=s,e.DirectionClass=a,e.DirectionStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var i,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=(i=n(0))&&i.__esModule?i:{default:i},s={scope:o.default.Scope.INLINE,whitelist:["serif","monospace"]},a=new o.default.Attributor.Class("font","ql-font",s),l=new(function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,o.default.Attributor.Style),r(e,[{key:"value",value:function(t){return 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 s=r.get;return void 0!==s?s.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}())("font","font-family",s);e.FontStyle=l,e.FontClass=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var i,r=(i=n(0))&&i.__esModule?i:{default:i},o=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=o,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=a(n(0)),o=a(n(5)),s=a(n(9));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(o.default.events.EDITOR_CHANGE,function(t,e,n,r){t!==o.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==o.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 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)}(e,s.default),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],o.default.sources.USER),this.ignoreChange=!1;var i=c(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}();function c(t){var e=t.reduce(function(t,e){return t+(e.delete||0)},0),n=t.length()-e;return function(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!=r.default.query(t,r.default.Scope.BLOCK)}))}(t)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=l,e.getLastChangeIndex=c},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=h(n(3)),o=h(n(2)),s=h(n(8)),a=h(n(23)),l=h(n(34)),c=h(n(59)),u=h(n(60)),d=h(n(28)),f=h(n(61));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 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 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 m=[!1,"center","right","justify"],y=["#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"],b=[!1,"serif","monospace"],w=["1","2","3",!1],_=["small",!1,"large","huge"],x=function(t){function e(t,n){p(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,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()})}),i}return v(e,l.default),i(e,[{key:"addModule",value:function(t){var n=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 s=r.get;return void 0!==s?s.call(i):void 0}(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){(t.getAttribute("class")||"").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")&&C(t,m),new u.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")&&C(t,y,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?C(t,b):t.classList.contains("ql-header")?C(t,w):t.classList.contains("ql-size")&&C(t,_)),new d.default(t)}),this.quill.on(s.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(t){t.update()})})}}]),e}();x.DEFAULTS=(0,r.default)(!0,{},l.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")).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 o.default).retain(i.index).delete(i.length).insert({image:n.target.result}),s.default.sources.USER),t.quill.setSelection(i.index+1,s.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 k=function(t){function e(t,n){p(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return v(e,f.default),i(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){a.default.match(e,"enter")?(t.save(),e.preventDefault()):a.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,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,s.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(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}(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,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",s.default.sources.USER),this.quill.setSelection(i+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}();function C(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=k,e.default=x},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){for(var e,n=this.iterator();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){for(var e=0,n=this.head;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);for(var n,i=this.iterator();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){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var i,r=this.find(t),o=r[0],s=t-r[1],a=this.iterator(o);(i=a())&&s<t+e;){var l=i.length();t>s?n(i,t-s,Math.min(e,s+l-t)):n(i,0,Math.min(l,t+e-s)),s+=l}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,i=this.iterator();n=i();)e=t(e,n);return e},t}();e.default=i},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},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 r(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);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)e.push(r.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==i&&null!=t.domNode.parentNode&&(null==t.domNode[s.DATA_KEY].mutations&&(t.domNode[s.DATA_KEY].mutations=[]),e&&a(t.parent))},l=function(t){null!=t.domNode[s.DATA_KEY]&&null!=t.domNode[s.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(t){var e=s.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(s.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=s.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(l),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)e.push(r.pop())}},e.prototype.update=function(e,n){var i=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map(function(t){var e=s.find(t.target,!0);return null==e?null:null==e.domNode[s.DATA_KEY].mutations?(e.domNode[s.DATA_KEY].mutations=[t],e):(e.domNode[s.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==i&&null!=t.domNode[s.DATA_KEY]&&t.update(t.domNode[s.DATA_KEY].mutations||[],n)}),null!=this.domNode[s.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=s.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,i){var r=this;n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):(this.children.forEach(function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),r.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,i,r){null!=this.formats()[i]||s.query(i,s.Scope.ATTRIBUTE)?this.isolate(e,n).format(i,r):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&&function(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}(i,r.formats())&&(r.moveChildren(this),r.remove())},e.blotName="inline",e.scope=s.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=a},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var i=s.query(e.blotName).tagName;if(n.tagName!==i)return t.formats.call(this,n)},e.prototype.format=function(n,i){null!=s.query(n,s.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!=s.query(i,s.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!=s.query(n,s.Scope.INLINE))t.prototype.insertAt.call(this,e,n,i);else{var r=this.split(e),o=s.create(n,i);r.parent.insertBefore(o,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=s.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(n(19).default);e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),s=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 r(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=s.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=s.Scope.INLINE_BLOT,e}(o.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,c){if(t==e)return t?[[r,t]]:[];(c<0||t.length<c)&&(c=null);var d=a(t,e),f=t.substring(0,d);d=l(t=t.substring(d),e=e.substring(d));var h=t.substring(t.length-d),p=function(t,e){var c;if(!t)return[[i,e]];if(!e)return[[n,t]];var u=t.length>e.length?t:e,d=t.length>e.length?e:t,f=u.indexOf(d);if(-1!=f)return c=[[i,u.substring(0,f)],[r,d],[i,u.substring(f+d.length)]],t.length>e.length&&(c[0][0]=c[2][0]=n),c;if(1==d.length)return[[n,t],[i,e]];var h=function(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){for(var i,r,o,s,c=t.substring(n,n+Math.floor(t.length/4)),u=-1,d="";-1!=(u=e.indexOf(c,u+1));){var f=a(t.substring(n),e.substring(u)),h=l(t.substring(0,n),e.substring(0,u));d.length<h+f&&(d=e.substring(u-h,u)+e.substring(u,u+f),i=t.substring(0,n-h),r=t.substring(n+f),o=e.substring(0,u-h),s=e.substring(u+f))}return 2*d.length>=t.length?[i,r,o,s,d]:null}var o,s,c,u,d,f=r(n,i,Math.ceil(n.length/4)),h=r(n,i,Math.ceil(n.length/2));return f||h?(o=h?f&&f[4].length>h[4].length?f:h:f,t.length>e.length?(s=o[0],c=o[1],u=o[2],d=o[3]):(u=o[0],d=o[1],s=o[2],c=o[3]),[s,c,u,d,o[4]]):null}(t,e);if(h){var p=h[0],g=h[1],v=h[2],m=h[3],y=h[4],b=o(p,v),w=o(g,m);return b.concat([[r,y]],w)}return function(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),l=a,c=2*a,u=new Array(c),d=new Array(c),f=0;f<c;f++)u[f]=-1,d[f]=-1;u[l+1]=0,d[l+1]=0;for(var h=r-o,p=h%2!=0,g=0,v=0,m=0,y=0,b=0;b<a;b++){for(var w=-b+g;w<=b-v;w+=2){for(var _=l+w,x=(A=w==-b||w!=b&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-w;A<r&&x<o&&t.charAt(A)==e.charAt(x);)A++,x++;if(u[_]=A,A>r)v+=2;else if(x>o)g+=2;else if(p&&(O=l+h-w)>=0&&O<c&&-1!=d[O]){var k=r-d[O];if(A>=k)return s(t,e,A,x)}}for(var C=-b+m;C<=b-y;C+=2){for(var O=l+C,q=(k=C==-b||C!=b&&d[O-1]<d[O+1]?d[O+1]:d[O-1]+1)-C;k<r&&q<o&&t.charAt(r-k-1)==e.charAt(o-q-1);)k++,q++;if(d[O]=k,k>r)y+=2;else if(q>o)m+=2;else if(!p&&(_=l+h-C)>=0&&_<c&&-1!=u[_]){var A=u[_];if(x=l+A-_,A>=(k=r-k))return s(t,e,A,x)}}}return[[n,t],[i,e]]}(t,e)}(t=t.substring(0,t.length-d),e=e.substring(0,e.length-d));return f&&p.unshift([r,f]),h&&p.push([r,h]),function t(e){e.push([r,""]);for(var o,s=0,c=0,u=0,d="",f="";s<e.length;)switch(e[s][0]){case i:u++,f+=e[s][1],s++;break;case n:c++,d+=e[s][1],s++;break;case r:c+u>1?(0!==c&&0!==u&&(0!==(o=a(f,d))&&(s-c-u>0&&e[s-c-u-1][0]==r?e[s-c-u-1][1]+=f.substring(0,o):(e.splice(0,0,[r,f.substring(0,o)]),s++),f=f.substring(o),d=d.substring(o)),0!==(o=l(f,d))&&(e[s][1]=f.substring(f.length-o)+e[s][1],f=f.substring(0,f.length-o),d=d.substring(0,d.length-o))),0===c?e.splice(s-u,c+u,[i,f]):0===u?e.splice(s-c,c+u,[n,d]):e.splice(s-c-u,c+u,[n,d],[i,f]),s=s-c-u+(c?1:0)+(u?1:0)+1):0!==s&&e[s-1][0]==r?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,u=0,c=0,d="",f=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(s=1;s<e.length-1;)e[s-1][0]==r&&e[s+1][0]==r&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)==e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),h=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),h=!0)),s++;h&&t(e)}(p),null!=c&&(p=function(t,e){var i=function(t,e){if(0===e)return[r,t];for(var i=0,o=0;o<t.length;o++){var s=t[o];if(s[0]===n||s[0]===r){var a=i+s[1].length;if(e===a)return[o+1,t];if(e<a){t=t.slice();var l=e-i,c=[s[0],s[1].slice(0,l)],u=[s[0],s[1].slice(l)];return t.splice(o,1,c,u),[o+1,t]}i=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),o=i[1],s=i[0],a=o[s],l=o[s+1];if(null==a)return t;if(a[0]!==r)return t;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(s,2,l,a),u(o,s,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(s,2,[l[0],a[1]],[0,a[1]]);var c=l[1].slice(a[1].length);return c.length>0&&o.splice(s+2,0,[l[0],c]),u(o,s,3)}return t}(p,c)),function(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},s=2;s<t.length;s+=1)t[s-2][0]===r&&(a=t[s-2][1]).charCodeAt(a.length-1)>=55296&&a.charCodeAt(a.length-1)<=56319&&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));var a;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}(p)}function s(t,e,n,i){var r=t.substring(0,n),s=e.substring(0,i),a=t.substring(n),l=e.substring(i),c=o(r,s),u=o(a,l);return c.concat(u)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,i=Math.min(t.length,e.length),r=i,o=0;n<r;)t.substring(o,r)==e.substring(o,r)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,i=Math.min(t.length,e.length),r=i,o=0;n<r;)t.substring(t.length-r,t.length-o)==e.substring(e.length-r,e.length-o)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}var c=o;function u(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}c.INSERT=i,c.DELETE=n,c.EQUAL=r,t.exports=c},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).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).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 s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),s.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},s.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,s=r.length,a=new Array(s);o<s;o++)a[o]=r[o].fn;return a},s.prototype.emit=function(t,e,n,r,o,s){var a=i?i+t:t;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,n),!0;case 4:return u.fn.call(u.context,e,n,r),!0;case 5:return u.fn.call(u.context,e,n,r,o),!0;case 6:return u.fn.call(u.context,e,n,r,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,n);break;case 4:u[c].fn.call(u[c].context,e,n,r);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(t,e,n){var r=new o(e,n||this),s=i?i+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.once=function(t,e,n){var r=new o(e,n||this,!0),s=i?i+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.removeListener=function(t,e,n,o){var s=i?i+t:t;if(!this._events[s])return this;if(!e)return 0==--this._eventsCount?this._events=new r:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==e||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new r:delete this._events[s]}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==t&&(t.exports=s)},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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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}}(),s=b(n(3)),a=b(n(2)),l=b(n(0)),c=b(n(5)),u=b(n(10)),d=b(n(9)),f=n(36),h=n(37),p=b(n(13)),g=n(26),v=n(38),m=n(39),y=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,u.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,P],["br",function(t,e){return S(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,function(t,e){var n={},i=t.style||{};return i.fontStyle&&"italic"===E(t).fontStyle&&(n.italic=!0),i.fontWeight&&(E(t).fontWeight.startsWith("bold")||parseInt(E(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=A(e,n)),parseFloat(i.textIndent||0)>0&&(e=(new a.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=l.default.query(t);if(null==n||"list-item"!==n.blotName||!S(e,"\n"))return e;for(var i=-1,r=t.parentNode;!r.classList.contains("ql-clipboard");)"list"===(l.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:i}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new a.default}]],C=[f.AlignAttribute,v.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),O=[f.AlignStyle,h.BackgroundStyle,g.ColorStyle,v.DirectionStyle,m.FontStyle,y.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),q=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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=[],k.concat(i.options.matchers).forEach(function(t){var e=r(t,2),o=e[0],s=e[1];(n.matchVisual||s!==M)&&i.addMatcher(o,s)}),i}return 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)}(e,d.default),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[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,w({},p.default.blotName,e[p.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),s=o[0],l=o[1],c=function t(e,n,i){return e.nodeType===e.TEXT_NODE?i.reduce(function(t,n){return n(e,t)},new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(r,o){var s=t(o,n,i);return o.nodeType===e.ELEMENT_NODE&&(s=n.reduce(function(t,e){return e(o,t)},s),s=(o[x]||[]).reduce(function(t,e){return e(o,t)},s)),r.concat(s)},new a.default):new a.default}(this.container,s,l);return S(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),_.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,c.default.sources.SILENT);else{var i=this.convert(e);this.quill.updateContents((new a.default).retain(t).concat(i),n),this.quill.setSelection(t+i.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){i=i.concat(e.convert()).delete(n.length),e.quill.updateContents(i,c.default.sources.USER),e.quill.setSelection(i.length()-n.length,c.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),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(s),function(t){t[x]=t[x]||[],t[x].push(a)})}}),[e,n]}}]),e}();function A(t,e,n){return"object"===(void 0===e?"undefined":i(e))?Object.keys(e).reduce(function(t,n){return A(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)({},w({},e,n),i.attributes))},new a.default)}function E(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function S(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 T(t){if(0===t.childNodes.length)return!1;var e=E(t);return["block","list-item"].indexOf(e.display)>-1}function j(t,e,n){return A(n,t,!0)}function N(t,e){var n=l.default.Attributor.Attribute.keys(t),i=l.default.Attributor.Class.keys(t),r=l.default.Attributor.Style.keys(t),o={};return n.concat(i).concat(r).forEach(function(e){var n=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=O[e])||n.attrName!==e&&n.keyName!==e||(n=O[e],o[n.attrName]=n.value(t)||void 0))}),Object.keys(o).length>0&&(e=A(e,o)),e}function D(t,e){var n=l.default.query(t);if(null==n)return e;if(n.prototype instanceof l.default.Embed){var i={},r=n.value(t);null!=r&&(i[n.blotName]=r,e=(new a.default).insert(i,n.formats(t)))}else"function"==typeof n.formats&&(e=A(e,n.blotName,n.formats(t)));return e}function P(t,e){return S(e,"\n")||(T(t)||e.length()>0&&t.nextSibling&&T(t.nextSibling))&&e.insert("\n"),e}function M(t,e){if(T(t)&&null!=t.nextElementSibling&&!S(e,"\n\n")){var n=t.offsetHeight+parseFloat(E(t).marginTop)+parseFloat(E(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function L(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(!E(t.parentNode).whiteSpace.startsWith("pre")){var i=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==t.previousSibling&&T(t.parentNode)||null!=t.previousSibling&&T(t.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==t.nextSibling&&T(t.parentNode)||null!=t.nextSibling&&T(t.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return e.insert(n)}q.DEFAULTS={matchers:[],matchVisual:!0},e.default=q,e.matchAttributor=N,e.matchBlot=D,e.matchNewline=P,e.matchSpacing=M,e.matchText=L},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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 s=r.get;return void 0!==s?s.call(i):void 0},s=(i=n(6))&&i.__esModule?i:{default:i},a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.default),r(e,[{key:"optimize",value:function(t){o(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 o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}();a.blotName="bold",a.tagName=["STRONG","B"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);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=u(n(2)),s=u(n(0)),a=u(n(5)),l=u(n(10)),c=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}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}var f=(0,l.default)("quill:toolbar"),h=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r,o=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");g(s,o.options.container),t.container.parentNode.insertBefore(s,t.container),o.container=s}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(a.default.events.EDITOR_CHANGE,function(t,e){t===a.default.events.SELECTION_CHANGE&&o.update(e)}),o.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var t=o.quill.selection.getRange(),e=i(t,1)[0];o.update(e)}),o):(r=f.error("Container required for toolbar",o.options),d(o,r))}return 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)}(e,c.default),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 f.warn("ignoring attaching to disabled format",n,t);if(null==s.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var l=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var c=t.options[t.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!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)[0];if(null!=e.handlers[n])e.handlers[n].call(e,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,l)),a.default.sources.USER)}else e.quill.format(n,l,a.default.sources.USER);e.update(d)}),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],s=r[1];if("SELECT"===s.tagName){var a=void 0;if(null==t)a=null;else if(null==e[o])a=s.querySelector("option[selected]");else if(!Array.isArray(e[o])){var l=e[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==t)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=e[o]===s.getAttribute("value")||null!=e[o]&&e[o].toString()===s.getAttribute("value")||null==e[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=e[o])})}}]),e}();function p(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 g(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)p(n,t);else{var e=Object.keys(t)[0],i=t[e];Array.isArray(i)?function(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)}(n,e,i):p(n,e,i)}}),t.appendChild(n)})}h.DEFAULTS={},h.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!=s.default.query(e,s.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,a.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",a.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",t,a.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,a.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,a.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,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",t,a.default.sources.USER)}}},e.default=h,e.addControls=g},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,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 s=r.get;return void 0!==s?s.call(i):void 0},s=(i=n(28))&&i.__esModule?i:{default:i},a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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 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)}(e,s.default),r(e,[{key:"buildItem",value:function(t){var n=o(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){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var i=this.label.querySelector(".ql-color-label"),r=t&&t.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=r:i.style.fill=r)}}]),e}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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=(i=n(28))&&i.__esModule?i:{default:i},s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(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 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)}(e,o.default),r(e,[{key:"selectItem",value:function(t,n){(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 s=r.get;return void 0!==s?s.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}();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(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(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 s=r.bottom-r.top,a=t.bottom-t.top+s;this.root.style.top=n-a+"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=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!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 s=r.get;return void 0!==s?s.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=f(n(3)),s=f(n(8)),a=n(43),l=f(a),c=f(n(27)),u=n(15),d=f(n(41));function f(t){return t&&t.__esModule?t:{default: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 g(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=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var i=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-snow"),i}return g(e,l.default),r(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default),this.tooltip=new y(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}();m.DEFAULTS=(0,o.default)(!0,{},l.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),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(t){function e(t,n){h(this,e);var i=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return g(e,a.BaseTooltip),r(e,[{key:"listen",value:function(){var t=this;i(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,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(s.default.events.SELECTION_CHANGE,function(e,n,i){if(null!=e){if(0===e.length&&i===s.default.sources.USER){var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.quill.scroll.descendant(c.default,e.index),2),o=r[0],a=r[1];if(null!=o){t.linkRange=new u.Range(e.index-a,o.length());var l=c.default.formats(o.domNode);return t.preview.textContent=l,t.preview.setAttribute("href",l),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}();y.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=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=M(n(29)),r=n(36),o=n(38),s=n(64),a=M(n(65)),l=M(n(66)),c=n(67),u=M(c),d=n(37),f=n(26),h=n(39),p=n(40),g=M(n(56)),v=M(n(68)),m=M(n(27)),y=M(n(69)),b=M(n(70)),w=M(n(71)),_=M(n(72)),x=M(n(73)),k=n(13),C=M(k),O=M(n(74)),q=M(n(75)),A=M(n(57)),E=M(n(41)),S=M(n(28)),T=M(n(59)),j=M(n(60)),N=M(n(61)),D=M(n(108)),P=M(n(62));function M(t){return t&&t.__esModule?t:{default:t}}i.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":p.SizeStyle},!0),i.default.register({"formats/align":r.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":h.FontClass,"formats/size":p.SizeClass,"formats/blockquote":a.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":v.default,"formats/link":m.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":O.default,"modules/syntax":q.default,"modules/toolbar":A.default,"themes/bubble":D.default,"themes/snow":P.default,"ui/icons":E.default,"ui/picker":S.default,"ui/icon-picker":j.default,"ui/color-picker":T.default,"ui/tooltip":N.default},!0),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var i,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 s=r.get;return void 0!==s?s.call(i):void 0},s=(i=n(0))&&i.__esModule?i:{default:i},a=new(function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.default.Attributor.Class),r(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):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}())("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n(4))&&i.__esModule?i:{default:i},o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,r.default),e}();o.blotName="blockquote",o.tagName="blockquote",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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=(i=n(4))&&i.__esModule?i:{default:i},s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,o.default),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}();s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],e.default=s},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 s=r.get;return void 0!==s?s.call(i):void 0},o=l(n(0)),s=l(n(4)),a=l(n(25));function l(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 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 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=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,s.default),i(e,[{key:"format",value:function(t,n){t!==h.blotName||n?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.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}();f.blotName="list-item",f.tagName="LI";var h=function(t){function e(t){c(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),i=function(e){if(e.target.parentNode===t){var i=n.statics.formats(t),r=o.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 d(e,a.default),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 t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof f)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=o.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}();h.blotName="list",h.scope=o.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[f],e.ListItem=f,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n(56))&&i.__esModule?i:{default:i},o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,r.default),e}();o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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=(i=n(6))&&i.__esModule?i:{default:i},s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,o.default),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):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 s=r.get;return void 0!==s?s.call(i):void 0}(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}();s.blotName="script",s.tagName=["SUB","SUP"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n(6))&&i.__esModule?i:{default:i},o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,r.default),e}();o.blotName="strike",o.tagName="S",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n(6))&&i.__esModule?i:{default:i},o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,r.default),e}();o.blotName="underline",o.tagName="U",e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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 s=r.get;return void 0!==s?s.call(i):void 0},s=(i=n(0))&&i.__esModule?i:{default:i},a=n(27),l=["alt","height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.default.Embed),r(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 l.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,a.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}();c.blotName="image",c.tagName="IMG",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,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 s=r.get;return void 0!==s?s.call(i):void 0},s=n(4),a=(i=n(27))&&i.__esModule?i:{default:i},l=["height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,s.BlockEmbed),r(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 l.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return a.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}();c.blotName="video",c.className="ql-video",c.tagName="IFRAME",e.default=c},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=a(n(35)),o=a(n(5)),s=a(n(9));function a(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 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 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 d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,r.default),i(e,null,[{key:"create",value:function(t){var n=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 s=r.get;return void 0!==s?s.call(i):void 0}(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}();d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var f=function(t){function e(){l(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return u(e,s.default),i(e,null,[{key:"register",value:function(){o.default.register(d,!0)}}]),e}();e.FormulaBlot=d,e.default=f},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=l(n(0)),o=l(n(5)),s=l(n(9)),a=l(n(13));function l(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 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 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=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,a.default),i(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),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 s=r.get;return void 0!==s?s.call(i):void 0}(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.className="ql-syntax";var h=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),p=function(t){function e(t,n){c(this,e);var i=u(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(o.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(r),r=setTimeout(function(){i.highlight(),r=null},i.options.interval)}),i.highlight(),i}return d(e,s.default),i(e,null,[{key:"register",value:function(){o.default.register(h,!0),o.default.register(f,!0)}}]),i(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}();p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=h,e.default=p},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 s=r.get;return void 0!==s?s.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=d(n(3)),s=d(n(8)),a=n(43),l=d(a),c=n(15),u=d(n(41));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 g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(t){function e(t,n){f(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var i=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-bubble"),i}return p(e,l.default),r(e,[{key:"extendToolbar",value:function(t){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),u.default)}}]),e}();v.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(t){function e(t,n){f(this,e);var i=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.on(s.default.events.EDITOR_CHANGE,function(t,e,n,r){if(t===s.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===s.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],l=i.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-l),d=i.quill.getBounds(new c.Range(l,u));i.position(d)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()}),i}return p(e,a.BaseTooltip),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(s.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}();m.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=m,e.default=v},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n("tjlA").Buffer)},ls82:function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(t,e,n,i){var r=e&&e.prototype instanceof g?e:g,o=Object.create(r.prototype),s=new A(i||[]);return o._invoke=function(t,e,n){var i=u;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===h){if("throw"===r)throw o;return S()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?h:d,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=h,n.method="throw",n.arg=l.arg)}}}(t,n,s),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function g(){}function v(){}function m(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==n&&i.call(w,o)&&(y=w);var _=m.prototype=g.prototype=Object.create(y);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,s){var a=c(t[n],t,r);if("throw"!==a.type){var l=a.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(u).then(function(t){l.value=t,o(l)},function(t){return e("throw",t,o,s)})}s(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function C(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}return{next:S}}function S(){return{value:e,done:!0}}return v.prototype=_.constructor=m,m.constructor=v,m[a]=v.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(k.prototype),k.prototype[s]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,i,r){var o=new k(l(e,n,i,r));return t.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(_),_[a]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),q(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;q(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},luP2:function(t,e,n){const i=n("kzlf"),r=n("T15t"),o=i.import("formats/image");class s extends o{static create(t){let e,n;const i=t.split(r.ID_SPLIT_FLAG);i.length>1?(e=i[0],n=i[1]):n=t;let o=super.create(n);return"string"==typeof n&&o.setAttribute("src",this.sanitize(n)),e&&o.setAttribute("id",e),o}}s.blotName="imageUpload",s.className=r.IMAGE_UPLOAD_PLACEHOLDER_CLASS_NAME,i.register({"formats/imageUploadPlaceholder":s})},o0o1:function(t,e,n){t.exports=n("ls82")},qBGu:function(t,e,n){"use strict";var i=n("o0o1"),r=n.n(i),o=n("L2JU"),s=n("kzlf"),a=n.n(s),l=n("TDHc"),c=n.n(l),u=n("wHSu");function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){f(t,e,n[e])})}return 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}a.a.register("modules/imageUpload",c.a);var h={props:{formShown:{required:!0,type:Boolean},resourceId:{required:!0,type:Number},resourceType:{required:!0,type:String},discussion:{required:!1,type:Object}},data:function(){return{quill:null,name:"",cycleId:"",categoryId:"",categories:[],faChevronDown:u.h}},mounted:function(){var t=this;null===this.quill&&(this.quill=new a.a("#editor",{modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["blockquote","code-block"],["image","link"]],imageUpload:{upload:function(e){var n=new FormData;return n.append("files[0]",e),n.append("group_type",t.resourceType),n.append("group_id",t.resourceId),n.append("for_editor",!0),new Promise(function(e,i){axios.post("/files",n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(n){t.showNotification({type:n.data.status,message:n.data.message}),e(n.data.url)}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message})})})}}},theme:"snow"}))},watch:{formShown:function(t,e){t&&(this.getCategories(),this.cycleId=this.selectedCycleId,this.discussion&&this.hydrateEditor())}},computed:d({},Object(o.c)({cycles:function(t){return t.cycle.cycles},selectedCycleId:function(t){return t.cycle.selectedCycleId}})),methods:d({},Object(o.b)(["showNotification"]),{savePost:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];axios.post("/discussions",{name:this.name,category_id:this.categoryId,content:this.quill.root.innerHTML,raw_content:JSON.stringify(this.quill.getContents()),draft:e,cycle_id:0!==this.cycleId?this.cycleId:null,group_type:this.resourceType,group_id:this.resourceId}).then(function(e){t.name="",t.categoryId="",t.quill.setContents([]),t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close",e.data.discussion)}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close")})},closeEditor:function(){this.name="",this.cycleId="",this.categoryId="",this.quill.setContents([]),this.$emit("close")},getCategories:function(){var t=this;this.formShown&&this.categories.length<1&&axios.get("/categories").then(function(e){t.categories=e.data.categories}).catch(function(t){})},hydrateEditor:function(){this.name=this.discussion.name,this.cycleId=this.discussion.cycle_id,this.categoryId=this.discussion.category_id,this.quill.updateContents(JSON.parse(this.discussion.raw_content))},updatePost:function(){var t=this;axios.patch("/discussions/"+this.discussion.id,{name:this.name,category_id:this.categoryId,content:this.quill.root.innerHTML,raw_content:JSON.stringify(this.quill.getContents()),cycle_id:0!==this.cycleId?this.cycleId:null,group_type:this.resourceType,group_id:this.resourceId}).then(function(e){t.name="",t.categoryId="",t.quill.setContents([]),t.showNotification({type:e.data.status,message:e.data.message}),t.$emit("close",null,e.data.discussion)}).catch(function(e){t.showNotification({type:e.response.data.status,message:e.response.data.message}),t.$emit("close")})}})},p=(n("CupY"),n("KHd+")),g=Object(p.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-auto mb-8 w-5/6 md:w-md lg:w-lg xl:w-xl z-10",class:{hidden:!t.formShown},staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"bg-white rounded shadow-lg"},[n("div",{},[n("div",{staticClass:"px-8 pt-8 bg-gray-200 rounded-t"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"inputFocus",staticClass:"appearance-none block w-full bg-white text-gray-800 border border-gray-200 rounded py-3 px-4",attrs:{id:"grid-last-name",type:"text",placeholder:"New Discussion Post",required:""},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"px-8 py-4 bg-gray-200"},[t._m(1),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.categoryId,expression:"categoryId"}],staticClass:"appearance-none block w-full bg-white text-gray-800 border border-gray-200 rounded py-3 px-4",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.categoryId=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",disabled:""}},[t._v("Choose one")]),t._v(" "),t._l(t.categories,function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-700 -ml-8",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),n("div",{staticClass:"px-8 pb-4 bg-gray-200"},[n("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[t._v("\n            Cycle\n          ")]),t._v(" "),n("div",{staticClass:"flex flex-row items-center"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.cycleId,expression:"cycleId"}],staticClass:"appearance-none block w-full bg-white text-gray-800 border border-gray-200 rounded py-3 px-4",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.cycleId=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",select:"",hidden:"",disabled:""}},[t._v("Choose one")]),t._v(" "),t._l(t.cycles,function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name?e.name:e.start_date+" - "+e.end_date))])})],2),t._v(" "),n("font-awesome-icon",{staticClass:"w-1/6 pointer-events-none flex items-center text-gray-700 -ml-8",attrs:{icon:t.faChevronDown}})],1)]),t._v(" "),t._m(2)]),t._v(" "),n("div",{staticClass:"flex flex-row justify-between px-8 py-4 bg-white rounded-b"},[n("button",{staticClass:"no-underline px-3 py-2 my-4 bg-white text-base text-red-400 rounded border-red-400 border",on:{click:t.closeEditor}},[t._v("Cancel")]),t._v(" "),this.discussion?t._e():n("div",[n("button",{staticClass:"no-underline px-3 py-2 mr-4 my-4 text-teal-400  text-base bg-white font-medium rounded border-teal-400  border",on:{click:function(e){return t.savePost(!0)}}},[t._v("Save as a Draft")]),t._v(" "),n("button",{staticClass:"no-underline px-3 py-2 my-4 bg-teal-400 text-base text-white font-medium rounded",on:{click:function(e){return t.savePost(!1)}}},[t._v("Publish")])]),t._v(" "),this.discussion?n("div",[n("button",{staticClass:"no-underline px-3 py-2 my-4 bg-teal-400 text-base text-white font-medium rounded",on:{click:function(e){return t.updatePost()}}},[t._v("Save")])]):t._e()])]),t._v(" "),n("div",{staticClass:"h-16"})]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25",class:{hidden:!t.formShown},on:{click:t.closeEditor}})])},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Title "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Category "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"px-8 pb-8 bg-gray-200"},[e("label",{staticClass:"block uppercase tracking-wide text-gray-800 text-xs font-bold mb-2",attrs:{for:"grid-first-name"}},[this._v("\n            Body "),e("span",{staticClass:"text-gray-500 capitalize"},[this._v("(required)")])]),this._v(" "),e("div",{staticClass:"h-80 bg-white",attrs:{id:"editor"}})])}],!1,null,null,null).exports;function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={components:{commentBox:n("WmwA").a},props:{discussionDetailsShown:{required:!0,type:Boolean},discussion:{required:!0,type:Object},index:{required:!0}},data:function(){return{dropdownMenuShown:!1,faArrowLeft:u.b,faEllipsisH:u.m}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){v(t,e,n[e])})}return t}({},Object(o.b)(["showNotification"]),{closeDiscussionDetails:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dropdownMenuShown=!1,this.$emit("close",t)},toggleMenu:function(){this.dropdownMenuShown=!this.dropdownMenuShown},hideMenu:function(){this.dropdownMenuShown=!1},deleteDiscussion:function(){var t=this;axios.delete("/discussions/".concat(this.discussion.id)).then(function(e){t.$emit("deleted",t.index),t.closeDiscussionDetails(),t.showNotification({type:e.data.status,message:e.data.message})}).catch(function(e){t.closeDiscussionDetails(),t.showNotification({type:e.response.data.status,message:e.response.data.message})})},editDiscussion:function(){this.closeDiscussionDetails(!0)}})};function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}function w(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){b(o,i,r,s,a,"next",t)}function a(t){b(o,i,r,s,a,"throw",t)}s(void 0)})}}var _,x,k={components:{createDiscussionForm:g,discussionDetails:Object(p.a)(m,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.discussionDetailsShown?n("div",[n("div",{staticClass:"absolute container mx-auto md:w-5/6 lg:4/5 xl:w-3/4 xxl:w-2/3 z-10 mb-16",staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"bg-gray-100 rounded shadow-lg py-8"},[n("div",{staticClass:"flex flex-row justify-between relative px-8"},[n("div",{staticClass:"cursor-pointer",on:{click:t.closeDiscussionDetails}},[n("font-awesome-icon",{staticClass:"text-base text-gray-600",attrs:{icon:t.faArrowLeft}})],1),t._v(" "),n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],staticClass:"cursor-pointer",on:{click:t.toggleMenu}},[n("font-awesome-icon",{staticClass:"text-base text-gray-600",attrs:{icon:t.faEllipsisH}})],1),t._v(" "),t.dropdownMenuShown?n("div",{staticClass:"absolute rounded shadow-md right-0 top-0 mt-6 mr-4 py-1 text-indigo-800 bg-white"},[n("div",{staticClass:"cursor-pointer hover:bg-indigo-200 px-4 py-2",on:{click:t.editDiscussion}},[t._v("\n            Edit\n          ")]),t._v(" "),n("div",{staticClass:"cursor-pointer hover:bg-indigo-200 px-4 py-2",on:{click:t.deleteDiscussion}},[t._v("\n            Delete\n          ")])]):t._e()]),t._v(" "),n("div",{staticClass:"text-gray-700 text-left text-3xl font-medium py-4 px-16",attrs:{"data-discussion-id":t.discussion.id}},[t._v("\n        "+t._s(t.discussion.name)+"\n      ")]),t._v(" "),n("div",{staticClass:"flex flex-row justify-start items-center pb-4 px-16"},[n("img",{staticClass:"rounded-full w-10 h-10",attrs:{src:t.generateUrl(t.discussion.creator.avatar)}}),t._v(" "),n("div",{staticClass:"text-gray-800 text-sm ml-4"},[n("div",[t._v("\n            "+t._s(t.discussion.creator.name)+"\n          ")]),t._v(" "),n("div",[t._v("\n            "+t._s(t.discussion.date)+"\n          ")])])]),t._v(" "),n("div",{staticClass:"ql-snow"},[n("div",{staticClass:"ql-editor -mx-3"},[n("div",{staticClass:"py-8 px-16 bg-white text-gray-900",domProps:{innerHTML:t._s(t.discussion.content)}})])]),t._v(" "),n("comment-box",{staticClass:"px-16",attrs:{resourceType:"discussion",resourceId:t.discussion.id,show:t.discussionDetailsShown}})],1),t._v(" "),n("div",{staticClass:"h-16"})]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25",on:{click:function(e){return t.closeDiscussionDetails(!1)}}})]):t._e()},[],!1,null,null,null).exports},props:{resource:{required:!0,type:Object},resourceType:{required:!0,type:String},activeTab:{required:!0,type:String},activeId:{required:!1,type:Number}},data:function(){return{createDiscussionFormShown:!1,discussions:[],discussion:{},discussionDetailsShown:!1,index:null,authenticated:authenticated}},created:(x=w(r.a.mark(function t(){var e;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAllDiscussions(!0);case 2:e=new URL(location.href).searchParams.get("id"),this.discussion=this.discussions.find(function(t){return t.id===parseInt(e)}),e&&(this.discussionDetailsShown=!0);case 5:case"end":return t.stop()}},t,this)})),function(){return x.apply(this,arguments)}),watch:{activeTab:function(){this.getAllDiscussions(!1)},selectedCycleId:function(){this.getAllDiscussions(!0)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){y(t,e,n[e])})}return t}({},Object(o.c)({selectedCycleId:function(t){return t.cycle.selectedCycle?t.cycle.selectedCycle.id:0}})),methods:{showCreateDiscussionForm:function(){var t=this;this.createDiscussionFormShown=!0,this.$nextTick(function(){t.$refs.discussionForm.$refs.inputFocus.focus()})},closeCreateDiscussionForm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!t||0!==this.selectedCycleId&&this.selectedCycleId!==t.cycle_id?!e||0!==this.selectedCycleId&&this.selectedCycleId!==e.cycle_id||this.discussions.splice(this.index,1,e):this.discussions.push(t),this.createDiscussionFormShown=!1,this.discussion=null},getAllDiscussions:(_=w(r.a.mark(function t(){var e,n,i,o=arguments;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]&&o[0],t.prev=1,"discussions"!==this.activeTab||!(this.discussions.length<1||e)){t.next=9;break}return t.next=5,axios({url:"/discussions",params:{group_type:this.resourceType,group_id:this.resource.id,cycle_id:0!==this.selectedCycleId?this.selectedCycleId:null}});case 5:return n=t.sent,i=n.data,this.discussions=i.discussions,t.abrupt("return",this.discussions);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),console.error(t.t0.response.data.message);case 14:case"end":return t.stop()}},t,this,[[1,11]])})),function(){return _.apply(this,arguments)}),showDiscussionDetails:function(t){this.index=t,this.discussion=this.discussions[t],this.discussionDetailsShown=!0},closeDiscussionDetails:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.discussionDetailsShown=!1,t?this.createDiscussionFormShown=!0:this.discussion={}},deleteDiscussion:function(t){this.discussions.splice(t,1)}}},C=Object(p.a)(k,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"discussions"===t.activeTab?n("div",{staticClass:"w-full"},[n("create-discussion-form",{ref:"discussionForm",attrs:{resourceId:t.resource.id,resourceType:t.resourceType,discussion:t.discussion,"form-shown":t.createDiscussionFormShown},on:{close:t.closeCreateDiscussionForm}}),t._v(" "),t.discussion?n("discussion-details",{attrs:{discussionDetailsShown:t.discussionDetailsShown,discussion:t.discussion,index:t.index},on:{close:t.closeDiscussionDetails,deleted:t.deleteDiscussion}}):t._e(),t._v(" "),t.authenticated?n("div",{staticClass:"text-center"},[n("button",{staticClass:"no-underline p-3 my-4 bg-white text-base text-teal-500 rounded shadow",on:{click:t.showCreateDiscussionForm}},[t._v(t._s(t._f("localize")("Create New Post")))])]):t._e(),t._v(" "),n("div",{staticClass:"flex flex-row flex-wrap items-start lg:-mx-2 xl:-mx-3"},t._l(t.discussions,function(e,i){return n("div",{key:i,staticClass:"w-full md:w-72 xl:w-88 my-6 md:m-6 lg:mx-2 xl:mx-5 bg-white shadow-md flex flex-col rounded cursor-pointer",on:{click:function(e){return t.showDiscussionDetails(i)}}},[n("div",{staticClass:"bg-teal-500 flex flex-col items-start w-full text-white rounded-t p-6 pb-4"},[n("div",{staticClass:"text-white text-xl font-semibold"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"flex flex-row pt-2"},[n("div",{staticClass:"w-10 h-10 mr-2"},[n("a",{attrs:{href:"/users/"+e.creator.username}},[n("img",{staticClass:"rounded-full w-10 h-10",attrs:{src:t.generateUrl(e.creator.avatar)}})])]),t._v(" "),n("div",{staticClass:"text-xs font-bold flex flex-col justify-center"},[n("div",[t._v("\n              "+t._s(e.category.name)+"\n            ")]),t._v(" "),n("div",[t._v("\n              "+t._s(e.date)+"\n            ")])])])]),t._v(" "),n("div",{staticClass:"text-sm my-4 mx-6 text-gray-800 leading-normal overflow-hidden",staticStyle:{"max-height":"12rem"}},[n("div",{domProps:{innerHTML:t._s(e.content)}})])])}),0),t._v(" "),0===t.discussions.length?n("div",{staticClass:"flex flex-col items-center pt-8"},[n("div",{staticClass:"pb-4 text-lg"},[t._v("Have an idea or question? Create a Discussion")]),t._v(" "),n("img",{staticClass:"w-80",attrs:{src:"/image/discussions.svg",alt:"discussion post"}})]):t._e()],1):t._e()},[],!1,null,null,null);e.a=C.exports},rHdu:function(t,e,n){"use strict";var i=n("L2JU"),r=n("RBsE");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={props:{resourceType:{required:!0,type:String},resourceId:{required:!0,type:Number},currentCycleId:{required:!1,type:Number}},data:function(){return{roadmap:null,faCheckCircle:r.faCheckCircle}},created:function(){this.getRoadmap()},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){o(t,e,n[e])})}return t}({},Object(i.b)(["closeComponent","showNotification"]),{getRoadmap:function(){var t=this;if(!this.currentCycleId)return this.showNotification({type:"error",message:"No cycle is selected. Please select a cycle."}),this.closeComponent(),!1;null===this.roadmap&&axios.get("/cycles/"+this.currentCycleId+"/roadmap",{params:{group_type:this.resourceType,group_id:this.resourceId}}).then(function(e){t.roadmap=e.data.roadmap}).catch(function(t){console.error(t.response.data.message)})},closeModal:function(){this.closeComponent()}})},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"absolute container mx-auto md:max-w-2xl lg:max-w-4xl xl:max-w-6xl z-40",staticStyle:{top:"12vh",left:"0",right:"0"}},[n("div",{staticClass:"bg-white rounded shadow-lg"},[n("div",{staticClass:"bg-gray-100 p-4 text-gray-700 text-center text-lg font-semibold rounded-t shadow"},[t._v("Roadmap")]),t._v(" "),n("div",{staticClass:"p-4 flex flex-col items-start"},[t._l(t.roadmap,function(e,i){return[n("div",{staticClass:"flex items-start p-4"},[n("div",{staticClass:"border-l border-gray-400 -my-8 self-stretch"}),t._v(" "),n("div",{staticClass:"self-center flex items-center"},[n("div",{staticClass:"rounded-full w-2 h-2 -ml-1 z-10",class:[t.currentCycleId===e.cycle_id?"bg-teal-500":"bg-gray-500"]}),t._v(" "),n("div",{staticClass:"border-t border-gray-400 w-8 -ml-1"})]),t._v(" "),n("div",{staticClass:"border rounded px-4 py-2",class:[t.currentCycleId===e.cycle_id?"text-teal-500 border-teal-500":"text-gray-800 border-gray-800"]},[t._v("\n              "+t._s(i)+"\n            ")])]),t._v(" "),n("div",{staticClass:"flex px-4 py-2 self-stretch"},[n("div",{staticClass:"border-l border-gray-400"}),t._v(" "),n("div",{staticClass:"ml-8 bg-indigo-100 rounded w-full"},[n("div",{staticClass:"text-xl font-semibold p-4 rounded-t bg-indigo-500 text-white"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"p-4"},t._l(e.items,function(e){return n("div",{staticClass:"flex py-2"},[n("div",{staticClass:"pr-3 text-lg"},[n("font-awesome-icon",{class:[e.implemented?"text-green-400":"text-gray-500"],attrs:{icon:t.faCheckCircle}})],1),t._v(" "),n("div",[n("div",{staticClass:"text-lg font-medium pb-2"},[t._v("\n                      "+t._s(e.name)+"\n                    ")]),t._v(" "),e.content?n("details",[n("summary",[t._v("Show Details")]),t._v(" "),n("div",{staticClass:"py-1",domProps:{innerHTML:t._s(e.content)}})]):t._e()])])}),0)])])]}),t._v(" "),t._m(0)],2)]),t._v(" "),n("div",{staticClass:"h-16"})]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-30",on:{click:t.closeModal}})])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex items-start px-4 py-2"},[e("div",{staticClass:"border-l border-gray-400 -my-6 self-stretch"})])}],!1,null,null,null);e.a=l.exports},rT2p:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return g});var i=n("7O5W"),r="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},o=function(t,e){return function(t){!function(e){var n=function(t,e,i){if(!l(e)||u(e)||d(e)||f(e)||a(e))return e;var r,o=0,s=0;if(c(e))for(r=[],s=e.length;o<s;o++)r.push(n(t,e[o],i));else for(var h in r={},e)Object.prototype.hasOwnProperty.call(e,h)&&(r[t(h,i)]=n(t,e[h],i));return r},i=function(t){return h(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(t,e){return e?e.toUpperCase():""})).substr(0,1).toLowerCase()+t.substr(1)},r=function(t){var e=i(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",i=e.split||/(?=[A-Z])/;return t.split(i).join(n)}(t,e).toLowerCase()},s=Object.prototype.toString,a=function(t){return"function"==typeof t},l=function(t){return t===Object(t)},c=function(t){return"[object Array]"==s.call(t)},u=function(t){return"[object Date]"==s.call(t)},d=function(t){return"[object RegExp]"==s.call(t)},f=function(t){return"[object Boolean]"==s.call(t)},h=function(t){return(t-=0)==t},p=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,i){return n(e,t,i)}},g={camelize:i,decamelize:o,pascalize:r,depascalize:o,camelizeKeys:function(t,e){return n(p(i,e),t)},decamelizeKeys:function(t,e){return n(p(o,e),t,e)},pascalizeKeys:function(t,e){return n(p(r,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=g:e.humps=g}(r)}(e={exports:{}}),e.exports}(),s="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},a=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t},[])}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(e.children||[]).map(d.bind(null,t)),s=Object.keys(e.attributes||{}).reduce(function(t,n){var i=e.attributes[n];switch(n){case"class":t.class=i.split(/\s+/).reduce(function(t,e){return t[e]=!0,t},{});break;case"style":t.style=i.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.indexOf(":"),i=o.camelize(e.slice(0,n)),r=e.slice(n+1).trim();return t[i]=r,t},{});break;default:t.attrs[n]=i}return t},{class:{},style:{},attrs:{}}),a=i.class,f=void 0===a?{}:a,h=i.style,p=void 0===h?{}:h,g=i.attrs,v=void 0===g?{}:g,m=c(i,["class","style","attrs"]);return"string"==typeof e?e:t(e.tag,l({class:u(s.class,f),style:l({},s.style,p),attrs:l({},s.attrs,v)},m,{props:n}),r)}var f=!1;try{f=!0}catch(t){}function h(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?a({},t,e):{}}function p(t){return null===t?null:"object"===(void 0===t?"undefined":s(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}var g={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null}},render:function(t,e){var n=e.props,r=n.icon,o=n.mask,s=n.symbol,c=n.title,u=p(r),g=h("classes",function(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},a(e,"fa-"+t.size,null!==t.size),a(e,"fa-rotate-"+t.rotation,null!==t.rotation),a(e,"fa-pull-"+t.pull,null!==t.pull),a(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(n).map(function(t){return n[t]?t:null}).filter(function(t){return t})}(n)),v=h("transform","string"==typeof n.transform?i.c.transform(n.transform):n.transform),m=h("mask",p(o)),y=Object(i.b)(u,l({},g,v,m,{symbol:s,title:c}));if(!y)return function(){var t;!f&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find one or more icon(s)",u,m);var b=y.abstract;return d.bind(null,t)(b[0],{},e.data)}};Boolean,String,Number,String,Object}).call(this,n("yLpj"))},"t/6/":function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var i=n("FlKs"),r=n("dlaP"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),s="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),a="0123456789".split(""),l="0123456789abcdefghijklmnopqrstuvwxyz".split(""),c=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],d=function(t){return new i.CharacterState(t)},f=d(),h=d(r.NUM),p=d(r.DOMAIN),g=d(),v=d(r.WS);f.on("@",d(r.AT)).on(".",d(r.DOT)).on("+",d(r.PLUS)).on("#",d(r.POUND)).on("?",d(r.QUERY)).on("/",d(r.SLASH)).on("_",d(r.UNDERSCORE)).on(":",d(r.COLON)).on("{",d(r.OPENBRACE)).on("[",d(r.OPENBRACKET)).on("<",d(r.OPENANGLEBRACKET)).on("(",d(r.OPENPAREN)).on("}",d(r.CLOSEBRACE)).on("]",d(r.CLOSEBRACKET)).on(">",d(r.CLOSEANGLEBRACKET)).on(")",d(r.CLOSEPAREN)).on("&",d(r.AMPERSAND)).on([",",";","!",'"',"'"],d(r.PUNCTUATION)),f.on("\n",d(r.NL)).on(c,v),v.on(c,v);for(var m=0;m<s.length;m++){var y=(0,i.stateify)(s[m],f,r.TLD,r.DOMAIN);u.push.apply(u,y)}var b=(0,i.stateify)("file",f,r.DOMAIN,r.DOMAIN),w=(0,i.stateify)("ftp",f,r.DOMAIN,r.DOMAIN),_=(0,i.stateify)("http",f,r.DOMAIN,r.DOMAIN),x=(0,i.stateify)("mailto",f,r.DOMAIN,r.DOMAIN);u.push.apply(u,b),u.push.apply(u,w),u.push.apply(u,_),u.push.apply(u,x);var k=b.pop(),C=w.pop(),O=_.pop(),q=x.pop(),A=d(r.DOMAIN),E=d(r.PROTOCOL),S=d(r.MAILTO);C.on("s",A).on(":",E),O.on("s",A).on(":",E),u.push(A),k.on(":",E),A.on(":",E),q.on(":",S);var T=(0,i.stateify)("localhost",f,r.LOCALHOST,r.DOMAIN);u.push.apply(u,T),f.on(a,h),h.on("-",g).on(a,h).on(l,p),p.on("-",g).on(l,p);for(var j=0;j<u.length;j++)u[j].on("-",g).on(l,p);g.on("-",g).on(a,p).on(l,p),f.defaultTransition=d(r.SYM);var N=f;e.State=i.CharacterState,e.TOKENS=o,e.run=function(t){for(var e=t.replace(/[A-Z]/g,function(t){return t.toLowerCase()}),n=t.length,i=[],r=0;r<n;){for(var o=f,s=null,a=0,l=null,c=-1;r<n&&(s=o.next(e[r]));)(o=s).accepts()?(c=0,l=o):c>=0&&c++,a++,r++;if(!(c<0)){r-=c,a-=c;var u=l.emit();i.push(new u(t.substr(r-a,a)))}}return i},e.start=N},tTKz:function(t,e,n){"use strict";var i,r,o=n("o0o1"),s=n.n(o);function a(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}e.a={state:{loading:!1,project:null},mutations:{getProject:function(t,e){t.project=e}},actions:{getProject:(i=s.a.mark(function t(e,n){var i,r,o=this;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.dispatch,(r=e.commit)("toggleLoading",!0),t.next=4,axios.get("projects/"+n).then(function(t){"success"===t.data.status&&(r("getProject",t.data.project),r("setResourceName",t.data.project.name),i("getMembers",t.data.project.members),i("selectCycle",t.data.current_cycle),r("toggleLoading",!1))}).catch(function(t){r("toggleLoading",!1),o.dispatch("showNotification",{type:t.response.data.status,message:t.response.data.message})});case 4:i("setCurrentView","project");case 5:case"end":return t.stop()}},t)}),r=function(){var t=this,e=arguments;return new Promise(function(n,r){var o=i.apply(t,e);function s(t){a(o,n,r,s,l,"next",t)}function l(t){a(o,n,r,s,l,"throw",t)}s(void 0)})},function(t,e){return r.apply(this,arguments)})}}},tViS:function(t,e,n){var i=n("wOZ3");"string"==typeof i&&(i=[[t.i,i,""]]);n("aET+")(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(t.exports=i.locals)},tc2M:function(t,e,n){"use strict";var i={props:{resourceType:{required:!0,type:String},resource:{required:!0,type:Object},activeTab:{required:!0,type:String}},data:function(){return{events:[]}}},r=n("KHd+"),o=Object(r.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return"events"===this.activeTab?e("div",{staticClass:"w-full"},[0===this.events.length?e("div",{staticClass:"flex flex-col items-center pt-8"},[e("div",{staticClass:"pb-4"},[this._v("Is something important coming up? Create a Event")]),this._v(" "),e("img",{staticClass:"w-96",attrs:{src:"/image/events.svg",alt:"event calender"}})]):this._e()]):this._e()},[],!1,null,null,null);e.a=o.exports},tjlA:function(t,e,n){"use strict";(function(t){var i=n("H7XF"),r=n("kVK+"),o=n("49sm");function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=f(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),r=(t=a(t,i)).write(e,n);return r!==i&&(t=t.slice(0,r)),t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|h(e.length);return 0===(t=a(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(u(e),t=a(t,e<0?0:0|h(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|h(e.length);t=a(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function h(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(i)return z(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var o,s=1,a=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=n;o<a;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(t,o+f)!==c(e,f)){d=!1;break}if(d)return o}return-1}function y(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,i){return F(z(e,t.length-n),t,n,i)}function w(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function _(t,e,n,i){return w(t,e,n,i)}function x(t,e,n,i){return F(U(e),t,n,i)}function k(t,e,n,i){return F(function(t,e){for(var n,i,r,o=[],s=0;s<t.length&&!((e-=2)<0);++s)i=(n=t.charCodeAt(s))>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function C(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,s,a,l,c=t[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(t){var e=t.length;if(e<=q)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=q));return n}(i)}e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,i){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof i?a(t,e).fill(n,i):a(t,e).fill(n):a(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(i,r),u=t.slice(e,n),d=0;d<a;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var q=4096;function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function E(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function S(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=R(t[o]);return r}function T(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function j(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function D(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function M(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,i,o){return o||M(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function I(t,e,n,i,o){return o||M(t,0,n,8),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||N(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||N(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;r>=0;--r)t[r+e]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=l.isBuffer(t)?t:z(new l(t,i).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n("yLpj"))},u9Ym:function(t,e,n){(function(n){var i,r;void 0===(r="function"==typeof(i=function(){var t="undefined"==typeof window,e=new Map,i=new Map,r=[];r.total=0;var o=[],s=[];function a(){e.clear(),i.clear(),o=[],s=[]}function l(t){for(var e=-9007199254740991,n=t.length-1;n>=0;--n){var i=t[n];if(null!==i){var r=i.score;r>e&&(e=r)}}return-9007199254740991===e?null:e}function c(t,e){var n=t[e];if(void 0!==n)return n;var i=e;Array.isArray(e)||(i=e.split("."));for(var r=i.length,o=-1;t&&++o<r;)t=t[i[o]];return t}function u(t){return"object"==typeof t}var d=function(){var t=[],e=0,n={};function i(){for(var n=0,i=t[n],r=1;r<e;){var o=r+1;n=r,o<e&&t[o].score<t[r].score&&(n=o),t[n-1>>1]=t[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&i.score<t[s].score;s=(n=s)-1>>1)t[n]=t[s];t[n]=i}return n.add=function(n){var i=e;t[e++]=n;for(var r=i-1>>1;i>0&&n.score<t[r].score;r=(i=r)-1>>1)t[i]=t[r];t[i]=n},n.poll=function(){if(0!==e){var n=t[0];return t[0]=t[--e],i(),n}},n.peek=function(n){if(0!==e)return t[0]},n.replaceTop=function(e){t[0]=e,i()},n},f=d();return function h(p){var g={single:function(t,e,n){return t?(u(t)||(t=g.getPreparedSearch(t)),e?(u(e)||(e=g.getPrepared(e)),((n&&void 0!==n.allowTypo?n.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?g.algorithm:g.algorithmNoTypo)(t,e,t[0])):null):null},go:function(t,e,n){if(!t)return r;var i=(t=g.prepareSearch(t))[0],o=n&&n.threshold||p&&p.threshold||-9007199254740991,s=n&&n.limit||p&&p.limit||9007199254740991,a=(n&&void 0!==n.allowTypo?n.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?g.algorithm:g.algorithmNoTypo,d=0,h=0,v=e.length;if(n&&n.keys)for(var m=n.scoreFn||l,y=n.keys,b=y.length,w=v-1;w>=0;--w){for(var _=e[w],x=new Array(b),k=b-1;k>=0;--k)(q=c(_,O=y[k]))?(u(q)||(q=g.getPrepared(q)),x[k]=a(t,q,i)):x[k]=null;x.obj=_;var C=m(x);null!==C&&(C<o||(x.score=C,d<s?(f.add(x),++d):(++h,C>f.peek().score&&f.replaceTop(x))))}else if(n&&n.key){var O=n.key;for(w=v-1;w>=0;--w)(q=c(_=e[w],O))&&(u(q)||(q=g.getPrepared(q)),null!==(A=a(t,q,i))&&(A.score<o||(A={target:A.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:A.score,indexes:A.indexes,obj:_},d<s?(f.add(A),++d):(++h,A.score>f.peek().score&&f.replaceTop(A)))))}else for(w=v-1;w>=0;--w){var q,A;(q=e[w])&&(u(q)||(q=g.getPrepared(q)),null!==(A=a(t,q,i))&&(A.score<o||(d<s?(f.add(A),++d):(++h,A.score>f.peek().score&&f.replaceTop(A)))))}if(0===d)return r;var E=new Array(d);for(w=d-1;w>=0;--w)E[w]=f.poll();return E.total=d+h,E},goAsync:function(e,i,o){var s=!1,a=new Promise(function(a,f){if(!e)return a(r);var h=(e=g.prepareSearch(e))[0],v=d(),m=i.length-1,y=o&&o.threshold||p&&p.threshold||-9007199254740991,b=o&&o.limit||p&&p.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!p||void 0===p.allowTypo||p.allowTypo)?g.algorithm:g.algorithmNoTypo,_=0,x=0;function k(){if(s)return f("canceled");var d=Date.now();if(o&&o.keys)for(var p=o.scoreFn||l,C=o.keys,O=C.length;m>=0;--m){for(var q=i[m],A=new Array(O),E=O-1;E>=0;--E)(j=c(q,T=C[E]))?(u(j)||(j=g.getPrepared(j)),A[E]=w(e,j,h)):A[E]=null;A.obj=q;var S=p(A);if(null!==S&&!(S<y)&&(A.score=S,_<b?(v.add(A),++_):(++x,S>v.peek().score&&v.replaceTop(A)),m%1e3==0&&Date.now()-d>=10))return void(t?n(k):setTimeout(k))}else if(o&&o.key){for(var T=o.key;m>=0;--m)if((j=c(q=i[m],T))&&(u(j)||(j=g.getPrepared(j)),null!==(N=w(e,j,h))&&!(N.score<y)&&(N={target:N.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:N.score,indexes:N.indexes,obj:q},_<b?(v.add(N),++_):(++x,N.score>v.peek().score&&v.replaceTop(N)),m%1e3==0&&Date.now()-d>=10)))return void(t?n(k):setTimeout(k))}else for(;m>=0;--m){var j,N;if((j=i[m])&&(u(j)||(j=g.getPrepared(j)),null!==(N=w(e,j,h))&&!(N.score<y)&&(_<b?(v.add(N),++_):(++x,N.score>v.peek().score&&v.replaceTop(N)),m%1e3==0&&Date.now()-d>=10)))return void(t?n(k):setTimeout(k))}if(0===_)return a(r);for(var D=new Array(_),P=_-1;P>=0;--P)D[P]=v.poll();D.total=_+x,a(D)}t?n(k):k()});return a.cancel=function(){s=!0},a},highlight:function(t,e,n){if(null===t)return null;void 0===e&&(e="<b>"),void 0===n&&(n="</b>");for(var i="",r=0,o=!1,s=t.target,a=s.length,l=t.indexes,c=0;c<a;++c){var u=s[c];if(l[r]===c){if(o||(o=!0,i+=e),++r===l.length){i+=u+n+s.substr(c+1);break}}else o&&(o=!1,i+=n);i+=u}return i},prepare:function(t){if(t)return{target:t,_targetLowerCodes:g.prepareLowerCodes(t),_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSlow:function(t){if(t)return{target:t,_targetLowerCodes:g.prepareLowerCodes(t),_nextBeginningIndexes:g.prepareNextBeginningIndexes(t),score:null,indexes:null,obj:null}},prepareSearch:function(t){if(t)return g.prepareLowerCodes(t)},getPrepared:function(t){if(t.length>999)return g.prepare(t);var n=e.get(t);return void 0!==n?n:(n=g.prepare(t),e.set(t,n),n)},getPreparedSearch:function(t){if(t.length>999)return g.prepareSearch(t);var e=i.get(t);return void 0!==e?e:(e=g.prepareSearch(t),i.set(t,e),e)},algorithm:function(t,e,n){for(var i=e._targetLowerCodes,r=t.length,a=i.length,l=0,c=0,u=0,d=0;;){if(n===i[c]){if(o[d++]=c,++l===r)break;n=t[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=a)for(;;){if(l<=1)return null;if(0===u){if(n===t[--l])continue;u=l}else{if(1===u)return null;if((n=t[1+(l=--u)])===t[l])continue}c=o[(d=l)-1]+1;break}}l=0;var f=0,h=!1,p=0,v=e._nextBeginningIndexes;null===v&&(v=e._nextBeginningIndexes=g.prepareNextBeginningIndexes(e.target));var m=c=0===o[0]?0:v[o[0]-1];if(c!==a)for(;;)if(c>=a){if(l<=0){if(++f>r-2)break;if(t[f]===t[f+1])continue;c=m;continue}--l,c=v[s[--p]]}else if(t[0===f?l:f===l?l+1:f===l-1?l-1:l]===i[c]){if(s[p++]=c,++l===r){h=!0;break}++c}else c=v[c];if(h)var y=s,b=p;else y=o,b=d;for(var w=0,_=-1,x=0;x<r;++x)_!==(c=y[x])-1&&(w-=c),_=c;for(h?0!==f&&(w+=-20):(w*=1e3,0!==u&&(w+=-20)),w-=a-r,e.score=w,e.indexes=new Array(b),x=b-1;x>=0;--x)e.indexes[x]=y[x];return e},algorithmNoTypo:function(t,e,n){for(var i=e._targetLowerCodes,r=t.length,a=i.length,l=0,c=0,u=0;;){if(n===i[c]){if(o[u++]=c,++l===r)break;n=t[l]}if(++c>=a)return null}l=0;var d=!1,f=0,h=e._nextBeginningIndexes;if(null===h&&(h=e._nextBeginningIndexes=g.prepareNextBeginningIndexes(e.target)),(c=0===o[0]?0:h[o[0]-1])!==a)for(;;)if(c>=a){if(l<=0)break;--l,c=h[s[--f]]}else if(t[l]===i[c]){if(s[f++]=c,++l===r){d=!0;break}++c}else c=h[c];if(d)var p=s,v=f;else p=o,v=u;for(var m=0,y=-1,b=0;b<r;++b)y!==(c=p[b])-1&&(m-=c),y=c;for(d||(m*=1e3),m-=a-r,e.score=m,e.indexes=new Array(v),b=v-1;b>=0;--b)e.indexes[b]=p[b];return e},prepareLowerCodes:function(t){for(var e=t.length,n=[],i=t.toLowerCase(),r=0;r<e;++r)n[r]=i.charCodeAt(r);return n},prepareBeginningIndexes:function(t){for(var e=t.length,n=[],i=0,r=!1,o=!1,s=0;s<e;++s){var a=t.charCodeAt(s),l=a>=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!o||!c;r=l,o=c,u&&(n[i++]=s)}return n},prepareNextBeginningIndexes:function(t){for(var e=t.length,n=g.prepareBeginningIndexes(t),i=[],r=n[0],o=0,s=0;s<e;++s)r>s?i[s]=r:(r=n[++o],i[s]=void 0===r?e:r);return i},cleanup:a,new:h};return g}()})?i.apply(e,[]):i)||(t.exports=r)}).call(this,n("URgk").setImmediate)},vqGb:function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=n("dlaP");function s(t){return t instanceof o.DOMAIN||t instanceof o.TLD}var a=(0,i.createTokenClass)();a.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var l=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"email",isLink:!0}),c=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"text"}),d=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"nl"}),f=(0,r.inherits)(a,(0,i.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,i=this.v,r=[],a=0;i[a]instanceof o.PROTOCOL;)e=!0,r.push(i[a].toString().toLowerCase()),a++;for(;i[a]instanceof o.SLASH;)n=!0,r.push(i[a].toString()),a++;for(;s(i[a]);)r.push(i[a].toString().toLowerCase()),a++;for(;a<i.length;a++)r.push(i[a].toString());return r=r.join(""),e||n||(r=t+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});e.Base=a,e.MAILTOEMAIL=l,e.EMAIL=c,e.NL=d,e.TEXT=u,e.URL=f},wHSu:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return s}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return c}),n.d(e,"h",function(){return u}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return h}),n.d(e,"l",function(){return p}),n.d(e,"m",function(){return g}),n.d(e,"n",function(){return v}),n.d(e,"o",function(){return m}),n.d(e,"p",function(){return y}),n.d(e,"q",function(){return b}),n.d(e,"r",function(){return w}),n.d(e,"s",function(){return _}),n.d(e,"t",function(){return x}),n.d(e,"u",function(){return k}),n.d(e,"v",function(){return C}),n.d(e,"w",function(){return O}),n.d(e,"x",function(){return q}),n.d(e,"y",function(){return A}),n.d(e,"z",function(){return E}),n.d(e,"A",function(){return S}),n.d(e,"B",function(){return T}),n.d(e,"C",function(){return j}),n.d(e,"D",function(){return N}),n.d(e,"E",function(){return D});var i={prefix:"fas",iconName:"angle-down",icon:[320,512,[],"f107","M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"]},r={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},o={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},s={prefix:"fas",iconName:"calendar-alt",icon:[448,512,[],"f073","M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]},a={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"]},l={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},c={prefix:"fas",iconName:"check-circle",icon:[512,512,[],"f058","M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]},u={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},d={prefix:"fas",iconName:"circle",icon:[512,512,[],"f111","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]},f={prefix:"fas",iconName:"clipboard-list",icon:[384,512,[],"f46d","M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"]},h={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},p={prefix:"fas",iconName:"comments",icon:[576,512,[],"f086","M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"]},g={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},v={prefix:"fas",iconName:"envelope",icon:[512,512,[],"f0e0","M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"]},m={prefix:"fas",iconName:"exclamation-circle",icon:[512,512,[],"f06a","M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},y={prefix:"fas",iconName:"file-alt",icon:[384,512,[],"f15c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},b={prefix:"fas",iconName:"file-pdf",icon:[384,512,[],"f1c1","M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"]},w={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},_={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},x={prefix:"fas",iconName:"shield-alt",icon:[512,512,[],"f3ed","M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"]},k={prefix:"fas",iconName:"sign-out-alt",icon:[512,512,[],"f2f5","M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"]},C={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"]},O={prefix:"fas",iconName:"stopwatch",icon:[448,512,[],"f2f2","M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]},q={prefix:"fas",iconName:"tags",icon:[640,512,[],"f02c","M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"]},A={prefix:"fas",iconName:"tasks",icon:[512,512,[],"f0ae","M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]},E={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},S={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},T={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},j={prefix:"fas",iconName:"trash-alt",icon:[448,512,[],"f2ed","M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]},N={prefix:"fas",iconName:"user",icon:[448,512,[],"f007","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]},D={prefix:"fas",iconName:"user-minus",icon:[640,512,[],"f503","M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]}},wOZ3:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".dots div {\n  border-radius: 50%;\n  -webkit-animation: fade 0.8s ease-in-out alternate infinite;\n          animation: fade 0.8s ease-in-out alternate infinite;\n}\n.dots div:nth-of-type(1) {\n  -webkit-animation-delay: -0.4s;\n          animation-delay: -0.4s;\n}\n.dots div:nth-of-type(2) {\n  -webkit-animation-delay: -0.2s;\n          animation-delay: -0.2s;\n}\n@-webkit-keyframes fade {\nfrom {\n    opacity: 1;\n}\nto {\n    opacity: 0;\n}\n}\n@keyframes fade {\nfrom {\n    opacity: 1;\n}\nto {\n    opacity: 0;\n}\n}\n",""])},xri5:function(t,e,n){"use strict";var i=n("wHSu"),r={prefix:"far",iconName:"bell",icon:[448,512,[],"f0f3","M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"]},o={prefix:"far",iconName:"envelope",icon:[512,512,[],"f0e0","M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"]},s={data:function(){return{token:Laravel.csrfToken,url:navUrl,notificationShown:!1,notifications:[],unreadNotification:!1,user:user,faBell:r,faCircle:i.i}},created:function(){var t=this;axios.get("/notifications").then(function(e){t.notifications=e.data.notifications,-1!==t.notifications.findIndex(function(t){return null===t.read_at})&&t.showIndicator()}).catch(function(t){console.log(t.response.data.message)})},mounted:function(){this.listen()},methods:{toggleNotification:function(t){this.notificationShown?(document.body.removeEventListener("keyup",this.hideNotification),this.hideNotification(t)):(document.body.addEventListener("keyup",this.hideNotification),this.showNotification())},showNotification:function(t){this.notificationShown=!0,this.profileDropdownShown&&(this.profileDropdownShown=!1),this.unreadNotification&&(this.notificationRead(),this.unreadNotification=!1)},hideNotification:function(t){if("keyup"===t.type&&"Escape"!==t.key)return!1;this.notificationShown=!1},listen:function(){var t=this;Echo.private("App.User."+this.user.id).notification(function(e){t.unreadNotification=!0,t.notifications.push(e),t.showIndicator()})},showIndicator:function(){this.unreadNotification=!0},notificationRead:function(){axios.put("/notifications").catch(function(t){console.error(t.response.data.message)})}}},a=n("KHd+"),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideNotification,expression:"hideNotification"}],staticClass:"px-4 self-center"},[n("div",{staticClass:"text-teal-400  text-base no-underline cursor-pointer",attrs:{id:"notification"},on:{click:t.toggleNotification}},[n("font-awesome-icon",{staticClass:"font-bold text-xl",attrs:{icon:t.faBell}}),t._v(" "),t.unreadNotification?n("font-awesome-icon",{staticClass:"text-red-500 text-xs absolute top-0 mt-2 -ml-1",attrs:{icon:t.faCircle,"aria-hidden":"true"}}):t._e()],1),t._v(" "),t.notificationShown?n("div",{staticClass:"absolute bg-white w-64 mt-5 mr-8 py-4 shadow-lg rounded z-50",staticStyle:{right:"5%"}},[t._l(t.notifications,function(e){return t.notifications.length>0?n("a",{staticClass:"flex flex-row items-center list-reset px-4 py-2 text-gray-600 no-underline block",attrs:{href:"#"}},[n("img",{staticClass:"w-10 h-10 rounded-full mr-2",attrs:{src:t.generateUrl(e.data.subject.avatar)}}),t._v(" "),n("div",[n("div",{staticClass:"py-1 text-sm"},[n("a",{staticClass:"no-underline hover:underline text-blue-400",attrs:{href:"/users/"+e.data.subject.username}},[t._v(t._s(e.data.subject.name))]),t._v("\n          "+t._s(e.data.action)+"\n          "),e.data.url?n("a",{staticClass:"no-underline hover:underline text-blue-400",attrs:{href:e.data.url}},[t._v(t._s(e.data.object_name))]):n("a",{staticClass:"no-underline text-blue-400"},[t._v(t._s(e.data.object_name))])]),t._v(" "),n("div",{staticClass:"py-1 text-xs"},[t._v("\n          "+t._s(e.date)+"\n        ")])])]):t._e()}),t._v(" "),0===t.notifications.length?n("div",{staticClass:"px-4 py-2 text-sm text-gray-600 block"},[t._v("No unread notifications. You're all caught up")]):t._e(),t._v(" "),n("span",{staticClass:"block border-t"}),t._v(" "),n("a",{staticClass:"list-reset px-4 pt-2 text-blue-400 text-center no-underline block",attrs:{href:"/notifications"}},[t._v("\n      View All\n    ")])],2):t._e()])},[],!1,null,null,null).exports,c=n("L2JU");function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={data:function(){return{notificationShown:!1,unreadMessage:user.unread_direct_messages,faEnvelope:o,faCircle:i.i}},created:function(){EventBus.$on("new-direct-message",this.showIndicator)},beforeDestroy:function(){EventBus.$off("new-direct-message",this.showIndicator)},computed:Object(c.c)(["user"]),methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){u(t,e,n[e])})}return t}({},Object(c.b)(["setCurrentComponent"]),{showMessageBox:function(){this.unreadMessage=!1,this.setCurrentComponent("direct-message-box")},showIndicator:function(){this.unreadMessage=!0}})},f=Object(a.a)(d,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"px-4 h-full border-l flex items-center"},[e("div",{staticClass:"text-teal-400  text-base no-underline cursor-pointer",on:{click:this.showMessageBox}},[e("font-awesome-icon",{staticClass:"font-bold text-xl",attrs:{icon:this.faEnvelope}}),this._v(" "),this.unreadMessage?e("font-awesome-icon",{staticClass:"text-red-500 text-xs absolute top-0 mt-2 -ml-1",attrs:{icon:this.faCircle,"aria-hidden":"true"}}):this._e()],1)])},[],!1,null,null,null).exports;function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p={data:function(){return{user:user,token:Laravel.csrfToken,url:navUrl,avatar:"",profileUrl:navUrl.site+"/users/"+user.username,profileDropdownShown:!1,impersonating:impersonating,authenticated:authenticated,faAngleDown:i.a,faCog:i.k,faShieldAlt:i.t,faSignOutAlt:i.u,faUser:i.D,faUserMinus:i.E,faEnvelope:i.n,faStopwatch:i.w}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){h(t,e,n[e])})}return t}({},Object(c.b)(["setCurrentComponent"]),{logoutUser:function(t){t.preventDefault(),document.getElementById("logout-form").submit()},toggleProfileDropdown:function(t){this.profileDropdownShown?(this.hideProfileDropdown(t),document.body.removeEventListener("keyup",this.hideProfileDropdown)):(this.showProfileDropdown(),document.body.addEventListener("keyup",this.hideProfileDropdown))},showProfileDropdown:function(t){this.notificationShown&&(this.notificationShown=!1),this.profileDropdownShown=!0},hideProfileDropdown:function(t){if("keyup"===t.type&&"Escape"!==t.key)return!1;this.profileDropdownShown=!1},showTimer:function(t){this.setCurrentComponent("timer"),this.hideProfileDropdown(t)}})},g={components:{notificationDropdown:l,messageDropdown:f,profileDropdown:Object(a.a)(p,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"px-4 border-l flex items-center cursor-pointer p-4"},[n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideProfileDropdown,expression:"hideProfileDropdown"}],staticClass:"flex flex-row items-center",attrs:{id:"profile-dropdown"},on:{click:t.toggleProfileDropdown}},[n("img",{staticClass:"w-10 h-10 rounded-full md:mr-2",attrs:{src:t.generateUrl(t.user.avatar)}}),t._v(" "),n("span",{staticClass:"text-gray-800 text-base no-underline hidden md:block"},[t._v("\n      "+t._s(t.user.name)+"\n      "),n("font-awesome-icon",{attrs:{icon:t.faAngleDown}})],1)]),t._v(" "),t.profileDropdownShown?n("div",{staticClass:"absolute bg-white w-48 right-0 mr-2 py-1 shadow-lg rounded z-50",staticStyle:{top:"3.5rem"},attrs:{id:"profile-menu"}},[n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white no-underline text-gray-600 block font-medium",attrs:{href:t.profileUrl}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1",attrs:{icon:t.faUser}})],1),t._v("\n      "+t._s(t._f("localize")("Your Profile"))+"\n    ")]),t._v(" "),n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white text-gray-600 font-medium no-underline block",attrs:{href:"/admin"}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1 font-regular",attrs:{icon:t.faShieldAlt}})],1),t._v("\n      "+t._s(t._f("localize")("Admin"))+"\n    ")]),t._v(" "),n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white text-gray-600 font-medium no-underline block",on:{click:t.showTimer}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1 font-regular",attrs:{icon:t.faStopwatch}})],1),t._v("\n      "+t._s(t._f("localize")("Timer"))+"\n    ")]),t._v(" "),t.authenticated?n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white text-gray-600 font-medium no-underline block",attrs:{href:"/settings"}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1 font-regular",attrs:{icon:t.faCog}})],1),t._v("\n      "+t._s(t._f("localize")("Settings"))+"\n    ")]):t._e(),t._v(" "),n("span",{staticClass:"block border-t"}),t._v(" "),t.impersonating?n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white text-gray-600 font-medium no-underline block",attrs:{href:"/impersonate/leave"}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1 font-regular",attrs:{icon:t.faUserMinus}})],1),t._v("\n      "+t._s(t._f("localize")("Leave User"))+"\n    ")]):t._e(),t._v(" "),n("a",{staticClass:"px-4 py-2 hover:bg-teal-500 hover:text-white text-gray-600 font-medium no-underline block",attrs:{href:t.url.logout},on:{click:t.logoutUser}},[n("span",{staticClass:"w-6 inline-block"},[n("font-awesome-icon",{staticClass:"pr-1 font-regular",attrs:{icon:t.faSignOutAlt}})],1),t._v("\n      "+t._s(t._f("localize")("Logout"))+"\n    ")])]):t._e(),t._v(" "),n("form",{staticStyle:{display:"none"},attrs:{id:"logout-form",action:t.url.logout,method:"POST"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.token}})])])},[],!1,null,null,null).exports},data:function(){return{token:Laravel.csrfToken,url:navUrl}}},v=Object(a.a)(g,function(){var t=this.$createElement,e=this._self._c||t;return e("nav",{staticClass:"bg-white flex flex-row justify-between h-12 md:px-4 shadow sticky top-0 z-50"},[e("a",{staticClass:"flex items-center text-teal-500 text-2xl font-bold md:font-normal no-underline h-12 w-16 md:w-32",attrs:{href:this.url.site}},[e("img",{staticClass:"w-full h-full block",attrs:{src:this.generateUrl("logos/logo_square.svg"),alt:""}}),this._v(" "),e("span",{staticClass:"text-gray-700 font-bold hidden md:block"},[this._v("GOODWORK")])]),this._v(" "),e("div",{staticClass:"md:flex"},[e("div",{staticClass:"flex flex-row border-l h-full"},[e("notification-dropdown"),this._v(" "),e("message-dropdown"),this._v(" "),e("profile-dropdown")],1)])])},[],!1,null,null,null).exports;function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){y(t,e,n[e])})}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={data:function(){return{faTimes:i.z,faCheckCircle:i.g,faExclamationCircle:i.o}},computed:m({},Object(c.c)({notificationShown:function(t){return t.notification.notificationShown},messageType:function(t){return t.notification.type},message:function(t){return t.notification.message}})),methods:m({},Object(c.b)(["closeNotification"]),{closeNotificationPopup:function(){this.closeNotification()}})},w=Object(a.a)(b,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.notificationShown?n("div",{staticClass:"fixed top-0 flex flex-row justify-between items-center border-l-2 bg-white text-lg font-medium rounded container mx-auto md:w-1/2 mt-16 py-8 pl-4 pr-8 shadow-lg z-50",class:["success"===t.messageType?"border-green-400 text-green-800":"border-red-400 text-red-800"],staticStyle:{left:"0",right:"0","max-width":"640px"}},[n("div",{staticClass:"flex items-center"},["success"===t.messageType?n("font-awesome-icon",{staticClass:"cursor-pointer text-2xl text-green-400",attrs:{icon:t.faCheckCircle}}):t._e(),t._v(" "),"error"===t.messageType?n("font-awesome-icon",{staticClass:"cursor-pointer text-2xl text-red-400",attrs:{icon:t.faExclamationCircle}}):t._e(),t._v(" "),n("div",{staticClass:"inline pl-2"},[t._v("\n        "+t._s(t.message)+" \n      ")])],1),t._v(" "),n("div",{staticClass:"inline",on:{click:t.closeNotificationPopup}},[n("font-awesome-icon",{staticClass:"cursor-pointer text-sm",attrs:{icon:t.faTimes}})],1)]):t._e()},[],!1,null,null,null).exports,_=n("MgSq"),x={props:{localLoadingState:{required:!1,type:Boolean}},computed:Object(c.c)(["loading"])},k=(n("AMG7"),Object(a.a)(x,function(){var t=this.$createElement,e=this._self._c||t;return this.loading||this.localLoadingState?e("div",[e("div",{staticClass:"h-screen w-screen z-50 flex flex-row items-center justify-center",class:{fixed:this.loading}},[this._m(0)]),this._v(" "),e("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-10"})]):this._e()},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bg-white p-8 rounded-lg"},[e("div",{staticClass:"dots w-32 flex flex-row justify-between items-center"},[e("div",{staticClass:"w-8 h-8 bg-pink-500"}),this._v(" "),e("div",{staticClass:"w-8 h-8 bg-pink-500"}),this._v(" "),e("div",{staticClass:"w-8 h-8 bg-pink-500"})])])}],!1,null,null,null).exports);function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){O(t,e,n[e])})}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var q={components:{message:_.a,loadingModal:k},data:function(){return{loading:!1,authUser:user,isDisabled:!0,message:"",messages:[],nextPageUrl:null,messageBoxShown:!1,messageTextareaHeight:"auto",title:"",unreadMessage:0,users:[],selectedUser:{}}},created:function(){var t=this;axios.get("/unread-direct-messages/users").then(function(e){t.users=e.data.users}).catch(function(t){console.log(t)}),this.title=document.title,this.listen(),document.addEventListener("visibilitychange",this.clearTitleNotification)},updated:function(){this.messageBoxShown&&this.scrollToBottom()},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.clearTitleNotification)},watch:{message:function(t){this.messageTextareaHeight=t?"".concat(this.$refs.messageTextarea.scrollHeight,"px"):"auto"}},computed:C({},Object(c.c)({currentComponent:function(t){return t.dropdown.currentComponent}})),methods:C({},Object(c.b)(["closeComponent"]),{scrollToBottom:function(){var t=this;this.$nextTick(function(){if(document.getElementById("message-box")){var e=t.$el.querySelector("#message-box");e.scrollTop=e.lastElementChild.scrollHeight}})},hideMessageBox:function(){this.closeComponent()},sendMessage:function(t){var e=this;if(!this.selectedUser.id)return!1;if(t.shiftKey)this.message=this.message+"\n";else if(this.message.length>0){var n=this.message;this.message="",axios.post("/direct-messages",{body:n,receiver_id:this.selectedUser.id}).then(function(t){"success"===t.data.status&&(t.data.message.user=user,e.messages.push(t.data.message))}).catch(function(t){console.log(t)})}},selectUserMessage:function(t,e){var n=this;this.loading=!0,this.selectedUser=t,this.isDisabled=!1,axios.get("/direct-messages",{params:{receiver_id:t.id}}).then(function(t){n.messages=t.data.messages.data.reverse(),n.nextPageUrl=t.data.messages.next_page_url,n.scrollToBottom(),n.loading=!1}).catch(function(t){n.loading=!1,console.log(t)}),axios.put("/unread-direct-messages/"+t.id).then(function(t){n.users[e].unread_messages_for_auth_user_count=0,n.loading=!1}).catch(function(t){n.loading=!1,console.log(t)})},deleteMessage:function(t){this.messages.splice(t,1)},listen:function(){var t=this;Echo.join("global").here(function(e){t.users=t.users.map(function(t){return t.online=e.includes(t.id),t})}).joining(function(e){t.users=t.users.map(function(t){return e===t.id&&(t.online=!0),t})}).leaving(function(e){t.users=t.users.map(function(t){return e===t.id&&(t.online=!1),t})}),Echo.private("User."+this.authUser.id).listen("DirectMessageCreated",function(e){e.message.user=e.user,t.messageBoxShown?t.selectedUser.id===e.user.id?axios.put("/unread-direct-messages/"+e.user.id).catch(function(t){console.log(t)}):t.selectedUser.id!==e.user.id&&(t.users=t.users.map(function(t){return t.id===e.user.id&&(t.unread_messages_for_auth_user_count+=1),t})):(EventBus.$emit("new-direct-message"),t.users=t.users.map(function(t){return t.id===e.user.id&&(t.unread_messages_for_auth_user_count+=1),t})),document.hidden&&(t.unreadMessage+=1,document.title="("+t.unreadMessage+") "+t.title),t.messages.push(e.message),t.scrollToBottom()})},clearTitleNotification:function(){document.hidden||(document.title=this.title,this.unreadMessage=0)}})},A=(n("0UY3"),Object(a.a)(q,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"direct-message-box"===t.currentComponent?n("div",{attrs:{id:"direct-message-box"},on:{focus:function(e){return t.clearTitleNotification()}}},[n("div",{staticClass:"fixed top-0 bg-white text-lg rounded mx-auto md:max-w-2xl lg:max-w-4xl xl:max-w-5xl mt-16 md:mt-32 shadow-lg z-40 inset-x-0"},[n("div",{staticClass:"bg-white text-2xl text-gray-600 text-center px-8 py-4 rounded-t shadow"},[t._v("\n      Your Messages\n    ")]),t._v(" "),n("div",{staticClass:"flex flex-row"},[n("div",{staticClass:"bg-blue-200"},[n("div",{staticClass:"overflow-auto overflow-y-scroll overflow-x-hidden h-50-vh w-16 lg:w-20 xxl:w-24"},t._l(t.users,function(e,i){return e.id!==t.authUser.id?n("div",{staticClass:"relative p-2 lg:p-4",class:{"bg-white":e.id===t.selectedUser.id,"jelly bg-white":e.unread_messages_for_auth_user_count>0},on:{click:function(n){return t.selectUserMessage(e,i)}}},[n("img",{staticClass:"w-10 lg:w-12 h-10 lg:h-12 rounded-full cursor-pointer",attrs:{title:e.name,src:t.generateUrl(e.avatar)}}),t._v(" "),n("div",{staticClass:"absolute w-4 h-4 rounded-full border-2 border-white mb-2 mr-2 lg:mb-4 lg:mr-4 right-0 bottom-0",class:[e.online?"bg-teal-500":"bg-gray-500"],attrs:{title:[e.online?"online":"offline"]}})]):t._e()}),0)]),t._v(" "),n("div",{staticClass:"flex-grow h-50-vh overflow-y-auto",attrs:{id:"message-box"}},[t.selectedUser.id?n("div",{staticClass:"w-full h-full"},[t.messages.length<1?n("div",{staticClass:"w-full h-full"},[n("loading-modal",{attrs:{localLoadingState:t.loading}}),t._v(" "),t.loading?t._e():n("div",{staticClass:"flex flex-col items-center justify-center"},[n("div",{staticClass:"text-gray-600 text-lg text-center py-16"},[t._v('\n                No message yet!!! Say "Hi" to '+t._s(t.selectedUser.name)+"\n              ")]),t._v(" "),n("img",{staticClass:"w-96",attrs:{src:"/image/dm.svg",alt:"direct message"}})])],1):t._e(),t._v(" "),t._l(t.messages,function(e,i){return n("message",{key:i,attrs:{message:e,user:t.authUser,index:i,last:t.messages.length===i+1,direct:!0},on:{deleted:t.deleteMessage}})})],2):n("div",{staticClass:"flex flex-col items-center justify-center"},[n("div",{staticClass:"text-gray-600 text-lg text-center py-16"},[t._v("\n            Click on the profile pic on left to see interaction with that user\n          ")]),t._v(" "),n("img",{staticClass:"w-64",attrs:{src:"/image/select.svg",alt:"direct message"}})])])]),t._v(" "),n("div",{staticClass:"relative bg-gray-200"},[n("div",{staticClass:"static text-center p-4"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],ref:"messageTextarea",staticClass:"static textarea resize-none rounded w-full p-4 text-gray-800",style:{height:t.messageTextareaHeight},attrs:{id:"send-message",placeholder:t._f("localize")("write your message here"),rows:"1",disabled:t.isDisabled},domProps:{value:t.message},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.sendMessage(e))},input:function(e){e.target.composing||(t.message=e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",on:{click:t.hideMessageBox}})]):t._e()},[],!1,null,null,null).exports),E=n("esdX");function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){T(t,e,n[e])})}return t}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j=new Audio("./alarm_bell.mp3"),N={data:function(){return{faCog:E.faCog}},updated:function(){"00 : 00"===this.currentTime&&j.play()},computed:S({},Object(c.c)({currentComponent:function(t){return t.dropdown.currentComponent},currentTime:function(t){return window.luxon.Duration.fromObject({seconds:t.timer.time}).shiftTo("minutes","seconds").toFormat("mm ':' ss")}})),methods:S({},Object(c.b)(["closeComponent","startTimer","pauseTimer","resetTimer","startBreak"]),{closeTimerModal:function(){this.closeComponent()},startCountdown:function(){this.startTimer()},pauseCountdown:function(){this.pauseTimer(),j.pause()},resetCountdown:function(){this.resetTimer(),j.pause()},activateBreak:function(){this.startBreak()}})},D={components:{navbar:v,notificationPopup:w,messageBox:A,loadingModal:k,timer:Object(a.a)(N,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"timer"===t.currentComponent?n("div",[n("div",{staticClass:"fixed top-0 text-lg mx-auto mt-16 md:mt-32 max-w-lg z-40 inset-x-0"},[n("div",{staticClass:"flex flex-col bg-white shadow-lg relative rounded"},[n("div",{staticClass:"pt-4 pr-4"},[n("span",[n("font-awesome-icon",{staticClass:"float-right text-grey-dark cursor-pointer",attrs:{icon:t.faCog}})],1)]),t._v(" "),n("h1",{staticClass:"text-center text-gray-700 font-semibold text-5xl py-4"},[t._v(t._s(t.currentTime))]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"px-4 py-8"},[n("button",{staticClass:"px-4 py-2 mx-4 rounded border border-teal-500 font-semibold text-teal-700 start",attrs:{type:"button"},on:{click:t.startCountdown}},[t._v("Start")]),t._v(" "),n("button",{staticClass:"px-4 py-2 mx-4 rounded border",attrs:{type:"button"},on:{click:t.pauseCountdown}},[t._v("Pause")]),t._v(" "),n("button",{staticClass:"px-4 py-2 mx-4 rounded border",attrs:{type:"button"},on:{click:t.resetCountdown}},[t._v("Reset")]),t._v(" "),n("button",{staticClass:"px-4 py-2 mx-4 rounded border",attrs:{type:"button"},on:{click:t.activateBreak}},[t._v("Break")])]),t._v(" "),n("div",{staticClass:"border-t w-full"}),t._v(" "),t._m(1)])]),t._v(" "),n("div",{staticClass:"h-screen w-screen fixed inset-0 bg-gray-900 opacity-25 z-20",on:{click:t.closeTimerModal}})]):t._e()},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mx-8"},[e("div",{staticClass:"h-1 bg-gray-400 rounded"}),this._v(" "),e("div",{staticClass:"h-1 bg-teal-500 rounded -mt-1",staticStyle:{width:"0%"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"px-8 py-4"},[e("span",{staticClass:"block py-2 text-gray-700"},[this._v("Total Time : 0H 0M")]),this._v(" "),e("span",{staticClass:"block py-2 text-gray-700"},[this._v("Completed Unit : 0")])])}],!1,null,null,null).exports}};e.a=D},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},yUBO:function(t,e,n){"use strict";n.r(e),n("HijD");var i=n("xri5"),r=n("+iam"),o=n("tTKz");new Vue({el:"#app",mixins:[i.a],components:{single:r.a},store:o.a})},yp2b:function(t,e,n){"use strict";var i=n("L2JU"),r=n("T8Ve");function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){s(t,e,n[e])})}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a={components:{message:n("MgSq").a,userSuggestionBox:r.a},props:["resource","resourceType","activeTab"],data:function(){return{messages:[],nextPageUrl:null,message:"",messageTextareaHeight:"auto",title:"",unreadMessage:0,name:"",mentionStarted:!1,startIndex:0,suggestionHighlightDirection:1,suggestionHighlightIndex:0,suggestionSelected:!1,suggestionShown:!1,mentions:[],typingNotificationSent:!1,users:[],user:user,authenticated:authenticated}},created:function(){EventBus.$on("clear-title-notification",this.clearTitleNotification)},beforeDestroy:function(){EventBus.$off("clear-title-notification",this.clearTitleNotification)},mounted:function(){this.getMessages(),this.title=document.title,this.listen();var t=document.getElementById("message-box");t&&t.scrollIntoView({behavior:"smooth",block:"end"})},updated:function(){var t=document.getElementById("message-box");t&&t.scrollIntoView({behavior:"smooth",block:"end"})},computed:o({},Object(i.c)({members:function(t){return t.members}})),watch:{message:function(t){this.messageTextareaHeight=t?"".concat(this.$refs.messageTextarea.scrollHeight,"px"):"auto"},activeTab:function(){this.getMessages()}},methods:o({},Object(i.b)(["showNotification"]),{getMessages:function(){var t=this;"messages"===this.activeTab&&this.messages.length<1&&axios.get("/messages",{params:{group_type:this.resourceType,group_id:this.resource.id}}).then(function(e){t.messages=e.data.messages.data.reverse(),t.nextPageUrl=e.data.messages.next_page_url}).catch(function(t){console.log(t)})},sendMessage:function(t){var e=this;if(t.shiftKey)this.message=this.message+"\n";else if(this.mentionStarted)this.suggestionSelected=!0;else if(this.message.length>0){var n=this.message;this.message="",axios.post("/messages",{message:n,group_type:this.resourceType,group_id:this.resource.id,mentions:this.mentions}).then(function(t){"success"===t.data.status&&(t.data.message.user=user,e.pushMessage(t.data.message))}).catch(function(t){e.showNotification({type:t.response.data.status,message:t.response.data.message})})}},listen:function(){var t=this;Echo.join(this.resourceType+"."+this.resource.id).here(function(e){t.users=e}).joining(function(e){t.users.push(e),t.pushSystemMessage("".concat(e.name," has joined")),document.activeElement===document.getElementById("send-message")&&document.hasFocus()||(t.unreadMessage+=1,document.title="("+t.unreadMessage+") "+t.title)}).leaving(function(e){t.users=t.users.filter(function(t){return t.username!==e.username}),t.pushSystemMessage("".concat(e.name," has left")),document.activeElement===document.getElementById("send-message")&&document.hasFocus()||(t.unreadMessage+=1,document.title="("+t.unreadMessage+") "+t.title)}).listen("MessageCreated",function(e){e.message.user=e.user,t.pushMessage(e.message),document.activeElement===document.getElementById("send-message")&&document.hasFocus()||(t.unreadMessage+=1,document.title="("+t.unreadMessage+") "+t.title)}).listenForWhisper("typing",function(e){t.pushSystemMessage("".concat(e.name," is typing")),setTimeout(function(){t.messages.pop()},4e3)})},typing:function(){this.typingNotificationSent||(Echo.join(this.resourceType+"."+this.resource.id).whisper("typing",{name:this.user.name}),this.typingNotificationSent=!0,setTimeout(this.setTypingNotification,4e3))},setTypingNotification:function(){this.typingNotificationSent=!1},clearTitleNotification:function(){document.title=this.title,this.unreadMessage=0},deleteMessage:function(t){this.messages.splice(t,1)},pushMessage:function(t){this.messages.push(t),EventBus.$emit("messagePushed")},pushSystemMessage:function(t){this.pushMessage({body:t,system:!0})},checkForMention:function(t){this.message.length>2&&this.typing(),"@"===t.key?(this.suggestionShown=!0,this.mentionStarted=!0,this.startIndex=document.getElementById("send-message").selectionStart):32===t.keyCode||27===t.keyCode||8===t.keyCode&&document.getElementById("send-message").selectionStart<this.startIndex?(this.mentionStarted=!1,this.suggestionShown=!1,this.suggestionHighlightIndex=0,this.name=""):this.mentionStarted&&(this.name=t.target.value.substring(this.startIndex))},mentionHighlightMove:function(t){!this.mentionStarted||38!==t.keyCode&&40!==t.keyCode||(38===t.keyCode?(this.suggestionHighlightIndex-=1,this.suggestionHighlightDirection=-1):40===t.keyCode&&(this.suggestionHighlightIndex+=1,this.suggestionHighlightDirection=1),t.preventDefault())},userSelected:function(t){this.message=this.message.substring(0,this.startIndex)+t,this.mentions.every(function(e){return e!==t})&&this.mentions.push(t),this.mentionStarted=!1,this.suggestionShown=!1,this.suggestionSelected=!1,this.suggestionHighlightIndex=0,this.name="",document.getElementById("send-message").focus()}})},l=n("KHd+"),c=Object(l.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return"messages"===t.activeTab?n("div",{staticClass:"w-full"},[n("div",{staticClass:"flex flex-col bg-white mx-auto mt-4 mb-8 shadow rounded"},[n("div",{staticClass:"text-gray-600 bg-white shadow p-4 text-xl flex flex-row items-center z-10"},[n("div",{staticClass:"pr-2"},[t._v("\n        "+t._s(t._f("localize")("Currently in room"))+":\n      ")]),t._v(" "),t._l(t.users,function(e){return[n("img",{staticClass:"w-8 h-8 rounded-full mr-2",attrs:{src:t.generateUrl(e.avatar),alt:"",title:e.name}})]})],2),t._v(" "),n("div",{attrs:{id:"message-box"}},[n("div",{},t._l(t.messages,function(e,i){return n("message",{key:i,attrs:{message:e,user:t.user,index:i,last:t.messages.length===i+1},on:{deleted:t.deleteMessage}})}),1),t._v(" "),0===t.messages.length?n("div",{staticClass:"flex flex-col justify-center items-center"},[n("div",{staticClass:"text-gray-600 text-lg text-center py-8"},[t._v("\n          Start communicating with your team member\n        ")]),t._v(" "),n("img",{staticClass:"w-96",attrs:{src:"/image/work_chat.svg",alt:"direct message"}})]):t._e()]),t._v(" "),t.authenticated?n("div",{staticClass:"fixed bottom-0 w-full message-box-max md:max-w-2xl lg:max-w-4xl xl:max-w-6xl bg-blue-100 p-4 border-t-2"},[n("div",{staticClass:"static text-center"},[n("div",{staticClass:"relative"},[n("user-suggestion-box",{staticClass:"absolute mb-2 w-full bottom-0",attrs:{users:t.members,name:t.name,suggestionShown:t.suggestionShown,suggestionSelected:t.suggestionSelected,suggestionHighlightIndex:t.suggestionHighlightIndex,suggestionHighlightDirection:t.suggestionHighlightDirection,suggestionHighlightDirectionInverted:!0},on:{selected:t.userSelected}})],1),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],ref:"messageTextarea",staticClass:"static textarea resize-none rounded w-full px-4 pt-2 text-gray-800",style:{height:t.messageTextareaHeight},attrs:{id:"send-message",placeholder:t._f("localize")("write your message here"),rows:"1"},domProps:{value:t.message},on:{keyup:function(e){return t.checkForMention(e)},keydown:[function(e){return t.mentionHighlightMove(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.sendMessage(e))}],focus:function(e){return t.clearTitleNotification()},input:function(e){e.target.composing||(t.message=e.target.value)}}})])]):t._e()])]):t._e()},[],!1,null,null,null);e.a=c.exports}},[[3,0,1]]]);
  