[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 9719.js
/*! For license information please see 9719.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[9719],{399:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(6314),l=o.n(n)()(function(e){return e[1]});l.push([e.id,"@media print{.hidden-print[data-v-3883c845]{display:none!important}}",""]);const r=l},725:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(9726);const l={name:"ExcelComponent",props:{method:{type:Function}},methods:{excelDownload:function(){this.method()}}};const r=(0,o(6262).A)(l,[["render",function(e,t,o,l,r,i){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(){return i.excelDownload&&i.excelDownload.apply(i,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-file-excel lab-font-size-15"},null,-1)),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("button.excel")),1)])}]])},764:(e,t,o)=>{var n;window,e.exports=(n=o(9726),function(e){var t={};function o(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(n,l,function(t){return e[t]}.bind(null,l));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o(o.s=7)}([function(e,t){e.exports=n},function(e,t,o){var n=o(9);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5).default)("2847aebd",n,!1,{})},function(e,t,o){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=function(e,t){var o,n=e[1]||"",l=e[3];if(!l)return n;if(t&&"function"==typeof btoa){var r=(o=l,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=l.sources.map(function(e){return"/*# sourceURL="+l.sourceRoot+e+" */"});return[n].concat(i).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},l=0;l<this.length;l++){var r=this[l][0];null!=r&&(n[r]=!0)}for(l=0;l<e.length;l++){var i=e[l];null!=i[0]&&n[i[0]]||(o&&!i[2]?i[2]=o:o&&(i[2]="("+i[2]+") and ("+o+")"),t.push(i))}},t}},function(e,t,o){var n=o(11);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals),(0,o(5).default)("150d3839",n,!1,{})},function(e,t){e.exports="data:application/vnd.ms-fontobject;base64,aAUAAMQEAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAUdPJHwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFrAAAALwAAABgY21hcBdW0okAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmpZ+jMAAAAXgAAAD8aGVhZA/FmAgAAAJ0AAAANmhoZWEHgAPIAAACrAAAACRobXR4EgABvgAAAtAAAAAcbG9jYQCSAOIAAALsAAAAEG1heHAACQAfAAAC/AAAACBuYW1lmUoJ+wAAAxwAAAGGcG9zdAADAAAAAASkAAAAIAADA4ABkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkCA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpAv/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAVgEBA74CgQAcAAABMhceARcWFwcmJy4BJyYjIgYHFyERFzY3PgE3NgIWSkNDbykpF2QQIB9VMzQ5P3AtnP6AmB0iIkspKAJVFxhSODlCIDMrKz4REislmgGAmhkVFBwICAABANYAgQMqAtUACwAAAQcXBycHJzcnNxc3Ayru7jzu7jzu7jzu7gKZ7u487u487u487u4AAQCSAIEDgAK9AAUAACUBFwEnNwGAAcQ8/gDuPPkBxDz+AO48AAAAAAEAAAAAAAAfydNRXw889QALBAAAAAAA1nUqGwAAAADWdSobAAAAAAO+AtUAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA74AAQAAAAAAAAAAAAAAAAAAAAcEAAAAAAAAAAAAAAACAAAABAAAVgQAANYEAACSAAAAAAAKABQAHgBQAGoAfgABAAAABwAdAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="},function(e,t,o){"use strict";function n(e,t){for(var o=[],n={},l=0;l<t.length;l++){var r=t[l],i=r[0],a={id:e+":"+l,css:r[1],media:r[2],sourceMap:r[3]};n[i]?n[i].parts.push(a):o.push(n[i]={id:i,parts:[a]})}return o}o.r(t),o.d(t,"default",function(){return f});var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},i=l&&(document.head||document.getElementsByTagName("head")[0]),a=null,s=0,c=!1,u=function(){},d=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,o,l){c=o,d=l||{};var i=n(e,t);return h(i),function(t){for(var o=[],l=0;l<i.length;l++){var a=i[l];(s=r[a.id]).refs--,o.push(s)}for(t?h(i=n(e,t)):i=[],l=0;l<o.length;l++){var s;if(0===(s=o[l]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete r[s.id]}}}}function h(e){for(var t=0;t<e.length;t++){var o=e[t],n=r[o.id];if(n){n.refs++;for(var l=0;l<n.parts.length;l++)n.parts[l](o.parts[l]);for(;l<o.parts.length;l++)n.parts.push(A(o.parts[l]));n.parts.length>o.parts.length&&(n.parts.length=o.parts.length)}else{var i=[];for(l=0;l<o.parts.length;l++)i.push(A(o.parts[l]));r[o.id]={id:o.id,refs:1,parts:i}}}}function b(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function A(e){var t,o,n=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(p){var l=s++;n=a||(a=b()),t=v.bind(null,n,l,!1),o=v.bind(null,n,l,!0)}else n=b(),t=y.bind(null,n),o=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else o()}}var m,g=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function v(e,t,o,n){var l=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=g(t,l);else{var r=document.createTextNode(l),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(r,i[t]):e.appendChild(r)}}function y(e,t){var o=t.css,n=t.media,l=t.sourceMap;if(n&&e.setAttribute("media",n),d.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),l&&(o+="\n/*# sourceURL="+l.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */"),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}},function(e,t,o){"use strict";var n=Array.isArray,l=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){var i,a,s,c=n(t),u=n(o);if(c&&u){if((a=t.length)!=o.length)return!1;for(i=a;0!=i--;)if(!e(t[i],o[i]))return!1;return!0}if(c!=u)return!1;var d=t instanceof Date,p=o instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==o.getTime();var f=t instanceof RegExp,h=o instanceof RegExp;if(f!=h)return!1;if(f&&h)return t.toString()==o.toString();var b=l(t);if((a=b.length)!==l(o).length)return!1;for(i=a;0!=i--;)if(!r.call(o,b[i]))return!1;for(i=a;0!=i--;)if(!e(t[s=b[i]],o[s]))return!1;return!0}return t!=t&&o!=o}},function(e,t,o){e.exports=o(15)},function(e,t,o){"use strict";o(1)},function(e,t,o){(e.exports=o(2)(!0)).push([e.i,".ti-tag-input[data-v-69648ea0]{background-color:transparent;color:inherit;border:none;padding:0px;margin:0px;display:flex;top:0px;position:absolute;width:100%;line-height:inherit}.ti-tag-input[data-v-69648ea0]::-ms-clear{display:none}input[data-v-69648ea0]:focus{outline:none}input[disabled][data-v-69648ea0]{background-color:transparent}\n","",{version:3,sources:["C:/Users/abcsi/Documents/repos/vue-tags-input/vue-tags-input/tag-input.vue"],names:[],mappings:"AAAA,+BAAc,4BAA4B,CAAC,aAAa,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,mBAAmB,CAAC,0CAAyB,YAAY,CAAC,6BAAY,YAAY,CAAC,iCAAgB,4BAA4B",file:"tag-input.vue?vue&type=style&index=0&id=69648ea0&lang=css&scoped=true",sourcesContent:[".ti-tag-input{background-color:transparent;color:inherit;border:none;padding:0px;margin:0px;display:flex;top:0px;position:absolute;width:100%;line-height:inherit}.ti-tag-input::-ms-clear{display:none}input:focus{outline:none}input[disabled]{background-color:transparent}\n"]}])},function(e,t,o){"use strict";o(3)},function(e,t,o){t=e.exports=o(2)(!0);var n=o(12),l=n(o(4)),r=n(o(4)+"#iefix"),i=n(o(13)),a=n(o(14));t.push([e.i,"@font-face{font-family:'icomoon';src:url("+l+");src:url("+r+') format("embedded-opentype"),url('+i+') format("truetype"),url('+a+') format("woff");font-weight:normal;font-style:normal}[class^="ti-icon-"][data-v-2fbda277],[class*=" ti-icon-"][data-v-2fbda277]{font-family:\'icomoon\' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ti-icon-check[data-v-2fbda277]:before{content:"\\e902"}.ti-icon-close[data-v-2fbda277]:before{content:"\\e901"}.ti-icon-undo[data-v-2fbda277]:before{content:"\\e900"}ul[data-v-2fbda277]{margin:0px;padding:0px;list-style-type:none}*[data-v-2fbda277],*[data-v-2fbda277]:before,*[data-v-2fbda277]:after{box-sizing:border-box}input[data-v-2fbda277]:focus{outline:none}input[disabled][data-v-2fbda277]{background-color:transparent}.vue-tags-input[data-v-2fbda277]{max-width:450px;position:relative;background-color:#fff}div.vue-tags-input.disabled[data-v-2fbda277]{opacity:0.5}div.vue-tags-input.disabled *[data-v-2fbda277]{cursor:default}.ti-input[data-v-2fbda277]{border:1px solid #ccc;display:flex;padding:4px;flex-wrap:wrap}.ti-tags[data-v-2fbda277]{display:flex;flex-wrap:wrap;width:100%;line-height:1em}.ti-tag[data-v-2fbda277]{background-color:#5C6BC0;color:#fff;border-radius:2px;display:flex;padding:3px 5px;margin:2px;font-size:.85em}.ti-tag[data-v-2fbda277]:focus{outline:none}.ti-tag .ti-content[data-v-2fbda277]{display:flex;align-items:center}.ti-tag .ti-tag-center[data-v-2fbda277]{position:relative}.ti-tag span[data-v-2fbda277]{line-height:.85em}.ti-tag span.ti-hidden[data-v-2fbda277]{padding-left:14px;visibility:hidden;height:0px;white-space:pre}.ti-tag .ti-actions[data-v-2fbda277]{margin-left:2px;display:flex;align-items:center;font-size:1.15em}.ti-tag .ti-actions i[data-v-2fbda277]{cursor:pointer}.ti-tag[data-v-2fbda277]:last-child{margin-right:4px}.ti-tag.ti-invalid[data-v-2fbda277],.ti-tag.ti-tag.ti-deletion-mark[data-v-2fbda277]{background-color:#e54d42}.ti-new-tag-input-wrapper[data-v-2fbda277]{display:flex;flex:1 0 auto;padding:3px 5px;margin:2px;font-size:.85em}.ti-new-tag-input-wrapper input[data-v-2fbda277]{flex:1 0 auto;min-width:100px;border:none;padding:0px;margin:0px}.ti-new-tag-input[data-v-2fbda277]{line-height:initial}.ti-autocomplete[data-v-2fbda277]{border:1px solid #ccc;border-top:none;position:absolute;width:100%;background-color:#fff;z-index:20}.ti-item>div[data-v-2fbda277]{cursor:pointer;padding:3px 6px;width:100%}.ti-selected-item[data-v-2fbda277]{background-color:#5C6BC0;color:#fff}\n',"",{version:3,sources:["C:/Users/abcsi/Documents/repos/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA,WAAW,qBAAqB,CAAC,iCAA4C,CAAC,2JAAmM,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,2EAAyC,gCAAgC,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,aAAa,CAAC,kCAAkC,CAAC,iCAAiC,CAAC,uCAAsB,eAAe,CAAC,uCAAsB,eAAe,CAAC,sCAAqB,eAAe,CAAC,oBAAG,UAAU,CAAC,WAAW,CAAC,oBAAoB,CAAC,sEAAmB,qBAAqB,CAAC,6BAAY,YAAY,CAAC,iCAAgB,4BAA4B,CAAC,iCAAgB,eAAe,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,6CAA4B,WAAW,CAAC,+CAA8B,cAAc,CAAC,2BAAU,qBAAqB,CAAC,YAAY,CAAC,WAAW,CAAC,cAAc,CAAC,0BAAS,YAAY,CAAC,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,yBAAQ,wBAAwB,CAAC,UAAU,CAAC,iBAAiB,CAAC,YAAY,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,CAAC,+BAAc,YAAY,CAAC,qCAAoB,YAAY,CAAC,kBAAkB,CAAC,wCAAuB,iBAAiB,CAAC,8BAAa,iBAAiB,CAAC,wCAAuB,iBAAiB,CAAC,iBAAiB,CAAC,UAAU,CAAC,eAAe,CAAC,qCAAoB,eAAe,CAAC,YAAY,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,uCAAsB,cAAc,CAAC,oCAAmB,gBAAgB,CAAC,qFAAmD,wBAAwB,CAAC,2CAA0B,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,CAAC,iDAAgC,aAAa,CAAC,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,mCAAkB,mBAAmB,CAAC,kCAAiB,qBAAqB,CAAC,eAAe,CAAC,iBAAiB,CAAC,UAAU,CAAC,qBAAqB,CAAC,UAAU,CAAC,8BAAa,cAAc,CAAC,eAAe,CAAC,UAAU,CAAC,mCAAkB,wBAAwB,CAAC,UAAU",file:"vue-tags-input.scss?vue&type=style&index=0&id=2fbda277&lang=scss&scoped=true",sourcesContent:['@font-face{font-family:\'icomoon\';src:url("./assets/fonts/icomoon.eot?7grlse");src:url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"),url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"),url("./assets/fonts/icomoon.woff?7grlse") format("woff");font-weight:normal;font-style:normal}[class^="ti-icon-"],[class*=" ti-icon-"]{font-family:\'icomoon\' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ti-icon-check:before{content:"\\e902"}.ti-icon-close:before{content:"\\e901"}.ti-icon-undo:before{content:"\\e900"}ul{margin:0px;padding:0px;list-style-type:none}*,*:before,*:after{box-sizing:border-box}input:focus{outline:none}input[disabled]{background-color:transparent}.vue-tags-input{max-width:450px;position:relative;background-color:#fff}div.vue-tags-input.disabled{opacity:0.5}div.vue-tags-input.disabled *{cursor:default}.ti-input{border:1px solid #ccc;display:flex;padding:4px;flex-wrap:wrap}.ti-tags{display:flex;flex-wrap:wrap;width:100%;line-height:1em}.ti-tag{background-color:#5C6BC0;color:#fff;border-radius:2px;display:flex;padding:3px 5px;margin:2px;font-size:.85em}.ti-tag:focus{outline:none}.ti-tag .ti-content{display:flex;align-items:center}.ti-tag .ti-tag-center{position:relative}.ti-tag span{line-height:.85em}.ti-tag span.ti-hidden{padding-left:14px;visibility:hidden;height:0px;white-space:pre}.ti-tag .ti-actions{margin-left:2px;display:flex;align-items:center;font-size:1.15em}.ti-tag .ti-actions i{cursor:pointer}.ti-tag:last-child{margin-right:4px}.ti-tag.ti-invalid,.ti-tag.ti-tag.ti-deletion-mark{background-color:#e54d42}.ti-new-tag-input-wrapper{display:flex;flex:1 0 auto;padding:3px 5px;margin:2px;font-size:.85em}.ti-new-tag-input-wrapper input{flex:1 0 auto;min-width:100px;border:none;padding:0px;margin:0px}.ti-new-tag-input{line-height:initial}.ti-autocomplete{border:1px solid #ccc;border-top:none;position:absolute;width:100%;background-color:#fff;z-index:20}.ti-item>div{cursor:pointer;padding:3px 6px;width:100%}.ti-selected-item{background-color:#5C6BC0;color:#fff}\n']}])},function(e,t,o){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(e,t){e.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,o){"use strict";o.r(t),o.d(t,"VueTagsInput",function(){return N}),o.d(t,"createClasses",function(){return g}),o.d(t,"createTag",function(){return v}),o.d(t,"createTags",function(){return y}),o.d(t,"TagInput",function(){return w});var n=o(0),l=Object(n.withScopeId)("data-v-2fbda277");Object(n.pushScopeId)("data-v-2fbda277");var r={class:"ti-input"},i={key:0,class:"ti-tags"},a={class:"ti-content"},s={key:0,class:"ti-tag-left"},c={key:1,class:"ti-tag-right"},u={class:"ti-actions"},d={class:"ti-new-tag-input-wrapper"};Object(n.popScopeId)();var p=l(function(e,t,o,l,p,f){var h=Object(n.resolveComponent)("tag-input");return Object(n.openBlock)(),Object(n.createBlock)("div",{class:["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]],style:e.$attrs.style},[Object(n.createVNode)("div",r,[e.tagsCopy?(Object(n.openBlock)(),Object(n.createBlock)("ul",i,[(Object(n.openBlock)(!0),Object(n.createBlock)(n.Fragment,null,Object(n.renderList)(e.tagsCopy,function(t,o){return Object(n.openBlock)(),Object(n.createBlock)("li",{key:o,style:t.style,class:[[{"ti-editing":e.tagsEditStatus[o]},t.tiClasses,t.classes,{"ti-deletion-mark":e.isMarked(o)}],"ti-tag"],tabindex:"0",onClick:function(n){return e.$emit("tag-clicked",{tag:t,index:o})}},[Object(n.createVNode)("div",a,[e.$slots["tag-left"]?(Object(n.openBlock)(),Object(n.createBlock)("div",s,[Object(n.renderSlot)(e.$slots,"tag-left",{tag:t,index:o,edit:e.tagsEditStatus[o],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(o)},void 0,!0)])):Object(n.createCommentVNode)("v-if",!0),Object(n.createVNode)("div",{ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?Object(n.createCommentVNode)("v-if",!0):(Object(n.openBlock)(),Object(n.createBlock)("span",{key:0,class:{"ti-hidden":e.tagsEditStatus[o]},onClick:function(t){return e.performEditTag(o)}},Object(n.toDisplayString)(t.text),11,["onClick"])),e.$slots["tag-center"]?Object(n.createCommentVNode)("v-if",!0):(Object(n.openBlock)(),Object(n.createBlock)(h,{key:1,scope:{edit:e.tagsEditStatus[o],maxlength:e.maxlength,tag:t,index:o,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),Object(n.renderSlot)(e.$slots,"tag-center",{tag:t,index:o,maxlength:e.maxlength,edit:e.tagsEditStatus[o],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(o)},void 0,!0)],512),e.$slots["tag-right"]?(Object(n.openBlock)(),Object(n.createBlock)("div",c,[Object(n.renderSlot)(e.$slots,"tag-right",{tag:t,index:o,edit:e.tagsEditStatus[o],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(o)},void 0,!0)])):Object(n.createCommentVNode)("v-if",!0)]),Object(n.createVNode)("div",u,[Object(n.createCommentVNode)(" dont use v-if and v-else here -> different event calling on click?! "),e.$slots["tag-actions"]?Object(n.createCommentVNode)("v-if",!0):Object(n.withDirectives)((Object(n.openBlock)(),Object(n.createBlock)("i",{key:0,class:"ti-icon-undo",onClick:function(t){return e.cancelEdit(o)}},null,8,["onClick"])),[[n.vShow,e.tagsEditStatus[o]]]),e.$slots["tag-actions"]?Object(n.createCommentVNode)("v-if",!0):Object(n.withDirectives)((Object(n.openBlock)(),Object(n.createBlock)("i",{key:1,class:"ti-icon-close",onClick:function(t){return e.performDeleteTag(o)}},null,8,["onClick"])),[[n.vShow,!e.tagsEditStatus[o]]]),e.$slots["tag-actions"]?Object(n.renderSlot)(e.$slots,"tag-actions",{key:2,tag:t,index:o,edit:e.tagsEditStatus[o],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(o)},void 0,!0):Object(n.createCommentVNode)("v-if",!0)])],14,["onClick"])}),128)),Object(n.createVNode)("li",d,[Object(n.createVNode)("input",Object(n.mergeProps)({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[t[1]||(t[1]=function(t){return e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,t)}),t[3]||(t[3]=Object(n.withKeys)(function(){return e.invokeDelete&&e.invokeDelete.apply(e,arguments)},["delete"])),t[4]||(t[4]=Object(n.withKeys)(function(){return e.performBlur&&e.performBlur.apply(e,arguments)},["tab"])),t[5]||(t[5]=Object(n.withKeys)(function(t){return e.selectItem(t,"before")},["up"])),t[6]||(t[6]=Object(n.withKeys)(function(t){return e.selectItem(t,"after")},["down"]))],onPaste:t[2]||(t[2]=function(){return e.addTagsFromPaste&&e.addTagsFromPaste.apply(e,arguments)}),onInput:t[7]||(t[7]=function(){return e.updateNewTag&&e.updateNewTag.apply(e,arguments)}),onFocus:t[8]||(t[8]=function(t){return e.focused=!0}),onClick:t[9]||(t[9]=function(t){return!e.addOnlyFromAutocomplete&&(e.selectedItem=null)})}),null,16,["placeholder","value","maxlength","disabled"])])])):Object(n.createCommentVNode)("v-if",!0)]),Object(n.renderSlot)(e.$slots,"between-elements",{},void 0,!0),e.autocompleteOpen?(Object(n.openBlock)(),Object(n.createBlock)("div",{key:0,class:"ti-autocomplete",onMouseout:t[10]||(t[10]=function(t){return e.selectedItem=null})},[Object(n.renderSlot)(e.$slots,"autocomplete-header",{},void 0,!0),Object(n.createVNode)("ul",null,[(Object(n.openBlock)(!0),Object(n.createBlock)(n.Fragment,null,Object(n.renderList)(e.filteredAutocompleteItems,function(t,o){return Object(n.openBlock)(),Object(n.createBlock)("li",{key:o,style:t.style,class:[[t.tiClasses,t.classes,{"ti-selected-item":e.isSelected(o)}],"ti-item"],onMouseover:function(t){return!e.disabled&&(e.selectedItem=o)}},[e.$slots["autocomplete-item"]?Object(n.renderSlot)(e.$slots,"autocomplete-item",{key:1,item:t,index:o,performAdd:function(t){return e.performAddTags(t,void 0,"autocomplete")},selected:e.isSelected(o)},void 0,!0):(Object(n.openBlock)(),Object(n.createBlock)("div",{key:0,onClick:function(o){return e.performAddTags(t,void 0,"autocomplete")}},Object(n.toDisplayString)(t.text),9,["onClick"]))],46,["onMouseover"])}),128))]),Object(n.renderSlot)(e.$slots,"autocomplete-footer",{},void 0,!0)],32)):Object(n.createCommentVNode)("v-if",!0)],6)}),f=o(6),h=o.n(f),b=function(e,t){return t.filter(function(t){var o=e.text;return"string"==typeof t.rule?!new RegExp(t.rule).test(o):t.rule instanceof RegExp?!t.rule.test(o):"[object Function]"==={}.toString.call(t.rule)?t.rule(e):void 0}).map(function(e){return e.classes})},A=function(e){return JSON.parse(JSON.stringify(e))},m=function(e,t){for(var o=0;o<e.length;){if(t(e[o],o,e))return o;o++}return-1},g=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;void 0===e.text&&(e={text:e});var l=b(e,o),r=m(t,function(t){return t===e}),i=A(t),a=-1!==r?i.splice(r,1)[0]:A(e),s=n?n(i,a):-1!==i.map(function(e){return e.text}).indexOf(a.text);return s&&l.push("ti-duplicate"),0===l.length?l.push("ti-valid"):l.push("ti-invalid"),l},v=function(e){void 0===e.text&&(e={text:e});for(var t=A(e),o=arguments.length,n=new Array(o>1?o-1:0),l=1;l<o;l++)n[l-1]=arguments[l];return t.tiClasses=g.apply(void 0,[e].concat(n)),t},y=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return e.map(function(t){return v.apply(void 0,[t,e].concat(o))})},q=Object(n.withScopeId)("data-v-69648ea0")(function(e,t,o,l,r,i){return o.scope.edit?Object(n.withDirectives)((Object(n.openBlock)(),Object(n.createBlock)("input",{key:0,"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.scope.tag.text=e}),maxlength:o.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:t[2]||(t[2]=function(e){return o.scope.validateTag(o.scope.index,e)}),onBlur:t[3]||(t[3]=function(e){return o.scope.performCancelEdit(o.scope.index)}),onKeydown:t[4]||(t[4]=function(e){return o.scope.performSaveEdit(o.scope.index,e)})},null,40,["maxlength"])),[[n.vModelText,o.scope.tag.text]]):Object(n.createCommentVNode)("v-if",!0)}),k={name:"TagInput",props:{scope:{type:Object}}};o(8),k.render=q,k.__scopeId="data-v-69648ea0";var w=k,x=function(e){return!e.some(function(e){var t=!e.text;t&&console.warn('Missing property "text"',e);var o=!1;return e.classes&&(o="string"!=typeof e.classes),o&&console.warn('Property "classes" must be type of string',e),t||o})},_=function(e){return!e.some(function(e){if("number"==typeof e){var t=isFinite(e)&&Math.floor(e)===e;return t||console.warn("Only numerics are allowed for this prop. Found:",e),!t}if("string"==typeof e){var o=/\W|[a-z]|!\d/i.test(e);return o||console.warn("Only alpha strings are allowed for this prop. Found:",e),!o}return console.warn("Only numeric and string values are allowed. Found:",e),!1})},E={modelValue:{type:String,default:"",required:!0},tags:{type:Array,default:function(){return[]},validator:x},autocompleteItems:{type:Array,default:function(){return[]},validator:x},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:function(){return[13]},validator:_},saveOnKey:{type:Array,default:function(){return[13]},validator:_},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:function(){return[]},validator:function(e){return!e.some(function(e){var t=!e.rule;t&&console.warn('Property "rule" is missing',e);var o=e.rule&&("string"==typeof e.rule||e.rule instanceof RegExp||"[object Function]"==={}.toString.call(e.rule));o||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(e.rule));var n=!e.classes;n&&console.warn('Property "classes" is missing',e);var l=e.type&&"string"!=typeof e.type;return l&&console.warn('Property "type" must be type of string. Found:',e),!o||t||n||l})}},separators:{type:Array,default:function(){return[";"]},validator:function(e){return!e.some(function(e){var t="string"!=typeof e;return t&&console.warn("Separators must be type of string. Found:",e),t})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean},onBeforeAddingTag:Function,onBeforeDeletingTag:Function,onBeforeEditingTag:Function,onBeforeSavingTag:Function};function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C={name:"VueTagsInput",components:{TagInput:w},props:E,emits:["adding-duplicate","before-adding-tag","before-deleting-tag","before-editing-tag","before-saving-tag","max-tags-reached","saving-duplicate","tags-changed","tag-clicked","update:modelValue","update:tags"],inheritAttrs:!1,data:function(){return{tagCenter:[],newTag:null,tagsCopy:null,tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen:function(){return!!this.autocompleteAlwaysOpen||null!==this.newTag&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var e=this,t=this.autocompleteItems.map(function(t){return v(t,e.tags,e.validation,e.isDuplicate)});return this.autocompleteFilterDuplicates?t.filter(this.duplicateFilter):t}},methods:{createClasses:g,getSelectedIndex:function(e){var t=this.filteredAutocompleteItems,o=this.selectedItem,n=t.length-1;if(0!==t.length)return null===o?0:"before"===e&&0===o?n:"after"===e&&o===n?0:"after"===e?o+1:o-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(e,t){e.preventDefault(),this.selectedItem=this.getSelectedIndex(t)},isSelected:function(e){return this.selectedItem===e},isMarked:function(e){return this.deletionMark===e},setTagCenter:function(e){e&&this.tagCenter.push(e)},invokeDelete:function(){var e=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var t=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout(function(){return e.deletionMark=null},1e3),this.deletionMark=t):this.performDeleteTag(t)}},addTagsFromPaste:function(){var e=this;this.addFromPaste&&setTimeout(function(){return e.performAddTags(e.newTag)},10)},performEditTag:function(e){var t=this;this.allowEditTags&&(this.onBeforeAddingTag||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:function(){return t.editTag(e)}}))},editTag:function(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode:function(e){this.allowEditTags&&!this.disabled&&(this.tagsEditStatus[e]=!this.tagsEditStatus[e])},createChangedTag:function(e,t){var o=this.tagsCopy[e];o.text=t?t.target.value:this.tagsCopy[e].text,this.tagsCopy[e]=v(o,this.tagsCopy,this.validation,this.isDuplicate)},focus:function(e){var t=this;this.$nextTick(function(){var o=t.tagCenter[e].querySelector("input.ti-tag-input");o&&o.focus()})},quote:function(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(e){this.tags[e]&&(this.tagsCopy[e]=A(v(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.tagsEditStatus[e]=!1)},hasForbiddingAddRule:function(e){var t=this;return e.some(function(e){var o=t.validation.find(function(t){return e===t.classes});return!!o&&o.disableAdd})},createTagTexts:function(e){var t=this,o=new RegExp(this.separators.map(function(e){return t.quote(e)}).join("|"));return e.split(o).map(function(e){return{text:e}})},performDeleteTag:function(e){var t=this;this.onBeforeDeletingTag||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:function(){return t.deleteTag(e)}})},deleteTag:function(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(e,t){var o=-1!==this[t].indexOf(e.keyCode)||-1!==this[t].indexOf(e.key);return o&&e.preventDefault(),!o},performAddTags:function(e,t,o){var n=this;if(!(this.disabled||t&&this.noTriggerKey(t,"addOnKey"))){var l=[];"object"===O(e)&&(l=[e]),"string"==typeof e&&(l=this.createTagTexts(e)),(l=l.filter(function(e){return e.text.trim().length>0})).forEach(function(e){e=v(e,n.tags,n.validation,n.isDuplicate),n.onBeforeAddingTag||n.addTag(e,o),n.$emit("before-adding-tag",{tag:e,addTag:function(){return n.addTag(e,o)}})})}},duplicateFilter:function(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find(function(t){return t.text===e.text})},addTag:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",n=this.filteredAutocompleteItems.map(function(e){return e.text});this.addOnlyFromAutocomplete&&-1===n.indexOf(e.text)||this.$nextTick(function(){return t.maxTags&&t.maxTags<=t.tagsCopy.length?t.$emit("max-tags-reached",e):t.avoidAddingDuplicates&&!t.duplicateFilter(e)?t.$emit("adding-duplicate",e):void(t.hasForbiddingAddRule(e.tiClasses)||(t.newTag="",t.tagsCopy.push(e),t.$emit("update:tags",t.tagsCopy),"autocomplete"===o&&t.$refs.newTagInput.focus(),t.$emit("tags-changed",t.tagsCopy)))})},performSaveTag:function(e,t){var o=this,n=this.tagsCopy[e];this.disabled||t&&this.noTriggerKey(t,"addOnKey")||0!==n.text.trim().length&&(this["on-before-saving-tag"]||this.saveTag(e,n),this.$emit("before-saving-tag",{index:e,tag:n,saveTag:function(){return o.saveTag(e,n)}}))},saveTag:function(e,t){if(this.avoidAddingDuplicates){var o=A(this.tagsCopy),n=o.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(o,n):-1!==o.map(function(e){return e.text}).indexOf(n.text))return this.$emit("saving-duplicate",t)}this.hasForbiddingAddRule(t.tiClasses)||(this.tagsCopy[e]=t,this.toggleEditMode(e),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var e=this;return!this.tagsCopy.some(function(t,o){return!h()(t,e.tags[o])})},updateNewTag:function(e){var t=e.target.value;this.newTag=t,this.$emit("update:modelValue",t)},initTags:function(){this.tagsCopy=y(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=A(this.tags).map(function(){return!1}),this.tagsEqual()||this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{modelValue:function(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.modelValue,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},beforeUpdate:function(){this.tagCenter=[]},unmounted:function(){document.removeEventListener("click",this.blurredOnClick)}};o(10),C.render=p,C.__scopeId="data-v-2fbda277";var N=C;N.install=function(e){return e.component(N.name,N)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(N),t.default=N}]))},1017:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(9726);const l={name:"PaginationBox",components:{TailwindPagination:o(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const r=(0,o(6262).A)(l,[["render",function(e,t,o,l,r,i){var a=(0,n.resolveComponent)("TailwindPagination");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createVNode)(a,{data:o.pagination,onPaginationChangePage:i.page,"active-classes":r.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1574:function(e,t,o){var n,l=o(8287).hp;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=109)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(17),l=o(18),r=o(19),i=o(45),a=o(46),s=o(47),c=o(48),u=o(49),d=o(12),p=o(32),f=o(33),h=o(31),b=o(1),A={Scope:b.Scope,create:b.create,find:b.find,query:b.query,register:b.register,Container:n.default,Format:l.default,Leaf:r.default,Embed:c.default,Scroll:i.default,Block:s.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=A},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var o=this;return t="[Parchment] "+t,(o=e.call(this,t)||this).message=t,o.name=o.constructor.name,o}return l(t,e),t}(Error);t.ParchmentError=r;var i,a={},s={},c={},u={};function d(e,t){var o;if(void 0===t&&(t=i.ANY),"string"==typeof e)o=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)o=u.text;else if("number"==typeof e)e&i.LEVEL&i.BLOCK?o=u.block:e&i.LEVEL&i.INLINE&&(o=u.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var l in n)if(o=s[n[l]])break;o=o||c[e.tagName]}return null==o?null:t&i.LEVEL&o.scope&&t&i.TYPE&o.scope?o:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(i=t.Scope||(t.Scope={})),t.create=function(e,t){var o=d(e);if(null==o)throw new r("Unable to create "+e+" blot");var n=o,l=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(l,t)},t.find=function e(o,n){return void 0===n&&(n=!1),null==o?null:null!=o[t.DATA_KEY]?o[t.DATA_KEY].blot:n?e(o.parentNode,n):null},t.query=d,t.register=function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length>1)return t.map(function(t){return e(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");return u[n.blotName||n.attrName]=n,"string"==typeof n.keyName?a[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(e){return e.toUpperCase()}):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(function(e){null!=c[e]&&null!=n.className||(c[e]=n)}))),n}},function(e,t,o){var n=o(51),l=o(11),r=o(3),i=o(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var o={};return 0===e.length?this:(o.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(o.attributes=t),this.push(o))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var o={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(o.attributes=t),this.push(o)},s.prototype.push=function(e){var t=this.ops.length,o=this.ops[t-1];if(e=r(!0,{},e),"object"==typeof o){if("number"==typeof e.delete&&"number"==typeof o.delete)return this.ops[t-1]={delete:o.delete+e.delete},this;if("number"==typeof o.delete&&null!=e.insert&&(t-=1,"object"!=typeof(o=this.ops[t-1])))return this.ops.unshift(e),this;if(l(e.attributes,o.attributes)){if("string"==typeof e.insert&&"string"==typeof o.insert)return this.ops[t-1]={insert:o.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof o.retain)return this.ops[t-1]={retain:o.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],o=[];return this.forEach(function(n){(e(n)?t:o).push(n)}),[t,o]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+i.length(t):t.delete?e-t.delete:e},0)},s.prototype.length=function(){return this.reduce(function(e,t){return e+i.length(t)},0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var o=[],n=i.iterator(this.ops),l=0;l<t&&n.hasNext();){var r;l<e?r=n.next(e-l):(r=n.next(t-l),o.push(r)),l+=i.length(r)}return new s(o)},s.prototype.compose=function(e){var t=i.iterator(this.ops),o=i.iterator(e.ops),n=[],r=o.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){for(var a=r.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),n.push(t.next());r.retain-a>0&&o.next(r.retain-a)}for(var c=new s(n);t.hasNext()||o.hasNext();)if("insert"===o.peekType())c.push(o.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),o.peekLength()),d=t.next(u),p=o.next(u);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=u:f.insert=d.insert;var h=i.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),c.push(f),!o.hasNext()&&l(c.ops[c.ops.length-1],f)){var b=new s(t.rest());return c.concat(b).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&c.push(p)}return c.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var o=[this,e].map(function(t){return t.map(function(o){if(null!=o.insert)return"string"==typeof o.insert?o.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),r=new s,c=n(o[0],o[1],t),u=i.iterator(this.ops),d=i.iterator(e.ops);return c.forEach(function(e){for(var t=e[1].length;t>0;){var o=0;switch(e[0]){case n.INSERT:o=Math.min(d.peekLength(),t),r.push(d.next(o));break;case n.DELETE:o=Math.min(t,u.peekLength()),u.next(o),r.delete(o);break;case n.EQUAL:o=Math.min(u.peekLength(),d.peekLength(),t);var a=u.next(o),s=d.next(o);l(a.insert,s.insert)?r.retain(o,i.attributes.diff(a.attributes,s.attributes)):r.push(s).delete(o)}t-=o}}),r.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var o=i.iterator(this.ops),n=new s,l=0;o.hasNext();){if("insert"!==o.peekType())return;var r=o.peek(),a=i.length(r)-o.peekLength(),c="string"==typeof r.insert?r.insert.indexOf(t,a)-a:-1;if(c<0)n.push(o.next());else if(c>0)n.push(o.next(c));else{if(!1===e(n,o.next(1).attributes||{},l))return;l+=1,n=new s}}n.length()>0&&e(n,{},l)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var o=i.iterator(this.ops),n=i.iterator(e.ops),l=new s;o.hasNext()||n.hasNext();)if("insert"!==o.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())l.push(n.next());else{var r=Math.min(o.peekLength(),n.peekLength()),a=o.next(r),c=n.next(r);if(a.delete)continue;c.delete?l.push(c):l.retain(r,i.attributes.transform(a.attributes,c.attributes,t))}else l.retain(i.length(o.next()));return l.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var o=i.iterator(this.ops),n=0;o.hasNext()&&n<=e;){var l=o.peekLength(),r=o.peekType();o.next(),"delete"!==r?("insert"===r&&(n<e||!t)&&(e+=l),n+=l):e-=Math.min(l,e-n)}return e},e.exports=s},function(e,t){"use strict";var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,l=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,l=o.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!r)return!1;for(t in e);return void 0===t||o.call(e,t)},s=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(r)return r(e,t).value}return e[t]};e.exports=function e(){var t,o,n,l,r,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(o in t)n=c(d,o),d!==(l=c(t,o))&&(h&&l&&(a(l)||(r=i(l)))?(r?(r=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:o,newValue:e(h,u,l)})):void 0!==l&&s(d,{name:o,newValue:l}));return d}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=d(o(3)),i=d(o(2)),a=d(o(0)),s=d(o(16)),c=d(o(6)),u=d(o(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),n(t,[{key:"attach",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new i.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var o=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=o&&this.attributes.attribute(o,t)}},{key:"formatAt",value:function(e,t,o,n){this.format(o,n)}},{key:"insertAt",value:function(e,o,n){if("string"==typeof o&&o.endsWith("\n")){var r=a.default.create(A.blotName);this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,o.slice(0,-1))}else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,n)}}]),t}(a.default.Embed);b.scope=a.default.Scope.BLOCK_BLOT;var A=function(e){function t(e){p(this,t);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.cache={},o}return h(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),m(t))},new i.default).insert("\n",m(this))),this.cache.delta}},{key:"deleteAt",value:function(e,o){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,o),this.cache={}}},{key:"formatAt",value:function(e,o,n,r){o<=0||(a.default.query(n,a.default.Scope.BLOCK)?e+o===this.length()&&this.format(n,r):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(o,this.length()-e-1),n,r),this.cache={})}},{key:"insertAt",value:function(e,o,n){if(null!=n)return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,n);if(0!==o.length){var r=o.split("\n"),i=r.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var a=this;r.reduce(function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length},e+i.length)}}},{key:"insertBefore",value:function(e,o){var n=this.children.head;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o),n instanceof s.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,o){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,o),this.cache={}}},{key:"optimize",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var r=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,o);return this.cache={},r}}]),t}(a.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,r.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[c.default,a.default.Embed,u.default],t.bubbleFormats=m,t.BlockEmbed=b,t.default=A},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}();o(50);var i=A(o(2)),a=A(o(14)),s=A(o(8)),c=A(o(9)),u=A(o(0)),d=o(15),p=A(d),f=A(o(3)),h=A(o(10)),b=A(o(34));function A(e){return e&&e.__esModule?e:{default:e}}function m(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var g=(0,h.default)("quill"),v=function(){function e(t){var o=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=y(t,n),this.container=this.options.container,null==this.container)return g.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var l=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 s.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 p.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(s.default.events.EDITOR_CHANGE,function(e){e===s.default.events.TEXT_CHANGE&&o.root.classList.toggle("ql-blank",o.editor.isBlank())}),this.emitter.on(s.default.events.SCROLL_UPDATE,function(e,t){var n=o.selection.lastRange,l=n&&0===n.length?n.index:void 0;q.call(o,function(){return o.editor.update(null,t,l)},e)});var r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+l+"<p><br></p></div>");this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return r(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&g.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var l=e.attrName||e.blotName;"string"==typeof l?this.register("formats/"+l,e,t):Object.keys(e).forEach(function(n){o.register(n,e[n],t)})}else null==this.imports[e]||n||g.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),r(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var o=e;(e=document.createElement("div")).classList.add(o)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,o){var n=this,r=k(e,t,o),i=l(r,4);return e=i[0],t=i[1],o=i[3],q.call(this,function(){return n.editor.deleteText(e,t)},o,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return q.call(this,function(){var n=o.getSelection(!0),l=new i.default;if(null==n)return l;if(u.default.query(e,u.default.Scope.BLOCK))l=o.editor.formatLine(n.index,n.length,m({},e,t));else{if(0===n.length)return o.selection.format(e,t),l;l=o.editor.formatText(n.index,n.length,m({},e,t))}return o.setSelection(n,s.default.sources.SILENT),l},n)}},{key:"formatLine",value:function(e,t,o,n,r){var i,a=this,s=k(e,t,o,n,r),c=l(s,4);return e=c[0],t=c[1],i=c[2],r=c[3],q.call(this,function(){return a.editor.formatLine(e,t,i)},r,e,0)}},{key:"formatText",value:function(e,t,o,n,r){var i,a=this,s=k(e,t,o,n,r),c=l(s,4);return e=c[0],t=c[1],i=c[2],r=c[3],q.call(this,function(){return a.editor.formatText(e,t,i)},r,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=void 0;o="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:o.bottom-n.top,height:o.height,left:o.left-n.left,right:o.right-n.left,top:o.top-n.top,width:o.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,o=k(e,t),n=l(o,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,o=k(e,t),n=l(o,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,o,n){var l=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return q.call(this,function(){return l.editor.insertEmbed(t,o,n)},r,t)}},{key:"insertText",value:function(e,t,o,n,r){var i,a=this,s=k(e,0,o,n,r),c=l(s,4);return e=c[0],i=c[2],r=c[3],q.call(this,function(){return a.editor.insertText(e,t,i)},r,e,t.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(e,t,o){this.clipboard.dangerouslyPasteHTML(e,t,o)}},{key:"removeFormat",value:function(e,t,o){var n=this,r=k(e,t,o),i=l(r,4);return e=i[0],t=i[1],o=i[3],q.call(this,function(){return n.editor.removeFormat(e,t)},o,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return q.call(this,function(){e=new i.default(e);var o=t.getLength(),n=t.editor.deleteText(0,o),l=t.editor.applyDelta(e),r=l.ops[l.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),l.delete(1)),n.compose(l)},o)}},{key:"setSelection",value:function(t,o,n){if(null==t)this.selection.setRange(null,o||e.sources.API);else{var r=k(t,o,n),i=l(r,4);t=i[0],o=i[1],n=i[3],this.selection.setRange(new d.Range(t,o),n),n!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,o=(new i.default).insert(e);return this.setContents(o,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return q.call(this,function(){return e=new i.default(e),t.editor.applyDelta(e,o)},o,!0)}}]),e}();function y(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=b.default;var o=(0,f.default)(!0,{},t.theme.DEFAULTS);[o,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var n=Object.keys(o.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var o=v.import("modules/"+t);return null==o?g.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=o.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},v.DEFAULTS,{modules:n},o,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,o){return t.modules[o]&&(e[o]=t.modules[o]),e},{}),t}function q(e,t,o,n){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new i.default;var l=null==o?null:this.getSelection(),r=this.editor.delta,a=e();if(null!=l&&(!0===o&&(o=l.index),null==n?l=w(l,a,t):0!==n&&(l=w(l,o,n,t)),this.setSelection(l,s.default.sources.SILENT)),a.length()>0){var c,u,d=[s.default.events.TEXT_CHANGE,a,r,t];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return a}function k(e,t,o,l,r){var i={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(r=l,l=o,o=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(r=l,l=o,o=t,t=0),"object"===(void 0===o?"undefined":n(o))?(i=o,r=l):"string"==typeof o&&(null!=l?i[o]=l:r=o),[e,t,i,r=r||s.default.sources.API]}function w(e,t,o,n){if(null==e)return null;var r=void 0,a=void 0;if(t instanceof i.default){var c=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,n!==s.default.sources.USER)}),u=l(c,2);r=u[0],a=u[1]}else{var p=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&n===s.default.sources.USER?e:o>=0?e+o:Math.max(t,e+o)}),f=l(p,2);r=f[0],a=f[1]}return new d.Range(r,a-r)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=s.default.events,v.sources=s.default.sources,v.version="1.3.7",v.imports={delta:i.default,parchment:u.default,"core/module":c.default,"core/theme":b.default},t.expandConfig=y,t.overload=k,t.default=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=a(o(7)),i=a(o(0));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"formatAt",value:function(e,o,n,r){if(t.compare(this.statics.blotName,n)<0&&i.default.query(n,i.default.Scope.BLOT)){var a=this.isolate(e,o);r&&a.wrap(n,r)}else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,o,n,r)}},{key:"optimize",value:function(e){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var o=this.parent.isolate(this.offset(),this.length());this.moveChildren(o),o.wrap(this)}}}],[{key:"compare",value:function(e,o){var n=t.order.indexOf(e),l=t.order.indexOf(o);return n>=0||l>=0?n-l:e===o?0:e<o?-1:1}}]),t}(i.default.Inline);s.allowedChildren=[s,i.default.Embed,r.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=o(0),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=l)&&n.__esModule?n:{default:n}).default.Text);t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=i(o(54));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,i(o(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var o;e.__quill&&e.__quill.emitter&&(o=e.__quill.emitter).handleDOM.apply(o,t)})})});var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"emit",value:function(){a.log.apply(a,arguments),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach(function(t){var n=t.node,l=t.handler;(e.target===n||n.contains(e.target))&&l.apply(void 0,[e].concat(o))})}},{key:"listenDOM",value:function(e,t,o){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:o})}}]),t}(r.default);s.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"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=o};n.DEFAULTS={},t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],l="warn";function r(e){if(n.indexOf(e)<=n.indexOf(l)){for(var t,o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];(t=console)[e].apply(t,r)}}function i(e){return n.reduce(function(t,o){return t[o]=r.bind(console,o,e),t},{})}r.level=i.level=function(e){l=e},t.default=i},function(e,t,o){var n=Array.prototype.slice,l=o(52),r=o(53),i=e.exports=function(e,t,o){return o||(o={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?o.strict?e===t:e==t:function(e,t,o){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e))return!!r(t)&&(e=n.call(e),t=n.call(t),i(e,t,o));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=l(e),p=l(t)}catch(e){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),c=d.length-1;c>=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!i(e[u],t[u],o))return!1;return typeof e==typeof t}(e,t,o))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),l=function(){function e(e,t,o){void 0===o&&(o={}),this.attrName=e,this.keyName=t;var l=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=o.scope?this.scope=o.scope&n.Scope.LEVEL|l:this.scope=n.Scope.ATTRIBUTE,null!=o.whitelist&&(this.whitelist=o.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=d(o(2)),a=d(o(0)),s=d(o(4)),c=d(o(6)),u=d(o(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);b.blotName="code",b.tagName="CODE";var A=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),l(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,o){return t.insert(o).insert("\n",e.formats())},new i.default)}},{key:"format",value:function(e,o){if(e!==this.statics.blotName||!o){var l=this.descendant(u.default,this.length()-1),i=n(l,1)[0];null!=i&&i.deleteAt(i.length()-1,1),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}},{key:"formatAt",value:function(e,o,n,l){if(0!==o&&null!=a.default.query(n,a.default.Scope.BLOCK)&&(n!==this.statics.blotName||l!==this.statics.formats(this.domNode))){var r=this.newlineIndex(e);if(!(r<0||r>=e+o)){var i=this.newlineIndex(e,!0)+1,s=r-i+1,c=this.isolate(i,s),u=c.next;c.format(n,l),u instanceof t&&u.formatAt(0,e-i+o-s,n,l)}}}},{key:"insertAt",value:function(e,t,o){if(null==o){var l=this.descendant(u.default,e),r=n(l,2),i=r[0],a=r[1];i.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var o=this.next;null!=o&&o.prev===this&&o.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===o.statics.formats(o.domNode)&&(o.optimize(e),o.moveChildren(this),o.remove())}},{key:"replace",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return o.setAttribute("spellcheck",!1),o}},{key:"formats",value:function(){return!0}}]),t}(s.default);A.blotName="code-block",A.tagName="PRE",A.TAB=" ",t.Code=b,t.default=A},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=m(o(2)),a=m(o(20)),s=m(o(0)),c=m(o(13)),u=m(o(24)),d=o(4),p=m(d),f=m(o(16)),h=m(o(21)),b=m(o(11)),A=m(o(3));function m(e){return e&&e.__esModule?e:{default:e}}var g=/^[ -~]*$/,v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return r(e,[{key:"applyDelta",value:function(e){var t=this,o=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var o=(0,h.default)(t.attributes);return delete o.image,e.insert({image:t.attributes.image},o)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new i.default)}(e)).reduce(function(e,i){var c=i.retain||i.delete||i.insert.length||1,u=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var f=i.insert;f.endsWith("\n")&&o&&(o=!1,f=f.slice(0,-1)),e>=r&&!f.endsWith("\n")&&(o=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),b=l(h,2),m=b[0],g=b[1],v=(0,A.default)({},(0,d.bubbleFormats)(m));if(m instanceof p.default){var y=m.descendant(s.default.Leaf,g),q=l(y,1)[0];v=(0,A.default)(v,(0,d.bubbleFormats)(q))}u=a.default.attributes.diff(v,u)||{}}else if("object"===n(i.insert)){var k=Object.keys(i.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,i.insert[k])}r+=c}return Object.keys(u).forEach(function(o){t.scroll.formatAt(e,c,o,u[o])}),e+c},0),e.reduce(function(e,o){return"number"==typeof o.delete?(t.scroll.deleteAt(e,o.delete),e):e+(o.retain||o.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new i.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach(function(l){if(null==o.scroll.whitelist||o.scroll.whitelist[l]){var r=o.scroll.lines(e,Math.max(t,1)),i=t;r.forEach(function(t){var r=t.length();if(t instanceof c.default){var a=e-t.offset(o.scroll),s=t.newlineIndex(a+i)-a+1;t.formatAt(a,s,l,n[l])}else t.format(l,n[l]);i-=r})}}),this.scroll.optimize(),this.update((new i.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"formatText",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach(function(l){o.scroll.formatAt(e,t,l,n[l])}),this.update((new i.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new i.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=[],n=[];0===t?this.scroll.path(e).forEach(function(e){var t=l(e,1)[0];t instanceof p.default?o.push(t):t instanceof s.default.Leaf&&n.push(t)}):(o=this.scroll.lines(e,t),n=this.scroll.descendants(s.default.Leaf,e,t));var r=[o,n].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var o=e.shift();if(null==o)return t;t=y((0,d.bubbleFormats)(o),t)}return t});return A.default.apply(A.default,r)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,o){return this.scroll.insertAt(e,t,o),this.update((new i.default).retain(e).insert(function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},t,o)))}},{key:"insertText",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach(function(l){o.scroll.formatAt(e,t.length,l,n[l])}),this.update((new i.default).retain(e).insert(t,(0,h.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var o=this.getText(e,t),n=this.scroll.line(e+t),r=l(n,2),a=r[0],s=r[1],u=0,d=new i.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(s)-s+1:a.length()-s,d=a.delta().slice(s,s+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new i.default).insert(o).concat(d)),f=(new i.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(g)&&s.default.find(t[0].target)){var l=s.default.find(t[0].target),r=(0,d.bubbleFormats)(l),a=l.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new i.default).insert(c),f=(new i.default).insert(l.value());e=(new i.default).retain(a).concat(p.diff(f,o)).reduce(function(e,t){return t.insert?e.insert(t.insert,r):e.push(t)},new i.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,b.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,o));return e}}]),e}();function y(e,t){return Object.keys(t).reduce(function(o,n){return null==e[n]||(t[n]===e[n]?o[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(o[n]=t[n].concat([e[n]])):o[n]=[t[n],e[n]]),o},{})}t.default=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=c(o(0)),i=c(o(21)),a=c(o(11)),s=c(o(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,c(o(10)).default)("quill:selection"),f=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=o},h=function(){function e(t,o){var n=this;d(this,e),this.emitter=o,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){n.mouseDown||setTimeout(n.update.bind(n,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&n.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var o=t.range,l=o.startNode,r=o.startOffset,i=o.endNode,a=o.endOffset;n.setNativeRange(l,r,i,a)}}),this.update(s.default.sources.SILENT)}return l(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var o=this.getNativeRange();if(null!=o&&o.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(o.start.node!==this.cursor.textNode){var n=r.default.find(o.start.node,!1);if(null==n)return;if(n instanceof r.default.Leaf){var l=n.split(o.start.offset);n.parent.insertBefore(this.cursor,l)}else n.insertBefore(this.cursor,o.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.scroll.length();e=Math.min(e,o-1),t=Math.min(e+t,o-1)-e;var l=void 0,r=this.scroll.leaf(e),i=n(r,2),a=i[0],s=i[1];if(null==a)return null;var c=a.position(s,!0),u=n(c,2);l=u[0],s=u[1];var d=document.createRange();if(t>0){d.setStart(l,s);var p=this.scroll.leaf(e+t),f=n(p,2);if(a=f[0],s=f[1],null==a)return null;var h=a.position(s,!0),b=n(h,2);return l=b[0],s=b[1],d.setEnd(l,s),d.getBoundingClientRect()}var A="left",m=void 0;return l instanceof Text?(s<l.data.length?(d.setStart(l,s),d.setEnd(l,s+1)):(d.setStart(l,s-1),d.setEnd(l,s),A="right"),m=d.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),s>0&&(A="right")),{bottom:m.top+m.height,height:m.height,left:m[A],right:m[A],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var o=this.normalizeNative(t);return p.info("getNativeRange",o),o}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,o=[[e.start.node,e.start.offset]];e.native.collapsed||o.push([e.end.node,e.end.offset]);var l=o.map(function(e){var o=n(e,2),l=o[0],i=o[1],a=r.default.find(l,!0),s=a.offset(t.scroll);return 0===i?s:a instanceof r.default.Container?s+a.length():s+a.index(l,i)}),i=Math.min(Math.max.apply(Math,u(l)),this.scroll.length()-1),a=Math.min.apply(Math,[i].concat(u(l)));return new f(a,i-a)}},{key:"normalizeNative",value:function(e){if(!b(this.root,e.startContainer)||!e.collapsed&&!b(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,o=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>o)t=t.childNodes[o],o=0;else{if(t.childNodes.length!==o)break;o=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=o}),t}},{key:"rangeToNative",value:function(e){var t=this,o=e.collapsed?[e.index]:[e.index,e.index+e.length],l=[],r=this.scroll.length();return o.forEach(function(e,o){e=Math.min(r-1,e);var i,a=t.scroll.leaf(e),s=n(a,2),c=s[0],u=s[1],d=c.position(u,0!==o),p=n(d,2);i=p[0],u=p[1],l.push(i,u)}),l.length<2&&(l=l.concat(l)),l}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var o=this.getBounds(t.index,t.length);if(null!=o){var l=this.scroll.length()-1,r=this.scroll.line(Math.min(t.index,l)),i=n(r,1)[0],a=i;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,l));a=n(s,1)[0]}if(null!=i&&null!=a){var c=e.getBoundingClientRect();o.top<c.top?e.scrollTop-=c.top-o.top:o.bottom>c.bottom&&(e.scrollTop+=o.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,o,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=o.parentNode){var r=document.getSelection();if(null!=r)if(null!=e){this.hasFocus()||this.root.focus();var i=(this.getNativeRange()||{}).native;if(null==i||l||e!==i.startContainer||t!==i.startOffset||o!==i.endContainer||n!==i.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==o.tagName&&(n=[].indexOf.call(o.parentNode.childNodes,o),o=o.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(o,n),r.removeAllRanges(),r.addRange(a)}}else r.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(o=t,t=!1),p.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,u(n).concat([t]))}else this.setNativeRange(null);this.update(o)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,o=this.getRange(),l=n(o,2),r=l[0],c=l[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,i.default)(this.lastRange),(0,i.default)(t),e];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function b(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"insertInto",value:function(e,o){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(44),i=o(30),a=o(1),s=function(e){function t(t){var o=e.call(this,t)||this;return o.build(),o}return l(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var o=c(t);e.insertBefore(o,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,o){e.deleteAt(t,o)})},t.prototype.descendant=function(e,o){var n=this.children.find(o),l=n[0],r=n[1];return null==e.blotName&&e(l)||null!=e.blotName&&l instanceof e?[l,r]:l instanceof t?l.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,o,n){void 0===o&&(o=0),void 0===n&&(n=Number.MAX_VALUE);var l=[],r=n;return this.children.forEachAt(o,n,function(o,n,i){(null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e)&&l.push(o),o instanceof t&&(l=l.concat(o.descendants(e,n,r))),r-=i}),l},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,o,n){this.children.forEachAt(e,t,function(e,t,l){e.formatAt(t,l,o,n)})},t.prototype.insertAt=function(e,t,o){var n=this.children.find(e),l=n[0],r=n[1];if(l)l.insertAt(r,t,o);else{var i=null==o?a.create("text",t):a.create(t,o);this.appendChild(i)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(o){e.insertBefore(o,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var o=a.create(this.statics.defaultChild);this.appendChild(o),o.optimize(t)}else this.remove()},t.prototype.path=function(e,o){void 0===o&&(o=!1);var n=this.children.find(e,o),l=n[0],r=n[1],i=[[this,e]];return l instanceof t?i.concat(l.path(r,o)):(null!=l&&i.push([l,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(o){o instanceof t&&o.moveChildren(this),e.prototype.replace.call(this,o)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var o=this.clone();return this.parent.insertBefore(o,this.next),this.children.forEachAt(e,this.length(),function(e,n,l){e=e.split(n,t),o.appendChild(e)}),o},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var o=this,n=[],l=[];e.forEach(function(e){e.target===o.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),l.push.apply(l,e.removedNodes))}),l.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==o.domNode||t.detach())}}),n.filter(function(e){return e.parentNode==o.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var n=c(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(o),o.insertBefore(n,t||void 0))})},t}(i.default);function c(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(o){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(12),i=o(31),a=o(17),s=o(1),c=function(e){function t(t){var o=e.call(this,t)||this;return o.attributes=new i.default(o.domNode),o}return l(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var o=s.query(e);o instanceof r.default?this.attributes.attribute(o,t):t&&(null==o||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,o){var n=e.prototype.replaceWith.call(this,t,o);return this.attributes.copy(n),n},t.prototype.update=function(t,o){var n=this;e.prototype.update.call(this,t,o),t.some(function(e){return e.target===n.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(o,n){var l=e.prototype.wrap.call(this,o,n);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(a.default);t.default=c},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(30),i=o(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var o=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(o+=1),[this.parent.domNode,o]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=i.Scope.INLINE_BLOT,t}(r.default);t.default=a},function(e,t,o){var n=o(11),l=o(3),r={attributes:{compose:function(e,t,o){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=l(!0,{},t);for(var r in o||(n=Object.keys(n).reduce(function(e,t){return null!=n[t]&&(e[t]=n[t]),e},{})),e)void 0!==e[r]&&void 0===t[r]&&(n[r]=e[r]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=Object.keys(e).concat(Object.keys(t)).reduce(function(o,l){return n(e[l],t[l])||(o[l]=void 0===t[l]?null:t[l]),o},{});return Object.keys(o).length>0?o:void 0},transform:function(e,t,o){if("object"!=typeof e)return t;if("object"==typeof t){if(!o)return t;var n=Object.keys(t).reduce(function(o,n){return void 0===e[n]&&(o[n]=t[n]),o},{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new i(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function i(e){this.ops=e,this.index=0,this.offset=0}i.prototype.hasNext=function(){return this.peekLength()<1/0},i.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var o=this.offset,n=r.length(t);if(e>=n-o?(e=n-o,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var l={};return t.attributes&&(l.attributes=t.attributes),"number"==typeof t.retain?l.retain=e:"string"==typeof t.insert?l.insert=t.insert.substr(o,e):l.insert=t.insert,l}return{retain:1/0}},i.prototype.peek=function(){return this.ops[this.index]},i.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},i.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"},i.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,o=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[o].concat(n)}return[]},e.exports=r},function(e,t){var o=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,o,n;try{t=Map}catch(e){t=function(){}}try{o=Set}catch(e){o=function(){}}try{n=Promise}catch(e){n=function(){}}function r(i,s,c,u,d){"object"==typeof s&&(c=s.depth,u=s.prototype,d=s.includeNonEnumerable,s=s.circular);var p=[],f=[],h=void 0!==l;return void 0===s&&(s=!0),void 0===c&&(c=1/0),function i(c,b){if(null===c)return null;if(0===b)return c;var A,m;if("object"!=typeof c)return c;if(e(c,t))A=new t;else if(e(c,o))A=new o;else if(e(c,n))A=new n(function(e,t){c.then(function(t){e(i(t,b-1))},function(e){t(i(e,b-1))})});else if(r.__isArray(c))A=[];else if(r.__isRegExp(c))A=new RegExp(c.source,a(c)),c.lastIndex&&(A.lastIndex=c.lastIndex);else if(r.__isDate(c))A=new Date(c.getTime());else{if(h&&l.isBuffer(c))return A=l.allocUnsafe?l.allocUnsafe(c.length):new l(c.length),c.copy(A),A;e(c,Error)?A=Object.create(c):void 0===u?(m=Object.getPrototypeOf(c),A=Object.create(m)):(A=Object.create(u),m=u)}if(s){var g=p.indexOf(c);if(-1!=g)return f[g];p.push(c),f.push(A)}for(var v in e(c,t)&&c.forEach(function(e,t){var o=i(t,b-1),n=i(e,b-1);A.set(o,n)}),e(c,o)&&c.forEach(function(e){var t=i(e,b-1);A.add(t)}),c){var y;m&&(y=Object.getOwnPropertyDescriptor(m,v)),y&&null==y.set||(A[v]=i(c[v],b-1))}if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(c);for(v=0;v<q.length;v++){var k=q[v];(!(x=Object.getOwnPropertyDescriptor(c,k))||x.enumerable||d)&&(A[k]=i(c[k],b-1),x.enumerable||Object.defineProperty(A,k,{enumerable:!1}))}}if(d){var w=Object.getOwnPropertyNames(c);for(v=0;v<w.length;v++){var x,_=w[v];(x=Object.getOwnPropertyDescriptor(c,_))&&x.enumerable||(A[_]=i(c[_],b-1),Object.defineProperty(A,_,{enumerable:!1}))}}return A}(i,c)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},r.__getRegExpFlags=a,r}();"object"==typeof e&&e.exports&&(e.exports=o)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=f(o(0)),a=f(o(8)),s=o(4),c=f(s),u=f(o(16)),d=f(o(13)),p=f(o(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof s.BlockEmbed}var b=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.emitter=o.emitter,Array.isArray(o.whitelist)&&(n.whitelist=o.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),n.domNode.addEventListener("DOMNodeInserted",function(){}),n.optimize(),n.enable(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,o){var l=this.line(e),i=n(l,2),a=i[0],c=i[1],p=this.line(e+o),f=n(p,1)[0];if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,o),null!=f&&a!==f&&c>0){if(a instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var b=f.newlineIndex(0);b>-1&&f.split(b+1)}var A=f.children.head instanceof u.default?null:f.children.head;a.moveChildren(f,A),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,o,n,l){(null==this.whitelist||this.whitelist[n])&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,o,n,l),this.optimize())}},{key:"insertAt",value:function(e,o,n){if(null==n||null==this.whitelist||this.whitelist[o]){if(e>=this.length())if(null==n||null==i.default.query(o,i.default.Scope.BLOCK)){var l=i.default.create(this.statics.defaultChild);this.appendChild(l),null==n&&o.endsWith("\n")&&(o=o.slice(0,-1)),l.insertAt(0,o,n)}else{var a=i.default.create(o,n);this.appendChild(a)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,n);this.optimize()}}},{key:"insertBefore",value:function(e,o){if(e.statics.scope===i.default.Scope.INLINE_BLOT){var n=i.default.create(this.statics.defaultChild);n.appendChild(e),e=n}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,o,n){var l=[],r=n;return t.children.forEachAt(o,n,function(t,o,n){h(t)?l.push(t):t instanceof i.default.Container&&(l=l.concat(e(t,o,r))),r-=n}),l}(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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,o),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,o))}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var o=a.default.sources.USER;"string"==typeof e&&(o=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,o,e),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,o,e)}}}]),t}(i.default.Scroll);b.blotName="scroll",b.className="ql-editor",b.tagName="DIV",b.defaultChild="block",b.allowedChildren=[c.default,s.BlockEmbed,p.default],t.default=b},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=b(o(21)),a=b(o(11)),s=b(o(3)),c=b(o(2)),u=b(o(20)),d=b(o(0)),p=b(o(5)),f=b(o(10)),h=b(o(9));function b(e){return e&&e.__esModule?e:{default:e}}function A(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var m=(0,f.default)("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",v=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.bindings={},Object.keys(n.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])}),n.addBinding({key:t.keys.ENTER,shiftKey:null},x),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},q),n.addBinding({key:t.keys.DELETE},{collapsed:!0},k)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},w),n.addBinding({key:t.keys.DELETE},{collapsed:!1},w),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),n.listen(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"match",value:function(e,t){return t=O(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(o){return!!t[o]!==e[o]&&null!==t[o]})&&t.key===(e.which||e.keyCode)}}]),r(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O(e);if(null==n||null==n.key)return m.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof o&&(o={handler:o}),n=(0,s.default)(n,t,o),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(o){if(!o.defaultPrevented){var r=o.which||o.keyCode,i=(e.bindings[r]||[]).filter(function(e){return t.match(o,e)});if(0!==i.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var c=e.quill.getLine(s.index),u=l(c,2),p=u[0],f=u[1],h=e.quill.getLeaf(s.index),b=l(h,2),A=b[0],m=b[1],g=0===s.length?[A,m]:e.quill.getLeaf(s.index+s.length),v=l(g,2),y=v[0],q=v[1],k=A instanceof d.default.Text?A.value().slice(0,m):"",w=y instanceof d.default.Text?y.value().slice(q):"",x={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:k,suffix:w};i.some(function(t){if(null!=t.collapsed&&t.collapsed!==x.collapsed)return!1;if(null!=t.empty&&t.empty!==x.empty)return!1;if(null!=t.offset&&t.offset!==x.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==x.format[e]}))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=x.format[e]:!1===t.format[e]?null==x.format[e]:(0,a.default)(t.format[e],x.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(x.prefix)||null!=t.suffix&&!t.suffix.test(x.suffix)||!0===t.handler.call(e,s,x))})&&o.preventDefault()}}}})}}]),t}(h.default);function y(e,t){var o,n=e===v.keys.LEFT?"prefix":"suffix";return A(o={key:e,shiftKey:t,altKey:null},n,/^$/),A(o,"handler",function(o){var n=o.index;e===v.keys.RIGHT&&(n+=o.length+1);var r=this.quill.getLeaf(n);return!(l(r,1)[0]instanceof d.default.Embed&&(e===v.keys.LEFT?t?this.quill.setSelection(o.index-1,o.length+1,p.default.sources.USER):this.quill.setSelection(o.index-1,p.default.sources.USER):t?this.quill.setSelection(o.index,o.length+1,p.default.sources.USER):this.quill.setSelection(o.index+o.length+1,p.default.sources.USER),1))}),o}function q(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var o=this.quill.getLine(e.index),n=l(o,1)[0],r={};if(0===t.offset){var i=this.quill.getLine(e.index-1),a=l(i,1)[0];if(null!=a&&a.length()>1){var s=n.formats(),c=this.quill.getFormat(e.index-1,1);r=u.default.attributes.diff(s,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index-d,d,r,p.default.sources.USER),this.quill.focus()}}function k(e,t){var o=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-o)){var n={},r=0,i=this.quill.getLine(e.index),a=l(i,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),c=l(s,1)[0];if(c){var d=a.formats(),f=this.quill.getFormat(e.index,1);n=u.default.attributes.diff(d,f)||{},r=c.length()}}this.quill.deleteText(e.index,o,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+r-1,o,n,p.default.sources.USER)}}function w(e){var t=this.quill.getLines(e),o={};if(t.length>1){var n=t[0].formats(),l=t[t.length-1].formats();o=u.default.attributes.diff(l,n)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index,1,o,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function x(e,t){var o=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce(function(e,o){return d.default.query(o,d.default.Scope.BLOCK)&&!Array.isArray(t.format[o])&&(e[o]=t.format[o]),e},{});this.quill.insertText(e.index,"\n",n,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&o.quill.format(e,t.format[e],p.default.sources.USER))})}function _(e){return{key:v.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var o=d.default.query("code-block"),n=t.index,r=t.length,i=this.quill.scroll.descendant(o,n),a=l(i,2),s=a[0],c=a[1];if(null!=s){var u=this.quill.getIndex(s),f=s.newlineIndex(c,!0)+1,h=s.newlineIndex(u+c+r),b=s.domNode.textContent.slice(f,h).split("\n");c=0,b.forEach(function(t,l){e?(s.insertAt(f+c,o.TAB),c+=o.TAB.length,0===l?n+=o.TAB.length:r+=o.TAB.length):t.startsWith(o.TAB)&&(s.deleteAt(f+c,o.TAB.length),c-=o.TAB.length,0===l?n-=o.TAB.length:r-=o.TAB.length),c+=t.length+1}),this.quill.update(p.default.sources.USER),this.quill.setSelection(n,r,p.default.sources.SILENT)}}}}function E(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,o){this.quill.format(e,!o.format[e],p.default.sources.USER)}}}function O(e){if("string"==typeof e||"number"==typeof e)return O({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,i.default)(e,!1)),"string"==typeof e.key)if(null!=v.keys[e.key.toUpperCase()])e.key=v.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[g]=e.shortKey,delete e.shortKey),e}v.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},v.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:v.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:v.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:v.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":_(!0),"outdent code-block":_(!1),"remove tab":{key:v.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:v.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:v.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:v.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),o=l(t,2),n=o[0],r=o[1],i=(0,s.default)({},n.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",i).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:v.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var o=this.quill.getLine(e.index),n=l(o,2),r=n[0],i=n[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(r.length()-i-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var o=t.prefix.length,n=this.quill.getLine(e.index),r=l(n,2),i=r[0],a=r[1];if(a>o)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-a).delete(o+1).retain(i.length()-2-a).retain(1,{list:s});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-o,p.default.sources.SILENT)}},"code exit":{key:v.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),o=l(t,2),n=o[0],r=o[1],i=(new c.default).retain(e.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,p.default.sources.USER)}},"embed left":y(v.keys.LEFT,!1),"embed left shift":y(v.keys.LEFT,!0),"embed right":y(v.keys.RIGHT,!1),"embed right shift":y(v.keys.RIGHT,!0)}},t.default=v,t.SHORTKEY=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=s(o(0)),a=s(o(7));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.selection=o,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"value",value:function(){}}]),r(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,o){if(0!==this._length)return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o);for(var n=this,r=0;null!=n&&n.statics.scope!==i.default.Scope.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=t.CONTENTS.length,n.optimize(),n.formatAt(r,t.CONTENTS.length,e,o),this._length=0)}},{key:"index",value:function(e,o){return e===this.textNode?0:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,o)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,o=this.selection.getNativeRange(),l=void 0,r=void 0,s=void 0;if(null!=o&&o.start.node===e&&o.end.node===e){var c=[e,o.start.offset,o.end.offset];l=c[0],r=c[1],s=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(l=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var d=[r,s].map(function(e){return Math.max(0,Math.min(l.data.length,e-1))}),p=n(d,2);return r=p[0],s=p[1],{startNode:l,startOffset:r,endNode:l,endOffset:s}}}}},{key:"update",value:function(e,t){var o=this;if(e.some(function(e){return"characterData"===e.type&&e.target===o.textNode})){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}(i.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(o(0)),l=o(4),r=i(l);function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Container);a.allowedChildren=[r.default,l.BlockEmbed,a],t.default=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(0),a=(n=i)&&n.__esModule?n:{default:n},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"value",value:function(e){var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return o.startsWith("rgb(")?(o=o.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+o.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):o}}]),t}(a.default.Attributor.Style),c=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),u=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=c,t.ColorStyle=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"format",value:function(e,o){if(e!==this.statics.blotName||!o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o);o=this.constructor.sanitize(o),this.domNode.setAttribute("href",o)}}],[{key:"create",value:function(e){var o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),o.setAttribute("href",e),o.setAttribute("rel","noopener noreferrer"),o.setAttribute("target","_blank"),o}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return s(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);function s(e,t){var o=document.createElement("a");o.href=e;var n=o.href.slice(0,o.href.indexOf(":"));return t.indexOf(n)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=a(o(23)),i=a(o(107));function a(e){return e&&e.__esModule?e:{default:e}}var s=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,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(){o.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case r.default.keys.ENTER:o.togglePicker();break;case r.default.keys.ESCAPE:o.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return l(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,o=document.createElement("span");return o.tabIndex="0",o.setAttribute("role","button"),o.classList.add("ql-picker-item"),e.hasAttribute("value")&&o.setAttribute("data-value",e.getAttribute("value")),e.textContent&&o.setAttribute("data-label",e.textContent),o.addEventListener("click",function(){t.selectItem(o,!0)}),o.addEventListener("keydown",function(e){switch(e.keyCode){case r.default.keys.ENTER:t.selectItem(o,!0),e.preventDefault();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),o}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=i.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(o){var n=e.buildItem(o);t.appendChild(n),!0===o.selected&&e.selectItem(n)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.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(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.container.querySelector(".ql-selected");if(e!==o&&(null!=o&&o.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var l=document.createEvent("Event");l.initEvent("change",!0,!0),this.select.dispatchEvent(l)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var o=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",o)}}]),e}();t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(o(0)),l=m(o(5)),r=o(4),i=m(r),a=m(o(16)),s=m(o(25)),c=m(o(24)),u=m(o(35)),d=m(o(6)),p=m(o(22)),f=m(o(7)),h=m(o(55)),b=m(o(42)),A=m(o(23));function m(e){return e&&e.__esModule?e:{default:e}}l.default.register({"blots/block":i.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":b.default,"modules/keyboard":A.default}),n.default.register(i.default,a.default,c.default,d.default,p.default,f.default),t.default=l.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),l=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,o,l){var r=this.isolate(e,t);if(null!=n.query(o,n.Scope.BLOT)&&l)r.wrap(o,l);else if(null!=n.query(o,n.Scope.ATTRIBUTE)){var i=n.create(this.statics.scope);r.wrap(i),i.format(o,l)}},e.prototype.insertAt=function(e,t,o){var l=null==o?n.create("text",t):n.create(t,o),r=this.split(e);this.parent.insertBefore(l,r)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var o=null;e.children.insertBefore(this,t),null!=t&&(o=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==o||e.domNode.insertBefore(this.domNode,o),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var o=this.split(e);return o.split(t),o},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var o="string"==typeof e?n.create(e,t):e;return o.replace(this),o},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var o="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(o,this.next),o.appendChild(this),o},e.blotName="abstract",e}();t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),l=o(32),r=o(33),i=o(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),o=l.default.keys(this.domNode),a=r.default.keys(this.domNode);t.concat(o).concat(a).forEach(function(t){var o=i.query(t,i.Scope.ATTRIBUTE);o instanceof n.default&&(e.attributes[o.attrName]=o)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(o){var n=t.attributes[o].value(t.domNode);e.format(o,n)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,o){return t[o]=e.attributes[o].value(e.domNode),t},{})},e}();t.default=a},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){r(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(o(12).default);t.default=i},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});function r(e){var t=e.split("-"),o=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+o}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""},t}(o(12).default);t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=o,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();l.DEFAULTS={modules:{}},l.themes={default:l},t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=a(o(0)),i=a(o(7));function a(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.contentNode=document.createElement("span"),o.contentNode.setAttribute("contenteditable",!1),[].slice.call(o.domNode.childNodes).forEach(function(e){o.contentNode.appendChild(e)}),o.leftGuard=document.createTextNode(s),o.rightGuard=document.createTextNode(s),o.domNode.appendChild(o.leftGuard),o.domNode.appendChild(o.contentNode),o.domNode.appendChild(o.rightGuard),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"index",value:function(e,o){return e===this.leftGuard?0:e===this.rightGuard?1:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,o)}},{key:"restore",value:function(e){var t=void 0,o=void 0,n=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof i.default){var l=this.prev.length();this.prev.insertAt(l,n),t={startNode:this.prev.domNode,startOffset:l+n.length}}else o=document.createTextNode(n),this.parent.insertBefore(r.default.create(o),this),t={startNode:o,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof i.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(o=document.createTextNode(n),this.parent.insertBefore(r.default.create(o),this.next),t={startNode:o,startOffset:n.length}));return e.data=s,t}},{key:"update",value:function(e,t){var o=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===o.leftGuard||e.target===o.rightGuard)){var n=o.restore(e.target);n&&(t.range=n)}})}}]),t}(r.default.Embed);t.default=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,l=o(0),r=(n=l)&&n.__esModule?n:{default:n},i={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new r.default.Attributor.Attribute("align","align",i),s=new r.default.Attributor.Class("align","ql-align",i),c=new r.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,l=o(0),r=(n=l)&&n.__esModule?n:{default:n},i=o(26),a=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,l=o(0),r=(n=l)&&n.__esModule?n:{default:n},i={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},a=new r.default.Attributor.Attribute("direction","dir",i),s=new r.default.Attributor.Class("direction","ql-direction",i),c=new r.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(0),a=(n=i)&&n.__esModule?n:{default:n},s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new a.default.Attributor.Class("font","ql-font",s),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),d=new u("font","font-family",s);t.FontStyle=d,t.FontClass=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,l=o(0),r=(n=l)&&n.__esModule?n:{default:n},i=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,o){"use strict";e.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{1:o(92),2:o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=i(o(0)),r=i(o(5));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(r.default.events.EDITOR_CHANGE,function(e,t,o,l){e!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&l!==r.default.sources.USER?n.transform(t):n.record(t,o))}),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var o=this.stack[e].pop();this.stack[t].push(o),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(o[e],r.default.sources.USER),this.ignoreChange=!1;var n=s(o[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var o=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var l=this.stack.undo.pop();o=o.compose(l.undo),e=l.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(i(o(9)).default);function s(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),o=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=l.default.query(e,l.default.Scope.BLOCK)}))}(e)&&(o-=1),o}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=h(o(3)),i=h(o(2)),a=h(o(8)),s=h(o(23)),c=h(o(34)),u=h(o(59)),d=h(o(60)),p=h(o(28)),f=h(o(61));function h(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],v=["#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"],y=[!1,"serif","monospace"],q=["1","2","3",!1],k=["small",!1,"large","huge"],w=function(e){function t(e,o){b(this,t);var n=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return e.emitter.listenDOM("click",document.body,function t(o){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(o.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach(function(e){e.container.contains(o.target)||e.close()})}),n}return m(t,e),n(t,[{key:"addModule",value:function(e){var o=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(o),o}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(o){if(o.startsWith("ql-")&&(o=o.slice(3),null!=t[o]))if("direction"===o)e.innerHTML=t[o][""]+t[o].rtl;else if("string"==typeof t[o])e.innerHTML=t[o];else{var n=e.value||"";null!=n&&t[o][n]&&(e.innerHTML=t[o][n])}})})}},{key:"buildPickers",value:function(e,t){var o=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&_(e,g),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var o=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&_(e,v,"background"===o?"#ffffff":"#000000"),new u.default(e,t[o])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?_(e,y):e.classList.contains("ql-header")?_(e,q):e.classList.contains("ql-size")&&_(e,k)),new p.default(e)}),this.quill.on(a.default.events.EDITOR_CHANGE,function(){o.pickers.forEach(function(e){e.update()})})}}]),t}(c.default);w.DEFAULTS=(0,r.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var o=new FileReader;o.onload=function(o){var n=e.quill.getSelection(!0);e.quill.updateContents((new i.default).retain(n.index).delete(n.length).insert({image:o.target.result}),a.default.sources.USER),e.quill.setSelection(n.index+1,a.default.sources.SILENT),t.value=""},o.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,o){b(this,t);var n=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return m(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==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-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,o=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var n=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",o,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",o,a.default.sources.USER)),this.quill.root.scrollTop=n;break;case"video":o=(t=(e=o).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!o)break;var l=this.quill.getSelection(!0);if(null!=l){var r=l.index+l.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),o,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",a.default.sources.USER),this.quill.setSelection(r+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function _(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var n=document.createElement("option");t===o?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)})}t.BaseTooltip=x,t.default=w},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,o=this.iterator();t=o();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,o=this.head;null!=o;){if(o===e)return t;t+=o.length(),o=o.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var o,n=this.iterator();o=n();){var l=o.length();if(e<l||t&&e===l&&(null==o.next||0!==o.next.length()))return[o,e];e-=l}return[null,0]},e.prototype.forEach=function(e){for(var t,o=this.iterator();t=o();)e(t)},e.prototype.forEachAt=function(e,t,o){if(!(t<=0))for(var n,l=this.find(e),r=l[0],i=e-l[1],a=this.iterator(r);(n=a())&&i<e+t;){var s=n.length();e>i?o(n,e-i,Math.min(t,i+s-e)):o(n,0,Math.min(s,e+t-i)),i+=s}},e.prototype.map=function(e){return this.reduce(function(t,o){return t.push(e(o)),t},[])},e.prototype.reduce=function(e,t){for(var o,n=this.iterator();o=n();)t=e(t,o);return t},e}();t.default=n},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(17),i=o(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var o=e.call(this,t)||this;return o.scroll=o,o.observer=new MutationObserver(function(e){o.update(e)}),o.observer.observe(o.domNode,a),o.attach(),o}return l(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,o){this.update(),0===t&&o===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,o)},t.prototype.formatAt=function(t,o,n,l){this.update(),e.prototype.formatAt.call(this,t,o,n,l)},t.prototype.insertAt=function(t,o,n){this.update(),e.prototype.insertAt.call(this,t,o,n)},t.prototype.optimize=function(t,o){var n=this;void 0===t&&(t=[]),void 0===o&&(o={}),e.prototype.optimize.call(this,o);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)t.push(l.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[i.DATA_KEY].mutations&&(e.domNode[i.DATA_KEY].mutations=[]),t&&a(e.parent))},s=function(e){null!=e.domNode[i.DATA_KEY]&&null!=e.domNode[i.DATA_KEY].mutations&&(e instanceof r.default&&e.children.forEach(s),e.optimize(o))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(e){var t=i.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(i.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=i.find(e,!1);a(t,!1),t instanceof r.default&&t.children.forEach(function(e){a(e,!1)})})):"attributes"===e.type&&a(t.prev)),a(t))}),this.children.forEach(s),l=(c=[].slice.call(this.observer.takeRecords())).slice();l.length>0;)t.push(l.pop())}},t.prototype.update=function(t,o){var n=this;void 0===o&&(o={}),(t=t||this.observer.takeRecords()).map(function(e){var t=i.find(e.target,!0);return null==t?null:null==t.domNode[i.DATA_KEY].mutations?(t.domNode[i.DATA_KEY].mutations=[e],t):(t.domNode[i.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[i.DATA_KEY]&&e.update(e.domNode[i.DATA_KEY].mutations||[],o)}),null!=this.domNode[i.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,o),this.optimize(t,o)},t.blotName="scroll",t.defaultChild="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="DIV",t}(r.default);t.default=s},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(18),i=o(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.formats=function(o){if(o.tagName!==t.tagName)return e.formats.call(this,o)},t.prototype.format=function(o,n){var l=this;o!==this.statics.blotName||n?e.prototype.format.call(this,o,n):(this.children.forEach(function(e){e instanceof r.default||(e=e.wrap(t.blotName,!0)),l.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,o,n,l){null!=this.formats()[n]||i.query(n,i.Scope.ATTRIBUTE)?this.isolate(t,o).format(n,l):e.prototype.formatAt.call(this,t,o,n,l)},t.prototype.optimize=function(o){e.prototype.optimize.call(this,o);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var l=this.next;l instanceof t&&l.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(e[o]!==t[o])return!1;return!0}(n,l.formats())&&(l.moveChildren(this),l.remove())},t.blotName="inline",t.scope=i.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.default);t.default=a},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(18),i=o(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.formats=function(o){var n=i.query(t.blotName).tagName;if(o.tagName!==n)return e.formats.call(this,o)},t.prototype.format=function(o,n){null!=i.query(o,i.Scope.BLOCK)&&(o!==this.statics.blotName||n?e.prototype.format.call(this,o,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,o,n,l){null!=i.query(n,i.Scope.BLOCK)?this.format(n,l):e.prototype.formatAt.call(this,t,o,n,l)},t.prototype.insertAt=function(t,o,n){if(null==n||null!=i.query(o,i.Scope.INLINE))e.prototype.insertAt.call(this,t,o,n);else{var l=this.split(t),r=i.create(o,n);l.parent.insertBefore(r,l)}},t.prototype.update=function(t,o){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,o)},t.blotName="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="P",t}(r.default);t.default=a},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.formats=function(e){},t.prototype.format=function(t,o){e.prototype.formatAt.call(this,0,this.length(),t,o)},t.prototype.formatAt=function(t,o,n,l){0===t&&o===this.length()?this.format(n,l):e.prototype.formatAt.call(this,t,o,n,l)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(o(19).default);t.default=r},function(e,t,o){"use strict";var n,l=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(19),i=o(1),a=function(e){function t(t){var o=e.call(this,t)||this;return o.text=o.statics.value(o.domNode),o}return l(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,o,n){null==n?(this.text=this.text.slice(0,t)+o+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,o,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(o){e.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var o=i.create(this.domNode.splitText(e));return this.parent.insertBefore(o,this.next),this.text=this.statics.value(this.domNode),o},t.prototype.update=function(e,t){var o=this;e.some(function(e){return"characterData"===e.type&&e.target===o.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=i.Scope.INLINE_BLOT,t}(r.default);t.default=a},function(e,t,o){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:l.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var o=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>o.length)&&(t=o.length),t-=e.length;var n=o.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,o=Object(this),n=o.length>>>0,l=arguments[1],r=0;r<n;r++)if(t=o[r],e.call(l,t,r,o))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var o=-1;function n(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var u=r(e,t),d=e.substring(0,u);u=i(e=e.substring(u),t=t.substring(u));var p=e.substring(e.length-u),f=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[o,e]];var s=e.length>t.length?e:t,c=e.length>t.length?t:e,u=s.indexOf(c);if(-1!=u)return a=[[1,s.substring(0,u)],[0,c],[1,s.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=o),a;if(1==c.length)return[[o,e],[1,t]];var d=function(e,t){var o=e.length>t.length?e:t,n=e.length>t.length?t:e;if(o.length<4||2*n.length<o.length)return null;function l(e,t,o){for(var n,l,a,s,c=e.substring(o,o+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=r(e.substring(o),t.substring(u)),f=i(e.substring(0,o),t.substring(0,u));d.length<f+p&&(d=t.substring(u-f,u)+t.substring(u,u+p),n=e.substring(0,o-f),l=e.substring(o+p),a=t.substring(0,u-f),s=t.substring(u+p))}return 2*d.length>=e.length?[n,l,a,s,d]:null}var a,s,c,u,d,p=l(o,n,Math.ceil(o.length/4)),f=l(o,n,Math.ceil(o.length/2));if(!p&&!f)return null;a=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(s=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],s=a[2],c=a[3]);var h=a[4];return[s,c,u,d,h]}(e,t);if(d){var p=d[0],f=d[1],h=d[2],b=d[3],A=d[4],m=n(p,h),g=n(f,b);return m.concat([[0,A]],g)}return function(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),a=i,s=2*i,c=new Array(s),u=new Array(s),d=0;d<s;d++)c[d]=-1,u[d]=-1;c[a+1]=0,u[a+1]=0;for(var p=n-r,f=p%2!=0,h=0,b=0,A=0,m=0,g=0;g<i;g++){for(var v=-g+h;v<=g-b;v+=2){for(var y=a+v,q=(E=v==-g||v!=g&&c[y-1]<c[y+1]?c[y+1]:c[y-1]+1)-v;E<n&&q<r&&e.charAt(E)==t.charAt(q);)E++,q++;if(c[y]=E,E>n)b+=2;else if(q>r)h+=2;else if(f&&(x=a+p-v)>=0&&x<s&&-1!=u[x]&&E>=(w=n-u[x]))return l(e,t,E,q)}for(var k=-g+A;k<=g-m;k+=2){for(var w,x=a+k,_=(w=k==-g||k!=g&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-k;w<n&&_<r&&e.charAt(n-w-1)==t.charAt(r-_-1);)w++,_++;if(u[x]=w,w>n)m+=2;else if(_>r)A+=2;else if(!f){var E;if((y=a+p-k)>=0&&y<s&&-1!=c[y])if(q=a+(E=c[y])-y,E>=(w=n-w))return l(e,t,E,q)}}}return[[o,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&f.unshift([0,d]),p&&f.push([0,p]),a(f),null!=s&&(f=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,l=0;l<e.length;l++){var r=e[l];if(r[0]===o||0===r[0]){var i=n+r[1].length;if(t===i)return[l+1,e];if(t<i){e=e.slice();var a=t-n,s=[r[0],r[1].slice(0,a)],c=[r[0],r[1].slice(a)];return e.splice(l,1,s,c),[l+1,e]}n=i}}throw new Error("cursor_pos is out of bounds!")}(e,t),l=n[1],r=n[0],i=l[r],a=l[r+1];if(null==i)return e;if(0!==i[0])return e;if(null!=a&&i[1]+a[1]===a[1]+i[1])return l.splice(r,2,a,i),c(l,r,2);if(null!=a&&0===a[1].indexOf(i[1])){l.splice(r,2,[a[0],i[1]],[0,i[1]]);var s=a[1].slice(i[1].length);return s.length>0&&l.splice(r+2,0,[a[0],s]),c(l,r,3)}return e}(f,s)),f=function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},r=2;r<e.length;r+=1)0===e[r-2][0]&&l(e[r-2][1])&&e[r-1][0]===o&&n(e[r-1][1])&&1===e[r][0]&&n(e[r][1])&&(t=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));if(!t)return e;var i=[];for(r=0;r<e.length;r+=1)e[r][1].length>0&&i.push(e[r]);return i}(f)}function l(e,t,o,l){var r=e.substring(0,o),i=t.substring(0,l),a=e.substring(o),s=t.substring(l),c=n(r,i),u=n(a,s);return c.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var o=0,n=Math.min(e.length,t.length),l=n,r=0;o<l;)e.substring(r,l)==t.substring(r,l)?r=o=l:n=l,l=Math.floor((n-o)/2+o);return l}function i(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var o=0,n=Math.min(e.length,t.length),l=n,r=0;o<l;)e.substring(e.length-l,e.length-r)==t.substring(t.length-l,t.length-r)?r=o=l:n=l,l=Math.floor((n-o)/2+o);return l}function a(e){e.push([0,""]);for(var t,n=0,l=0,s=0,c="",u="";n<e.length;)switch(e[n][0]){case 1:s++,u+=e[n][1],n++;break;case o:l++,c+=e[n][1],n++;break;case 0:l+s>1?(0!==l&&0!==s&&(0!==(t=r(u,c))&&(n-l-s>0&&0==e[n-l-s-1][0]?e[n-l-s-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),n++),u=u.substring(t),c=c.substring(t)),0!==(t=i(u,c))&&(e[n][1]=u.substring(u.length-t)+e[n][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===l?e.splice(n-s,l+s,[1,u]):0===s?e.splice(n-l,l+s,[o,c]):e.splice(n-l-s,l+s,[o,c],[1,u]),n=n-l-s+(l?1:0)+(s?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,s=0,l=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),d=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),d=!0)),n++;d&&a(e)}var s=n;function c(e,t,o){for(var n=t+o-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var l=e[n],r=e[n+1];l[0]===r[1]&&e.splice(n,2,[l[0],l[1]+r[1]])}return e}s.INSERT=1,s.DELETE=o,s.EQUAL=0,e.exports=s},function(e,t){function o(e){var t=[];for(var o in e)t.push(o);return t}(e.exports="function"==typeof Object.keys?Object.keys:o).shim=o},function(e,t){var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function l(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=o?n:l).supported=n,t.unsupported=l},function(e,t){"use strict";var o=Object.prototype.hasOwnProperty,n="~";function l(){}function r(e,t,o){this.fn=e,this.context=t,this.once=o||!1}function i(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,t,l=[];if(0===this._eventsCount)return l;for(t in e=this._events)o.call(e,t)&&l.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(e)):l},i.prototype.listeners=function(e,t){var o=n?n+e:e,l=this._events[o];if(t)return!!l;if(!l)return[];if(l.fn)return[l.fn];for(var r=0,i=l.length,a=new Array(i);r<i;r++)a[r]=l[r].fn;return a},i.prototype.emit=function(e,t,o,l,r,i){var a=n?n+e:e;if(!this._events[a])return!1;var s,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,o),!0;case 4:return u.fn.call(u.context,t,o,l),!0;case 5:return u.fn.call(u.context,t,o,l,r),!0;case 6:return u.fn.call(u.context,t,o,l,r,i),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,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,t);break;case 3:u[c].fn.call(u[c].context,t,o);break;case 4:u[c].fn.call(u[c].context,t,o,l);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];u[c].fn.apply(u[c].context,s)}}return!0},i.prototype.on=function(e,t,o){var l=new r(t,o||this),i=n?n+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],l]:this._events[i].push(l):(this._events[i]=l,this._eventsCount++),this},i.prototype.once=function(e,t,o){var l=new r(t,o||this,!0),i=n?n+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],l]:this._events[i].push(l):(this._events[i]=l,this._eventsCount++),this},i.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return 0===--this._eventsCount?this._events=new l:delete this._events[i],this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||o&&a.context!==o||(0===--this._eventsCount?this._events=new l:delete this._events[i]);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||o&&a[s].context!==o)&&c.push(a[s]);c.length?this._events[i]=1===c.length?c[0]:c:0===--this._eventsCount?this._events=new l:delete this._events[i]}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new l:delete this._events[t])):(this._events=new l,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=n,i.EventEmitter=i,void 0!==e&&(e.exports=i)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=v(o(3)),a=v(o(2)),s=v(o(0)),c=v(o(5)),u=v(o(10)),d=v(o(9)),p=o(36),f=o(37),h=v(o(13)),b=o(26),A=o(38),m=o(39),g=o(40);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var q=(0,u.default)("quill:clipboard"),k="__ql-matcher",w=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,V],["br",function(e,t){return N(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,function(e,t){var o={},n=e.style||{};return n.fontStyle&&"italic"===C(e).fontStyle&&(o.italic=!0),n.fontWeight&&(C(e).fontWeight.startsWith("bold")||parseInt(C(e).fontWeight)>=700)&&(o.bold=!0),Object.keys(o).length>0&&(t=O(t,o)),parseFloat(n.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var o=s.default.query(e);if(null==o||"list-item"!==o.blotName||!N(t,"\n"))return t;for(var n=-1,l=e.parentNode;!l.classList.contains("ql-clipboard");)"list"===(s.default.query(l)||{}).blotName&&(n+=1),l=l.parentNode;return n<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new a.default}]],x=[p.AlignAttribute,A.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),_=[p.AlignStyle,f.BackgroundStyle,b.ColorStyle,A.DirectionStyle,m.FontStyle,g.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),E=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],w.concat(n.options.matchers).forEach(function(e){var t=l(e,2),r=t[0],i=t[1];(o.matchVisual||i!==L)&&n.addMatcher(r,i)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var o=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(o,y({},h.default.blotName,t[h.default.blotName]))}var n=this.prepareMatching(),r=l(n,2),i=r[0],s=r[1],c=S(this.container,i,s);return N(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),q.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(n),o),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var o=this.quill.getSelection(),n=(new a.default).retain(o.index),l=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){n=n.concat(t.convert()).delete(o.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-o.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=l,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],o=[];return this.matchers.forEach(function(n){var r=l(n,2),i=r[0],a=r[1];switch(i){case Node.TEXT_NODE:o.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(i),function(e){e[k]=e[k]||[],e[k].push(a)})}}),[t,o]}}]),t}(d.default);function O(e,t,o){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce(function(e,o){return O(e,o,t[o])},e):e.reduce(function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,i.default)({},y({},t,o),n.attributes))},new a.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function N(e,t){for(var o="",n=e.ops.length-1;n>=0&&o.length<t.length;--n){var l=e.ops[n];if("string"!=typeof l.insert)break;o=l.insert+o}return o.slice(-1*t.length)===t}function B(e){if(0===e.childNodes.length)return!1;var t=C(e);return["block","list-item"].indexOf(t.display)>-1}function S(e,t,o){return e.nodeType===e.TEXT_NODE?o.reduce(function(t,o){return o(e,t)},new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(n,l){var r=S(l,t,o);return l.nodeType===e.ELEMENT_NODE&&(r=t.reduce(function(e,t){return t(l,e)},r),r=(l[k]||[]).reduce(function(e,t){return t(l,e)},r)),n.concat(r)},new a.default):new a.default}function j(e,t,o){return O(o,e,!0)}function T(e,t){var o=s.default.Attributor.Attribute.keys(e),n=s.default.Attributor.Class.keys(e),l=s.default.Attributor.Style.keys(e),r={};return o.concat(n).concat(l).forEach(function(t){var o=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=o&&(r[o.attrName]=o.value(e),r[o.attrName])||(null==(o=x[t])||o.attrName!==t&&o.keyName!==t||(r[o.attrName]=o.value(e)||void 0),null==(o=_[t])||o.attrName!==t&&o.keyName!==t||(o=_[t],r[o.attrName]=o.value(e)||void 0))}),Object.keys(r).length>0&&(t=O(t,r)),t}function P(e,t){var o=s.default.query(e);if(null==o)return t;if(o.prototype instanceof s.default.Embed){var n={},l=o.value(e);null!=l&&(n[o.blotName]=l,t=(new a.default).insert(n,o.formats(e)))}else"function"==typeof o.formats&&(t=O(t,o.blotName,o.formats(e)));return t}function V(e,t){return N(t,"\n")||(B(e)||t.length()>0&&e.nextSibling&&B(e.nextSibling))&&t.insert("\n"),t}function L(e,t){if(B(e)&&null!=e.nextElementSibling&&!N(t,"\n\n")){var o=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*o&&t.insert("\n")}return t}function D(e,t){var o=e.data;if("O:P"===e.parentNode.tagName)return t.insert(o.trim());if(0===o.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};o=(o=o.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&B(e.parentNode)||null!=e.previousSibling&&B(e.previousSibling))&&(o=o.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&B(e.parentNode)||null!=e.nextSibling&&B(e.nextSibling))&&(o=o.replace(/\s+$/,n.bind(n,!1)))}return t.insert(o)}E.DEFAULTS={matchers:[],matchVisual:!0},t.default=E,t.matchAttributor=T,t.matchBlot=P,t.matchNewline=V,t.matchSpacing=L,t.matchText=D},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=u(o(2)),i=u(o(0)),a=u(o(5)),s=u(o(10)),c=u(o(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,s.default)("quill:toolbar"),f=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l,r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));if(Array.isArray(r.options.container)){var i=document.createElement("div");b(i,r.options.container),e.container.parentNode.insertBefore(i,e.container),r.container=i}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(e){r.addHandler(e,r.options.handlers[e])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(e){r.attach(e)}),r.quill.on(a.default.events.EDITOR_CHANGE,function(e,t){e===a.default.events.SELECTION_CHANGE&&r.update(t)}),r.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var e=r.quill.selection.getRange(),t=n(e,1)[0];r.update(t)}),r):(l=p.error("Container required for toolbar",r.options),d(r,l))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,o=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(o){if(o=o.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[o]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[o])return void p.warn("ignoring attaching to disabled format",o,e);if(null==i.default.query(o))return void p.warn("ignoring attaching to nonexistent format",o,e)}var l="SELECT"===e.tagName?"change":"click";e.addEventListener(l,function(l){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];s=!c.hasAttribute("selected")&&(c.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),l.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=n(u,1)[0];if(null!=t.handlers[o])t.handlers[o].call(t,s);else if(i.default.query(o).prototype instanceof i.default.Embed){if(!(s=prompt("Enter "+o)))return;t.quill.updateContents((new r.default).retain(d.index).delete(d.length).insert(function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},o,s)),a.default.sources.USER)}else t.quill.format(o,s,a.default.sources.USER);t.update(d)}),this.controls.push([o,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(o){var l=n(o,2),r=l[0],i=l[1];if("SELECT"===i.tagName){var a=void 0;if(null==e)a=null;else if(null==t[r])a=i.querySelector("option[selected]");else if(!Array.isArray(t[r])){var s=t[r];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=i.querySelector('option[value="'+s+'"]')}null==a?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(null==e)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var c=t[r]===i.getAttribute("value")||null!=t[r]&&t[r].toString()===i.getAttribute("value")||null==t[r]&&!i.getAttribute("value");i.classList.toggle("ql-active",c)}else i.classList.toggle("ql-active",null!=t[r])})}}]),t}(c.default);function h(e,t,o){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=o&&(n.value=o),e.appendChild(n)}function b(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var o=document.createElement("span");o.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)h(o,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,o){var n=document.createElement("select");n.classList.add("ql-"+t),o.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)}),e.appendChild(n)}(o,t,n):h(o,t,n)}}),e.appendChild(o)})}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var o=this.quill.getFormat();Object.keys(o).forEach(function(t){null!=i.default.query(t,i.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),o=this.quill.getFormat(t),n=parseInt(o.indent||0);if("+1"===e||"-1"===e){var l="+1"===e?1:-1;"rtl"===o.direction&&(l*=-1),this.quill.format("indent",n+l,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),o=this.quill.getFormat(t);"check"===e?"checked"===o.list||"unchecked"===o.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=f,t.addControls=b},function(e,t){e.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(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(28),a=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.label.innerHTML=o,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"buildItem",value:function(e){var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return o.style.backgroundColor=e.getAttribute("value")||"",o}},{key:"selectItem",value:function(e,o){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,o);var n=this.label.querySelector(".ql-color-label"),l=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=l:n.style.fill=l)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(28),a=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=o[e.getAttribute("data-value")||""]}),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"selectItem",value:function(e,o){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,o),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function(){function e(t,o){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=o||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"}),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,o=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=o+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),r=0;if(l.right>n.right&&(r=n.right-l.right,this.root.style.left=t+r+"px"),l.left<n.left&&(r=n.left-l.left,this.root.style.left=t+r+"px"),l.bottom>n.bottom){var i=l.bottom-l.top,a=e.bottom-e.top+i;this.root.style.top=o-a+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,l=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(e){l=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(l)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=f(o(3)),a=f(o(8)),s=o(43),c=f(s),u=f(o(27)),d=o(15),p=f(o(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,o){h(this,t),null!=o.modules.toolbar&&null==o.modules.toolbar.container&&(o.modules.toolbar.container=m);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.quill.container.classList.add("ql-snow"),n}return A(t,e),r(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new v(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,o){e.handlers.link.call(e,!o.format.link)})}}]),t}(c.default);g.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var o=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(o)&&0!==o.indexOf("mailto:")&&(o="mailto:"+o),this.quill.theme.tooltip.edit("link",o)}else this.quill.format("link",!1)}}}}});var v=function(e){function t(e,o){h(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.preview=n.root.querySelector("a.ql-preview"),n}return A(t,e),r(t,[{key:"listen",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var o=e.linkRange;e.restoreFocus(),e.quill.formatText(o,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(t,o,l){if(null!=t){if(0===t.length&&l===a.default.sources.USER){var r=e.quill.scroll.descendant(u.default,t.index),i=n(r,2),s=i[0],c=i[1];if(null!=s){e.linkRange=new d.Range(t.index-c,s.length());var p=u.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);v.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(""),t.default=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=V(o(29)),l=o(36),r=o(38),i=o(64),a=V(o(65)),s=V(o(66)),c=o(67),u=V(c),d=o(37),p=o(26),f=o(39),h=o(40),b=V(o(56)),A=V(o(68)),m=V(o(27)),g=V(o(69)),v=V(o(70)),y=V(o(71)),q=V(o(72)),k=V(o(73)),w=o(13),x=V(w),_=V(o(74)),E=V(o(75)),O=V(o(57)),C=V(o(41)),N=V(o(28)),B=V(o(59)),S=V(o(60)),j=V(o(61)),T=V(o(108)),P=V(o(62));function V(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),n.default.register({"formats/align":l.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":i.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":x.default,"formats/header":s.default,"formats/list":u.default,"formats/bold":b.default,"formats/code":w.Code,"formats/italic":A.default,"formats/link":m.default,"formats/script":g.default,"formats/strike":v.default,"formats/underline":y.default,"formats/image":q.default,"formats/video":k.default,"formats/list/item":c.ListItem,"modules/formula":_.default,"modules/syntax":E.default,"modules/toolbar":O.default,"themes/bubble":T.default,"themes/snow":P.default,"ui/icons":C.default,"ui/picker":N.default,"ui/icon-picker":S.default,"ui/color-picker":B.default,"ui/tooltip":j.default},!0),t.default=n.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(0),a=(n=i)&&n.__esModule?n:{default:n},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"add",value:function(e,o){if("+1"===o||"-1"===o){var n=this.value(e)||0;o="+1"===o?n+1:n-1}return 0===o?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,o)}},{key:"canAdd",value:function(e,o){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,o)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(o))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),c=new s("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=o(4),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=l)&&n.__esModule?n:{default:n}).default);r.blotName="blockquote",r.tagName="blockquote",t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=o(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=r)&&n.__esModule?n:{default:n}).default);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=s(o(0)),i=s(o(4)),a=s(o(25));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"format",value:function(e,o){e!==f.blotName||o?l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,o){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,o),this):(this.parent.unwrap(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,o))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:l(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(i.default);p.blotName="list-item",p.tagName="LI";var f=function(e){function t(e){c(this,t);var o=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=o.statics.formats(e),l=r.default.find(t.target);"checked"===n?l.format("list","unchecked"):"unchecked"===n&&l.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),o}return d(t,e),n(t,null,[{key:"create",value:function(e){var o="ordered"===e?"OL":"UL",n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,o);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,o=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e;var e,t,o}},{key:"insertBefore",value:function(e,o){if(e instanceof p)l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o);else{var n=null==o?this.length():o.offset(this),r=this.split(n);r.parent.insertBefore(e,r)}}},{key:"optimize",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var o=this.next;null!=o&&o.prev===this&&o.statics.blotName===this.statics.blotName&&o.domNode.tagName===this.domNode.tagName&&o.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(o.moveChildren(this),o.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var o=r.default.create(this.statics.defaultChild);e.moveChildren(o),this.appendChild(o)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);f.blotName="list",f.scope=r.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=o(56),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=l)&&n.__esModule?n:{default:n}).default);r.blotName="italic",r.tagName=["EM","I"],t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=o(6),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=l)&&n.__esModule?n:{default:n}).default);r.blotName="strike",r.tagName="S",t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=o(6),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=l)&&n.__esModule?n:{default:n}).default);r.blotName="underline",r.tagName="U",t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(0),a=(n=i)&&n.__esModule?n:{default:n},s=o(27),c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"format",value:function(e,o){c.indexOf(e)>-1?o?this.domNode.setAttribute(e,o):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}],[{key:"create",value:function(e){var o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&o.setAttribute("src",this.sanitize(e)),o}},{key:"formats",value:function(e){return c.reduce(function(t,o){return e.hasAttribute(o)&&(t[o]=e.getAttribute(o)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},i=o(4),a=o(27),s=(n=a)&&n.__esModule?n:{default:n},c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"format",value:function(e,o){c.indexOf(e)>-1?o?this.domNode.setAttribute(e,o):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}],[{key:"create",value:function(e){var o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",!0),o.setAttribute("src",this.sanitize(e)),o}},{key:"formats",value:function(e){return c.reduce(function(t,o){return e.hasAttribute(o)&&(t[o]=e.getAttribute(o)),t},{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=s(o(35)),i=s(o(5)),a=s(o(9));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,null,[{key:"create",value:function(e){var o=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,o,{throwOnError:!1,errorColor:"#f00"}),o.setAttribute("data-value",e)),o}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(r.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var f=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),n(t,null,[{key:"register",value:function(){i.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},r=s(o(0)),i=s(o(5)),a=s(o(9));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(o(13)).default);p.className="ql-syntax";var f=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),h=function(e){function t(e,o){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return n.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){n.highlight(),l=null},n.options.interval)}),n.highlight(),n}return d(t,e),n(t,null,[{key:"register",value:function(){i.default.register(f,!0),i.default.register(p,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(i.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(i.default.sources.SILENT),null!=t&&this.quill.setSelection(t,i.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,o,n){null===t&&(t=Function.prototype);var l=Object.getOwnPropertyDescriptor(t,o);if(void 0===l){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,o,n)}if("value"in l)return l.value;var i=l.get;return void 0!==i?i.call(n):void 0},l=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=d(o(3)),i=d(o(8)),a=o(43),s=d(a),c=o(15),u=d(o(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(e){function t(e,o){p(this,t),null!=o.modules.toolbar&&null==o.modules.toolbar.container&&(o.modules.toolbar.container=b);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.quill.container.classList.add("ql-bubble"),n}return h(t,e),l(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(s.default);A.DEFAULTS=(0,r.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,o){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return n.quill.on(i.default.events.EDITOR_CHANGE,function(e,t,o,l){if(e===i.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&l===i.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var r=n.quill.getLines(t.index,t.length);if(1===r.length)n.position(n.quill.getBounds(t));else{var a=r[r.length-1],s=n.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-s),d=n.quill.getBounds(new c.Range(s,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()}),n}return h(t,e),l(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var o=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),l=this.root.querySelector(".ql-tooltip-arrow");if(l.style.marginLeft="",0===o)return o;l.style.marginLeft=-1*o-l.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);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(""),t.BubbleTooltip=m,t.default=A},function(e,t,o){e.exports=o(63)}]).default},e.exports=n()},1751:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"flex flex-1 justify-between sm:hidden"};const r={name:"PaginationSMBox",components:{TailwindPagination:o(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){var s=(0,n.resolveComponent)("TailwindPagination");return(0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.createVNode)(s,{data:o.pagination,onPaginationChangePage:a.page,"active-classes":i.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"text-sm text-gray-700"};const r={name:"PaginationTextComponent",props:["props"]};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){var s,c;return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createElementVNode)("p",l,(0,n.toDisplayString)(e.$t("message.pagination_label",{from:null!==(s=o.props.page.from)&&void 0!==s?s:0,to:null!==(c=o.props.page.to)&&void 0!==c?c:0,total:o.props.page.total})),1)])}]])},1964:(e,t,o)=>{"use strict";o.d(t,{L5:()=>h});var n=o(9726);const l={emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){var e;return this.isApiResource?this.data.meta.current_page:null!=(e=this.data.current_page)?e:null},firstPageUrl(){var e,t,o,n,l;return null!=(l=null!=(n=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?n:null==(o=this.data.links)?void 0:o.first)?l:null},from(){var e;return this.isApiResource?this.data.meta.from:null!=(e=this.data.from)?e:null},lastPage(){var e;return this.isApiResource?this.data.meta.last_page:null!=(e=this.data.last_page)?e:null},lastPageUrl(){var e,t,o,n,l;return null!=(l=null!=(n=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?n:null==(o=this.data.links)?void 0:o.last)?l:null},nextPageUrl(){var e,t,o,n,l;return null!=(l=null!=(n=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?n:null==(o=this.data.links)?void 0:o.next)?l:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:null!=(e=this.data.per_page)?e:null},prevPageUrl(){var e,t,o,n,l;return null!=(l=null!=(n=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?n:null==(o=this.data.links)?void 0:o.prev)?l:null},to(){var e;return this.isApiResource?this.data.meta.to:null!=(e=this.data.to)?e:null},total(){var e;return this.isApiResource?this.data.meta.total:null!=(e=this.data.total)?e:null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,o=this.keepLength,n=this.lastPage,l=this.limit,r=t-l,i=t+l,a=2*(l+2),s=2*(l+2)-1,c=[],u=[],d=1;d<=n;d++)(1===d||d===n||d>=r&&d<=i||o&&d<a&&t<a-2||o&&d>n-s&&t>n-s+2)&&c.push(d);return c.forEach(function(t){e&&(t-e===2?u.push(e+1):t-e!==1&&u.push("...")),u.push(t),e=t}),u}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){"..."===e||e===this.currentPage||this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}},r=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o};Boolean,Boolean;Boolean,Boolean;const i={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:l},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1},itemClasses:{type:Array,default:()=>["bg-white","text-gray-500","border-gray-300","hover:bg-gray-50"]},activeClasses:{type:Array,default:()=>["bg-blue-50","border-blue-500","text-blue-600"]}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},a=["disabled"],s=(0,n.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,n.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,n.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),u=["aria-current","disabled"],d=["disabled"],p=(0,n.createElementVNode)("span",{class:"sr-only"},"Next",-1),f=(0,n.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,n.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1);const h=r(i,[["render",function(e,t,o,l,r,i){const h=(0,n.resolveComponent)("RenderlessPagination");return(0,n.openBlock)(),(0,n.createBlock)(h,{data:o.data,limit:o.limit,"keep-length":o.keepLength,onPaginationChangePage:i.onPaginationChangePage},{default:(0,n.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,n.openBlock)(),(0,n.createElementBlock)("nav",(0,n.mergeProps)({key:0},e.$attrs,{class:"inline-flex -space-x-px rounded-md shadow-sm isolate ltr:flex-row rtl:flex-row-reverse","aria-label":"Pagination"}),[(0,n.createElementVNode)("button",(0,n.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-l-md focus:z-20 disabled:opacity-50",o.itemClasses],disabled:!t.computed.prevPageUrl},(0,n.toHandlers)(t.prevButtonEvents,!0)),[(0,n.renderSlot)(e.$slots,"prev-nav",{},()=>[s,c])],16,a),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.computed.pageRange,(e,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("button",(0,n.mergeProps)({class:["relative inline-flex items-center px-4 py-2 text-sm font-medium border focus:z-20",[e==t.computed.currentPage?o.activeClasses:o.itemClasses,e==t.computed.currentPage?"z-30":""]],"aria-current":t.computed.currentPage?"page":null,key:l},(0,n.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,n.toDisplayString)(e),17,u))),128)),(0,n.createElementVNode)("button",(0,n.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-r-md focus:z-20 disabled:opacity-50",o.itemClasses],disabled:!t.computed.nextPageUrl},(0,n.toHandlers)(t.nextButtonEvents,!0)),[(0,n.renderSlot)(e.$slots,"next-nav",{},()=>[p,f])],16,d)],16)):(0,n.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},2676:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(6314),l=o.n(n)()(function(e){return e[1]});l.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:"";display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;display:none;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""]);const r=l},3911:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"db-card-filter-dropdown-menu"};const r={name:"PrintComponent",props:["props"],directives:{print:o(5316).A}};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){var s=(0,n.resolveDirective)("print");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab-line-printer lab-font-size-17"},null,-1)),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("button.print")),1)])),[[s,o.props]])}]])},4579:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"db-card-filter-btn table-filter-btn"};const r={name:"FilterComponent"};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-filter lab-font-size-14"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.filter")),1)])}]])},5316:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});class n{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let o=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(o)},t.settings.vue);let o=this.getPrintWindow(e);this.settings.url||this.write(o.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(o)}addEvent(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent?e.attachEvent("on"+t,o):e["on"+t]=o}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,o=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(o,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),o.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let o=document.getElementById(this.settings.id)||e.f,n=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(o,"load",function(){n.focus(),t.settings.openCallback(),n.print(),o.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",o="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let n=document.styleSheets;if(n&&n.length>0)for(let e=0;e<n.length;e++)try{if(n[e].cssRules||n[e].rules){let t=n[e].cssRules||n[e].rules;for(let e=0;e<t.length;e++)o+=t[e].cssText}}catch(t){console.log(n[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${o}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let o=t[e].parentNode,n=t[e].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=n,o.appendChild(l)}return e}getFormData(e){let t=e.cloneNode(!0),o=t.querySelectorAll("input,select,textarea"),n=t.querySelectorAll(".canvasImg,canvas"),l=-1;for(let e=0;e<n.length;e++){let t=n[e].parentNode,o=n[e];"canvas"===o.tagName.toLowerCase()?t.removeChild(o):o.style.display="block"}for(let t=0;t<o.length;t++){let n=o[t],r=n.getAttribute("type"),i=o[t];if(r||(r="SELECT"===n.tagName?"select":"TEXTAREA"===n.tagName?"textarea":""),"INPUT"===n.tagName)"radio"===r||"checkbox"===r?n.checked&&i.setAttribute("checked",n.checked):(i.value=n.value,i.setAttribute("value",n.value));else if("select"===r){l++;for(let t=0;t<e.querySelectorAll("select").length;t++){let o=e.querySelectorAll("select")[t];if(!o.getAttribute("newbs")&&o.setAttribute("newbs",t),o.getAttribute("newbs")==l){let t=e.querySelectorAll("select")[l].selectedIndex;n.options[t].setAttribute("selected",!0)}}}else i.innerHTML=n.value,i.setAttribute("html",n.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let o=document.createElement("div");o.setAttribute("class","previewHeader"),o.setAttribute("style","padding: 5px 20px;"),o.innerHTML=this.settings.previewTitle,t.appendChild(o),this.close=document.createElement("div");let n=this.close;n.setAttribute("class","previewClose"),n.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),r=document.createElement("div");l.setAttribute("class","closeBefore"),l.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),r.setAttribute("class","closeAfter"),r.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),n.appendChild(l),n.appendChild(r),o.appendChild(n),this.previewBody=document.createElement("div");let i=this.previewBody;i.setAttribute("class","previewBody"),i.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(i);let a=document.createElement("div");a.setAttribute("class","previewBodyUtil"),a.setAttribute("style","height: 32px;background: #474747;position: relative;"),i.appendChild(a),this.previewBodyUtilPrintBtn=document.createElement("div");let s=this.previewBodyUtilPrintBtn;return s.setAttribute("class","previewBodyUtilPrintBtn"),s.innerHTML=this.settings.previewPrintBtnLabel,s.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),a.appendChild(s),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let o=document.createElement("iframe");return o.style.border="0px",o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.style.right="0px",o.style.top="0px",o.setAttribute("id",e),o.setAttribute("src",t),o}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let o=this,n=this.iframeBox(t,e);try{if(this.settings.preview){n.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,l=e.close;t.appendChild(n),this.addEvent(l,"click",function(){o.previewBoxHide()})}else document.body.appendChild(n);n.doc=null,n.doc=n.contentDocument?n.contentDocument:n.contentWindow?n.contentWindow.document:n.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==n.doc)throw new Error("Cannot find document.");return n}}var l={directiveName:"print",mounted(e,t,o){let l=t.instance,r="";var i,a,s;a="click",s=()=>{if("string"==typeof t.value)r=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{r=t.value.id;let e=r.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),r="")}}c()},(i=e).addEventListener?i.addEventListener(a,s,!1):i.attachEvent?i.attachEvent("on"+a,s):i["on"+a]=s;const c=()=>{new n({ids:r,vue:l,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(l)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(l)},openCallback(){t.value.openCallback&&t.value.openCallback(l)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(l)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(l)}})}},install:function(e){e.directive("print",l)}};const r=l},5420:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(6314),l=o.n(n)()(function(e){return e[1]});l.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}',""]);const r=l},6341:(e,t,o)=>{"use strict";o.d(t,{zs:()=>m});var n=o(1574),l=o.n(n),r=o(9726);const i={ref:"editor"};var a=o(5072),s=o.n(a),c=o(5420),u={insert:"head",singleton:!1};s()(c.A,u);c.A.locals;var d=o(2676),p={insert:"head",singleton:!1};s()(d.A,p);d.A.locals;var f=o(9399),h={insert:"head",singleton:!1};s()(f.A,h);f.A.locals;const b={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},A={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const o={editorOption:{},quill:null};let n="";(0,r.watch)(()=>e.value,e=>{o.quill&&(e&&e!==n?(n=e,o.quill.pasteHTML(e)):e||o.quill.setText(""))}),(0,r.watch)(()=>e.content,e=>{o.quill&&(e&&e!==n?(n=e,o.quill.pasteHTML(e)):e||o.quill.setText(""))}),(0,r.watch)(()=>e.disabled,e=>{o.quill&&o.quill.enable(!e)});const i=(0,r.ref)(null),a=(e,t)=>{for(const o in t)e[o]&&"modules"===o?a(e[o],t[o]):e[o]=t[o];return e};return(0,r.onBeforeUnmount)(()=>{const e=i.value.previousSibling;e&&1===e.nodeType&&e.className.indexOf("ql-toolbar")>-1&&e.parentNode.removeChild(e)}),(0,r.onMounted)(()=>{i.value&&(o.editorOption=a(b,e.options),o.editorOption.readOnly=!!e.disabled,o.quill=new(l())(i.value,o.editorOption),e.value&&o.quill.pasteHTML(e.value),o.quill.on("selection-change",e=>{e?t.emit("focus",o.quill):t.emit("blur",o.quill)}),o.quill.on("text-change",()=>{e.disabled&&o.quill.enable(!1);let l=i.value.children[0].innerHTML;const r=o.quill,a=o.quill.getText();"<p><br></p>"===l&&(l=""),n=l,t.emit("update:value",n),t.emit("change",{html:l,text:a,quill:r})}),t.emit("ready",o.quill))}),(0,r.onUnmounted)(()=>{o.quill=null}),{editor:i}}};const m=(0,o(6262).A)(A,[["render",function(e,t,o,n,l,a){return(0,r.openBlock)(),(0,r.createElementBlock)("section",i,null,512)}]]);m.install=function(e){e.component(m.name,m)};l()},6365:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"db-card-filter-btn dropdown-btn"};const r={name:"ExportComponent"};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-file-export lab-font-size-17"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.export")),1)])}]])},6567:(e,t,o)=>{"use strict";o.d(t,{A:()=>st});var n=o(9726),l={class:"w-full max-w-xl h-screen overflow-x-hidden thin-scrolling bg-white ms-auto ltr:translate-x-full rtl:-translate-x-full"},r={class:"drawer-header"},i={class:"drawer-title"},a={class:"drawer-body"},s={class:"form-row"},c={class:"form-col-12 sm:form-col-6"},u={for:"name",class:"db-field-title required"},d={key:0,class:"db-field-alert"},p={class:"form-col-12 sm:form-col-6"},f={for:"sku",class:"db-field-title required"},h={class:"db-group-field"},b={key:0,class:"db-field-alert"},A={class:"form-col-12 sm:form-col-6"},m={for:"product_category_id",class:"db-field-title required"},g={key:0,class:"db-field-alert"},v={class:"form-col-12 sm:form-col-6"},y={for:"barcode_id",class:"db-field-title required"},q={key:0,class:"db-field-alert"},k={class:"form-col-12 sm:form-col-6"},w={for:"buying_price",class:"db-field-title required"},x={key:0,class:"db-field-alert"},_={class:"form-col-12 sm:form-col-6"},E={for:"selling_price",class:"db-field-title required"},O={key:0,class:"db-field-alert"},C={class:"form-col-12 sm:form-col-6"},N={for:"tax_id",class:"db-field-title"},B={key:0,class:"db-field-alert"},S={class:"form-col-12 sm:form-col-6"},j={for:"product_brand_id",class:"db-field-title"},T={key:0,class:"db-field-alert"},P={class:"form-col-12 sm:form-col-6"},V={class:"db-field-title required"},L={class:"db-field-radio-group"},D={class:"db-field-radio"},M={class:"custom-radio"},I=["value"],R={for:"active",class:"db-field-label"},U={class:"db-field-radio"},z={class:"custom-radio"},F=["value"],$={for:"inactive",class:"db-field-label"},H={class:"form-col-12 sm:form-col-6"},Q={class:"db-field-title required",for:"yes"},G={class:"db-field-radio-group"},K={class:"db-field-radio"},Y={class:"custom-radio"},W=["value"],Z={for:"yes",class:"db-field-label"},J={class:"db-field-radio"},X={class:"custom-radio"},ee=["value"],te={for:"no",class:"db-field-label"},oe={class:"form-col-12 sm:form-col-6"},ne={class:"db-field-title required",for:"enable"},le={class:"db-field-radio-group"},re={class:"db-field-radio"},ie={class:"custom-radio"},ae=["value"],se={for:"enable",class:"db-field-label"},ce={class:"db-field-radio"},ue={class:"custom-radio"},de=["value"],pe={for:"disable",class:"db-field-label"},fe={class:"form-col-12 sm:form-col-6"},he={class:"db-field-title required",for:"refundableYes"},be={class:"db-field-radio-group"},Ae={class:"db-field-radio"},me={class:"custom-radio"},ge=["value"],ve={for:"refundableYes",class:"db-field-label"},ye={class:"db-field-radio"},qe={class:"custom-radio"},ke=["value"],we={for:"refundableNo",class:"db-field-label"},xe={class:"form-col-12 sm:form-col-6"},_e={for:"maximum_purchase_quantity",class:"db-field-title required"},Ee={key:0,class:"db-field-alert"},Oe={class:"form-col-12 sm:form-col-6"},Ce={for:"low_stock_quantity_warning",class:"db-field-title required"},Ne={key:0,class:"db-field-alert"},Be={class:"form-col-12 sm:form-col-12"},Se={for:"unit",class:"db-field-title required"},je={key:0,class:"db-field-alert"},Te={class:"form-col-12 sm:form-col-6"},Pe={for:"weight",class:"db-field-title"},Ve={key:0,class:"db-field-alert"},Le={class:"form-col-12 sm:form-col-6"},De={for:"warranty",class:"db-field-title"},Me={key:0,class:"db-field-alert"},Ie={class:"form-col-12 sm:form-col-12"},Re={for:"tags",class:"db-field-title"},Ue={key:0,class:"db-field-alert"},ze={class:"form-col-12"},Fe={for:"description",class:"db-field-title"},$e={key:0,class:"db-field-alert"},He={class:"col-12"},Qe={class:"flex flex-wrap gap-3 mt-4"},Ge={type:"submit",class:"db-btn py-2 text-white bg-primary"};var Ke=o(7120),Ye=o(5475),We=o(6719),Ze=o(6884),Je=o(2419),Xe=o(9856),et=o(8655),tt=o(764),ot=o.n(tt),nt=o(6341),lt=o(5457);function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}function it(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=rt(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const at={name:"ProductCreateComponent",components:{SmSidebarModalCreateComponent:Ke.A,LoadingComponent:Ye.A,quillEditor:nt.zs,VueTagsInput:ot()},props:["props"],data:function(){return{tag:"",loading:{isActive:!1},enums:{statusEnum:Ze.A,askEnum:We.A,activityEnum:Je.A,statusEnumArray:it(it({},Ze.A.ACTIVE,this.$t("label.active")),Ze.A.INACTIVE,this.$t("label.inactive")),askEnumArray:it(it({},We.A.YES,this.$t("label.yes")),We.A.NO,this.$t("label.no")),activityEnumArray:it(it({},Je.A.ENABLE,this.$t("label.enable")),Je.A.DISABLE,this.$t("label.disable"))},errors:{},productCategories:[],units:[],productBrands:[],taxes:[],barcodes:[]}},mounted:function(){var e=this;this.loading.isActive=!0,this.getSku(),this.$store.dispatch("productCategory/depthTrees",{}).then(function(t){e.productCategories=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.loading.isActive=!0,this.$store.dispatch("productBrand/lists",{order_column:"id",order_type:"asc"}).then(function(t){e.productBrands=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.loading.isActive=!0,this.$store.dispatch("unit/lists",{order_column:"id",order_type:"asc"}).then(function(t){e.units=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.loading.isActive=!0,this.$store.dispatch("tax/lists",{order_column:"id",order_type:"asc"}).then(function(t){e.taxes=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.loading.isActive=!0,this.$store.dispatch("barcode/lists",{order_column:"id",order_type:"asc"}).then(function(t){e.barcodes=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},computed:{addButton:function(){return{title:this.$t("button.add_product")}}},methods:{floatNumber:function(e){return et.A.floatNumber(e)},onlyNumber:function(e){return et.A.onlyNumber(e)},reset:function(){(0,lt.y)().closeCanvas("sidebar"),this.$store.dispatch("product/reset").then().catch(),this.errors={},this.$props.props.form={name:"",sku:"",product_category_id:null,barcode_id:null,buying_price:"",selling_price:"",tax_id:[],product_brand_id:null,status:Ze.A.ACTIVE,can_purchasable:We.A.NO,show_stock_out:Je.A.DISABLE,refundable:We.A.NO,maximum_purchase_quantity:"",low_stock_quantity_warning:"",unit_id:null,weight:"",warranty:"",tags:"",convertTags:[],description:""},this.getSku()},getSku:function(){var e=this;this.$store.dispatch("product/getSku").then(function(t){e.$props.props.form.sku=t.data.data.product_sku,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},save:function(){var e=this;try{this.props.form.tags=JSON.stringify(this.props.form.convertTags);var t=this.$store.getters["product/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("product/save",this.props).then(function(o){(0,lt.y)().closeCanvas("sidebar"),e.loading.isActive=!1,Xe.A.successFlip(null===t?0:1,e.$t("menu.products")),e.props.form={name:"",sku:"",product_category_id:null,barcode_id:null,buying_price:"",selling_price:"",tax_id:[],product_brand_id:null,status:Ze.A.ACTIVE,can_purchasable:We.A.NO,show_stock_out:Je.A.DISABLE,refundable:We.A.NO,maximum_purchase_quantity:"",low_stock_quantity_warning:"",unit_id:null,weight:"",warranty:"",tags:"",convertTags:[],description:""},e.getSku(),e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors={},t.response&&t.response.data&&t.response.data.errors?e.errors=t.response.data.errors:Xe.A.error(t.response.data.message)})}catch(e){this.loading.isActive=!1}}}};const st=(0,o(6262).A)(at,[["render",function(e,t,o,Ke,Ye,We){var Ze=(0,n.resolveComponent)("LoadingComponent"),Je=(0,n.resolveComponent)("SmSidebarModalCreateComponent"),Xe=(0,n.resolveComponent)("vue-select"),et=(0,n.resolveComponent)("vue-tags-input"),tt=(0,n.resolveComponent)("quill-editor");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(Ze,{props:Ye.loading},null,8,["props"]),(0,n.createVNode)(Je,{props:We.addButton},null,8,["props"]),(0,n.createElementVNode)("div",{id:"sidebar",onClick:t[33]||(t[33]=(0,n.withModifiers)(function(){return We.reset&&We.reset.apply(We,arguments)},["self"])),class:"fixed inset-0 z-50 bg-black/50 duration-500 transition-all invisible opacity-0"},[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("h3",i,(0,n.toDisplayString)(e.$t("menu.products")),1),(0,n.createElementVNode)("button",{class:"fa-solid fa-xmark close-btn",onClick:t[0]||(t[0]=function(){return We.reset&&We.reset.apply(We,arguments)})})]),(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("form",{onSubmit:t[32]||(t[32]=(0,n.withModifiers)(function(){return We.save&&We.save.apply(We,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("div",c,[(0,n.createElementVNode)("label",u,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.props.form.name=e}),class:(0,n.normalizeClass)([Ye.errors.name?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[n.vModelText,o.props.form.name]]),Ye.errors.name?((0,n.openBlock)(),(0,n.createElementBlock)("small",d,(0,n.toDisplayString)(Ye.errors.name[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("label",f,(0,n.toDisplayString)(e.$t("label.sku")),1),(0,n.createElementVNode)("div",h,[(0,n.withDirectives)((0,n.createElementVNode)("input",{onKeypress:t[2]||(t[2]=function(e){return We.onlyNumber(e)}),"onUpdate:modelValue":t[3]||(t[3]=function(e){return o.props.form.sku=e}),class:(0,n.normalizeClass)(Ye.errors.sku?"invalid":""),type:"text",id:"sku"},null,34),[[n.vModelText,o.props.form.sku]]),(0,n.createElementVNode)("button",{type:"button",onClick:t[4]||(t[4]=function(){return We.getSku&&We.getSku.apply(We,arguments)}),class:"lab lab-fill-shuffle"})]),Ye.errors.sku?((0,n.openBlock)(),(0,n.createElementBlock)("small",b,(0,n.toDisplayString)(Ye.errors.sku[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",A,[(0,n.createElementVNode)("label",m,(0,n.toDisplayString)(e.$t("label.category")),1),(0,n.createVNode)(Xe,{ref:"product_category_id",class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",Ye.errors.product_category_id?"invalid":""]),id:"product_category_id",modelValue:o.props.form.product_category_id,"onUpdate:modelValue":t[5]||(t[5]=function(e){return o.props.form.product_category_id=e}),options:Ye.productCategories,"label-by":"option","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),Ye.errors.product_category_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",g,(0,n.toDisplayString)(Ye.errors.product_category_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",v,[(0,n.createElementVNode)("label",y,(0,n.toDisplayString)(e.$t("label.barcode")),1),(0,n.createVNode)(Xe,{class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",Ye.errors.barcode_id?"invalid":""]),id:"barcode_id",modelValue:o.props.form.barcode_id,"onUpdate:modelValue":t[6]||(t[6]=function(e){return o.props.form.barcode_id=e}),options:Ye.barcodes,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),Ye.errors.barcode_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",q,(0,n.toDisplayString)(Ye.errors.barcode_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",k,[(0,n.createElementVNode)("label",w,(0,n.toDisplayString)(e.$t("label.buying_price")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{onKeypress:t[7]||(t[7]=function(e){return We.floatNumber(e)}),"onUpdate:modelValue":t[8]||(t[8]=function(e){return o.props.form.buying_price=e}),class:(0,n.normalizeClass)([Ye.errors.buying_price?"invalid":"","db-field-control"]),type:"text",id:"buying_price"},null,34),[[n.vModelText,o.props.form.buying_price]]),Ye.errors.buying_price?((0,n.openBlock)(),(0,n.createElementBlock)("small",x,(0,n.toDisplayString)(Ye.errors.buying_price[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",_,[(0,n.createElementVNode)("label",E,(0,n.toDisplayString)(e.$t("label.selling_price")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{onKeypress:t[9]||(t[9]=function(e){return We.floatNumber(e)}),"onUpdate:modelValue":t[10]||(t[10]=function(e){return o.props.form.selling_price=e}),class:(0,n.normalizeClass)([Ye.errors.selling_price?"invalid":"","db-field-control"]),type:"text",id:"selling_price"},null,34),[[n.vModelText,o.props.form.selling_price]]),Ye.errors.selling_price?((0,n.openBlock)(),(0,n.createElementBlock)("small",O,(0,n.toDisplayString)(Ye.errors.selling_price[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",C,[(0,n.createElementVNode)("label",N,(0,n.toDisplayString)(e.$t("label.tax")),1),(0,n.createVNode)(Xe,{ref:"tax_id",class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",Ye.errors.tax_id?"invalid":""]),id:"tax_id",modelValue:o.props.form.tax_id,"onUpdate:modelValue":t[11]||(t[11]=function(e){return o.props.form.tax_id=e}),options:Ye.taxes,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--",multiple:!0},null,8,["class","modelValue","options"]),Ye.errors.tax_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",B,(0,n.toDisplayString)(Ye.errors.tax_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",S,[(0,n.createElementVNode)("label",j,(0,n.toDisplayString)(e.$t("label.brand")),1),(0,n.createVNode)(Xe,{class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",Ye.errors.product_brand_id?"invalid":""]),id:"product_brand_id",modelValue:o.props.form.product_brand_id,"onUpdate:modelValue":t[12]||(t[12]=function(e){return o.props.form.product_brand_id=e}),options:Ye.productBrands,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),Ye.errors.product_brand_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",T,(0,n.toDisplayString)(Ye.errors.product_brand_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",P,[(0,n.createElementVNode)("label",V,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createElementVNode)("div",L,[(0,n.createElementVNode)("div",D,[(0,n.createElementVNode)("div",M,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[13]||(t[13]=function(e){return o.props.form.status=e}),id:"active",value:Ye.enums.statusEnum.ACTIVE,class:"custom-radio-field"},null,8,I),[[n.vModelRadio,o.props.form.status]]),t[34]||(t[34]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",R,(0,n.toDisplayString)(e.$t("label.active")),1)]),(0,n.createElementVNode)("div",U,[(0,n.createElementVNode)("div",z,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"custom-radio-field","onUpdate:modelValue":t[14]||(t[14]=function(e){return o.props.form.status=e}),id:"inactive",value:Ye.enums.statusEnum.INACTIVE},null,8,F),[[n.vModelRadio,o.props.form.status]]),t[35]||(t[35]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",$,(0,n.toDisplayString)(e.$t("label.inactive")),1)])])]),(0,n.createElementVNode)("div",H,[(0,n.createElementVNode)("label",Q,(0,n.toDisplayString)(e.$t("label.can_purchasable")),1),(0,n.createElementVNode)("div",G,[(0,n.createElementVNode)("div",K,[(0,n.createElementVNode)("div",Y,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[15]||(t[15]=function(e){return o.props.form.can_purchasable=e}),id:"yes",value:Ye.enums.askEnum.YES,class:"custom-radio-field"},null,8,W),[[n.vModelRadio,o.props.form.can_purchasable]]),t[36]||(t[36]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",Z,(0,n.toDisplayString)(e.$t("label.yes")),1)]),(0,n.createElementVNode)("div",J,[(0,n.createElementVNode)("div",X,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"custom-radio-field","onUpdate:modelValue":t[16]||(t[16]=function(e){return o.props.form.can_purchasable=e}),id:"no",value:Ye.enums.askEnum.NO},null,8,ee),[[n.vModelRadio,o.props.form.can_purchasable]]),t[37]||(t[37]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",te,(0,n.toDisplayString)(e.$t("label.no")),1)])])]),(0,n.createElementVNode)("div",oe,[(0,n.createElementVNode)("label",ne,(0,n.toDisplayString)(e.$t("label.show_stock_out")),1),(0,n.createElementVNode)("div",le,[(0,n.createElementVNode)("div",re,[(0,n.createElementVNode)("div",ie,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[17]||(t[17]=function(e){return o.props.form.show_stock_out=e}),id:"enable",value:Ye.enums.activityEnum.ENABLE,class:"custom-radio-field"},null,8,ae),[[n.vModelRadio,o.props.form.show_stock_out]]),t[38]||(t[38]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",se,(0,n.toDisplayString)(e.$t("label.enable")),1)]),(0,n.createElementVNode)("div",ce,[(0,n.createElementVNode)("div",ue,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"custom-radio-field","onUpdate:modelValue":t[18]||(t[18]=function(e){return o.props.form.show_stock_out=e}),id:"disable",value:Ye.enums.activityEnum.DISABLE},null,8,de),[[n.vModelRadio,o.props.form.show_stock_out]]),t[39]||(t[39]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",pe,(0,n.toDisplayString)(e.$t("label.disable")),1)])])]),(0,n.createElementVNode)("div",fe,[(0,n.createElementVNode)("label",he,(0,n.toDisplayString)(e.$t("label.refundable")),1),(0,n.createElementVNode)("div",be,[(0,n.createElementVNode)("div",Ae,[(0,n.createElementVNode)("div",me,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[19]||(t[19]=function(e){return o.props.form.refundable=e}),id:"refundableYes",value:Ye.enums.askEnum.YES,class:"custom-radio-field"},null,8,ge),[[n.vModelRadio,o.props.form.refundable]]),t[40]||(t[40]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",ve,(0,n.toDisplayString)(e.$t("label.yes")),1)]),(0,n.createElementVNode)("div",ye,[(0,n.createElementVNode)("div",qe,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",class:"custom-radio-field","onUpdate:modelValue":t[20]||(t[20]=function(e){return o.props.form.refundable=e}),id:"refundableNo",value:Ye.enums.askEnum.NO},null,8,ke),[[n.vModelRadio,o.props.form.refundable]]),t[41]||(t[41]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",we,(0,n.toDisplayString)(e.$t("label.no")),1)])])]),(0,n.createElementVNode)("div",xe,[(0,n.createElementVNode)("label",_e,(0,n.toDisplayString)(e.$t("label.maximum_purchase_quantity")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{onKeypress:t[21]||(t[21]=function(e){return We.onlyNumber(e)}),"onUpdate:modelValue":t[22]||(t[22]=function(e){return o.props.form.maximum_purchase_quantity=e}),class:(0,n.normalizeClass)([Ye.errors.maximum_purchase_quantity?"invalid":"","db-field-control"]),type:"text",id:"maximum_purchase_quantity"},null,34),[[n.vModelText,o.props.form.maximum_purchase_quantity]]),Ye.errors.maximum_purchase_quantity?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ee,(0,n.toDisplayString)(Ye.errors.maximum_purchase_quantity[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Oe,[(0,n.createElementVNode)("label",Ce,(0,n.toDisplayString)(e.$t("label.low_stock_quantity_warning")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{onKeypress:t[23]||(t[23]=function(e){return We.onlyNumber(e)}),"onUpdate:modelValue":t[24]||(t[24]=function(e){return o.props.form.low_stock_quantity_warning=e}),class:(0,n.normalizeClass)([Ye.errors.low_stock_quantity_warning?"invalid":"","db-field-control"]),type:"text",id:"low_stock_quantity_warning"},null,34),[[n.vModelText,o.props.form.low_stock_quantity_warning]]),Ye.errors.low_stock_quantity_warning?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ne,(0,n.toDisplayString)(Ye.errors.low_stock_quantity_warning[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Be,[(0,n.createElementVNode)("label",Se,(0,n.toDisplayString)(e.$t("label.unit")),1),(0,n.createVNode)(Xe,{class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",Ye.errors.unit_id?"invalid":""]),id:"unit_id",modelValue:o.props.form.unit_id,"onUpdate:modelValue":t[25]||(t[25]=function(e){return o.props.form.unit_id=e}),options:Ye.units,"label-by":"name_code","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),Ye.errors.unit_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",je,(0,n.toDisplayString)(Ye.errors.unit_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Te,[(0,n.createElementVNode)("label",Pe,(0,n.toDisplayString)(e.$t("label.weight")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[26]||(t[26]=function(e){return o.props.form.weight=e}),class:(0,n.normalizeClass)([Ye.errors.weight?"invalid":"","db-field-control"]),type:"text",id:"weight"},null,2),[[n.vModelText,o.props.form.weight]]),Ye.errors.weight?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ve,(0,n.toDisplayString)(Ye.errors.weight[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Le,[(0,n.createElementVNode)("label",De,(0,n.toDisplayString)(e.$t("label.warranty")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[27]||(t[27]=function(e){return o.props.form.warranty=e}),class:(0,n.normalizeClass)([Ye.errors.warranty?"invalid":"","db-field-control"]),type:"text",id:"warranty"},null,2),[[n.vModelText,o.props.form.warranty]]),Ye.errors.warranty?((0,n.openBlock)(),(0,n.createElementBlock)("small",Me,(0,n.toDisplayString)(Ye.errors.warranty[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Ie,[(0,n.createElementVNode)("label",Re,(0,n.toDisplayString)(e.$t("label.tags")),1),(0,n.createElementVNode)("div",null,[(0,n.createVNode)(et,{id:"tags",class:(0,n.normalizeClass)(Ye.errors.tags?"invalid-tag":""),placeholder:"",modelValue:Ye.tag,"onUpdate:modelValue":t[28]||(t[28]=function(e){return Ye.tag=e}),tags:o.props.form.convertTags,onTagsChanged:t[29]||(t[29]=function(e){return o.props.form.convertTags=e})},null,8,["class","modelValue","tags"])]),Ye.errors.tags?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ue,(0,n.toDisplayString)(Ye.errors.tags[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",ze,[(0,n.createElementVNode)("label",Fe,(0,n.toDisplayString)(e.$t("label.description")),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(Ye.errors.description?"invalid textarea-error-box-style":"")},[(0,n.createVNode)(tt,{id:"description",value:o.props.form.description,"onUpdate:value":t[30]||(t[30]=function(e){return o.props.form.description=e}),class:"!h-40 textarea-border-radius"},null,8,["value"])],2),Ye.errors.description?((0,n.openBlock)(),(0,n.createElementBlock)("small",$e,(0,n.toDisplayString)(Ye.errors.description[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",He,[(0,n.createElementVNode)("div",Qe,[(0,n.createElementVNode)("button",Ge,[t[42]||(t[42]=(0,n.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("label.save")),1)]),(0,n.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[31]||(t[31]=function(){return We.reset&&We.reset.apply(We,arguments)})},[t[43]||(t[43]=(0,n.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.close")),1)])])])])],32)])])])],64)}]])},7120:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726);var l=o(5457);const r={name:"SmSidebarModalCreateComponent",props:["props"],data:function(){return{openCanvas:(0,l.y)().openCanvas}}};const i=(0,o(6262).A)(r,[["render",function(e,t,o,l,r,i){return(0,n.openBlock)(),(0,n.createElementBlock)("button",{class:"h-8 px-3 flex items-center gap-2 text-xs tracking-wide capitalize rounded-md shadow text-white bg-primary",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(e){return r.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(o.props.title),1)])}]])},8517:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(9726);const l={name:"SampleFileComponent",props:{method:{type:Function}},methods:{sampleFileDownload:function(){this.method()}}};const r=(0,o(6262).A)(l,[["render",function(e,t,o,l,r,i){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(){return i.sampleFileDownload&&i.sampleFileDownload.apply(i,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-sample-file lab-font-size-15"},null,-1)),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("button.sample_file")),1)])}]])},8629:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"db-card-filter-btn dropdown-btn"};const r={name:"ImportComponent"};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-import lab-font-size-17"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.import")),1)])}]])},9238:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9726),l={class:"db-tooltip"};const r={name:"SmIconViewComponent",props:{link:String,id:Number}};const i=(0,o(6262).A)(r,[["render",function(e,t,o,r,i,a){var s=(0,n.resolveComponent)("router-link");return(0,n.openBlock)(),(0,n.createBlock)(s,{class:"db-table-action view",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,n.withCtx)(function(){return[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-eye"},null,-1)),(0,n.createElementVNode)("span",l,(0,n.toDisplayString)(e.$t("button.view")),1)]}),_:1,__:[0]},8,["to"])}]])},9253:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(9726),l=["data-modal"];var r=o(8655);const i={name:"UploadFileComponent",props:["props"],methods:{add:function(){r.A.modalShow("#"+this.props)}}};const a=(0,o(6262).A)(i,[["render",function(e,t,o,r,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",{type:"button",onClick:t[0]||(t[0]=function(){return a.add&&a.add.apply(a,arguments)}),"data-modal":"#"+o.props,class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-upload-file"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.upload_file")),1)],8,l)}]])},9319:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var n=o(9726),l={key:0,class:"db-field-down-arrow"},r={value:"10"},i={value:"25"},a={value:"50"},s={value:"100"},c={value:"500"},u={value:"1000"};const d={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const p=(0,o(6262).A)(d,[["render",function(e,t,o,d,p,f){return o.page.total>10?((0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.withDirectives)((0,n.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return f.limitChange&&f.limitChange.apply(f,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.search.per_page=e}),class:"db-card-filter-select"},[(0,n.createElementVNode)("option",r,(0,n.toDisplayString)(e.$t("number.10")),1),(0,n.createElementVNode)("option",i,(0,n.toDisplayString)(e.$t("number.25")),1),(0,n.createElementVNode)("option",a,(0,n.toDisplayString)(e.$t("number.50")),1),(0,n.createElementVNode)("option",s,(0,n.toDisplayString)(e.$t("number.100")),1),(0,n.createElementVNode)("option",c,(0,n.toDisplayString)(e.$t("number.500")),1),(0,n.createElementVNode)("option",u,(0,n.toDisplayString)(e.$t("number.1000")),1)],544),[[n.vModelSelect,o.search.per_page]])])):(0,n.createCommentVNode)("",!0)}]])},9399:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(6314),l=o.n(n)()(function(e){return e[1]});l.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble .ql-toolbar:after,.ql-bubble.ql-toolbar:after{clear:both;content:"";display:table}.ql-bubble .ql-toolbar button,.ql-bubble.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble .ql-toolbar button svg,.ql-bubble.ql-toolbar button svg{float:left;height:100%}.ql-bubble .ql-toolbar button:active:hover,.ql-bubble.ql-toolbar button:active:hover{outline:none}.ql-bubble .ql-toolbar input.ql-image[type=file],.ql-bubble.ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble .ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button:focus,.ql-bubble .ql-toolbar button:hover,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble.ql-toolbar button:focus,.ql-bubble.ql-toolbar button:hover{color:#fff}.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#fff}.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter{stroke:#fff}@media (pointer:coarse){.ql-bubble .ql-toolbar button:hover:not(.ql-active),.ql-bubble.ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:"";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-stroke.ql-thin,.ql-bubble .ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-item:before,.ql-bubble .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-item:before,.ql-bubble .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-item:before,.ql-bubble .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:" ";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{position:absolute;right:20px;top:10px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:"\\D7";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a{position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:before{background-color:#444;border-radius:15px;color:#fff;content:attr(href);font-size:12px;font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;top:-5px;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #444;content:" ";height:0;top:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:after,.ql-container.ql-bubble:not(.ql-disabled) a:before{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:hover:after,.ql-container.ql-bubble:not(.ql-disabled) a:hover:before{visibility:visible}',""]);const r=l},9590:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(9726),l={class:"db-table-action delete"},r={class:"db-tooltip"};const i={name:"SmIconDeleteComponent"};const a=(0,o(6262).A)(i,[["render",function(e,t,o,i,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-trash"},null,-1)),(0,n.createElementVNode)("span",r,(0,n.toDisplayString)(e.$t("button.delete")),1)])}]])},9639:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(9726),l={class:"db-tooltip"};var r=o(5457);const i={name:"SmIconSidebarModalEditComponent",data:function(){return{openCanvas:(0,r.y)().openCanvas}}};const a=(0,o(6262).A)(i,[["render",function(e,t,o,r,i,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",{class:"db-table-action edit",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(e){return i.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,n.createElementVNode)("span",l,(0,n.toDisplayString)(e.$t("button.edit")),1)])}]])},9719:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>ct});var n=o(9726),l={class:"col-12"},r={class:"db-card"},i={class:"db-card-header border-none"},a={class:"db-card-title"},s={class:"db-card-filter"},c={class:"dropdown-group"},u={class:"dropdown-list db-card-filter-dropdown-list"},d={class:"dropdown-group"},p={class:"dropdown-list db-card-filter-dropdown-list"},f={class:"table-filter-div",id:"product-filter"},h={class:"row"},b={class:"col-12 sm:col-6 md:col-4 xl:col-3"},A={for:"searchName",class:"db-field-title after:hidden"},m={class:"col-12 sm:col-6 md:col-4 xl:col-3"},g={for:"searchSku",class:"db-field-title after:hidden"},v={class:"col-12 sm:col-6 md:col-4 xl:col-3"},y={for:"searchBuyingPrice",class:"db-field-title after:hidden"},q={class:"col-12 sm:col-6 md:col-4 xl:col-3"},k={for:"searchSellingPrice",class:"db-field-title after:hidden"},w={class:"col-12 sm:col-6 md:col-4 xl:col-3"},x={for:"searchCategory",class:"db-field-title"},_={class:"col-12 sm:col-6 md:col-4 xl:col-3"},E={for:"searchBrand",class:"db-field-title"},O={class:"col-12 sm:col-6 md:col-4 xl:col-3"},C={for:"searchBarcode",class:"db-field-title"},N={class:"col-12 sm:col-6 md:col-4 xl:col-3"},B={for:"searchTax",class:"db-field-title"},S={class:"col-12 sm:col-6 md:col-4 xl:col-3"},j={for:"searchUnit",class:"db-field-title"},T={class:"col-12 sm:col-6 md:col-4 xl:col-3"},P={for:"searchStatus",class:"db-field-title after:hidden"},V={class:"col-12 sm:col-6 md:col-4 xl:col-3"},L={for:"searchPurchasable",class:"db-field-title after:hidden"},D={class:"col-12 sm:col-6 md:col-4 xl:col-3"},M={for:"searchIsStockOut",class:"db-field-title after:hidden"},I={class:"col-12 sm:col-6 md:col-4 xl:col-3"},R={for:"searchRefundable",class:"db-field-title after:hidden"},U={class:"col-12"},z={class:"flex flex-wrap gap-3 mt-4"},F={class:"db-btn py-2 text-white bg-primary"},$={class:"db-table-responsive"},H={class:"db-table stripe",id:"print"},Q={class:"db-table-head"},G={class:"db-table-head-tr"},K={class:"db-table-head-th"},Y={class:"db-table-head-th"},W={class:"db-table-head-th"},Z={class:"db-table-head-th"},J={class:"db-table-head-th"},X={key:0,class:"db-table-head-th hidden-print"},ee={key:0,class:"db-table-body"},te={class:"db-table-body-td"},oe={class:"db-table-body-td"},ne={class:"db-table-body-td"},le={class:"db-table-body-td"},re={class:"db-table-body-td"},ie={key:0,class:"db-table-body-td hidden-print"},ae={class:"flex justify-start items-center sm:items-start sm:justify-start gap-1.5"},se={key:1,class:"db-table-body"},ce={class:"db-table-body-tr"},ue={class:"db-table-body-td text-center",colspan:"6"},de={class:"p-4"},pe={class:"max-w-[300px] mx-auto mt-2"},fe=["src"],he={class:"d-block mt-3 text-lg"},be={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},Ae={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var me=o(5475),ge=o(6567),ve=o(9856),ye=o(6884),qe=o(6719),ke=o(1889),we=o(1017),xe=o(1751),_e=o(8655),Ee=o(9319),Oe=o(9639),Ce=o(9590),Ne=o(9238),Be=o(4579),Se=o(6365),je=o(3911),Te=o(725),Pe=o(2419),Ve=o(2543),Le=o.n(Ve),De=o(8629),Me={id:"productFileUloadModal",class:"modal"},Ie={class:"modal-dialog"},Re={class:"modal-header"},Ue={class:"modal-title"},ze={class:"modal-body"},Fe={class:"form-row"},$e={class:"form-col-12"},He={class:"db-field-title required"},Qe={key:0,class:"db-field-alert"},Ge={class:"form-col-12"},Ke={class:"modal-btns"},Ye={type:"submit",class:"db-btn py-2 text-white bg-primary"};const We={name:"ProductFileUploadComponent",components:{LoadingComponent:me.A},data:function(){return{loading:{isActive:!1},file:"",search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc"},errors:{}}},methods:{reset:function(){_e.A.modalHide(),this.file="",this.errors={},this.$refs.fileProperty.value=null},changeFile:function(e){this.file=e.target.files[0]},save:function(){var e=this;try{var t=new FormData;this.file&&t.append("file",this.file),this.loading.isActive=!0,this.$store.dispatch("product/import",{form:t,search:this.search}).then(function(t){e.loading.isActive=!1,_e.A.modalHide(),ve.A.successFlip(0,e.$t("menu.products")),e.file="",e.errors={},e.$refs.fileProperty.value=null}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,ve.A.error(e)}}}};var Ze=o(6262);const Je=(0,Ze.A)(We,[["render",function(e,t,o,l,r,i){var a=(0,n.resolveComponent)("LoadingComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(a,{props:r.loading},null,8,["props"]),(0,n.createElementVNode)("div",Me,[(0,n.createElementVNode)("div",Ie,[(0,n.createElementVNode)("div",Re,[(0,n.createElementVNode)("h3",Ue,(0,n.toDisplayString)(e.$t("menu.products")),1),(0,n.createElementVNode)("button",{class:"modal-close fa-solid fa-xmark text-xl text-slate-400 hover:text-red-500",onClick:t[0]||(t[0]=function(){return i.reset&&i.reset.apply(i,arguments)})})]),(0,n.createElementVNode)("div",ze,[(0,n.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,n.withModifiers)(function(){return i.save&&i.save.apply(i,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",Fe,[(0,n.createElementVNode)("div",$e,[(0,n.createElementVNode)("label",He,(0,n.toDisplayString)(e.$t("label.upload_file"))+" ("+(0,n.toDisplayString)(e.$t("label.xlsx"))+")",1),(0,n.createElementVNode)("input",{onChange:t[1]||(t[1]=function(){return i.changeFile&&i.changeFile.apply(i,arguments)}),class:(0,n.normalizeClass)([r.errors.file?"invalid":"","db-field-control"]),id:"file",type:"file",ref:"fileProperty",accept:".xlsx, .xls"},null,34),r.errors.file?((0,n.openBlock)(),(0,n.createElementBlock)("small",Qe,(0,n.toDisplayString)(r.errors.file[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Ge,[(0,n.createElementVNode)("div",Ke,[(0,n.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[2]||(t[2]=function(){return i.reset&&i.reset.apply(i,arguments)})},[t[4]||(t[4]=(0,n.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.close")),1)]),(0,n.createElementVNode)("button",Ye,[t[5]||(t[5]=(0,n.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.save")),1)])])])])],32)])])])],64)}]]);var Xe=o(8517),et=o(9253),tt=o(8536);function ot(e){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(e)}function nt(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=ot(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ot(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const lt={name:"ProductListComponent",components:{TableLimitComponent:Ee.A,PaginationSMBox:xe.A,PaginationBox:we.A,PaginationTextComponent:ke.A,ProductCreateComponent:ge.A,LoadingComponent:me.A,SmIconSidebarModalEditComponent:Oe.A,SmIconDeleteComponent:Ce.A,SmIconViewComponent:Ne.A,FilterComponent:Be.A,ExportComponent:Se.A,PrintComponent:je.A,ExcelComponent:Te.A,ProductFileUploadComponent:Je,ImportComponent:De.A,SampleFileComponent:Xe.A,UploadFileComponent:et.A},data:function(){return{loading:{isActive:!1},enums:{statusEnum:ye.A,askEnum:qe.A,activityEnum:Pe.A,statusEnumArray:nt(nt({},ye.A.ACTIVE,this.$t("label.active")),ye.A.INACTIVE,this.$t("label.inactive"))},printLoading:!0,printObj:{id:"print",popTitle:this.$t("menu.products")},searchProps:{paginate:0,order_column:"id",order_type:"asc"},props:{form:{name:"",sku:"",product_category_id:null,barcode_id:null,buying_price:"",selling_price:"",tax_id:[],product_brand_id:null,status:ye.A.ACTIVE,can_purchasable:qe.A.NO,show_stock_out:Pe.A.DISABLE,refundable:qe.A.NO,maximum_purchase_quantity:"",low_stock_quantity_warning:"",unit_id:null,weight:"",warranty:"",tags:"",convertTags:[],description:""},search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc",name:"",sku:"",buying_price:"",selling_price:"",product_category_id:null,product_brand_id:null,barcode_id:null,tax_id:null,unit_id:null,status:null,can_purchasable:null,show_stock_out:null,refundable:null}},productCategories:[],ENV:tt.A}},computed:{products:function(){return this.$store.getters["product/lists"]},pagination:function(){return this.$store.getters["product/pagination"]},paginationPage:function(){return this.$store.getters["product/page"]},productBrands:function(){return this.$store.getters["productBrand/lists"]},taxes:function(){return this.$store.getters["tax/lists"]},units:function(){return this.$store.getters["unit/lists"]},barcodes:function(){return this.$store.getters["barcode/lists"]}},mounted:function(){var e=this;this.list(),this.$store.dispatch("productCategory/depthTrees").then(function(t){e.productCategories=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.$store.dispatch("productBrand/lists",this.searchProps),this.$store.dispatch("tax/lists",this.searchProps),this.$store.dispatch("unit/lists",this.searchProps),this.$store.dispatch("barcode/lists",this.searchProps)},methods:{permissionChecker:function(e){return _e.A.permissionChecker(e)},statusClass:function(e){return _e.A.statusClass(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return _e.A.textShortener(e,t)},handleSlide:function(e){return _e.A.handleSlide(e)},numberOnly:function(e){return _e.A.floatNumber(e)},search:function(){this.list()},clear:function(){this.props.search.paginate=1,this.props.search.page=1,this.props.search.name="",this.props.search.sku="",this.props.search.buying_price="",this.props.search.selling_price="",this.props.search.product_category_id=null,this.props.search.product_brand_id=null,this.props.search.barcode_id=null,this.props.search.tax_id=null,this.props.search.unit_id=null,this.props.search.show_stock_out=null,this.props.search.status=null,this.props.search.can_purchasable=null,this.props.search.refundable=null,this.list()},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.props.search.page=t,this.$store.dispatch("product/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},edit:function(e){this.loading.isActive=!0,_e.A.sideDrawerShow(),this.$store.dispatch("product/edit",e.id),this.loading.isActive=!1,this.props.form.name=e.name,this.props.form.sku=e.sku,this.props.form.product_category_id=e.product_category_id,this.props.form.barcode_id=e.barcode_id,this.props.form.buying_price=e.flat_buying_price,this.props.form.selling_price=e.flat_selling_price,this.props.form.tax_id=this.taxUpdate(e.tax_id),this.props.form.product_brand_id=e.product_brand_id,this.props.form.status=e.status,this.props.form.can_purchasable=e.can_purchasable,this.props.form.show_stock_out=e.show_stock_out,this.props.form.refundable=e.refundable,this.props.form.maximum_purchase_quantity=e.maximum_purchase_quantity,this.props.form.low_stock_quantity_warning=e.low_stock_quantity_warning,this.props.form.unit_id=e.unit_id,this.props.form.weight=e.weight,this.props.form.warranty=e.warranty,this.props.form.convertTags=this.tagUpdate(e.product_tags),this.props.form.tags="",this.props.form.description=e.description},tagUpdate:function(e){var t=[];return Le().forEach(e,function(e){t.push({text:e.name,tiClasses:["ti-valid"]})}),t},taxUpdate:function(e){var t=[];return Le().forEach(e,function(e,o){t.push(e.tax_id)}),t},destroy:function(e){var t=this;_e.A.destroyConfirmation().then(function(o){try{t.loading.isActive=!0,t.$store.dispatch("product/destroy",{id:e,search:t.props.search}).then(function(e){t.loading.isActive=!1,ve.A.successFlip(null,t.$t("menu.products"))}).catch(function(e){t.loading.isActive=!1,ve.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,ve.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})},xls:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("product/export",this.props.search).then(function(t){e.loading.isActive=!1;var o=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=e.$t("menu.products"),n.click(),URL.revokeObjectURL(n.href)}).catch(function(t){e.loading.isActive=!1,ve.A.error(t.response.data.message)})},download:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("product/download").then(function(t){e.loading.isActive=!1;var o=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=e.$t("menu.products"),n.click(),URL.revokeObjectURL(n.href)}).catch(function(t){e.loading.isActive=!1,ve.A.error(t.response.data.message)})}}};var rt=o(5072),it=o.n(rt),at=o(399),st={insert:"head",singleton:!1};it()(at.A,st);at.A.locals;const ct=(0,Ze.A)(lt,[["render",function(e,t,o,me,ge,ve){var ye=(0,n.resolveComponent)("LoadingComponent"),qe=(0,n.resolveComponent)("TableLimitComponent"),ke=(0,n.resolveComponent)("FilterComponent"),we=(0,n.resolveComponent)("ExportComponent"),xe=(0,n.resolveComponent)("PrintComponent"),_e=(0,n.resolveComponent)("ExcelComponent"),Ee=(0,n.resolveComponent)("ImportComponent"),Oe=(0,n.resolveComponent)("SampleFileComponent"),Ce=(0,n.resolveComponent)("UploadFileComponent"),Ne=(0,n.resolveComponent)("ProductCreateComponent"),Be=(0,n.resolveComponent)("vue-select"),Se=(0,n.resolveComponent)("SmIconViewComponent"),je=(0,n.resolveComponent)("SmIconSidebarModalEditComponent"),Te=(0,n.resolveComponent)("SmIconDeleteComponent"),Pe=(0,n.resolveComponent)("PaginationSMBox"),Ve=(0,n.resolveComponent)("PaginationTextComponent"),Le=(0,n.resolveComponent)("PaginationBox"),De=(0,n.resolveComponent)("ProductFileUploadComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(ye,{props:ge.loading},null,8,["props"]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("h3",a,(0,n.toDisplayString)(e.$t("menu.products")),1),(0,n.createElementVNode)("div",s,[(0,n.createVNode)(qe,{method:ve.list,search:ge.props.search,page:ve.paginationPage},null,8,["method","search","page"]),(0,n.createVNode)(ke,{onClick:t[0]||(t[0]=(0,n.withModifiers)(function(e){return ve.handleSlide("product-filter")},["prevent"]))}),(0,n.createElementVNode)("div",c,[(0,n.createVNode)(we),(0,n.createElementVNode)("div",u,[(0,n.createVNode)(xe,{props:ge.printObj},null,8,["props"]),(0,n.createVNode)(_e,{method:ve.xls},null,8,["method"])])]),(0,n.createElementVNode)("div",d,[(0,n.createVNode)(Ee),(0,n.createElementVNode)("div",p,[(0,n.createVNode)(Oe,{method:ve.download},null,8,["method"]),(0,n.createVNode)(Ce,{props:"productFileUloadModal"})])]),ve.permissionChecker("products_create")?((0,n.openBlock)(),(0,n.createBlock)(Ne,{key:0,props:ge.props},null,8,["props"])):(0,n.createCommentVNode)("",!0)])]),(0,n.createElementVNode)("div",f,[(0,n.createElementVNode)("form",{class:"p-4 sm:p-5 mb-5",onSubmit:t[17]||(t[17]=(0,n.withModifiers)(function(){return ve.search&&ve.search.apply(ve,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",h,[(0,n.createElementVNode)("div",b,[(0,n.createElementVNode)("label",A,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchName","onUpdate:modelValue":t[1]||(t[1]=function(e){return ge.props.search.name=e}),type:"text",class:"db-field-control"},null,512),[[n.vModelText,ge.props.search.name]])]),(0,n.createElementVNode)("div",m,[(0,n.createElementVNode)("label",g,(0,n.toDisplayString)(e.$t("label.sku")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchSku","onUpdate:modelValue":t[2]||(t[2]=function(e){return ge.props.search.sku=e}),type:"text",class:"db-field-control"},null,512),[[n.vModelText,ge.props.search.sku]])]),(0,n.createElementVNode)("div",v,[(0,n.createElementVNode)("label",y,(0,n.toDisplayString)(e.$t("label.buying_price")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchBuyingPrice",onKeypress:t[3]||(t[3]=function(e){return ve.numberOnly(e)}),"onUpdate:modelValue":t[4]||(t[4]=function(e){return ge.props.search.buying_price=e}),type:"text",class:"db-field-control"},null,544),[[n.vModelText,ge.props.search.buying_price]])]),(0,n.createElementVNode)("div",q,[(0,n.createElementVNode)("label",k,(0,n.toDisplayString)(e.$t("label.selling_price")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchSellingPrice",onKeypress:t[5]||(t[5]=function(e){return ve.numberOnly(e)}),"onUpdate:modelValue":t[6]||(t[6]=function(e){return ge.props.search.selling_price=e}),type:"text",class:"db-field-control"},null,544),[[n.vModelText,ge.props.search.selling_price]])]),(0,n.createElementVNode)("div",w,[(0,n.createElementVNode)("label",x,(0,n.toDisplayString)(e.$t("label.category")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchCategory",modelValue:ge.props.search.product_category_id,"onUpdate:modelValue":t[7]||(t[7]=function(e){return ge.props.search.product_category_id=e}),options:ge.productCategories,"label-by":"option","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",_,[(0,n.createElementVNode)("label",E,(0,n.toDisplayString)(e.$t("label.brand")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchBrand",modelValue:ge.props.search.product_brand_id,"onUpdate:modelValue":t[8]||(t[8]=function(e){return ge.props.search.product_brand_id=e}),options:ve.productBrands,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",O,[(0,n.createElementVNode)("label",C,(0,n.toDisplayString)(e.$t("label.barcode")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchBarcode",modelValue:ge.props.search.barcode_id,"onUpdate:modelValue":t[9]||(t[9]=function(e){return ge.props.search.barcode_id=e}),options:ve.barcodes,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",N,[(0,n.createElementVNode)("label",B,(0,n.toDisplayString)(e.$t("label.tax")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchTax",modelValue:ge.props.search.tax_id,"onUpdate:modelValue":t[10]||(t[10]=function(e){return ge.props.search.tax_id=e}),options:ve.taxes,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",S,[(0,n.createElementVNode)("label",j,(0,n.toDisplayString)(e.$t("label.unit")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchUnit",modelValue:ge.props.search.unit_id,"onUpdate:modelValue":t[11]||(t[11]=function(e){return ge.props.search.unit_id=e}),options:ve.units,"label-by":"name_code","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",T,[(0,n.createElementVNode)("label",P,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchStatus",modelValue:ge.props.search.status,"onUpdate:modelValue":t[12]||(t[12]=function(e){return ge.props.search.status=e}),options:[{id:ge.enums.statusEnum.ACTIVE,name:e.$t("label.active")},{id:ge.enums.statusEnum.INACTIVE,name:e.$t("label.inactive")}],"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",V,[(0,n.createElementVNode)("label",L,(0,n.toDisplayString)(e.$t("label.purchasable")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchPurchasable",modelValue:ge.props.search.can_purchasable,"onUpdate:modelValue":t[13]||(t[13]=function(e){return ge.props.search.can_purchasable=e}),options:[{id:ge.enums.askEnum.YES,name:e.$t("label.yes")},{id:ge.enums.askEnum.NO,name:e.$t("label.no")}],"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",D,[(0,n.createElementVNode)("label",M,(0,n.toDisplayString)(e.$t("label.show_stock_out")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchIsStockOut",modelValue:ge.props.search.show_stock_out,"onUpdate:modelValue":t[14]||(t[14]=function(e){return ge.props.search.show_stock_out=e}),options:[{id:ge.enums.activityEnum.ENABLE,name:e.$t("label.enable")},{id:ge.enums.activityEnum.DISABLE,name:e.$t("label.disable")}],"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",I,[(0,n.createElementVNode)("label",R,(0,n.toDisplayString)(e.$t("label.refundable")),1),(0,n.createVNode)(Be,{class:"db-field-control f-b-custom-select",id:"searchRefundable",modelValue:ge.props.search.refundable,"onUpdate:modelValue":t[15]||(t[15]=function(e){return ge.props.search.refundable=e}),options:[{id:ge.enums.askEnum.YES,name:e.$t("label.yes")},{id:ge.enums.askEnum.NO,name:e.$t("label.no")}],"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",U,[(0,n.createElementVNode)("div",z,[(0,n.createElementVNode)("button",F,[t[18]||(t[18]=(0,n.createElementVNode)("i",{class:"lab lab-line-search lab-font-size-16"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.search")),1)]),(0,n.createElementVNode)("button",{class:"db-btn py-2 text-white bg-gray-600",onClick:t[16]||(t[16]=function(){return ve.clear&&ve.clear.apply(ve,arguments)})},[t[19]||(t[19]=(0,n.createElementVNode)("i",{class:"lab lab-line-cross lab-font-size-22"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.clear")),1)])])])])],32)]),(0,n.createElementVNode)("div",$,[(0,n.createElementVNode)("table",H,[(0,n.createElementVNode)("thead",Q,[(0,n.createElementVNode)("tr",G,[(0,n.createElementVNode)("th",K,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.createElementVNode)("th",Y,(0,n.toDisplayString)(e.$t("label.category")),1),(0,n.createElementVNode)("th",W,(0,n.toDisplayString)(e.$t("label.buying_price")),1),(0,n.createElementVNode)("th",Z,(0,n.toDisplayString)(e.$t("label.selling_price")),1),(0,n.createElementVNode)("th",J,(0,n.toDisplayString)(e.$t("label.status")),1),ve.permissionChecker("products_show")||ve.permissionChecker("products_edit")||ve.permissionChecker("products_delete")?((0,n.openBlock)(),(0,n.createElementBlock)("th",X,(0,n.toDisplayString)(e.$t("label.action")),1)):(0,n.createCommentVNode)("",!0)])]),ve.products.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",ee,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(ve.products,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,n.createElementVNode)("td",te,(0,n.toDisplayString)(ve.textShortener(e.name,40)),1),(0,n.createElementVNode)("td",oe,(0,n.toDisplayString)(e.category_name),1),(0,n.createElementVNode)("td",ne,(0,n.toDisplayString)(e.flat_buying_price),1),(0,n.createElementVNode)("td",le,(0,n.toDisplayString)(e.flat_selling_price),1),(0,n.createElementVNode)("td",re,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(ve.statusClass(e.status))},(0,n.toDisplayString)(ge.enums.statusEnumArray[e.status]),3)]),ve.permissionChecker("products_show")||ve.permissionChecker("products_edit")||ve.permissionChecker("products_delete")?((0,n.openBlock)(),(0,n.createElementBlock)("td",ie,[(0,n.createElementVNode)("div",ae,[ve.permissionChecker("products_show")?((0,n.openBlock)(),(0,n.createBlock)(Se,{key:0,link:"admin.product.show",id:e.id},null,8,["id"])):(0,n.createCommentVNode)("",!0),ve.permissionChecker("products_edit")?((0,n.openBlock)(),(0,n.createBlock)(je,{key:1,onClick:function(t){return ve.edit(e)}},null,8,["onClick"])):(0,n.createCommentVNode)("",!0),ve.permissionChecker("products_delete")?((0,n.openBlock)(),(0,n.createBlock)(Te,{key:2,onClick:function(t){return ve.destroy(e.id)}},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)])}),128))])):((0,n.openBlock)(),(0,n.createElementBlock)("tbody",se,[(0,n.createElementVNode)("tr",ce,[(0,n.createElementVNode)("td",ue,[(0,n.createElementVNode)("div",de,[(0,n.createElementVNode)("div",pe,[(0,n.createElementVNode)("img",{class:"w-full h-full",src:ge.ENV.API_URL+"/images/default/not-found/not_found.png",alt:"Not Found"},null,8,fe)]),(0,n.createElementVNode)("span",he,(0,n.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),ve.products.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",be,[(0,n.createVNode)(Pe,{pagination:ve.pagination,method:ve.list},null,8,["pagination","method"]),(0,n.createElementVNode)("div",Ae,[(0,n.createVNode)(Ve,{props:{page:ve.paginationPage}},null,8,["props"]),(0,n.createVNode)(Le,{pagination:ve.pagination,method:ve.list},null,8,["pagination","method"])])])):(0,n.createCommentVNode)("",!0)])]),(0,n.createVNode)(De)],64)}],["__scopeId","data-v-3883c845"]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285